Back

Search

Search

Methods

Inventory

Orders

Auth /AuthorizeByApplication

Response: BaseSession



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

Parameters

NameTypeDescription
requestAuthorizeByApplicationRequest

Example Request

The following request format is required for this method.

Endpoint URL

POST https://api.linnworks.net/api/Auth/AuthorizeByApplication

Headers

Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate

Request Body

This is an example of the request structure. Results will vary depending on your data.

request={
  "ApplicationId": "f112180b-1f75-460c-b067-49b5db57c459",
  "ApplicationSecret": "3d65e008-8e7a-4d16-8809-ae2d2a04b86c",
  "Token": "0f087224-22d4-4869-a2ec-32121a52f992"
}

Response

This is an example of the response JSON. Results will vary depending on your data.

{
  "Id": "fab57cb2-f0a9-4ee1-9cb0-69042f61e957",
  "EntityId": "acfcb5f1-fb9b-4ba0-b218-1e2797cc1bda",
  "DatabaseName": "sample string 3",
  "DatabaseServer": "sample string 4",
  "PrivateDatabaseServer": "sample string 5",
  "DatabaseUser": "sample string 6",
  "DatabasePassword": "sample string 7",
  "sid_registration": "fab57cb2-f0a9-4ee1-9cb0-69042f61e957",
  "UserName": "sample string 8",
  "Md5Hash": "sample string 9",
  "Locality": 0,
  "SuperAdmin": true,
  "TTL": 1,
  "Token": "0faf1ce4-b378-4c09-9451-f4d1cc2e05c1",
  "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"
    }
  },
  "UserId": "31526a3c-8670-4fb9-bf26-323d894e35a6",
  "Properties": {
    "sample string 1": "sample string 2"
  },
  "Email": "sample string 18",
  "Server": "sample string 19",
  "PushServer": "sample string 20"
}