Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

OpenOrders /GetViewStats

Allows 150 calls per minute

Response: List<OrderViewStats>


Parameters

NameTypeDescription
requestGetViewStatsRequest

Example Request

The following request format is required for this method.

Endpoint URL

POST https://eu-ext.linnworks.net/api/OpenOrders/GetViewStats

Headers

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

Request Body

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

request={
  "LocationId": "2a98a311-9832-44bf-be27-2de302698125",
  "ViewId": 1,
  "UserId": 1,
  "IncludeUserManagement": true,
  "OnlyVisible": true,
  "RebuildCacheIfRequired": true
}

Response

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

[
  {
    "ViewId": 1,
    "ViewName": "sample string 2",
    "IsSystem": true,
    "TotalOrders": 4,
    "LocationId": "bc8b7013-45e3-48c4-8018-604410270314",
    "ExpiryDate": "2021-11-25T11:33:38.7715529+00:00",
    "IsCalculating": true,
    "ViewExists": true,
    "LastRequested": "2021-11-25T11:33:38.7715529+00:00",
    "UserManagement": {
      "ViewId": 0,
      "ViewUsers": [
        {
          "Name": "sample string 1",
          "IsOwner": true,
          "UserId": 3,
          "EmailAddress": "sample string 4",
          "UserType": "sample string 5"
        }
      ],
      "ViewGroups": [
        {
          "GroupId": 1,
          "Name": "sample string 2"
        }
      ]
    },
    "OrderViewUserPreference": {
      "ViewId": 1,
      "IsVisible": true,
      "Sequence": 64
    },
    "Owner": {
    },
    "IsCacheable": true
  }
]