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 API

SET Crypto API Suite · Fund a wallet

Every way a customer can pay in, in one call

POST/v1/deposit_options

Key scope: write · Success: 200

Every way a customer can pay in to one bank account, in one call. SET opens (or finds) the customer's multichain EVM address in currency any and a USDC address on Solana, each with every check of POST /v1/cash_out_addresses, and lists each other source for the rail in otherSources, to open on its own.

Headers

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

Body

customer stringrequired
The customer's id, cus_…; the customer must be approved. Missing, it answers 400 customer_required.
bankAccount stringrequired
The customer's own bank account id, which its payments pay out to. Missing, it answers 400 customer_required.
rail string
The payout rail. It defaults from the bank account's currency (usd gives ach).
solanaReturnAddress string
The Solana address a payment the provider cannot pay out returns to. Leave it out to use your registered Solana return address; with neither, the solana option reads refused with return_address_required.

Notes

  • Expanded routes are switched on per deployment; until then 403 expanded_routes_off. Check GET /v1/capabilities (features.expandedRoutes).
  • Needs the write scope. Any account type.
  • Each option runs every check of POST /v1/cash_out_addresses: an approved customer, its own bank account, your asset policy and restrictions.
  • Answers 200, also when it opens the two addresses. A repeat finds the same addresses.
  • evm is a chain evm, currency any Cash-Out Address: one 0x address on every EVM network the provider lists. Its pairs (network and currency, each with SET's minimum) are read from the provider.
  • otherSources lists each route for the rail that evm.pairs and the Solana address do not cover; open each with POST /v1/cash_out_addresses.
  • In the sandbox the simulated provider lists no pairs, so evm.pairs is empty and otherSources lists every route. The example's otherSources is cut to its first 2 of 9.
  • An option that cannot be opened reads status refused with error and message; the other option still answers.
  • For a live key the evm option also needs multichain addresses offered (features.multichainAddresses); otherwise it reads refused and the call still answers 200.
  • The evm address takes no return address of its own: its returnAddress is SET's own crypto return address.
  • Bitcoin is never offered here.
  • 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

  • 403 expanded_routes_off
  • 400 customer_required

All codes: Errors.