---
title: "Cancel a mandate"
method: POST
path: "/v2/mandates/{mandateId}/cancel"
tags: ["Mandates"]
---

# Cancel a mandate

`POST /v2/mandates/{mandateId}/cancel`

## Request

- Base URL: `https://api.cdp.coinbase.com/platform`
- URL: `https://api.cdp.coinbase.com/platform/v2/mandates/{mandateId}/cancel`
- Auth: HTTP bearer

Ends the mandate off-chain. `status` becomes `canceled`, `canceledAt` is set, and new authorizations are blocked immediately; authorizations already in progress are not affected. Cancel can be called from any status except a fully revoked one (`revokedAt` set); canceling an already canceled mandate is a no-op that returns the mandate unchanged.

Canceling does not touch the on-chain spending allowance, which may still be live afterward. The customer removes it separately with **Revoke a mandate with a wallet**; that later revocation sets `revokedAt` while `canceledAt` remains set.

## Path parameters

- `mandateId` string, required: The ID of the mandate, a UUID prefixed by `mandate_`.

## Headers

- `X-Idempotency-Key` string

## Request body

- CancelMandateRequest: A request to cancel a mandate. The merchant is inferred from the API key.
  - `reason` string: An optional human-readable reason for canceling the mandate.

## Response `200`

Successfully canceled mandate.

- Mandate: A durable, revocable standing authorization to debit a funding `source` without the customer present each time, within its `policy` caps. Payment sessions draw against it by referencing its `mandateId`. `source` is set once an approval succeeds. `status` reflects the most recent action; the `approvedAt`, `canceledAt`, and `revokedAt` timestamps are the durable record of what has happened. Ending one mandate does not affect other mandates on the same `source`.
  - `mandateId` string, required: The unique identifier of the mandate.
  - `asset` string, required: The unit of account the mandate's `policy` caps are denominated in (e.g., `500` means 500 of this asset). Fixed at creation. This is only the denomination for the limits; the funding `source` may hold a different asset (for example, limits in `usdc` against a `usdt` source). Each authorization's amount is converted into this asset at authorization time to evaluate the caps, so the caps are always enforced in a single denomination.
  - `source` MandateSource: The funding source the mandate draws against. Set when an approval succeeds. Not present before the mandate is `approval_succeeded`.
    - required: `address`, `network`, `asset`
    - [`PaymentSourceWallet`](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57/schema?at=%2Fcomponents%2Fschemas%2FPaymentSourceWallet)
  - `policy` MandatePolicy, required: Debit caps. Always present. If you omitted `policy` at create, this is a Coinbase-configured monthly max.
    - `maxPerAuthorization` string: Max amount for one authorization. Omit to use the Coinbase default. Capped at the Coinbase ceiling.
    - `maxPerPeriod` MandatePolicyPeriodCap: One rolling cap. Omit to use a Coinbase-configured monthly max. If set, both `amount` and `period` are required. Amount is capped at that period's ceiling.
      - `amount` string, required: Max total authorizable in the rolling `period`. Capped at the Coinbase ceiling for `period`.
      - `period` 'day' | 'week' | 'month' | 'year', required: The rolling window that `maxPerPeriod.amount` applies over. It is a fixed duration measured back from now, not a calendar window. For example, `month` means the trailing 30 days, not the current calendar month.
    - `minSetupBalance` string: Optional minimum available balance the payer must have to set up the mandate, denominated in the mandate's `asset`. When set, the mandate can only be approved if the payer's available balance is at least this amount; an approval attempted while the balance is below it is rejected with a `422` (`mandate_policy_violation`). This does not dictate the amount debited: the payment session amount remains the source of truth for what is debited. Omit to use the Coinbase-configured default.
  - `status` 'created' | 'approval_pending' | 'approval_succeeded' | 'approval_failed' | 'revocation_pending' | 'revocation_succeeded' | 'revocation_failed' | 'canceled', required: The current status of the mandate.
  - `expiresAt` string, date-time: The UTC ISO 8601 timestamp after which the mandate can no longer be authorized against. Authorization attempts after this time return `422`; `status` does not change. Omit for no expiry.
  - `url` string, uri: Hosted page where the customer approves this mandate. Present only before the mandate reaches `approval_succeeded`; complemented by `revocationUrl` afterward.
  - `revocationUrl` string, uri: Hosted page where the customer can remove their spending allowance for this mandate. Present once the mandate has a `source` (from `approval_succeeded` onward); absent before approval, when there is nothing to revoke.
  - `approvalRedirect` PaymentRedirect: Optional merchant URLs used by the hosted mandate approval flow. The approval page redirects to `successUrl` when approval succeeds, or `failureUrl` when it fails. When omitted, the approval page keeps the customer on the Coinbase-hosted experience.
    - `failureUrl` string, uri: The URL to redirect the payer to on payment failure.
    - `successUrl` string, uri: The URL to redirect the payer to on payment success.
  - `revocationRedirect` PaymentRedirect: Optional merchant URLs used by the hosted mandate revocation flow. The revocation page redirects to `successUrl` when revocation succeeds, or `failureUrl` when it fails. When omitted, the revocation page keeps the customer on the Coinbase-hosted experience.
    - `failureUrl` string, uri: The URL to redirect the payer to on payment failure.
    - `successUrl` string, uri: The URL to redirect the payer to on payment success.
  - `customerDisplay` MandateCustomerDisplay: Merchant-provided display data shown to the customer on the hosted mandate pages. All fields are informational only. They are stored and returned as-is and do not affect mandate approval, authorization, or policy enforcement.
    - `merchantName` string: The merchant name to display on the hosted mandate pages. When provided, this overrides the default name derived from the entity's profile. Useful when a merchant operates multiple storefronts or brands under a single entity.
  - `approvedAt` string, date-time: The UTC ISO 8601 timestamp at which an approval succeeded and the mandate became usable. Present only once the mandate has been approved; set once, on the successful approval, and unchanged by later transitions. Its presence is the durable signal that the mandate was approved, independent of `status`.
  - `canceledAt` string, date-time: The UTC ISO 8601 timestamp at which the merchant canceled the mandate off-chain. Present only once the mandate has been canceled. Canceling does not touch the on-chain spending allowance; check `revokedAt` for that.
  - `revokedAt` string, date-time: The UTC ISO 8601 timestamp at which the spending allowance was removed on-chain by a wallet revocation. Present only once that has happened. Its presence is the single signal that the allowance is gone, independent of `status` (for example, it can be set on a `canceled` mandate whose allowance was later cleaned up).
  - `metadata` Metadata: Optional metadata as key-value pairs. Use this to store additional structured information on a resource, such as customer IDs, order references, or any application-specific data. Up to 10 key/value pairs may be provided. Keys and values are both strings. Keys must be ≤ 40 characters; values must be ≤ 500 characters.
  - `createdAt` string, date-time, required: The UTC ISO 8601 timestamp at which the mandate was created.
  - `updatedAt` string, date-time, required: The UTC ISO 8601 timestamp at which the mandate was last updated.

## Other responses

- `404`: Mandate not found.
- `422`: The mandate is fully revoked, or the idempotency key conflicts with a previous request.
- `500`: Internal server error.
- `502`: Bad gateway.
- `503`: Service unavailable.

## Changes

- **2026-12-01** `06cb41a4fb57`: 5 warning
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `404`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `422`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `500`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `502`
  - …1 more
- **2026-10-16** `ff3c1fdef902`: 5 warning
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `404`
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `422`
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `500`
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `502`
  - …1 more
- **2026-10-06** `156440e9f8df`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/changes/v2/mandates/:mandateId/cancel/post.md)

---

[API](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis.md) - [All operations](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57?raw)
