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

Keep a balance and pay suppliers from it, with a second approver (UC-B-03)

Status: current as of 2026-11-18.

Who this is for

A business with a business account that keeps a USDC balance and pays its suppliers and contractors from it. Each payout waits until a second person approves it, and only then is checked against the balance and sent.

Before you start

  • Account: a business account on the SET API.
  • Keys and scopes: one key with read and write asks for payouts; a second key with approve (and read) approves them. A key cannot approve its own request, and SET's operator cannot approve. Send each key as Authorization: Bearer set_test_… or set_live_….
  • Your business's customer id (cus_…), verified by SET's provider.
  • Switch: custodial wallets must be on for the deployment (otherwise 503 custodial_wallets_disabled).
  • Each supplier's details: business or person, name, country (ISO 3166-1 alpha-3), and a bank account in its own currency or a wallet address.

By API

  1. Open your wallet, held in custody by SET's provider, on Base, Ethereum or Solana. POST /v1/wallets · Header: Idempotency-Key ``json { "customer": "cus_…", "chain": "base" } ` Next step uses: id, address, chain`.
  1. Fund it. Way balance gives bank details whose payments arrive as USDC in your wallet on that chain (the wallet is reused if it exists). You can also send USDC to the wallet's address. POST /v1/payment_setups · Header: Idempotency-Key ``json { "customer": "cus_…", "way": "balance", "currency": "usd", "chain": "base" } ` Next step uses: payTo.depositInstructions (give these to whoever funds you), payTo.paysInto.wallet, wallet.id`.
  1. Add each supplier once. A wallet supplier: POST /v1/recipients · Header: Idempotency-Key ``json { "customer": "cus_…", "party": { "type": "business", "name": "…", "address": { "country": "…" } }, "destination": { "kind": "wallet", "chain": "base", "address": "0x…" } } ` A bank supplier is "destination": { "kind": "bank", "currency": "eur", "iban": "…" } (or usd with routingNumber and accountNumber, gbp with sortCode and accountNumber). externalId makes a repeat return the same recipient. The supplier's details are sealed at rest. Next step uses: id (rcp_…`).
  1. Ask for the payout. With approval: "required" the answer is 202 with state: "pending_approval", and nothing is sent yet. A payout that waits takes no reference. POST /v1/payouts · Header: Idempotency-Key ``json { "wallet": "wal_…", "recipient": "rcp_…", "amount": "250.00", "approval": "required" } ` Next step uses: id (po_…), state`.
  1. Approve with the second key, or reject. On approval a payout due now is checked against the wallet's balance and sent. POST /v1/payouts/{id}/approve or POST /v1/payouts/{id}/reject · Header: Idempotency-Key · Key: the approver key ``json {} ` Next step uses: state. The asking key can withdraw a waiting payout with [POST /v1/payouts/{id}/cancel`](/docs/set-api/cancel-payout).
  1. Many at once. Up to 100 items from one wallet; the wallet must hold the total, and a bad item is named by its index with nothing sent. POST /v1/payout_batches · Header: Idempotency-Key ``json { "wallet": "wal_…", "items": [ { "recipient": "rcp_…", "amount": "250.00" }, { "recipient": "rcp_…", "amount": "100.00" } ] } ` Next step uses: id; read it with [GET /v1/payout_batches/{id}`](/docs/set-api/get-payout-batch).

After SET's fee, at least 1.00 must reach each recipient. SET may set limits per key and per recipient: read them with GET /v1/payout_limits.

In SET Console

  1. Opening the wallet: Console: not available. Use the API call.
  2. Funding it (way balance): Console: not available. Use the API call.
  3. and 4. In the demo console, open Merchant View › Workflows › Pay a supplier from your balance. Fill in Your account (customer), Pay from wallet, Supplier's name, Supplier's country (ISO, 3 letters), Supplier's network, Supplier's address, Amount (USDC) and Reference, then Review and Confirm. The receipt shows Recipient, Payout and its state. The signed-in console opens the same workflow.
  4. In SET Console, open Merchant View › Balance and payouts. Under Payouts waiting for approval, press Approve or Reject on the payout. Only an admin or finance member can decide, and the person who asked for a payout cannot approve it.
  5. Batches: 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

  • GET /v1/payouts/{id} shows the payout's state; GET /v1/payouts?state=pending_approval lists what still waits.
  • GET /v1/wallets/{id} shows balances read from the provider now.
  • In SET Console: Merchant View › Balance and payouts › Payouts and Recipients; Overview lists payouts waiting for approval or held.
  • Webhooks: payout.pending_approval, payout.approved or payout.rejected, then payout.<state> as it moves (for example payout.payment_processed); payout.pending_review if SET's checks hold it, then payout.released or payout.refused; payout_batch.created for a batch. See Webhooks and events.

If it fails

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.