Cart viewed

{
  "clientId": "Required, string type, represents the unique identifier of the client",
  "clientIp": "Required, string type, represents the IP address of the client",
  "context": "Required, please refer to the context definition in the basic structure",
  "data": {
    "cart": {
      "attributes": "Optional, array type, represents the list of cart attributes",
      "cost": {
        "totalAmount": {
          "amount": "Required, numeric type, represents the total amount",
          "currencyCode": "Required, string type, represents the currency code (e.g., HKD)"
        }
      },
      "id": "Required, string type, represents the unique identifier of the cart",
      "lines": [
        {
          "cost": {
            "totalAmount": {
              "amount": "Required, numeric type, represents the total amount for this line item",
              "currencyCode": "Required, string type, represents the currency code (e.g., HKD)"
            }
          },
          "merchandise": {
            "id": "Required, string type, represents the unique identifier of the product",
            "image": {
              "src": "Required, string type, represents the image URL"
            },
            "price": {
              "amount": "Required, numeric type, represents the unit price amount",
              "currencyCode": "Required, string type, represents the currency code (e.g., HKD)"
            },
            "product": {
              "id": "Required, string type, represents the unique identifier of the product",
              "title": "Required, string type, represents the product title",
              "type": "Optional, string type, represents the product type",
              "untranslatedTitle": "Required, string type, represents the untranslated product title",
              "url": "Required, string type, represents the product URL",
              "vendor": "Required, string type, represents the vendor name"
            },
            "sku": "Optional, string type, represents the stock keeping unit",
            "title": "Optional, string type, represents the variant title of the product",
            "untranslatedTitle": "Optional, string type, represents the untranslated variant title of the product"
          },
          "quantity": "Required, numeric type, represents the quantity of the product"
        }
      ],
      "totalQuantity": "Required, numeric type, represents the total quantity of items in the cart"
    }
  },
  "id": "Required, string type, represents the unique identifier of the event or record",
  "name": "Required, string type, represents the event name: cart_viewed",
  "seq": "Required, numeric type, represents the sequence number",
  "timestamp": "Required, string type, represents the timestamp (ISO 8601 format)",
  "type": "Required, string type, represents the form type"
}

Last updated

Was this helpful?