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": "5e1e7285-ab54-4108-9cba-3d4f15448643",
  "ApplicationSecret": "166e871c-1feb-4946-9829-a7c7f70727c3",
  "Token": "84ce16d1-09df-4aeb-a08e-9864b7c18a3f"
}

Response

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

{
  "Id": "6353e617-aa32-4585-b696-79c248272675",
  "EntityId": "fc7188c6-8161-4d31-8206-873c98cd1b06",
  "DatabaseName": "sample string 3",
  "DatabaseServer": "sample string 4",
  "PrivateDatabaseServer": "sample string 5",
  "DatabaseUser": "sample string 6",
  "DatabasePassword": "sample string 7",
  "sid_registration": "6353e617-aa32-4585-b696-79c248272675",
  "UserName": "sample string 8",
  "Md5Hash": "sample string 9",
  "Locality": 0,
  "SuperAdmin": true,
  "TTL": 1,
  "Token": "9d0a3be3-3401-4aa6-aeb0-de99de8e28fb",
  "AccessToken": "sample string 12",
  "GroupName": "sample string 13",
  "Device": "sample string 14",
  "DeviceType": "sample string 15",
  "UserType": "sample string 16",
  "Status": {
    "State": 0,
    "Reason": "sample string 1",
    "Parameters": {
      "sample string 1": "sample string 2",
      "sample string 3": "sample string 4"
    }
  },
  "UserId": "03cfc5b4-2994-48bd-bd5a-66b5d6a30b11",
  "Properties": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "Email": "sample string 18",
  "Server": "sample string 19",
  "PushServer": "sample string 20"
}