SET Crypto API Suite · Convert
Every route that can turn a stablecoin into a bank payment, ranked
POST/v1/routes/quote
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-Keystring- Any unique string, so a retry runs once. See Idempotency.
Body
currency"usdc" | "eurc"- The stablecoin you start from:
usdc(default) oreurc. Anything else answers400 currency_invalid. amountstringrequired- A positive decimal string in the stablecoin, at most 12 integer digits and 6 decimals, for example
"250.00". A number or zero answers400 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. customerstring- A customer id,
cus_…, to check the customer may use each route.
Notes
- Needs the
readscope. Any account type. - No switch gates the call, but the chains quoted depend on one: with expanded routes off,
base,ethereumandsolana; on, alsoarbitrum,avalanche_c_chain,celo,optimismandpolygon. CheckGET /v1/capabilities(features.expandedRoutes.cashOutChains). - The example was made with a sandbox key and expanded routes on: it answered 8 routes for
usdctoach, cut here to the first 2. With expanded routes off the same request answered 3 routes (base,ethereum,solana). amount,feeandnetare in the stablecoin (feeis the amount times SET's fee in basis points, divided by 10,000; this sandbox key's fee is 100 basis points).minimumis in the payout currency (payoutCurrency).- A route that cannot be used stays in
routeswith, as itsstatus, the code a create would answer. - When no route is available,
chosenisnullandreasonnames the best route's refusal:amount"0.50"onwireanswered every routeamount_below_minimum. - An unknown, closed or unverified customer is not a 404: the answer is 200 with every route's status
customer_unknown,customer_closedorverification_incomplete, andchosennull. - 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.
currencyeurcwith 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_invalid400 amount_invalid400 rail_invalid