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": "599c2444-c8d9-43f9-99c0-9382981feea3",
  "ApplicationSecret": "9937862a-5283-4029-8817-8a13a67454d6",
  "Token": "ed90d72e-32a6-451b-9b6d-d826867b538a"
}

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"
    }
  },
  "BsonId": "sample string 5",
  "Id": "123be246-4680-4385-a3fa-8540d3d9cf59",
  "Email": "sample string 7",
  "UserName": "sample string 8",
  "UserType": "sample string 9",
  "Token": "25df3ee2-37a7-4261-8382-0c885a4e51fa",
  "EntityId": "a22cff07-cbd6-4928-aebf-55076a2693bc",
  "GroupName": "sample string 12",
  "Locality": 0,
  "Properties": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "UserId": "04b1f358-a90b-4414-acd3-0d306b99468b"
}