Take stablecoin and be paid in your own currency (UC-B-01)
Status: current as of 2026-11-18.
Who this is for
An online seller, agency or software company with a business account that accepts USDC or EURC from customers and wants USD by ACH or wire, EUR by SEPA or GBP by Faster Payments in its own bank account. You get one permanent Cash-Out Address to print on invoices, and every payment to it is paid out to your bank.
Before you start
- Account: a business account on the SET API.
- Key scopes:
write(payment setup, return address, naming a sender) andread(following payments). Send the key asAuthorization: Bearer set_test_…(staging) orset_live_…(production). - Your business's customer id (
cus_…): a business-account key opens exactly one customer, your business (POST /v1/customers, once). SET's provider must have verified it before any address opens. - Your bank account details, in the fields of
POST /v1/bank_accounts, or the id of a bank account already linked to your customer. - A return wallet you control on Base or Ethereum: the provider returns a payment it cannot pay out there.
By API
- Register your return wallet, once. Skip this if you send
returnAddressin step 2.POST /v1/return_addresses· Header:Idempotency-Key``json { "evm": "0x…" }`` Next step uses: nothing; later setups use it by default.
- Open your Cash-Out Address in one call (way 2,
cash_out). SET checks everything first, creates the bank account and the address, and answers what to give payers.POST /v1/payment_setups· Header:Idempotency-Key``json { "customer": "cus_…", "way": "cash_out", "chain": "base", "stablecoin": "usdc", "bankAccount": { "currency": "usd", "ownerName": "…", "routingNumber": "…", "accountNumber": "…", "checkingOrSavings": "checking", "address": { "streetLine1": "…", "city": "…", "state": "…", "postalCode": "…" } } }`stablecoinisusdc(default) oreurc;bankAccount.currencydecides what your bank receives and the default rail. Do not sendcurrencyon this way: it is refused. Next step uses:payTo.address,payTo.chain,payTo.currency,payTo.minimumPayout,payTo.cashOutAddress,payTo.paysTo`.
- Publish the address. Put
payTo.address(onpayTo.chain, inpayTo.currency) on your invoices, withpayTo.minimumPayout, the provider's minimum for this route. No call.
- Follow each payment.
GET /v1/cash_out_payments?cashOutAddress=…, or one payment withGET /v1/cash_out_payments/{id}. Next step uses:id,state,senderState,paidToBank(trueonce the provider reports the bank paid),paidAmount,payoutCurrency,railReference.
- Name who paid (Travel Rule). Any wallet may pay a Cash-Out Address, so each payment's sender is named once. Send
type: "customer"when your business paid itself.POST /v1/cash_out_payments/{id}/sender· Header:Idempotency-Key``json { "type": "business", "name": "…", "address": { "country": "…" } }`countryis ISO 3166-1 alpha-3. Add"remember": trueto save this payer so later payments from the same wallet are named for you ([Name who paid you without writing code](/docs/set-api/business-account/use-cases/name-who-paid)). Next step uses:submitted,senderState`.
In SET Console
- In the demo console, open Merchant View › Workflows › Take stablecoin, be paid in your currency. Fill in Your account (customer), Stablecoin (
usdcoreurc), Network and Your bank account, then Review and Confirm. The receipt shows the Cash-Out Address and Address. The signed-in console opens the same workflow. It opens the address withPOST /v1/cash_out_addressesagainst a bank account already linked, not withPOST /v1/payment_setups. - Registering the return wallet: Console: not available. Use the API call.
- Following payments: Console: not available. Use the API call. Merchant View has no Cash-Out payments list.
- Naming the sender of a payment: Console: not available. Use the API call.
Signed in, the API Builder in the console's top bar sends any of the calls above as you, within your role.
Check it worked
payTo.addressis in the201answer of step 2, andGET /v1/cash_out_addresses/{id}reads the address with itsstate.- A payment:
GET /v1/cash_out_payments/{id}showspaidToBank: trueandsenderState: "submitted". - Webhook:
cash_out_payment.payment_processedwhen the provider has paid your bank (acash_out_payment.<state>event is sent for every state). See Webhooks and events. - On staging,
POST /v1/sandbox/cash_out_paymentswith{ "cashOutAddress": "…", "amount": "250.00" }simulates a payment to the address.
If it fails
400 return_address_required: no return wallet is registered and none was sent; do step 1, or sendreturnAddress.400 return_address_invalid: the return address is not one for this chain.400 bank_account_required:bankAccountis missing; send the details or a linked bank account's id.404 bank_account_unknown: the bank account id is not one of your customer's.400 field_not_used: a field this way does not take, such ascurrency,assetoraddress.400 chain_invalid,400 stablecoin_invalid,400 rail_invalid,400 currency_invalid: a value outside the lists above.400 route_not_supported: the provider lists no route for that stablecoin, chain and rail.404 customer_unknown: thecustomeris not your business's id.409 verification_incomplete: the provider has not verified your business yet.404 cash_out_payment_unknown: no such payment for this key.400 sender_type_invalid,400 sender_invalid: the sender needs a type, a name and an alpha-3 country.
A failed setup step answers with step and the ids already created. All codes: Errors.
Related
- Set up one way to get paid
- Name who paid a Cash-Out Address
- Name who paid you without writing code (UC-B-05)
- Invoice a customer, accept bank, USDC or card, match the payment, export to your ledger (UC-B-02)
- Travel Rule data
- Idempotency
- All use cases
Changes
- 2026-11-18: SET Docs lead with the SET Crypto API Suite, then the SET API, then SET Direct Deposit.
- 2026-11-18: In Console: the signed-in console opens the workflows its contract test proves.
- 2026-11-16: Every use case step by step, by API and in the console.
- 2026-11-16: The modernized API Reference, the sandbox-key form, Direct Deposit without a revenue share.