Back

Search

Search

Methods

Inventory

Orders

Auth /AuthorizeByApplication

Response: BaseSession



Generates a sesssion and provide Authorization Token and server in response.

Parameters

NameTypeDescription
requestAuthorizeByApplicationRequest

HTTP Endpoint

Server /Auth / AuthorizeByApplication

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://api.linnworks.net//api/Auth/AuthorizeByApplication HTTP/1.1
Host: api.linnworks.net
Connection: keep-alive
Accept: application/json, text/javascript, */*; q=0.01
Origin: https://www.linnworks.net
Accept-Language: en
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://www.linnworks.net/
Accept-Encoding: gzip, deflate


request={
  "ApplicationId": "2924bf9b-5094-4d66-b903-a0d94ff911c4",
  "ApplicationSecret": "a489c06b-805d-47cb-90ec-bafb28eb743f",
  "Token": "886d4ef5-fcdc-4d8f-af1b-689c2d9bc874"
}

Response

This is an example response. Results may vary depending on your data.

{
  "Id": "884b4152-47ff-4730-9c54-214d98e576e0",
  "EntityId": "e2560716-34f6-49f2-bc93-1b13115988c2",
  "DatabaseName": "sample string 3",
  "DatabaseServer": "sample string 4",
  "PrivateDatabaseServer": "sample string 5",
  "DatabaseUser": "sample string 6",
  "DatabasePassword": "sample string 7",
  "sid_registration": "884b4152-47ff-4730-9c54-214d98e576e0",
  "UserName": "sample string 8",
  "Md5Hash": "sample string 9",
  "Locality": 0,
  "SuperAdmin": true,
  "TTL": 1,
  "Token": "8af6f226-2bb8-432b-9354-0067c616aff3",
  "AccessToken": "sample string 12",
  "GroupName": "sample string 13",
  "Device": "sample string 14",
  "DeviceType": "sample string 15",
  "UserType": "sample string 16",
  "Status": {
    "State": 0,
    "Reason": "sample string 1",
    "Parameters": {
      "sample string 1": "sample string 2",
      "sample string 3": "sample string 4"
    }
  },
  "UserId": "ed8b11e8-9024-4dfd-8628-1b4e51967c18",
  "Properties": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "Email": "sample string 18",
  "Server": "sample string 19",
  "PushServer": "sample string 20"
}