---
title: "Cancel a payment"
method: DELETE
path: "/payments/{paymentId}"
---

# Cancel a payment

`DELETE /payments/{paymentId}`

## Request

- Base URL: `https://api.open-finance.ai/v2`
- URL: `https://api.open-finance.ai/v2/payments/{paymentId}`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://api.open-finance.ai/oauth/token` scopes: `delete:payments`

## Path parameters

- `paymentId` string, required

## Response `200`

Payment successfully cancelled

## Other responses

- `400`: Bad request - Payment cannot be cancelled
- `401`: Unauthorized - Invalid or missing access token
- `403`: Forbidden - Access token missing required permissions
- `404`: Not found - Payment not found
- `500`: Internal server error

---

[API](https://skmtc.dev/open-finance/apis/data.md) - [All operations](https://skmtc.dev/open-finance/apis/data/llms.txt) - [OpenAPI document](https://skmtc.dev/open-finance/apis/data/revisions/c18eafb2a770?raw)
