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.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”Media typeapplication/json
object
created_at
required
When the change was detected.
string format: date-time
data
required
Any of:
object
on_hand
required
Current stock level. Up to 3 decimal places.
number
outlet_id
required
string format: uuid
product_id
required
string format: uuid
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
Only the id, when the full document is withheld or too large.
object
id
required
string format: uuid
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
truncated
required
True when data was cut down to the id because the document was too large.
boolean
type
required
string
Responses
Section titled “Responses”Return any 2xx status within 10 seconds to acknowledge the delivery.