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": "7a149071-8f06-473c-a35d-300365708e93",
  "ApplicationSecret": "be3cd639-8ea6-46f4-af09-27777e9b768e",
  "Token": "ad1139c5-9bd7-4ece-8ecb-74abce4fe67b"
}

Response

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

{
  "TTL": 1,
  "Device": "sample string 1",
  "DeviceType": "sample string 2",
  "Server": "sample string 3",
  "PushServer": "sample string 4",
  "Status": {
    "State": 0,
    "Reason": "sample string 1",
    "Parameters": {
      "sample string 1": "sample string 2",
      "sample string 3": "sample string 4"
    }
  },
  "Id": "c4a0a9b5-1333-4ccf-b13b-fec8a6f51e95",
  "Email": "sample string 6",
  "UserName": "sample string 7",
  "UserType": "sample string 8",
  "Token": "c088cf96-c9ca-48e6-88a7-0c847d947db9",
  "EntityId": "adbc5c0f-53ae-447e-ad31-e9a1b76cea86",
  "GroupName": "sample string 11",
  "Locality": 0,
  "Properties": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "UserId": "6c94cf83-3158-4a2a-bd74-1bbd46aed086"
}