Skip to content

The stock level of a product at one outlet changed. The data is the stock level with its product id

POST

Sent to the URL of a webhook created for inventory.updated. The body is the event envelope. The request is signed; verify it as the Webhooks guide describes. Delivery is at least once, so dedupe on id.

Media typeapplication/json
object
created_at
required

When the change was detected.

string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
data
required
Any of:
object
on_hand
required

Current stock level. Up to 3 decimal places.

number
outlet_id
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
product_id
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
reorder_amount
required
number | null
reorder_method
required
string
reorder_point
required
number | null
reorder_target
required
number | null
version
required

Delta-sync version, as a string (bigint).

string
id
required

The event id. It is the same on every retry and for every webhook of the event; receivers dedupe on it.

string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
truncated
required

True when data was cut down to the id because the document was too large.

boolean
type
required
string
Allowed value: inventory.updated

Return any 2xx status within 10 seconds to acknowledge the delivery.