Attributes
- idstring
Unique identifier for the object.
- lock_
durationenum The duration the exchange rate quote remains valid from creation time. Allowed values are none, hour, and day. Note that for the test mode API available in alpha, you can request an extended quote, but it won’t be usable for any transactions.
Possible enum valuesdayRequests a quote valid for one day
five_minutes Requests a quote valid for five minutes
hourRequests a quote valid for one hour
noneRequests a quote valid without lock rate
- ratesobject
Information about the rates.
- rates.
<from_ currency>. exchange_ ratefloat The rate that includes the FX fee rate.
- rates.
<from_ currency>. rate_ detailsobject The breakdown of the rates.
- rates.
<from_currency>.rate_details. base_ ratefloat The rate for the currency pair.
- rates.
<from_currency>.rate_details. float The fee for locking the conversion rates.
- rates.
<from_currency>.rate_details. fx_ fee_ ratefloat The FX fee for the currency pair.
- rates.
<from_currency>.rate_details. reference_ ratenullable float A reference rate for the currency pair provided by the reference rate provider.
- rates.
<from_currency>.rate_details. reference_ rate_ providernullable enum The reference rate provider.
Possible enum valuesecbThe European Central Bank is reference rate provider.
We provide the reference rate when both the
from_andcurrency to_are in the following list:currency - eur
- usd
- jpy
- bgn
- czk
- dkk
- gbp
- huf
- pln
- ron
- sek
- chf
- isk
- nok
- try
- aud
- brl
- cad
- cny
- hkd
- idr
- ils
- inr
- krw
- mxn
- myr
- nzd
- php
- sgd
- thb
- zar
- to_
currencystring The currency to convert into, typically this is the currency that you want to settle to your Stripe balance. Three-letter ISO currency code, in lowercase. Must be a supported currency.
More attributes
- objectstring
String representing the object’s type. Objects of the same type share the same value.
- createdtimestamp
Time at which the quote was created, measured in seconds since the Unix epoch.
- lock_
expires_ atnullable timestamp Time at which the quote will expire, measured in seconds since the Unix epoch.
If lock_duration is set to ‘none’ this field will be set to null.
- lock_
statusenum Lock status of the quote. Transitions from active to expired once past the lock_expires_at timestamp.
Can return value none, active, or expired.
Possible enum valuesactiveFX Quote lock is active
expiredFX Quote lock has expired
noneFX Quote does not have a lock status
- usageobject
The usage specific information for the quote.
- usage.
paymentnullable object The details required to use an FX Quote for a payment
- usage.
payment. destinationnullable string The Stripe account ID that the funds will be transferred to.
This field should match the account ID that would be used in the PaymentIntent’s transfer_data[destination] field.
- usage.
payment. on_ behalf_ ofnullable string The Stripe account ID that these funds are intended for.
This field must match the account ID that would be used in the PaymentIntent’s on_behalf_of field.
- usage.
transfernullable object The details required to use an FX Quote for a transfer
- usage.
transfer. destinationstring The Stripe account ID that the funds will be transferred to.
This field should match the account ID that would be used in the Transfer’s destination field.
- usage.
typeenum The transaction type for which the FX Quote will be used.
Can be ‘payment’ or ‘transfer’.
Possible enum valuespaymentThe usage of the FX Quote is for payments.
transferThe usage of the FX Quote is for transfers.
{ "id": "fxq_1QKf8UET9NELqCotgW6CNTnm", "object": "fx_quote", "created": 1731498806.6424642, "lock_duration": "hour", "lock_expires_at": 1731502406.5579598, "lock_status": "active", "rates": { "gbp": { "exchange_rate": 1.10167, "rate_details": { "base_rate": 1.12415, "fx_fee_rate": 0.02, "reference_rate": 1.12437, "reference_rate_provider": "ecb" } }, "krw": { "exchange_rate": 0.000617274, "rate_details": { "base_rate": 0.000629871, "fx_fee_rate": 0.02, "reference_rate": 0.000629997, "reference_rate_provider": "ecb" } } }, "to_currency": "chf", "usage": { "payment": null, "transfer": null, "type": "payment" }}