> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentcard.sh/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.

<ParamField path="id" type="string" required>The preparation id.</ParamField>

<RequestExample>
  ```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 '{}'
  ```
</RequestExample>

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

**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.
