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

# Cancel a checkout preparation

> Abandon a Square preparation that has not been bound to a merchant request.

**id** `string` *required*

The preparation id.

```bash cURL theme={null}
curl -X POST https://api.agentcard.sh/api/v2/checkout/preparations/cprep_66d0a1f2b3c4d5e6f7a8b9c0/cancel \
  -H "Authorization: Bearer $ORG_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
```

```json 200 theme={null}
{ "id": "cprep_66d0a1f2b3c4d5e6f7a8b9c0", "object": "checkout_preparation", "status": "cancelled" }
```

**Errors.** `409 preparation_bound`: the preparation already belongs to a merchant request. The error carries `authorization_id`; cancel that authorization instead, if it has not started replaying. The body must be an empty object.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.