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 · Fund a wallet

Set up one way to get paid

POST/v1/payment_setups

Key scope: write · Success: 201

One call per way. Checks everything first, creates what the way needs (bank account, Cash-Out Address, virtual account) and answers with payTo: exactly what the merchant gives its payers. A refused setup writes nothing.

Platform account beneficiary: {"type": "platform"} names the platform's own wallet: platform funds are off by default (platform_funds_allowed = 0, reinstated 2026-11-19), so this is refused with 403 platform_funds_not_allowed unless SET's operator has explicitly enabled platform funds after CCO review (in which case the platform is named in the Travel Rule data with the legal details SET holds, or 409 platform_details_incomplete until it does). By default, use the merchant's own wallet, {"type": "customer", …}. Platform funds are off by default (platform_funds_allowed = 0), so returnAddress is required, must be an address the merchant controls, and the platform's own registered address is refused (403 platform_funds_not_allowed). Only if SET's operator has explicitly enabled platform funds after CCO review may you omit returnAddress to use the platform's registered return address (POST /v1/return_addresses), or receive 400 return_address_required if none is registered.

Business account A merchant's destination wallet is always its own: beneficiary.type must be "customer"; "platform" is refused with 400 beneficiary_invalid. Without returnAddress, the merchant's own registered return address is used (POST /v1/return_addresses).

Headers

Idempotency-Key string
Optional. The same key and body run once; a replay answers with Idempotent-Replayed: true. Kept 24 hours.

Body

customer stringrequired
An approved customer.
way "wallet" | "cash_out" | "bank" (or 1, 2, 3) | "balance"required
1 collect bank transfers as stablecoin to a wallet; 2 take stablecoin and pay out to the merchant's bank; 3 collect bank transfers to the merchant's bank; balance collect bank transfers into the merchant's own wallet, held in custody by the provider (opened or reused on chain), to pay out from later. payTo is the bank details and paysInto: {wallet, chain, asset}.
currency "usd" | "eur" | "gbp"
Ways 1 and 3: what payers send. Default usd (way 3: the bank's own currency).
asset, address, beneficiary object
Way 1: the destination stablecoin (for example usdc-base), wallet address and whose wallet it is (Travel Rule).
bankAccount object | string
Ways 2 and 3: the fields of POST /v1/bank_accounts, or the id of one already linked.
chain "base" | "ethereum" | "solana"
Ways 2 and 3. Default base.
stablecoin "usdc" | "eurc"
Ways 2 and 3. Default usdc.
rail "ach" | "wire" | "sepa" | "faster_payments"
Ways 2 and 3. Default from the bank's currency.
reference string
Shown on each bank payout, within the rail's limits.
returnAddress string
Where a payment that cannot be paid out is returned. "wallet": the customer's own wallet, held in custody by the provider, on that chain, opened if needed.
platformFeeBps integer
Not offered: SET collects no fee for a platform, so any value but 0 answers 403 platform_fee_not_allowed.

Notes

  • If a later step is refused, the answer names it (step: bank_account, cash_out_address or virtual_account) and lists created. Fix the request and send it again: each step is content-idempotent.
  • Conversion Addresses (crypto to crypto) stay a separate call: POST /v1/conversion_addresses.

Errors

  • 409 multichain_unavailable
  • 409 return_policy_missing
  • 409 cash_out_address_exists
  • 409 cash_out_address_in_wallet
  • 409 customer_closed
  • 400 way_invalid
  • 400 field_not_used
  • 400 bank_account_required
  • 400 return_address_required
  • 400 route_not_supported
  • 409 verification_incomplete
  • 409 endorsement_required
  • 403 platform_funds_not_allowed
  • 401 api_key_required
  • 401 api_key_invalid
  • 401 api_key_wrong_mode
  • 401 api_key_expired
  • 403 scope_missing
  • 403 platform_api_paused
  • 429 rate_limited
  • 503 api_disabled

All codes: Errors.