Skip to content
SETSimple Easy Transactions
SET DocsSET Crypto API Suite and SET API referenceCurrent as of 2026-11-23
Browse: SET API

Collect on any rail into one balance (UC-A-05)

Status: current as of 2026-11-23.

Who this is for

A platform whose merchants are paid by bank transfer in several currencies and in stablecoin, and want it all in one USDC balance. When you finish, every payment to a merchant lands in that merchant's own wallet, less SET's fee. SET collects and pays out no fee for your platform: if you charge your merchants a fee, you bill it yourself.

Before you start

  • Account: a SET API platform account, on the SET API plan.
  • Key: a SET API key sent as Authorization: Bearer …, with the scopes write (every POST below) and read (every GET).
  • Switch: SET sets your platform's fee limit. Until it does, platformFeeBps answers 403 platform_fee_not_allowed. Enabled features in SET Console, or GET /v1/capabilities, shows whether it is on.
  • What must exist: a merchant verified by the provider (Give each merchant its own US account details, steps 1 and 2), approved for each currency it collects.

By API

  1. Open the merchant's balance and its first bank details in one call: SET opens the merchant's wallet, held in custody by SET's provider, and an account whose payments become USDC in it. POST /v1/payment_setups · Idempotency-Key ``json { "customer": "cus_…", "way": "balance", "currency": "usd", "chain": "base" } ` The next step uses: wallet.id, wallet.address, payTo.depositInstructions, payTo.paysInto`.
  1. Add bank details in another currency that pay into the same wallet. POST /v1/virtual_accounts · Idempotency-Key ``json { "customer": "cus_…", "currency": "eur", "settleTo": { "wallet": "wal_…" } } ` The next step uses: depositInstructions`.
  1. Where payers share one account and quote a reference, open standing instructions that settle to the wallet. Static memos work the same way with POST /v1/static_memos. POST /v1/static_templates · Idempotency-Key ``json { "customer": "cus_…", "currency": "usd", "settleTo": { "wallet": "wal_…" } } ` The next step uses: id`, the deposit instructions with the payer's reference.
  1. Stablecoin comes straight in: payers send USDC to wallet.address on its chain. Name each such payer (Travel Rule) from the wallet's activity. GET /v1/wallets/{id}/activity, then POST /v1/wallets/{id}/activity/{eventId}/sender · Idempotency-Key ``json { "type": "business", "name": "…", "address": { "country": "…" } } ` A bank deposit's payer is named with [POST /v1/deposits/{id}/sender`](/docs/set-api/deposit-sender), the same body.
  1. Follow every movement for the merchant. GET /v1/balance_transactions?customer=cus_… The fields to read: each row's type, amount and currency.

In SET Console

  1. In Platform View, open Workflows and choose Collect into one balance and take your fee. Fill in Merchant, Currency paid in and Balance network; leave Your fee in basis points empty (SET collects no platform fee). Then Review and Confirm. The receipt shows the new wallet and account.
  2. For another currency, run the same workflow again with the same Balance network. A merchant has one wallet per network, so the new account pays into the wallet it already has.
  3. Open standing instructions with a memo or template. Console: not available. Use the API call.
  4. Name a payer. Console: not available. Use the API call.
  5. Balances and conversion shows Balance transactions and Wallets.

Check it worked

If it fails

  • 403 platform_fee_not_allowed: SET has not set your platform's fee limit yet.
  • 400 platform_fee_too_high, 400 platform_fee_invalid: above your limit, or not a whole number of basis points.
  • 400 platform_fee_at_address: the account settles to a Cash-Out Address; set the fee on the address.
  • 400 chain_invalid: the wallet's chain is not base, ethereum or solana.
  • 400 field_not_used: way balance takes currency and chain only, besides customer and platformFeeBps.
  • 409 verification_incomplete, 409 endorsement_required: the merchant is not verified, or not approved for that currency.
  • 409 settle_route_not_supported: that currency cannot settle to that wallet's chain.
  • 404 wallet_unknown: settleTo.wallet is not this merchant's wallet.
  • 409 location_not_supported, 503 custodial_wallets_disabled: the wallet cannot be opened for this merchant or deployment.
  • 400 sender_invalid, 404 activity_unknown, 409 sender_not_needed: naming a payer.
  • 403 kickbacks_platform_only: the fee share is for a platform account.
  • 401 api_key_invalid, 403 scope_missing, 429 rate_limited: the key, its scopes, or the rate limit.

All codes: Errors. Retrying a POST safely: Idempotency.

Changes

  • 2026-11-23: Copy: SET collects and pays out no fee for a platform (counsel, 2026-11-23).
  • 2026-11-16: Every use case step by step, by API and in the console.