Settle merchants in stablecoin (UC-A-02)
Status: current as of 2026-11-16.
Who this is for
A payment service provider, for example a Swiss financial intermediary affiliated to a self-regulatory organisation, that collects USD, EUR or GBP bank transfers for its merchants. When you finish, each merchant has bank details its payers pay, and each payment arrives as USDC or EURC at the merchant's own wallet.
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). - Switches: none.
- What must exist: a merchant verified by the provider (Give each merchant its own US account details, steps 1 and 2), and the merchant's own wallet address, whose ownership you verified before the call.
- Pairs offered: USD settles to USDC; EUR to USDC or EURC; GBP to USDC. Coverage and limits lists the networks.
By API
- For EUR, request the merchant's
sepaendorsement; for GBP,faster_payments. The answer is the endorsement'sstatus, and in live mode alinkfor the merchant to complete.POST /v1/customers/{id}/endorsements·Idempotency-Key``json { "endorsement": "sepa" }`The next step uses:status(approved` before you open the account).
- Open the account: bank details for the merchant's payers that settle to the merchant's wallet.
POST /v1/payment_setups·Idempotency-Key``json { "customer": "cus_…", "way": "wallet", "currency": "eur", "asset": "eurc-base", "address": "0x…", "beneficiary": { "type": "customer", "walletType": "self_custodied", "ownershipVerifiedAt": "…" } }`ownershipVerifiedAtis the ISO 8601 time you verified the merchant controls the address.walletTypeisself_custodied,hostedorexternal. The same account can be opened with [POST /v1/virtual_accounts](/docs/set-api/create-virtual-account) and the same fields lessway. The next step uses:payTo.depositInstructions,virtualAccount.id`.
- Hand the merchant
payTo.depositInstructions. Read them again at any time from the account.GET /v1/virtual_accounts/{id}The next step uses:depositInstructions,destination,status.
- Name the payer of each deposit (Travel Rule).
POST /v1/deposits/{id}/sender·Idempotency-Key``json { "type": "business", "name": "…", "address": { "country": "…" } }`The answer to check:senderState` on the deposit.
In SET Console
- Request a currency endorsement. Console: not available. Use the API call.
- In Platform View, open Workflows and choose Settle a merchant in stablecoin. Fill in Merchant, Currency paid in, Stablecoin and network, The merchant's own address and When you verified the merchant controls this address, then Review and Confirm. The receipt shows the account's id and its state. The form offers USDC on Base, Ethereum or Solana; for EURC, use the API call.
- The account appears in the Merchants section's Virtual accounts panel.
- Name a deposit's payer. Console: not available. Use the API call.
Check it worked
GET /v1/deposits?virtualAccount=…: each deposit'sstate,received,txHash, anddelivered(true once the chain agrees, live only).- In Platform View, Money in shows Bank deposits.
- Webhooks:
virtual_account.created,deposit.payment_processed(anddeposit.<state>for every state), thendeposit.deliveredonce the chain confirms.
If it fails
400 endorsement_invalid: the endorsement is not one ofbase,sepa,faster_payments,spei,pix,cop.409 verification_incomplete: the provider has not verified the merchant yet.409 endorsement_required: the merchant is not approved for that currency yet; request the endorsement first.400 field_not_used: waywalletdoes not takebankAccount,settleTo,returnAddress,chainorreference.409 settle_route_not_supported: that currency cannot settle to that stablecoin and network.400 beneficiary_invalid,400 wallet_type_invalid,400 ownership_verified_at_invalid,400 address_invalid: the wallet or its Travel Rule details.404 deposit_unknown,409 deposit_not_ready,400 sender_invalid: naming a payer.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
- Give each merchant its own US account details
- Travel Rule data
- Platform oversight and the Switzerland annex: SET's programme applies to the payment service provider as SET's customer and to every merchant as a verified customer, independently of the provider's own programme
- All use cases
Changes
- 2026-11-16: Every use case step by step, by API and in the console.