Skip to main content
POST

Authorizations

Authorization
string
header
required

An API key in the Authorization header, for example Authorization: Bearer rk_test_. Test keys start with rk_test; the key is shown once, when it is created or rotated.

Headers

Idempotency-Key
string
required

A client-chosen key, 1 to 255 printable ASCII characters with no spaces, that makes a retry of this request return the first response instead of running it again.

Required string length: 1 - 255
Pattern: ^[\x21-\x7E]+$

Body

application/json
usd_amount_minor
integer<int64>
required

The USD to buy, in cents: from 100 (USD 1.00) to Treasury:Conversions:MaxUsdMinor, 10,000,000 (USD 100,000.00) by default.

Response

The quoted naira amount, sell rate and expiry.

id
string
required

The quote's id, prefixed fxq_. Create a conversion with it before expires_at.

usd_amount
object
required

The USD the conversion credits to the USD wallet.

ngn_amount
object
required

The naira the conversion holds and then charges: usd_amount at sell_rate, rounded up to the kobo.

sell_rate
string
required

Naira per dollar, exact, as a decimal string with twelve places; never rounded.

expires_at
string<date-time>
required

When the quote stops being accepted: 60 seconds after it was made.