---
title: "Cancel a Payment"
method: POST
path: "/payments/payment/{id}/cancel"
tags: ["payments"]
---

# Cancel a Payment

`POST /payments/payment/{id}/cancel`

Cancel a payment.

## Path parameters

- `id` string, required

## Headers

- `Authorization` string, required
- `X-Api-Key` string, required
- `X-API-Version` string
- `Idempotency-Key` string

## Response `200`

Successfully cancelled

- PaymentsPostPaymentsPaymentIdCancelResponse200
  - `id` string — The unique identifier of the payment.
  - `cancelled` boolean — Whether the payment was successfully cancelled.
  - `reason` string — The outcome of the cancellation request. Either 'Payment cancelled successfully' or 'Payment not cancellable'.
  - `payment` PaymentsPaymentIdCancelPostResponsesContentApplicationJsonSchemaPayment — The full payment object reflecting its state after the cancellation attempt.

## Other responses

- `400` — Bad request - Invalid parameters or request format
- `403` — Forbidden - Access denied or insufficient permissions
- `404` — Not found - Resource does not exist
- `409` — Payment not cancellable

---

[API](https://skmtc.dev/ottimate/apis/api-reference.md) · [All operations](https://skmtc.dev/ottimate/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ottimate/api-reference/revisions/ba91ff4c6969/schema)
