cURL
curl --request POST \ --url https://payvra.com/api/v1/merchants/exchange/create \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "fromCurrency": "<string>", "toCurrency": "<string>", "amount": 1 } '
{ "id": "<string>", "status": "SUCCESS", "fromWallet": { "currency": { "symbol": "<string>" } }, "toWallet": { "currency": { "symbol": "<string>" } }, "amount": 123, "rate": 123, "toAmount": 123, "createdAt": "2023-11-07T05:31:56Z" }
Creates a new exchange between two cryptocurrencies for the authenticated merchant
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Symbol of the source cryptocurrency
Symbol of the target cryptocurrency
Amount to exchange from the source currency
x >= 0
1e-8
Exchange created successfully
SUCCESS
FAILED
Show child attributes