VTEX · Schema
Empty Cart
Sends an event if there are no products in the shopping cart at that time.
CommerceE-CommerceRetailMarketplacePayments
Properties
| Name | Type | Description |
|---|---|---|
| session | object | |
| anonymous | object | |
| products | array | Array of objects containing products. If the event type is `page.cart`, the array contains all the products in the cart, with their ID and quantity. Each interaction should include all products inside |
| type | string | Type of event, which can be one of the following: `page.cart`, `page.empty_cart`, `search.query`, `page.confirmation`, `session.ping`, `search.click`. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/PageEmptyCart",
"title": "Empty Cart",
"description": "Sends an event if there are no products in the shopping cart at that time.",
"type": "object",
"required": [
"session",
"anonymous",
"type",
"products"
],
"properties": {
"session": {
"$ref": "#/components/schemas/UserIdentification/properties/session"
},
"anonymous": {
"$ref": "#/components/schemas/UserIdentification/properties/anonymous"
},
"products": {
"type": "array",
"title": "products",
"description": "Array of objects containing products. If the event type is `page.cart`, the array contains all the products in the cart, with their ID and quantity. Each interaction should include all products inside the shopping cart at that time. In case a product is removed, sent the updated card. If there are no products in the cart (page.`empty_cart`), the array is empty. If the event type is `page.confirmation`, the array contains all the products that were purchased, with their ID, price and quantity.",
"items": {
"$ref": "#/components/schemas/CartProduct"
}
},
"type": {
"type": "string",
"title": "type",
"description": "Type of event, which can be one of the following: `page.cart`, `page.empty_cart`, `search.query`, `page.confirmation`, `session.ping`, `search.click`.",
"example": "page.empty_cart"
}
}
}