cart.cart_line.added
Generated from COPE public event contracts. Do not edit this page by hand.Use this event to track product additions before checkout.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
A line item has been added to a cart.
Generated from COPE public event contracts. Do not edit this page by hand.Use this event to track product additions before checkout.
| Field | Value |
|---|---|
| Encoding | CloudEvents 1.0 structured JSON |
| Delivery | At least once |
| Idempotency | Use the CloudEvents source + id tuple, or COPE idempotency_key when available. |
| Source | cope.cart |
| Subject pattern | cart_line:<identifier> |
| Category | Cart |
| Availability | Available in the public webhook reference. |
| Schema title | cart.cart_line.added v1 payload |
| Schema ID | https://schemas.cope.com/events/cart.cart_line.added/v1 |
| Field | Required | Type | Allowed Values | Description |
|---|---|---|---|---|
cart_id | yes | string | - | - |
line_id | yes | integer | - | - |
product_id | yes | integer | - | - |
{
"data": {
"cart_id": "example_id",
"line_id": 1000,
"product_id": 1000
},
"datacontenttype": "application/json",
"dataschema": "https://schemas.cope.com/events/cart.cart_line.added/v1",
"id": "cart.cart_line.added:example",
"idempotency_key": "cart.cart_line.added:example",
"source": "cope.cart",
"specversion": "1.0",
"subject": "cart_line:example",
"time": "2026-05-05T12:00:00.000Z",
"type": "cart.cart_line.added"
}
Was this page helpful?