Skip to main content

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

ParameterRequiredDefaultDescription
adjustments.*YesAn array of object adjustment
textNULLA custom text to use for adjustments. Can be overridden per adjustment

Adjustment

ParameterRequiredDefaultDescription
skuYes, if no ean is givenThe SKU of the line
eanYes, if no sku is givenThe EAN of the line
quantityYes, if no adjustment is suppliedUse quantity if you want to set the quantity of the variant to a specific number
adjustmentYes, if no quantity is suppliedUse 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
textOptionally, 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"
}
]
}