Developer documentation
Stock
Use the Stock API to retrieve and filter stock levels. This page covers the stock model and listing endpoint.
View current stock levels per variant. This page explains the stock model and how to list and filter stock.
Guide: Increase Stock (Sandbox)
**UI only – not API**
This is a UI guide, not an API flow. Read: Increase Stock (Sandbox).
Response models
These response models describe the objects returned by this resource.
The stock model
| Field | Description |
|---|---|
idstringOptional | Read-only. |
article_codestringOptional | - |
eanstringOptional | - |
skustringOptional | - |
stock_physicalintegerOptional | - |
List all stock
GET
/wms/stock/Retrieves a collection of stock
Try it
Send a live request against the development middleware using your current API test session.
Request attributes
| Field | Description |
|---|---|
article_codestringOptional | Filter by article code. |
eanstringOptional | Filter by EAN. |
skustringOptional | Filter by SKU. |
searchstringOptional | Search by name, SKU, EAN, or article code. |
modified_gtedatetimeOptional | Return stock modified on or after this timestamp. |
limitintegerOptional | Limit the number of results. Default is 50. |
pageintegerOptional | The page number to retrieve. |
directionstringOptional | Sort direction. Options: `asc` or `desc`. Default is `asc`. |
sortstringOptional | Sort field. Options: `id`, `createdAt`, `modifiedAt`, `name`, or `articleCode`. Default is `name`. |
Request examplecURL
curl https://eu-dev.middleware.ewarehousing-solutions.com/wms/stock/Response exampleJSON
[
{
"id": "5060691c-2812-48e2-bd07-82ff3fd19382",
"article_code": "13378",
"ean": "13378",
"sku": null,
"stock_physical": 99,
"stock_salable": -8,
"stock_available": -8,
"stock_quarantine": 0,
"stock_pickable": 4,
"modified_at": "2022-10-27T11:42:50+00:00",
"variant": {
"id": "5060691c-2812-48e2-bd07-82ff3fd19382",
"article_code": "13378",
"name": "13378",
"description": null,
"ean": "13378",
"sku": null,
"hs_tariff_code": null,
"height": null,
"depth": null,
"width": null,
"weight": null,
"expirable": false,
"country_of_origin": null,
"using_serial_numbers": false,
"value": 0
}
},
{
"id": "b04f5233-9980-4307-bb20-bc7460b49933",
"article_code": "1338",
"ean": "1338",
"sku": null,
"stock_physical": 0,
"stock_salable": -47,
"stock_available": -47,
"stock_quarantine": 0,
"stock_pickable": 0,
"modified_at": "2022-10-21T07:40:16+00:00",
"variant": {
"id": "b04f5233-9980-4307-bb20-bc7460b49933",
"article_code": "1338",
"name": "1338",
"description": null,
"ean": "1338",
"sku": null,
"hs_tariff_code": null,
"height": null,
"depth": null,
"width": null,
"weight": null,
"expirable": false,
"country_of_origin": null,
"using_serial_numbers": false,
"value": 0
}
}
]