WinShopAPI docs
ReferenceStock items

List blocking documents

Returns the unprocessed documents holding part of this stock item. Blocked goods are quantities that physically sit in the warehouse but are already promised elsewhere, so they are not available to sell. Requires `Permissions.StockItems.View`.

GET
/api/stock-items/{stockItemId}/blocked-goods/documents

Authorization

Bearer
headerAuthorizationBearer <token>

OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.

Path Parameters

stockItemId*integer
Formatint32

Response Body

application/json
  1. response
[index: integer]?
curl -X GET 'https://<your-instance>/api/stock-items/0/blocked-goods/documents' \  -H 'Authorization: Bearer <access-token>'
[  {    "customerOrWarehouseCode": "string",    "customerOrWarehouseName": "string",    "date": "2019-08-24T14:15:22Z",    "deliveryDate": "2019-08-24T14:15:22Z",    "documentId": 0,    "documentType": "string",    "formNumber": "string",    "internalNumber": 0,    "itemId": 0,    "itemNumber": 0,    "quantity": 0  }]