Skip to content
SETSimple Easy Transactions
SET DocsSET Crypto API Suite and SET API referenceCurrent as of 2026-11-21 · wallet release 7d8a79fb
Browse: SET Crypto API Suite

SET Crypto API Suite · Convert

Every route that can turn a stablecoin into a bank payment, ranked

POST/v1/routes/quote

Key scope: read · Success: 200

Every route SET's route table has for turning a stablecoin into a bank payment with this key, ranked, with the first available route as chosen and a one-sentence reason. Read-only: nothing is written and no provider is called.

Headers

Idempotency-Key string
Any unique string, so a retry runs once. See Idempotency.

Body

currency "usdc" | "eurc"
The stablecoin you start from: usdc (default) or eurc. Anything else answers 400 currency_invalid.
amount stringrequired
A positive decimal string in the stablecoin, at most 12 integer digits and 6 decimals, for example "250.00". A number or zero answers 400 amount_invalid.
rail "ach" | "wire" | "sepa" | "faster_payments" | "spei" | "pix" | "bre_b" | "co_bank_transfer"
One payout rail; leave it out for every rail. Anything else answers 400 rail_invalid.
customer string
A customer id, cus_…, to check the customer may use each route.

Notes

  • Needs the read scope. Any account type.
  • No switch gates the call, but the chains quoted depend on one: with expanded routes off, base, ethereum and solana; on, also arbitrum, avalanche_c_chain, celo, optimism and polygon. Check GET /v1/capabilities (features.expandedRoutes.cashOutChains).
  • The example was made with a sandbox key and expanded routes on: it answered 8 routes for usdc to ach, cut here to the first 2. With expanded routes off the same request answered 3 routes (base, ethereum, solana).
  • amount, fee and net are in the stablecoin (fee is the amount times SET's fee in basis points, divided by 10,000; this sandbox key's fee is 100 basis points). minimum is in the payout currency (payoutCurrency).
  • A route that cannot be used stays in routes with, as its status, the code a create would answer.
  • When no route is available, chosen is null and reason names the best route's refusal: amount "0.50" on wire answered every route amount_below_minimum.
  • An unknown, closed or unverified customer is not a 404: the answer is 200 with every route's status customer_unknown, customer_closed or verification_incomplete, and chosen null.
  • Order: available routes first, then the lower fee, then Base, then chain name and rail name.
  • Rails are not ranked by speed: the provider publishes no settlement time per rail.
  • currency eurc with no rail (expanded routes on) answered 8 routes: Base to ACH, SEPA, SPEI and wire; Ethereum to SEPA; Solana to ACH, SEPA and wire.
  • PYUSD and USDB are never quoted.
  • This example is a recorded run of SET's own code (wallet release e9b03447) with a sandbox key; ids and times are that run's.

Errors

  • 400 currency_invalid
  • 400 amount_invalid
  • 400 rail_invalid

All codes: Errors.