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

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) and read (following payments). Send the key as Authorization: Bearer set_test_… (staging) or set_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

  1. Register your return wallet, once. Skip this if you send returnAddress in step 2. POST /v1/return_addresses · Header: Idempotency-Key ``json { "evm": "0x…" } `` Next step uses: nothing; later setups use it by default.
  1. 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": "…" } } } ` stablecoin is usdc (default) or eurc; bankAccount.currency decides what your bank receives and the default rail. Do not send currency on this way: it is refused. Next step uses: payTo.address, payTo.chain, payTo.currency, payTo.minimumPayout, payTo.cashOutAddress, payTo.paysTo`.
  1. Publish the address. Put payTo.address (on payTo.chain, in payTo.currency) on your invoices, with payTo.minimumPayout, the provider's minimum for this route. No call.
  1. Follow each payment. GET /v1/cash_out_payments?cashOutAddress=…, or one payment with GET /v1/cash_out_payments/{id}. Next step uses: id, state, senderState, paidToBank (true once the provider reports the bank paid), paidAmount, payoutCurrency, railReference.
  1. 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": "…" } } ` country is ISO 3166-1 alpha-3. Add "remember": true to 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

  1. In the demo console, open Merchant View › Workflows › Take stablecoin, be paid in your currency. Fill in Your account (customer), Stablecoin (usdc or eurc), 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 with POST /v1/cash_out_addresses against a bank account already linked, not with POST /v1/payment_setups.
  2. Registering the return wallet: Console: not available. Use the API call.
  3. Following payments: Console: not available. Use the API call. Merchant View has no Cash-Out payments list.
  4. 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

If it fails

A failed setup step answers with step and the ids already created. All codes: Errors.

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.