Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

Orders /LockOrder

Allows 150 calls per minute

Response: Task



Lock a list of orders

Parameters

NameTypeDescription
orderIdsList<Guid>Order id's
lockOrderBooleanLock or unlock the orders
ctxCancellationToken

Example Request

The following request format is required for this method.

Endpoint URL

GET | POST https://eu-ext.linnworks.net/api/Orders/LockOrder

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.

orderIds=[
  "ac951a79-51a4-46cb-9719-8a4f11e0b22d"
]&lockOrder=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.

null