Skip to main content

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.

Creating intra-day adjustments

Endpoint: POST /3pl/inventory/manual-adjustments

ParameterRequiredDefaultDescription
adjustments.*YesAn array of object 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 /3pl/inventory/manual-adjustments

{
"adjustments": [
{
"sku": "1000-Black-S",
"adjustment": -5,
"text": "Missing pieces"
},
{
"sku": "1000-Black-M",
"adjustment": 5,
"text": "Found some pieces in the corner"
}
]
}

Doing a full nightly inventory sync

To avoid accumulating differences in inventory over time it is highly recommended to do a full inventory sync once every night.

info

It is recommended doing an inventory sync once every night

caution

WARNING! Since this endpoint is a “full inventory sync” any variant NOT included in the request will be set to 0.

Endpoint: POST /3pl/inventory/sync-inventory

ParameterRequiredDefaultDescription
levels.*YesAn array of object level
inventory_location_idSometimesnullAn id of a inventory location
info

inventory_location_id is required if you have multiple inventory locations set up for 3PL.
If you only have one inventory location, you can omit this parameter.

If you have multiple inventory locations, and do not provide it, the sync-inventory will fail.

Level

ParameterRequiredDefaultDescription
skuYes, if no ean is givenThe SKU of the line
eanYes, if no sku is givenThe EAN of the line
quantityYesThe number of pieces in stock

Example

POST /3pl/inventory/sync-inventory

{
"levels": [
{
"sku": "1000-Black-S",
"quantity": 2
},
{
"sku": "1000-Black-M",
"quantity": 3
}
]
}