Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

OpenOrders /GetViewStats

Allows 150 calls per minute

Response: List<OrderViewStats>


Parameters

NameTypeDescription
requestGetViewStatsRequest
ctxCancellationToken

Example Request

The following request format is required for this method.

Endpoint URL

GET 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": "9c4ec31e-ff3d-41bb-a960-3d09d9537b14",
  "ViewId": 1,
  "UserId": 1,
  "IncludeUserManagement": true,
  "OnlyVisible": true,
  "RebuildCacheIfRequired": true
}&ctx={
  "IsCancellationRequested": false,
  "CanBeCanceled": false,
  "WaitHandle": {
    "Handle": {
      "value": 1292
    },
    "SafeWaitHandle": {
      "IsInvalid": false,
      "IsClosed": false
    }
  }
}

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": "49a066c7-cf65-420e-9b99-885ec9b76f26",
    "ExpiryDate": "2023-01-10T13:49:54.00044+00:00",
    "IsCalculating": true,
    "ViewExists": true,
    "LastRequested": "2023-01-10T13:49:54.00044+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
  }
]