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=b05c1300-3749-4975-a9d4-b907712f95d0&applicationSecret=10d8b460-d0ed-46e2-8836-b8ff79ac18aa&token=78748508-56f3-4ef6-bf53-c83f66573a4c

Response

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

{
  "LastActivity": "2018-02-19T16:57:09.7746073+00:00",
  "Device": "sample string 2",
  "DeviceType": "sample string 3",
  "Server": "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": "fe9dcf7a-b9d8-4c79-8530-b5bdb2bb8a72",
  "Email": "sample string 7",
  "UserId": "d20f820f-5671-4310-bc06-4e501df872b1",
  "UserName": "sample string 9",
  "UserType": "sample string 10",
  "Token": "49f1a8e9-edf4-4e51-b600-a40012f33bc3",
  "EntityId": "0b0a6b53-3e00-4783-a46c-4626bd3dba0d",
  "GroupName": "sample string 13",
  "Locality": 0,
  "Properties": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  }
}