Back

Search

Search

Methods

Inventory

Orders

Auth /AuthorizeByApplication

Response: BaseSession



Generates a sesssion and provide Authorization Token and server in response.

Parameters

NameTypeDescription
applicationIdGuidYour application Id
applicationSecretGuidYour application secret key
tokenGuid Base token generated on Application installation. (static)

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


applicationId=2ce71d13-51b1-4898-85f0-b56977316353&applicationSecret=9b9826dc-f902-4d73-8154-7a3c6c6e6bbd&token=531e39a7-7918-4345-aa9a-aaa385c29e05

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": "4d93e5f4-04c2-4aee-b834-5db208378ae5",
  "Email": "sample string 7",
  "UserName": "sample string 8",
  "UserType": "sample string 9",
  "Token": "38f4c12f-229e-48a3-8643-03285357e56b",
  "EntityId": "499f8139-7b10-411d-b015-d02e0f0d0362",
  "GroupName": "sample string 12",
  "Locality": 0,
  "Properties": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "UserId": "ba71a1bd-7da2-43fc-9ad4-a6bc594ee677"
}