API reference · Types
InventoryAdjustedEvent
Part of the payload of inventory.adjusted.
Type: object
Example
{
"event_id": "evt_sandbox_01K4A91J43MTZ8C2E7P5X6Q9NV",
"type": "inventory.adjusted",
"created_at": "2026-09-04T18:42:18.000Z",
"data": {
"seller_id": 42,
"lines": [
{
"sku_id": 14602,
"external_ref": "platform-listing-1042",
"delta": -1
}
],
"reason": "sale",
"order_ref": "ord_sandbox_01K4A8Y6D4QJH2N3P5R7S9T0VW"
},
"api_version": "2026-10"
}Fields
event_idstring requiredA globally unique event id that stays the same across retries. Use it to deduplicate deliveries (STABLE).
Example
evt_sandbox_01K4A91J43MTZ8C2E7P5X6Q9NVtypestring requiredThe event type. Future inventory events use the same envelope (STABLE).
Constraints: allowed values:
inventory.adjustedExampleinventory.adjustedcreated_atstring requiredISO-8601 UTC instant the event was generated; unchanged across retries (STABLE).
Example
2026-09-04T18:42:18.000ZdataInventoryrequiredAdjusted Data The operation or event payload.
Show child fieldsHide child fields
data.integer requiredseller_id The seller that owns the API key. Use this id to route the event to the right store (STABLE).
Example
42data.lines InventoryrequiredAdjusted 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
data.integer requiredlines[]. sku_id Canonical TCGplayer SKU id, the same id the listing push uses (STABLE).
Example
14602data.string or null requiredlines[]. external_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-1042data.integer requiredlines[]. delta 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
data.stringreason Why 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,correctionExamplesaledata.stringorder_ref An order reference for support and debugging. A POS that only manages inventory can ignore it (PROVISIONAL).
Example
ord_sandbox_01K4A8Y6D4QJH2N3P5R7S9T0VW
api_versionstring requiredThe dated API version used for this payload, frozen when Snapcaster queued the delivery. Changing the platform pin does not change queued events or retries; they keep the same version. See https://developers.snapcaster.ca/guide/api-versioning (STABLE).
Constraints: allowed values:
2026-10Example2026-10
Used by
inventory.adjusted- Inventory adjusted (payload)