GitHub

Stock levels

A stock level is the overview of which and the amount of variants there are currently in stock.


Stock level resource

Stock level properties

idstring

article_codestring

eanstring

skustring

stock_physicalint

stock_salableint

stock_availableint

stock_quarantineint

stock_pickableint

modified_atdatetime

variantobject


GET Collection

Retrieves a collection of stock levels.

Query parameters

article_codestring

Filter by article code

eanstring

Filter by ean

skustring

Filter by sku

searchstring

Filter by Name/SKU/EAN/ArticleCode

modified_gtedate

Returns collection where modified_at date is greater then given date

limitint

Limits the amount of results

pageint

Only works in combination with limit

fromstring

Accepts date format %Y-%m-%d. IE: 2022-10-22

tostring

Accepts date format %Y-%m-%d. IE: 2022-10-22

directionstring

asc | desc

Example

1curl --location --request GET 'https://eu-dev.middleware.ewarehousing-solutions.com/wms/stock/' \
2--header 'Expand: variant'

Response

1[
2 {
3 "id": "5060691c-2812-48e2-bd07-82ff3fd19382",
4 "article_code": "13378",
5 "ean": "13378",
6 "sku": null,
7 "stock_physical": 99,
8 "stock_salable": -8,
9 "stock_available": -8,
10 "stock_quarantine": 0,
11 "stock_pickable": 4,
12 "modified_at": "2022-10-27T11:42:50+00:00",
13 "variant": {
14 "id": "5060691c-2812-48e2-bd07-82ff3fd19382",
15 "article_code": "13378",
16 "name": "13378",
17 "description": null,
18 "ean": "13378",
19 "sku": null,
20 "hs_tariff_code": null,
21 "height": null,
22 "depth": null,
23 "width": null,
24 "weight": null,
25 "expirable": false,
26 "country_of_origin": null,
27 "using_serial_numbers": false,
28 "value": 0.0
29 }
30 },
31 {
32 "id": "b04f5233-9980-4307-bb20-bc7460b49933",
33 "article_code": "1338",
34 "ean": "1338",
35 "sku": null,
36 "stock_physical": 0,
37 "stock_salable": -47,
38 "stock_available": -47,
39 "stock_quarantine": 0,
40 "stock_pickable": 0,
41 "modified_at": "2022-10-21T07:40:16+00:00",
42 "variant": {
43 "id": "b04f5233-9980-4307-bb20-bc7460b49933",
44 "article_code": "1338",
45 "name": "1338",
46 "description": null,
47 "ean": "1338",
48 "sku": null,
49 "hs_tariff_code": null,
50 "height": null,
51 "depth": null,
52 "width": null,
53 "weight": null,
54 "expirable": false,
55 "country_of_origin": null,
56 "using_serial_numbers": false,
57 "value": 0.0
58 }
59 }
60]