> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cope.com/llms.txt
> Use this file to discover all available pages before exploring further.

# cart.cart.abandoned

> A cart has been abandoned.

# cart.cart.abandoned

> Generated from COPE public event contracts. Do not edit this page by hand.

Use this event to trigger recovery workflows or analytics when a cart does not convert.

## Delivery Contract

| 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/<cart_id>`                                                                     |
| Category        | Cart                                                                                 |
| Availability    | Available in the public webhook reference.                                           |
| Schema title    | cart.cart.abandoned v1 payload                                                       |
| Schema ID       | `https://schemas.cope.com/events/cart.cart.abandoned/v1`                             |

## Payload Fields

| Field               | Required | Type      | Allowed Values | Description |   |
| ------------------- | -------- | --------- | -------------- | ----------- | - |
| `affiliate_id`      | yes      | \`string  | null\`         | -           | - |
| `buyer_email`       | yes      | \`string  | null\`         | -           | - |
| `buyer_first_name`  | yes      | \`string  | null\`         | -           | - |
| `cart_age_hours`    | yes      | `integer` | -              | -           |   |
| `cart_id`           | yes      | `string`  | -              | -           |   |
| `charge_currency`   | yes      | `string`  | -              | -           |   |
| `line_items`        | yes      | `array`   | -              | -           |   |
| `recovery_url`      | yes      | `string`  | -              | -           |   |
| `total_minor_units` | yes      | \`integer | null\`         | -           | - |

## Example CloudEvent

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "data": {
    "affiliate_id": "example_id",
    "buyer_email": "buyer@example.com",
    "buyer_first_name": "example_buyer_first_name",
    "cart_age_hours": 1000,
    "cart_id": "example_id",
    "charge_currency": "example_charge_currency",
    "line_items": [
      {
        "product_id": "example_id",
        "quantity": 1000
      }
    ],
    "recovery_url": "https://example.com",
    "total_minor_units": 1000
  },
  "datacontenttype": "application/json",
  "dataschema": "https://schemas.cope.com/events/cart.cart.abandoned/v1",
  "id": "cart.cart.abandoned:example",
  "idempotency_key": "cart.cart.abandoned:example",
  "source": "cope.cart",
  "specversion": "1.0",
  "subject": "cart/example",
  "time": "2026-05-05T12:00:00.000Z",
  "type": "cart.cart.abandoned"
}
```

## Compatibility

Fields may be added within the same major version. Removing or changing the meaning of a documented field requires a new event version.
