Skip to main content
POST
Create FX quote
Quote a USD amount in the customer’s local currency. The rate is Yuno’s daily reference rate plus the markup agreed for your organization. Charge the local amount with the quote before expires_at. See Local price and taxes.
Enabled per organizationFX quotes are enabled per organization. Contact your Key Account Manager (KAM) to enable them.
  • Only USD amounts can be quoted.
  • 404 FX_QUOTE_NOT_AVAILABLE means there is no published rate for that currency on the latest available day: charge in USD.
  • An expired quote is refused at payment time. Quote again and show the customer the new amount.

Headers

PUBLIC-API-KEY
string
required

Your public API key.

PRIVATE-SECRET-KEY
string

Your private secret key, when you quote from your backend. Never expose it client-side.

X-Account-Code
string

The account the quote is for.

Body

application/json
amount
object
required
target_currency
string
required

Three-letter ISO currency to quote in.

Example:

"BRL"

checkout_session
string

The checkout session the quote is for. Required with a public key.

account_id
string

The account the quote is for.

Response

FX quote

fx_quote_id
string
amount
object
local_amount
object
reference_rate
number
markup_percentage
number
rate
number
fx_date
string

Day of the reference rate.

expires_at
string

Until when the quote can be charged.