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": "a2300c24-662a-4cb6-b1c2-3d81201d0dda",
  "ApplicationSecret": "1a4ea0ec-2dea-49b5-9847-48b59ef1f364",
  "Token": "3f8dc254-4772-41d2-96a5-48cfad75cfed"
}

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": "ae3c4a03-ac07-4d05-be12-6915cbdcf796",
  "Email": "sample string 6",
  "UserName": "sample string 7",
  "UserType": "sample string 8",
  "Token": "b63dd976-1d61-4210-b4ff-e2bd4e67656c",
  "EntityId": "129fa97b-bfd5-49a4-83ce-903af689a2e4",
  "GroupName": "sample string 11",
  "Locality": 0,
  "Properties": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "UserId": "405c4e94-95e8-4b2a-baa5-661ea46bb9f4"
}