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

Pay a contractor or a refund to an email address (UC-B-07)

Status: current as of 2026-11-18.

Who this is for

A business with a business account that pays a contractor, or sends a refund, to someone it knows only by email, from its own USDC balance and without asking for bank details. SET answers where that email can be paid, and each payout goes to the address that is current when it is paid.

Before you start

  • Account: a business account on the SET API.
  • Switch: Payable Email must be switched on for your account by SET (otherwise 403 payable_email_off), and for the deployment (otherwise 503 payable_email_disabled). Custodial wallets must be on for the deployment.
  • Key scopes: write (resolve the email, add the recipient, pay) and read (follow it); a second key with approve if a second person approves each payout. Send the key as Authorization: Bearer set_test_… or set_live_….
  • Your business's customer id (cus_…), verified by SET's provider.
  • A funded wallet: Keep a balance and pay suppliers from it (UC-B-03), steps 1 and 2.

By API

  1. See where the person can be paid. chain defaults to base. POST /v1/payable_emails · Header: Idempotency-Key ``json { "email": "…", "chain": "base" } ` Next step uses: payeeId, status, address, destination. status is direct (their Cash-Out Address, paid to their bank, or a wallet they chose; destination says bank or wallet), claimable (a new wallet only that email can open, on Base), setup_required or invited (no address yet: 202`).
  1. Add them once as a recipient. POST /v1/recipients · Header: Idempotency-Key ``json { "customer": "cus_…", "party": { "type": "individual", "name": "…", "address": { "country": "…" } }, "destination": { "kind": "email", "email": "…", "chain": "base" } } ` Next step uses: id (rcp_…), destination.payeeId, payable`.
  1. Pay. Add "approval": "required" for a second key to approve it (POST /v1/payouts/{id}/approve). SET pays the address that is current at the time of the payout. POST /v1/payouts · Header: Idempotency-Key ``json { "wallet": "wal_…", "recipient": "rcp_…", "amount": "250.00" } ` Next step uses: id (po_…), state`.
  1. Follow it. The payout with GET /v1/payouts/{id}, and the person's status now with GET /v1/payable_emails/{id} (the payeeId from step 1).

After SET's fee, at least 1.00 must reach the person, and the wallet must hold the amount. A new payee is paid on Base, and a daily cap applies to the new wallets SET creates for your account. The email goes to the sign-in provider only; SET does not store it. The person's details on the recipient are sealed at rest.

In SET Console

  1. In the demo console, open Merchant View › Workflows › Pay or refund by email. Fill in Email and Network (base or ethereum), then Review and Confirm. The receipt shows Payable email and Pay this address. The signed-in console opens the same workflow.
  2. Adding the email as a recipient: Console: not available. Use the API call.
  3. Paying it: Console: not available. Use the API call. With approval: "required", approve it in SET Console under Merchant View › Balance and payouts › Payouts waiting for approval with Approve (admin or finance; not the person who asked).
  4. Merchant View › Balance and payouts › Payouts and Recipients list the payout and the recipient.

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}: the payout's state.
  • GET /v1/payable_emails/{id}: status and address now.
  • In SET Console: Merchant View › Balance and payouts › Payouts.
  • Webhooks: recipient.created; payout.pending_approval and payout.approved with approval; then payout.<state>, for example payout.payment_processed. 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.