POST /exchange/execute
POST /exchange/lock
endpoint to obtain a valid rateLockId
. This ID is mandatory to execute the exchange at the locked rate.POST /exchange/execute
) with the rateLockId
and transaction details. The system validates the request, reserves the funds, and immediately returns an exchangeId
.completed
or failed
), you can:GET /exchange/{exchangeId}
endpoint at any time using the exchangeId
.curl --location --request POST 'https://partner-api-stage.p100.io/v1/partner/exchange' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw '{
"amount": 10,
"currencyFrom": "eth",
"currencyTo": "eur",
"lockId": "67f4f364-e6f4-4b93-8b71-1576cbc50e0b"
}'
{
"exchangeId": "3f0aeaa7-1177-4d77-9985-0cb987809801"
}