Product Service events

Overview

Webhook events related to the creation, update, and deletion of a product.

Available events

Event typeEvent schema
product.created
Copy
Copied
{
  "id": "String",
  "code": "String",
  "name": "Map",
  "description": "Map",
  "productType": "String",
  "taxClasses": "Map",
  "published": "Boolean",
  "template": {
    "id": "String",
    "version": "Integer"
  },
  "media": [
    {
      "id": "String",
      "mediaId": "String",
      "url": "String",
      "commitLink": "String",
      "contentType": "String",
      "stored": "Boolean",
      "createdAt": "String",
      "customAttributes": "Map",
      "tags": [
        "String"
      ],
      "uncommittedMedia": "Boolean",
      "uploadLink": "String"
    }
  ],
  "bundledProducts": [
    {
      "productId": "String",
      "amount": "Integer"
    }
  ],
  "relatedItems": [
    {
      "refId": "String",
      "type": "String"
    }
  ],
  "mixins": "Map",
  "metadata": {
    "version": "Number",
    "createdAt": "String",
    "modifiedAt": "String"
  }
}
product.updated
Copy
Copied
{
  "id": "String",
  "code": "String",
  "name": "Map",
  "description": "Map",
  "productType": "String",
  "taxClasses": "Map",
  "published": "Boolean",
  "template": {
    "id": "String",
    "version": "Integer"
  },
  "media": [
    {
      "id": "String",
      "mediaId": "String",
      "url": "String",
      "commitLink": "String",
      "contentType": "String",
      "stored": "Boolean",
      "createdAt": "String",
      "customAttributes": "Map",
      "tags": [
        "String"
      ],
      "uncommittedMedia": "Boolean",
      "uploadLink": "String"
    }
  ],
  "bundledProducts": [
    {
      "productId": "String",
      "amount": "Integer"
    }
  ],
  "relatedItems": [
    {
      "refId": "String",
      "type": "String"
    }
  ],
  "mixins": "Map",
  "metadata": {
    "version": "Number",
    "createdAt": "String",
    "modifiedAt": "String"
  }
}
product.deleted
Copy
Copied
{
  "id": "String"
}