Skip to main content
POST
Get a quote

Authorizations

Authorization
string
header
required

An API key, pk_live_… or pk_test_….

Headers

Idempotency-Key
string
required

Your unique key for this write, at most 255 characters. A retry with the same key and body gets the first answer back.

Maximum string length: 255

Body

application/json
base
string
required
Example:

"USD"

quote
string
required
Example:

"NGN"

baseAmount
string
required

give exactly one of the two amounts Minor units, as a string.

Pattern: ^[0-9]+$
Example:

"10000"

Response

OK

id
string

fxq_…

rateId
string
base
string
quote
string
baseAmount
string

Minor units, as a string.

quoteAmount
string

Minor units, as a string.

rate
string

the dealt rate, spread applied

expiresAt
string<date-time>