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": "298de537-0fd8-4493-9947-6e441412a7ba",
  "ApplicationSecret": "d58b3abc-efbf-4e8a-ac94-fc0e5d4f6e7c",
  "Token": "9b442692-ee22-4b39-bdc6-e1e112641475"
}

Response

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

{
  "Id": "178eadfc-8a7f-42a1-b418-a9f0c46b0242",
  "EntityId": "86da656d-679a-451a-9ce7-ff955c3d47d1",
  "DatabaseName": "sample string 3",
  "DatabaseServer": "sample string 4",
  "PrivateDatabaseServer": "sample string 5",
  "DatabaseUser": "sample string 6",
  "DatabasePassword": "sample string 7",
  "sid_registration": "178eadfc-8a7f-42a1-b418-a9f0c46b0242",
  "UserName": "sample string 8",
  "Md5Hash": "sample string 9",
  "Locality": 0,
  "SuperAdmin": true,
  "TTL": 1,
  "Token": "389aa3d1-6ab0-4bc6-9faf-85a9a071cd17",
  "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": "803b9ac9-0c7b-43cc-ad7f-8ef7a3550802",
  "Properties": {
    "sample string 1": "sample string 2"
  },
  "Email": "sample string 18",
  "Server": "sample string 19",
  "PushServer": "sample string 20"
}