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": "9d69664c-c6d9-48e3-9412-147a449cdcb6",
  "ApplicationSecret": "f84fdb1b-6070-4439-85c0-0d1f333fd7bf",
  "Token": "6cae8417-ea88-49e1-9b62-5736c6b0bfa8"
}

Response

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

{
  "Id": "727e9c22-f01b-4167-8c06-4ec6a17126e1",
  "EntityId": "e9b7fc75-d3bd-4e3b-aa69-fe3e05e0ff62",
  "DatabaseName": "sample string 3",
  "DatabaseServer": "sample string 4",
  "DatabaseUser": "sample string 5",
  "DatabasePassword": "sample string 6",
  "ConnectionString": "Data Source=\"sample string 4\";Initial Catalog=\"sample string 3\";User ID=\"sample string 5\";Password=\"sample string 6\"",
  "sid_registration": "727e9c22-f01b-4167-8c06-4ec6a17126e1",
  "UserName": "sample string 7",
  "Md5Hash": "sample string 8",
  "Locality": 0,
  "SuperAdmin": true,
  "TTL": 1,
  "Token": "901809c8-abc2-4b83-8a53-3acc2c528457",
  "GroupName": "sample string 11",
  "Device": "sample string 12",
  "DeviceType": "sample string 13",
  "UserType": "sample string 14",
  "Status": {
    "State": 0,
    "Reason": "sample string 1",
    "Parameters": {
      "sample string 1": "sample string 2",
      "sample string 3": "sample string 4"
    }
  },
  "UserId": "446dced9-1e0d-46ef-8c40-3313f1f6376f",
  "Properties": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "Email": "sample string 16",
  "Server": "sample string 17",
  "PushServer": "sample string 18"
}