Give each merchant its own US account details (UC-A-01)
Status: current as of 2026-11-16.
Who this is for
A software platform, for example one serving recruiting agencies or freight brokers, whose client businesses each need to receive ACH and wire payments in their own name. When you finish, each merchant has its own account and routing numbers, and every payment into them is paid on to that merchant's own bank.
Before you start
- Account: a SET API platform account, on the SET API plan.
- Key: a SET API key (
set_live_…, orset_test_…in the sandbox) sent asAuthorization: Bearer …, with the scopeswrite(every POST below) andread(every GET). - Switches: none.
- What must exist: the merchant's own US bank details, and an address the merchant itself controls where the provider returns a payment it cannot pay out (
returnAddress). Instead of an address you can send"wallet", which uses the merchant's own wallet held by SET's provider. If SET has approved platform funds for your platform in writing, your registered return address is used when you leavereturnAddressout.
By API
- Create the merchant as a customer; the answer carries the provider's terms and verification links to send to the merchant.
POST /v1/customers·Idempotency-Key``json { "type": "business", "externalId": "…", "name": "…", "email": "…" }`The next step uses:id,status,tosLink,kycLink`.
- Wait until the provider has verified the merchant:
statusreadsapproved.GET /v1/customers/{id}The next step uses:status,currencies,endorsements.
- Open the account in one call: SET links the merchant's bank, creates the Cash-Out Address that pays it, and opens the account its payers pay.
POST /v1/payment_setups·Idempotency-Key``json { "customer": "cus_…", "way": "bank", "currency": "usd", "bankAccount": { "currency": "usd", "ownerName": "…", "routingNumber": "…", "accountNumber": "…", "checkingOrSavings": "checking", "address": { "streetLine1": "…", "city": "…", "state": "…", "postalCode": "…" } }, "returnAddress": "0x…" }`bankAccountmay instead be the id of a bank account already linked with [POST /v1/bank_accounts](/docs/set-api/create-bank-account). If a step fails part way, the answer names thestepand what wascreated; send the same request again and what exists is reused. The next step uses:payTo.depositInstructions,payTo.virtualAccount,payTo.paysTo.cashOutAddress,bankAccount.id`.
- Give the merchant
payTo.depositInstructions; its payers pay those numbers. Read them again at any time from the account.GET /v1/virtual_accounts/{id}The next step uses:depositInstructions,status.
- Name the payer of each deposit (Travel Rule). The deposit's id comes from the
deposit.*event or from the deposit list.POST /v1/deposits/{id}/sender·Idempotency-Key``json { "type": "business", "name": "…", "address": { "country": "…" } }`countryis ISO 3166-1 alpha-3. A payer that is a person is"type": "individual". The answer to check:senderState` on the deposit.
In SET Console
- In Platform View, open Workflows and choose Add a merchant. Fill in Type, Legal name, Email and Your id for this merchant, then Review and Confirm. The receipt shows the merchant's id and offers Send the merchant its verification link.
- Follow verification in Overview, under Needs attention ("Verification waiting"), or in the Merchants section's table.
- Link the merchant's bank account. Console: not available. Use the API call.
- Open the account that pays the merchant's bank (way
bank). Console: not available. Use the API call. - To have the merchant's payments settle as stablecoin to its own wallet instead (way
wallet), choose Give a merchant its own account details in Workflows: Merchant, Currency its payers pay in, Where the money goes set towallet, Stablecoin and network, The merchant's own stablecoin address and When you verified the merchant controls this address, then Review and Confirm. - Name a deposit's payer. Console: not available. Use the API call.
Check it worked
GET /v1/deposits?virtualAccount=…lists each deposit with itsstate,receivedandsenderState.- In Platform View, the Merchants section's Virtual accounts panel lists the account, and Money in shows Bank deposits and Cash-Out payments.
- Webhooks:
customer.updatedwhen verification changes,virtual_account.created,deposit.payment_processed(anddeposit.<state>for every state), thencash_out_payment.payment_processedwhen the merchant's bank was paid.
If it fails
400 type_invalid,400 name_invalid,400 email_invalid,400 external_id_invalid: a field of the customer is missing or malformed.409 customer_type_conflict: thisexternalIdalready names a customer of the other type.400 bank_account_required: waybankwas sent without the merchant's bank details or a linked account id.400 return_address_required: sendreturnAddress(an address the merchant controls, or"wallet").403 platform_funds_not_allowed: the return address given is your platform's own.400 field_not_used: a field that waybankdoes not take, such asassetoraddress.409 verification_incomplete: the provider has not verified the merchant yet.409 endorsement_required: the merchant is not approved for that currency yet.404 deposit_unknown,409 deposit_not_ready,400 sender_invalid: naming a payer on a deposit that is unknown or not ready, or with incomplete details.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
- Settle merchants in stablecoin
- Coverage and limits: the currencies and rails
- Travel Rule data and Third parties
- Platform oversight: the platform never receives or holds merchant funds unless SET has approved platform funds for it in writing
- All use cases
Changes
- 2026-11-16: Every use case step by step, by API and in the console.