---
title: "Cancel agentic purchase"
method: POST
path: "/agentic-payments/purchases/{purchaseId}/cancel"
tags: ["Agent Tokens"]
---

# Cancel agentic purchase

`POST /agentic-payments/purchases/{purchaseId}/cancel`

## Request

- Base URL: `https://api.natural.com`
- URL: `https://api.natural.com/agentic-payments/purchases/{purchaseId}/cancel`
- Auth: HTTP bearer

Release budget reserved for a purchase that has not been claimed

## Path parameters

- `purchaseId` string, required: Purchase ID (apu_*).

## Query parameters

- `customerPartyId` string: Customer party to act for (pty_*). Omit to act as your own party. To act for another party, pass the ID of a party that has authorized you to act on its behalf.

## Headers

- `X-Instance-ID` string, nullable

## Response `200`

Successful Response

- object
  - `data` object, required
    - `id` string, required
    - `mandateId` string, required
    - `provider` 'basis_theory' | 'simulation', required
    - `confirmationStatus` 'not_requested' | 'pending' | 'confirmed' | 'reconciliation_required', required
    - `amount` number, required
    - `currency` 'USD', required
    - `merchant` object, required
      - `name` string, required
      - `url` string, uri, required
      - `countryCode` string, required
    - `delivery` 'browser_session' | 'agent_token' | 'card_token', required
    - `status` 'prepared' | 'issuing' | 'issued' | 'outcome_unknown' | 'failed' | 'canceled', required
    - `expiresAt` string, date-time, nullable, required
    - `errorCode` string, nullable, required

## Other responses

- `400`: Validation Error
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found. Returned when the resource does not exist, or when it exists but is not accessible to your account. The two cases are intentionally indistinguishable, so that resource IDs cannot be enumerated by probing.
- `409`: Conflict
- `422`: Validation Error. The response contains one error object for each invalid request value.
- `428`: Precondition Required
- `429`: Too Many Requests
- `500`: Internal Server Error
- `501`: Not Implemented
- `502`: Bad Gateway
- `503`: Service Unavailable

## Changes

- **2026-10-03** `3f14b9f458e4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/natural/apis/natural-api/changes/agentic-payments/purchases/:purchaseId/cancel/post.md)

---

[API](https://skmtc.dev/natural/apis/natural-api.md) - [All operations](https://skmtc.dev/natural/apis/natural-api/llms.txt) - [OpenAPI document](https://skmtc.dev/natural/apis/natural-api/revisions/59c1208fa5dc?raw)
