API reference · Types
InventoryAdjustedData
Part of the payload of inventory.adjusted.
Type: object
Example
{
"seller_id": 42,
"lines": [
{
"sku_id": 14602,
"external_ref": "platform-listing-1042",
"delta": -1
}
],
"reason": "sale",
"order_ref": "ord_sandbox_01K4A8Y6D4QJH2N3P5R7S9T0VW"
}Fields
seller_idinteger requiredThe seller that owns the API key. Use this id to route the event to the right store (STABLE).
Example
42linesInventoryrequiredAdjusted Line[] The adjustment lines for one order. Each sale has one event and one
event_id(STABLE).Constraints: minimum items: 1
Show child fieldsHide child fields
lines[].integer requiredsku_id Canonical TCGplayer SKU id, the same id the listing push uses (STABLE).
Example
14602lines[].string or null requiredexternal_ref The seller's listing reference, returned unchanged so you can match the adjustment to your own record. Null if none was supplied (STABLE).
Example
platform-listing-1042lines[].integer requireddelta The stock adjustment in units. A negative value deducts a sale; a positive value restores a cancellation or restocked refund. Deduplicate the event, then apply
on_hand += delta(STABLE).Example
-1
reasonstringWhy stock changed. You can apply the delta without using this field. Handle unknown values because the enum may expand (PROVISIONAL).
Constraints: allowed values:
sale,cancellation,refund,correctionExamplesaleorder_refstringAn order reference for support and debugging. A POS that only manages inventory can ignore it (PROVISIONAL).
Example
ord_sandbox_01K4A8Y6D4QJH2N3P5R7S9T0VW
Used by
inventory.adjusted- Inventory adjusted (payload)