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 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount": 10,
"currencyFrom": "eth",
"currencyTo": "eur",
"lockId": "ee7b2f0f-0ffb-4fce-8fb3-66db2ca1f461"
}'
{
"exchangeId": "3f0aeaa7-1177-4d77-9985-0cb987809801"
}