Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

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": "e97e9ad9-f850-498a-b2c2-cfce5cb13497",
  "ApplicationSecret": "d402b6eb-96b4-464e-848b-4399c45b0666",
  "Token": "8060f145-13c5-4948-ab4c-7931fc9e7ad6"
}

Response

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

{
  "Id": "ed06e5ca-fd9f-435b-aa86-597626502bd4",
  "EntityId": "828349f3-3368-4dfb-b1d4-d693ee2f4980",
  "DatabaseName": "sample string 3",
  "DatabaseServer": "sample string 4",
  "PrivateDatabaseServer": "sample string 5",
  "DatabaseUser": "sample string 6",
  "DatabasePassword": "sample string 7",
  "AppName": "sample string 8",
  "sid_registration": "ed06e5ca-fd9f-435b-aa86-597626502bd4",
  "UserName": "sample string 9",
  "Md5Hash": "sample string 10",
  "Locality": 0,
  "SuperAdmin": true,
  "TTL": 1,
  "Token": "51b38b11-5140-4f83-8426-e603ea4dea1e",
  "AccessToken": "sample string 13",
  "GroupName": "sample string 14",
  "Device": "sample string 15",
  "DeviceType": "sample string 16",
  "UserType": "sample string 17",
  "Status": {
    "State": 0,
    "Reason": "sample string 1",
    "Parameters": {
      "sample string 1": "sample string 2"
    }
  },
  "UserId": "af2d3dad-be73-44ef-8584-835fba9e437f",
  "Properties": {
    "sample string 1": "sample string 2"
  },
  "Email": "sample string 19",
  "Server": "sample string 20",
  "PushServer": "sample string 21"
}