Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

Auth /AuthorizeByApplication

Response: BaseSession



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

Parameters

NameTypeDescription
requestAuthorizeByApplicationRequest

Example Request

The following request format is required for this method.

Endpoint URL

POST https://api.linnworks.net/api/Auth/AuthorizeByApplication

Headers

Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate

Request Body

This is an example of the request structure. Results will vary depending on your data.

request={
  "ApplicationId": "7558b95e-b9cd-4391-b893-418b73c34dbd",
  "ApplicationSecret": "952e6623-7267-4109-ae06-5409c72e5e6d",
  "Token": "4e887bf4-9400-4ac3-9294-b3cd7fe0c059"
}

Response

This is an example of the response JSON. Results will vary depending on your data.

{
  "Id": "2d1df3cd-a2fc-46c1-b5ac-7b29fc2c2a29",
  "EntityId": "b5600e04-16e4-449e-883d-838708e6a563",
  "DatabaseName": "sample string 3",
  "DatabaseServer": "sample string 4",
  "PrivateDatabaseServer": "sample string 5",
  "DatabaseUser": "sample string 6",
  "DatabasePassword": "sample string 7",
  "sid_registration": "2d1df3cd-a2fc-46c1-b5ac-7b29fc2c2a29",
  "UserName": "sample string 8",
  "Md5Hash": "sample string 9",
  "Locality": 0,
  "SuperAdmin": true,
  "TTL": 1,
  "Token": "090c5539-639d-407b-93da-b6c3c6ad0367",
  "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"
    }
  },
  "UserId": "34004b0c-f0f5-415a-a330-9557f517149a",
  "Properties": {
    "sample string 1": "sample string 2"
  },
  "Email": "sample string 18",
  "Server": "sample string 19",
  "PushServer": "sample string 20"
}