WEBHOOK
product.update
{
  "product_code": "XYZ-US",
  "old_state": {
    "price_multiplier": "0.8",
    "is_orderable": true
  },
  "new_state": {
    "price_multiplier": "0.8",
    "is_orderable": true
  },
  "timestamp": "2023-11-07T05:31:56Z"
}

Webhook overview

Webhooks work differently to the API endpoints. Take a read of our guide to understand how they work.

An event is triggered when there is an update to a product in the catalogue. If multiple products are updated at once, an event is triggered for each product.

Use the 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 body is of type object.

Response

200

Return a 200 status to indicate that the data was received successfully