Creates a quote for a given currency pair.
You can create a quote for either an internal currency exchange or an outbound payment.
To create a quote for an internal currency exchange, set type.to
to balance
.
For an outbound payment, use any of payment
, multiple
, or forward
.
Once you've created a quote, you can create an order.
All quotes expire after 12 seconds.
OK
Bad request
Unauthorised
Forbidden
Not found
Method not allowed
Unsupported media type
Too many requests
Internal server error
{- "sourceCurrency": {
- "amount": 0,
- "currency": {
- "budgetId": "b489ea2c-0dd1-4fb1-b345-de5a596a5527",
- "currencyCode": "USD"
}
}, - "targetCurrency": {
- "amount": 0,
- "currency": {
- "budgetId": "b489ea2c-0dd1-4fb1-b345-de5a596a5527",
- "currencyCode": "USD"
}
}, - "settlementDate": "20221027",
- "type": {
- "from": "bank",
- "to": "payment"
}
}
{- "orderId": "EABCDE6FGHI0",
- "quoteRequestId": "USD-USD-5-5",
- "settlement": {
- "date": "20221027",
- "price": {
- "amount": 5,
- "currency": "USD"
}, - "charges": {
- "fee": 0
}
}, - "quote": {
- "rate": 1,
- "inverseRate": 1,
- "fromGbpAmount": 3,
- "from": {
- "amount": 5,
- "currency": "USD"
}, - "to": {
- "amount": 5,
- "currency": "USD"
}, - "direction": "1"
}
}