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": "2ab3ea21-3ab1-448d-8315-bdf5fd8267d4",
  "ApplicationSecret": "d4a8add1-c696-49fb-80d7-eeefee5cd2c5",
  "Token": "b4d8320c-0215-404a-be8f-552a1b5597ed"
}

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": "995cb525-a8f9-4443-8ecc-ebf75faf69d3",
  "Email": "sample string 7",
  "UserName": "sample string 8",
  "UserType": "sample string 9",
  "Token": "590b8f07-e791-453e-8494-bdd307f58d01",
  "EntityId": "081bd714-3f73-4a92-9aff-5e5d33400830",
  "GroupName": "sample string 12",
  "Locality": 0,
  "Properties": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "UserId": "21027f71-2da2-4566-ab02-782c751f9dcd"
}