Use this endpoint to lock an exchange rate before creating a transfer. Quotes give the customer a deterministic source-to-destination conversion rate that’s valid for a fixed window (30, 60, or 300 seconds). The quote captures the source amount, destination amount, exchange rate, and full fee breakdown (integrator + platform) at the moment of issuance. A quote can be redeemed exactly once by passing its ID when calling Create Transfer.Documentation Index
Fetch the complete documentation index at: https://docs.spherepay.co/llms.txt
Use this file to discover all available pages before exploring further.
Quotes are most useful for trading and cross-border payouts where the customer needs to see the exact rate they’ll receive before committing the transfer. For floating-rate transfers (e.g. payroll, treasury rebalancing), skip the quote and call
/v2/transfer directly.Endpoint
Authentication
All requests require a Bearer token in theAuthorization header.
Request body
Quote amount in the source currency. Must have exactly 2 decimal places (e.g.
"100.00"). Matches ^\d+(\.\d{2})?$.The customer’s ID. Must match
^customer_[a-z0-9]+$. The customer must have an approved verification profile for the source and destination currencies.The source currency and network.
The destination currency and network.
How long the quoted exchange rate stays valid. Must be one of
30, 60, or 300. Defaults to 60.Optional. Your integrator fee in basis points (1 bps = 0.01%) as a string integer (e.g.
"20" for 20 bps). The fee is calculated as sourceAmount × bpsRate / 10000 and is denominated in the source currency. Charged on top of Sphere’s platform fee.Response fields
Unique quote identifier. Matches
^quote_[a-z0-9]+$. Pass this ID to POST /v2/transfer to redeem the quote.Transfer direction this quote is for. One of
on_ramp or off_ramp — inferred from the source/destination pair.The customer ID the quote belongs to.
Detailed breakdown of fees applied to the quote.
Source side of the quote:
currency, network, and amount (the original source amount).Destination side of the quote:
currency, network, amount (the destination amount after conversion and fees), and exchangeRate (the locked rate applied).ISO 8601 timestamp when this quote expires and can no longer be redeemed.
ISO 8601 timestamp when the quote was created.
Error codes
| Status | Code | Description |
|---|---|---|
400 | address/invalid | The request body contains invalid or missing fields. |
404 | resource/not-found | The referenced customer does not exist. |
422 | validation/failed | One or more fields failed validation. The errors array identifies each failing field. |

