Get a Quote

Retrieve a previously generated quote and check whether its status is active, consumed, or expired.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Look up the quote using the data.id returned at creation. Read data.status to decide whether you can still execute the swap or should reconcile a completed transaction.

data.statusWhat to do
activeSubmit the quote before data.expiresAt if the customer confirms the amounts.
consumedFetch GET /api/b2b/transactions/{id} using data.consumedById. The swap settled at data.consumedAt.
expiredCreate a fresh quote and confirm the new amounts before executing.

Access and lookup errors

Use a bearer token for the account and environment that created the quote. Production also checks the quote’s feature flag and the account’s active IP allowlist. In sandbox, use GET /api/sandbox/b2b/quotes/{quoteId}.

HTTP responseCheck
400 PARAMS_VALIDATION_ERRORSupply a valid quote ID in the path.
400 QUERY_VALIDATION_ERRORRemove query parameters.
400 IP_NOT_ALLOWEDCheck the server’s egress IP against your production allowlist.
403 FORBIDDENCheck that Swaps is enabled in production.
404 NOT_FOUNDCheck the ID, account, and environment. Deleted quotes also return this response.

Create a Quote · Recover after a timeout or conflict

Path Params
string
required
^[A-Za-z0-9_-]{1,128}$

Quote identifier returned by POST /api/b2b/quotes.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json