---
title: "Cancel a card"
method: POST
path: "/v1/cards/{card_id}/cancel"
tags: ["cards"]
---

# Cancel a card

`POST /v1/cards/{card_id}/cancel`

## Request

- Base URL: `https://api.noerrands.com/c/cards`
- URL: `https://api.noerrands.com/c/cards/v1/cards/{card_id}/cancel`
- Auth: HTTP bearer

Cancel a card and refund it in full: always possible while it is scheduled, and possible after dispatch only while the provider has not started on it; irreversible, and the card will not be mailed. Free. Sensitive write: it requires the human's approval to cancel. A card that can no longer be stopped returns 400 naming its status.

## Path parameters

- `card_id` string, required

## Request body

- object
  - `card_id` string, required

## Response `200`

Success.

- object
  - `card_id` string, required
  - `status` 'cancelled', required
  - `refunded_cents` integer, required
  - `balance_cents` integer, required

## Other responses

- `400`: invalid_request
- `401`: unauthorized. Carries WWW-Authenticate: Bearer resource_metadata="..."
- `403`: forbidden_scope: a write tool called with a read-only key.
- `404`: not_found
- `429`: rate_limited
- `502`: provider_error

---

[API](https://skmtc.dev/noerrands/apis/no-errands-cards-api.md) · [All operations](https://skmtc.dev/noerrands/apis/no-errands-cards-api/llms.txt) · [OpenAPI document](https://skmtc.dev/noerrands/apis/no-errands-cards-api/revisions/f39a5d132f73?raw)
