---
title: "Cancel a purchase waiting for payment: expires its Stripe Checkout first"
method: POST
path: "/v1/account/billing/purchases/{id}/cancel"
---

# Cancel a purchase waiting for payment: expires its Stripe Checkout first

`POST /v1/account/billing/purchases/{id}/cancel`

## Request

- Base URL: `https://api.roveapi.com`
- URL: `https://api.roveapi.com/v1/account/billing/purchases/{id}/cancel`
- Auth: API key in cookie `rove_session`

## Path parameters

- `id` string, uuid, required

## Response `200`

Successful response (Cache-Control: no-store)

- object
  - `id` string, uuid, required
  - `object` 'purchase', required
  - `status` 'created' | 'open' | 'requires_action' | 'processing' | 'paid' | 'refunded' | 'disputed' | 'reversed' | 'expired' | 'canceled' | 'failed', required
  - `livemode` boolean, required
  - `actor` 'owner_web' | 'api_key' | 'auto_topup' | 'legacy_link', required
  - `api_key_id` string, uuid, nullable, required
  - `api_key_name` string, nullable, required
  - `replayed` boolean, required
  - `channel` 'checkout' | 'off_session', required
  - `item` object, required
    - `id` string, required
    - `version` integer, required
    - `name` string, required
  - `amount_cents` integer, required
  - `currency` 'usd', required
  - `credits` integer, required: Whole credits the pack grants.
  - `amount_refunded_cents` integer, required
  - `millicredits_reversed` integer, required
  - `millicredits_held` integer, required
  - `next_action` object, nullable, required
    - `type` 'open_checkout_url', required
    - `url` string, required
    - `expires_at` string, date-time, required
    - `reason` 'checkout_requested' | 'no_saved_method' | 'off_session_not_allowed' | 'authentication_required' | 'card_declined', required
    - `instruction` string, required
  - `retry` 'same_key' | 'new_key', nullable, required
  - `failure_code` string, nullable, required
  - `created_at` string, date-time, required
  - `paid_at` string, date-time, nullable, required

## Other responses

- `401`: RFC 7807 owner-session-required: sign in at owner_action_url
- `403`: RFC 7807 owner-origin-refused (mutations only)
- `404`: RFC 7807 purchase-not-found (also for another account's purchase)
- `409`: RFC 7807 purchase-not-cancelable: purchase_status is the purchase status, or completing when the payment is already completing
- `503`: RFC 7807 billing-unavailable; Retry-After: 30, retry same_key

---

[API](https://skmtc.dev/roveapi/apis/rove-api.md) · [All operations](https://skmtc.dev/roveapi/apis/rove-api/llms.txt) · [OpenAPI document](https://skmtc.dev/roveapi/apis/rove-api/revisions/0e5d69bde586?raw)
