Payload

HTTP requests sent by Quable Webhook Notification Service is composed of a JSON Payload.
The structure of the message is the same whatever the event your application is listening to.

Heres an example of a "document.update" event

{
  "uuid": "ce6c64a3-4f27-4b0e-862c-ee780eae06d1",
  "code": "document.update",
  "links": [
    {
      "rel": "self",
      "href": "/events/ce6c64a3-4f27-4b0e-862c-ee780eae06d1"
    }
  ],
  "created_at": "2020-06-18T11:48:17+00:00",
  "created_by": "john_doz",
  "resource": {
    "code": "product_blue_pant",
    "type": "document",
    "document_type_code": "product",
    "links": [
      {
        "rel": "self",
        "href": "https://xxx.quable.com/api_1.php/documents/product_blue_pant"
      }
    ],
    "locales": {
      "updated": [
        "fr_FR"
      ],
      "inherited": [
        "en_GB",
        "fr_FR"
      ]
    },
    "updated_items": [
      {
        "type": "field",
        "code": "color"
      },
      {
        "type": "field",
        "code": "name"
      }
    ]
  }
}

Here's the description of each item :

JSON KeyLabelComment
uuidUnique identifier of the event- mandatory
codeEvent codeThis is the event (or one of the events) your service is listening to
- mandatory
linksLink Resource of the event- mandatory
created_atDateTime of the event- mandatory
created_byUser who triggered the event- mandatory
resourceInformation about the updated entity- mandatory
resource.codeunique identifier of the entity- mandatory
resource.typeunique identifier of the entity type (enum : document, media, variant, classification, link, value)- mandatory
resource. document_type_codeunique identifier of the Document Type- not mandatory, unless resource.type is document
resources.linksLink resources to the updated entity- mandatory
locales.updatedArray of locales used while updating- mandatory
locales.inheritedArray of locales impacted by the update.This is the array you probably should watch as it uses inheritance
- mandatory
updated_itemsArray of objectEach object define the exact item that have been updated.
It could be :
- field
- variant
- document
- media
- link