---
title: "Cancel exchange rate"
method: POST
path: "/v2/exchange-rates/cancel"
tags: ["Exchange"]
---

# Cancel exchange rate

`POST /v2/exchange-rates/cancel`

## Request

- Base URL: `https://api.sandbox.payall.com`
- URL: `https://api.sandbox.payall.com/v2/exchange-rates/cancel`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `/v2/oauth/token`

Cancel the exchange rate to unblock funds on the source account.
This operation is allowed only for exchange rates that have been confirmed.

## Request body

- object
  - `exchange_rate_id` string, uuid: ID of the exchange rate to cancel.

## Response `200`

OK

## Other responses

- `404`: Not found This response will be sent if exchange rate with provided ID does not exist.
- `405`: Not allowed This response will be sent in the following cases: 1. If exchange rate has not been confirmed. 2. If the exchange rate already expired. 3. If the configuration of your program does not offer this feature.

---

[API](https://skmtc.dev/payall/apis/payall-m2m-authentication-api.md) - [All operations](https://skmtc.dev/payall/apis/payall-m2m-authentication-api/llms.txt) - [OpenAPI document](https://skmtc.dev/payall/apis/payall-m2m-authentication-api/revisions/5f561eccd6ce?raw)
