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

product-updated

Get notified when:

  • Product is created/updated
  • Product simple/advanced attribute is created/updated
  • Product category is created/updated
  • Product Variant is created/updated
  • Product Variant simple/advanced attribute is created/updated
  • Product Image is created/updated
  • Product Image simple attribute is created/updated

Any changes to master level entities won't trigger this event. The ID of the created/updated product is added to a debouncer set, the processor will take the ID out of the debouncer only after a configured timeout which is by default 30 sec, and then a product-updated webhook is triggered.

{
  "key": "string",
  "meta": {
    "tenantKey": "string",
    "xRequestId": "string"
  },
  "occurredAt": "datetime",
  "type": "product-updated",
  "version": "integer",
  "payload": {
    "id": "integer",
    "referenceKey": "string",
    "merchantReferenceKeys": [
      "string"
    ],
    "name": {
      "de_DE": "string"
    },
    "state": "string",
    "isComposite": "boolean",
    "master": {
      "referenceKey": "string",
      "categories": {
        "isLocked": "boolean",
        "paths": [
          [
            "string"
          ]
        ]
      },
      "attributes": [
        {
          "name": "string",
          "type": "string",
          "value": {
            "de_DE": "string"
          },
          "isLocked": "boolean"
        }
      ]
    },
    "attributes": [
      {
        "name": "string",
        "type": "string",
        "value": {
          "de_DE": "string"
        },
        "isLocked": "boolean"
      }
    ],
    "variants": [
      {
        "id": "integer",
        "ean": "string",
        "referenceKey": "string",
        "merchantReferenceKeys": [
          "string"
        ],
        "isComposite": "boolean",
        "attributes": [
          {
            "name": "string",
            "type": "string",
            "value": {
              "de_DE": "string"
            },
            "isLocked": "boolean"
          }
        ],
        "customData": "object",
        "relatedVariants": []
      }
    ],
    "customData": "object"
  }
}