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 scopeswrite(every POST below) andread(every GET). - Switch: SET sets your platform's fee limit. Until it does,
platformFeeBpsanswers403 platform_fee_not_allowed. Enabled features in SET Console, orGET /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
- 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`.
- 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`.
- 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.
- Stablecoin comes straight in: payers send USDC to
wallet.addresson its chain. Name each such payer (Travel Rule) from the wallet's activity.GET /v1/wallets/{id}/activity, thenPOST /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.
- 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
- 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.
- 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.
- Open standing instructions with a memo or template. Console: not available. Use the API call.
- Name a payer. Console: not available. Use the API call.
- Balances and conversion shows Balance transactions and Wallets.
Check it worked
GET /v1/wallets/{id}: the wallet with its balances, read from the provider.GET /v1/balance_transactions?customer=cus_…andGET /v1/kickbacks.- Webhooks:
wallet.created,virtual_account.created,static_template.created,deposit.payment_processed,wallet.activity, andkickback.accruedfor last month's fee share, thenkickback.paid.
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 notbase,ethereumorsolana.400 field_not_used: waybalancetakescurrencyandchainonly, besidescustomerandplatformFeeBps.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.walletis 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.
Related
- Static templates and memos
- Flow of funds: SET's fee is withheld as each payment settles; the merchant's funds stay in the merchant's own wallet
- A merchant balance with a floor
- Coverage and limits
- All use cases
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.