docs
  1. Scayle Developer Guides
  2. Customise & Extend
  3. Webhooks
  4. Events
  5. Product-variant-stock-updated

product-variant-stock-updated

Get notified when the stock of a product variant changes.

{
  "key": "string",
  "meta": {
    "tenantKey": "string",
    "xRequestId": "string"
  },
  "occurredAt": "datetime",
  "type": "product-variant-stock-updated",
  "version": "integer",
  "payload": {
    "productVariant": {
      "id": "integer",
      "referenceKey": "string"
    },
    "product": {
      "id": "integer",
      "referenceKey": "string"
    },
    "warehouse": {
      "id": "integer",
      "referenceKey": "string"
    },
    "quantity": "integer",
    "sellableWithoutStock": "boolean",
    "createdAt": "datetime",
    "merchantReferenceKey": "string",
    "expectedAvailabilityAt": "object"
  }
}