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

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_…, or set_test_… in the sandbox) sent as Authorization: Bearer …, with the scopes write (every POST below) and read (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 leave returnAddress out.

By API

  1. 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`.
  1. Wait until the provider has verified the merchant: status reads approved. GET /v1/customers/{id} The next step uses: status, currencies, endorsements.
  1. 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…" } ` bankAccount may 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 the step and what was created; send the same request again and what exists is reused. The next step uses: payTo.depositInstructions, payTo.virtualAccount, payTo.paysTo.cashOutAddress, bankAccount.id`.
  1. 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.
  1. 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": "…" } } ` country is 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

  1. 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.
  2. Follow verification in Overview, under Needs attention ("Verification waiting"), or in the Merchants section's table.
  3. Link the merchant's bank account. Console: not available. Use the API call.
  4. Open the account that pays the merchant's bank (way bank). Console: not available. Use the API call.
  5. 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 to wallet, Stablecoin and network, The merchant's own stablecoin address and When you verified the merchant controls this address, then Review and Confirm.
  6. Name a deposit's payer. Console: not available. Use the API call.

Check it worked

  • GET /v1/deposits?virtualAccount=… lists each deposit with its state, received and senderState.
  • 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.updated when verification changes, virtual_account.created, deposit.payment_processed (and deposit.<state> for every state), then cash_out_payment.payment_processed when 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: this externalId already names a customer of the other type.
  • 400 bank_account_required: way bank was sent without the merchant's bank details or a linked account id.
  • 400 return_address_required: send returnAddress (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 way bank does not take, such as asset or address.
  • 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.

Changes

  • 2026-11-16: Every use case step by step, by API and in the console.