Make an exchange:
curl -X POST https://b2b.revolut.com/api/1.0/exchange \
-H "Authorization: Bearer <your access token>" \
--data @- << EOF
{
"from": {
"account_id": "d56dd396-523b-4613-8cc7-54974c17bcac",
"currency": "USD",
"amount": 100.0
},
"to": {
"account_id": "a44dd365-523b-4613-8457-54974c8cc7ac",
"currency": "EUR"
},
"reference": "Time to sell",
"request_id": "e0cbf84637264ee082a848b"
}
EOF
Response:
{
"id": "d56d5596-523b-4613-2cc7-54974a37bcac",
"state": "completed",
"created_at": "2018-10-01T10:10:10.0Z",
"completed_at": "2018-10-01T10:10:10.0Z"
}
You can exchange the money in either of the following cases:
from
object. Check the example on the right.to
object.from
object or in the to
object.To check the exchange rate and fees for the operation, use the /rate.