FOREIGN EXCHANGE
Convert with a locked rate
POSThttps://production.dutchapi.co/v1/fx/convert
Executes a conversion at the rate locked by POST /v1/fx/quote. A quote can be used once.
🔒Send the project API key as a Bearer token and your Business ID with this call.
Requires an Idempotency-Key header.
Body Params
quote_idstringrequired
The id from POST /v1/fx/quote.
Responses
{
"id": "fx_92ac10",
"object": "exchange",
"kind": "conversion",
"status": "completed",
"amount": 100,
"currency": "USD",
"fee": 0,
"to": {
"currency": "XAF",
"amount": 59040,
"rate": 590.4
}
}
{
"error": "idempotency_key_required",
"message": "Send an Idempotency-Key header."
}
Errors
| Status | error | Meaning |
|---|
| 400 | idempotency_key_required | Send an Idempotency-Key header. |
| 400 | quote_id_required | Send the quote_id. |
| 409 | quote_expired_or_used | Get a new quote. |
| 402 | insufficient_funds | The wallet balance is too low. |
| 423 | money_movement_paused | The kill switch is on. |
| 422 | exchange_rejected | The partner rejected the conversion. |