How to implement real-time product updates
Webhooks work differently to the API endpoints. Take a read of our guide to
implement real-time product updates in your system.
product_code
to identify the product that was updated, then refer to the old_state
and new_state
to determine the changes. A timestamp
is provided to indicate when the update occurred.
Due to the nature of webhooks you should not rely on the order of the events.
You should store the
timestamp
and discard any events that are older than
the last event you received.Body
application/json
Update on product status
The code of the product that was updated.
Example:
"XYZ-US"
The state of the product before the update.
The state of the product after the update.
UTC timestamp, in ISO 8601 format, when the product was updated.
Response
200
Return a 200 status to indicate that the data was received successfully