Create exchange

post
Create exchange

https://business-sandbox.cryptopay.me/api/exchange_transfers
This endpoint allows you to create exchange transfer.
Request
Response
Headers
Authorization
required
string
HMAC using API key and signature
Content-Type
required
string
application/json
Date
required
string
Current date in HTTP-date format
Query Parameters
charged_amount
required
number
Amount to be converted
charged_currency
required
string
Account currency the funds to be converted from
custom_id
required
string
Exchange transaction reference ID in your system
force_commit
optional
string
Set true by default. Set false for two-step transfer and commit it within 30 seconds
received_amount
required
number
Amount to be received upon exchange execution. You can use this param instead of charged_amount
received_currency
required
string
Account currency the funds to be converted to. You can use this param instead of charged_currency
201: Created
{
"id": "fadae396-9a92-49ad-bfc6-38712712019f",
"charged_amount": "0.5",
"charged_currency": "BTC",
"received_amount": "2450.5",
"received_currency": "EUR",
"custom_id": "091137294",
"exchange": {
"pair": "BTCEUR",
"rate": "4950.5355",
"fee": "24.76",
"fee_currency": "EUR"
}
}

Response schema.

Parameter

Type

Description

id

string

Exchange transaction ID

charged_amount

string

Amount converted

charged_currency

string

Account currency the funds converted from

received_amount

string

Amount to be received upon exchange execution

received_currency

string

Account currency the funds converted to

custom_id

string

Exchange transaction reference ID in your system

exchange

object

Exchange details

pair

string

Currency pair

rate

string

Exchange rate

fee

string

Exchange fee

fee_currency

string

Exchange fee currency