Adjust inventory
The following endpoints are used to create inventory adjustments. Remember that completing orders and receiving production orders will also create inventory changes. So only use inventory adjustments for other types of adjustments.
Endpoint: POST /v10/inventory
Parameter | Required | Default | Description |
---|---|---|---|
adjustments.* | Yes | An array of object adjustment | |
text | NULL | A custom text to use for adjustments. Can be overridden per adjustment |
Adjustment
Parameter | Required | Default | Description |
---|---|---|---|
sku | Yes, if no ean is given | The SKU of the line | |
ean | Yes, if no sku is given | The EAN of the line | |
quantity | Yes, if no adjustment is supplied | Use quantity if you want to set the quantity of the variant to a specific number | |
adjustment | Yes, if no quantity is supplied | Use adjustment if you want to create a relative adjustment to the current inventory. E.g. +2 would increase inventory with 2 and -2 would decrease current inventory with 2 | |
text | Optionally, add a text that is shown in Traede. Use this to describe why the change was made. |
Example
POST /v10/inventory
{
"adjustments": [
{
"sku": "1000-Black-S",
"adjustment": -5,
"text": "Missing pieces"
},
{
"sku": "1000-Black-M",
"adjustment": 5,
"text": "Found some pieces in the corner"
}
]
}