cart.cart_line.updated
Generated from COPE public event contracts. Do not edit this page by hand.No longer sent; this type is being removed.
Delivery Contract
| Field | Value |
|---|---|
| Encoding | JSON: id, type, version, source, created_at, occurred_at, data |
| Delivery | At least once |
| Idempotency | Deduplicate on id: every retry and replay of this event repeats it, and X-Cope-Event-Id carries it. |
| Source | cope.cart |
| Category | Cart |
| Availability | Available in the public webhook reference. |
| Schema title | cart.cart_line.updated webhook body |
| Schema ID | https://schemas.cope.com/webhooks/cart.cart_line.updated/v1 |
Payload Fields
| Field | Required | Type | Allowed Values | Description | |
|---|---|---|---|---|---|
business | no | object | - | The business this event concerns. Carries object (what it is) and id (which one); id is the public identifier a merchant addresses it by. | |
cart | no | object | - | The cart this event concerns. | |
line | no | object | - | The cart line after the change. A line has no identifier of its own: within its cart it is identified by its product and payment_plan. Its prices are the payment plan’s list price, not what the buyer is charged: tax, discounts, shipping and currency conversion are applied at checkout. | |
previous_payment_plan | no | object | - | The payment plan the line was on before the change. A line is identified by its product and payment_plan, so when the plan changed this is the line as you knew it. Equal to the line’s payment_plan when only its quantity changed; absent when the line had no plan. | |
previous_quantity | no | integer | - | The line’s quantity before the change. Equal to the line’s quantity when only its payment plan changed. | |
quantity | yes | `integer | null` | - | The line’s quantity after the change, as saved: always a whole number, even when only the payment plan changed. Events sent before 2026-10-01 carried the quantity the request sent, which was null on a plan-only change; compare previous_payment_plan with line.payment_plan to tell a plan change instead. |
Example delivery
{
"created_at": "2026-05-05T12:00:00.000Z",
"data": {
"business": {
"id": "biz_g7-Jq2PxT_4mRvNa",
"object": "business"
},
"cart": {
"id": "5b1f8c2e-7d4a-4e9b-a3c6-0f2d9e8b7a61",
"object": "cart"
},
"line": {
"currency": "EUR",
"line_price_minor_units": 4900,
"line_type": "product",
"payment_plan": {
"id": "plan_Yr8K2vPd",
"object": "payment_plan"
},
"product": {
"id": "prod_Hq2W8xLm",
"object": "product"
},
"quantity": 1,
"unit_price_minor_units": 4900
},
"previous_payment_plan": {
"id": "plan_Yr8K2vPd",
"object": "payment_plan"
},
"previous_quantity": 2,
"quantity": 1
},
"id": "8d2f6c1a-4e7b-4a39-b5d0-2c9e1f7a3b64",
"occurred_at": "2026-05-05T11:59:58.500Z",
"source": "cope.cart",
"type": "cart.cart_line.updated",
"version": "v1"
}