---
title: "Exchange at a fixed exchange rate"
method: POST
path: "/exchange/fixed"
tags: ["Exchange"]
---

# Exchange at a fixed exchange rate

`POST /exchange/fixed`

Execute an exchange using a valid fixed quote from [/exchange/calculate](/api-reference/endpoints/exchange-calculate).

## Headers

- `X-Processing-Signature` string, required

## Request body

- object
  - `sender_currency` string, required — Currency to exchange from. For a list of all available currencies, see [API currency codes](/api-reference/currency-codes).
  - `receiver_currency` string, required — Currency to exchange to. For a list of all available currencies, see [API currency codes](/api-reference/currency-codes).
  - `sender_amount` number — Amount to send. You must include either this parameter or `receiver_amount`. This value must match the quote returned by `/exchange/calculate`.
  - `receiver_amount` number — Amount to receive. You must include either this parameter or `sender_amount`. This value must match the quote returned by `/exchange/calculate`.
  - `foreign_id` string, required — Unique ID of the exchange transaction.
  - `price` number, required — The quoted exchange rate from `/exchange/calculate`, expressed as units of `receiver_currency` for 1 unit of `sender_currency`. This value must match the quote.

## Response `201`

Created

- object
  - `data` object
    - `id` integer, required — Transaction ID.
    - `foreign_id` string, required — This exchange's unique identifier in your system.
    - `type` string, required — Transaction type.
    - `sender_amount` string, required — The amount being exchanged.
    - `sender_currency` string, required — The currency being exchanged from.
    - `receiver_amount` string, required — The amount to be received.
    - `receiver_currency` string, required — The currency being exchanged to.
    - `fee_amount` string, required — The exchange fee amount. If the fee is charged in the sender currency, the total debited amount is `sender_amount + fee_amount`.
    - `fee_currency` string, required — The currency in which the exchange fee is charged.
    - `price` string, required — The quoted exchange rate from `/exchange/calculate`, expressed as units of `receiver_currency` for 1 unit of `sender_currency`.
    - `status` string, required — Exchange status.

## Other responses

- `400` — Bad Request.
- `403` — Forbidden

---

[API](https://skmtc.dev/cryptoprocessing/apis/merchant-backend-v2.md) · [All operations](https://skmtc.dev/cryptoprocessing/apis/merchant-backend-v2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cryptoprocessing/merchant-backend-v2/revisions/623a41f26c6b/schema)
