Cart Service events

Overview

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

Available events

Event typeEvent schema
cart.created
Copy
Copied
{
  "currency": "String",
  "customerId": "String",
  "id": "String",
  "metadata": {
    "createdAt": "String",
    "modifiedAt": "String",
    "version": "Number"
  },
  "siteCode": "String",
}
cart.merged
Copy
Copied
{
  "currency": "String",
  "customerId": "String",
  "id": "String",
  "metadata": {
    "createdAt": "String",
    "modifiedAt": "String",
    "version": "Number"
  },
  "siteCode": "String",
}
cart.closed
Copy
Copied
{
  "currency": "String",
  "customerId": "String",
  "id": "String",
  "metadata": {
    "createdAt": "String",
    "modifiedAt": "String",
    "version": "Number"
  },
  "siteCode": "String",
}
cart.item-added
Copy
Copied
{
  "tenant": "String",
  "cartId": "String",
  "itemId":  "String",
  "quantity": "Number",
  "priceId": "String"
}
cart.item-updated
Copy
Copied
{
  "tenant": "String",
  "cartId": "String",
  "itemId":  "String",
  "quantity": "Number",
  "priceId": "String"
}
cart.item-deleted
Copy
Copied
{
  "tenant": "String",
  "cartId": "String",
  "itemId":  "String"
}