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

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 scopes write (every POST below) and read (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

  1. For EUR, request the merchant's sepa endorsement; for GBP, faster_payments. The answer is the endorsement's status, and in live mode a link for 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).
  1. 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": "…" } } ` ownershipVerifiedAt is the ISO 8601 time you verified the merchant controls the address. walletType is self_custodied, hosted or external. The same account can be opened with [POST /v1/virtual_accounts](/docs/set-api/create-virtual-account) and the same fields less way. The next step uses: payTo.depositInstructions, virtualAccount.id`.
  1. 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.
  1. 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

  1. Request a currency endorsement. Console: not available. Use the API call.
  2. 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.
  3. The account appears in the Merchants section's Virtual accounts panel.
  4. Name a deposit's payer. Console: not available. Use the API call.

Check it worked

  • GET /v1/deposits?virtualAccount=…: each deposit's state, received, txHash, and delivered (true once the chain agrees, live only).
  • In Platform View, Money in shows Bank deposits.
  • Webhooks: virtual_account.created, deposit.payment_processed (and deposit.<state> for every state), then deposit.delivered once the chain confirms.

If it fails

  • 400 endorsement_invalid: the endorsement is not one of base, 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: way wallet does not take bankAccount, settleTo, returnAddress, chain or reference.
  • 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.

Changes

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