Create an FX quote
Quote the USD debit for an exact foreign-currency amount. Pass the same amount and returned quote id when creating the international wire. USD international wires do not use FX quotes.
Authorizations
User API key authentication. Create a key under Settings → API keys in the Slash dashboard (https://app.slash.com/global-settings/api-keys) and send the x-legal-entity header naming the legal entity to act on with every request. Keys scoped to a legal entity are rejected with 403 user_api_key_required.
Headers
Unique caller-generated key for one create request. Once an authenticated, schema-valid request reaches the operation, the key is permanently consumed for that operation and legal entity whether the operation succeeds or fails. Reusing it in that scope returns 409 and never replays a response, unlike API v1, which replays the original response for a matching key.
1 - 255The legal entity to act on. Required on every request; a user API key can act on any legal entity its user has access to.
^le_[a-zA-Z0-9]+$Body
Response
The created FX quote.
A time-limited USD price for an exact foreign-currency amount.
FX quote id with the fx_rate_quote_ prefix.
pending, available, expired, used, canceled A positive monetary amount expressed in the currency's minor units.
A positive USD amount expressed in cents.
Foreign currency units received per USD, including the FX fee.
Exact expiration time. Quotes are typically valid for about 15 minutes; clients must treat this timestamp as authoritative.