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 (otherwise503 payable_email_disabled). Custodial wallets must be on for the deployment. - Key scopes:
write(resolve the email, add the recipient, pay) andread(follow it); a second key withapproveif a second person approves each payout. Send the key asAuthorization: Bearer set_test_…orset_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
- See where the person can be paid.
chaindefaults tobase.POST /v1/payable_emails· Header:Idempotency-Key``json { "email": "…", "chain": "base" }`Next step uses:payeeId,status,address,destination.statusisdirect(their Cash-Out Address, paid to their bank, or a wallet they chose;destinationsaysbankorwallet),claimable(a new wallet only that email can open, on Base),setup_requiredorinvited(no address yet:202`).
- 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`.
- 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`.
- Follow it. The payout with
GET /v1/payouts/{id}, and the person's status now withGET /v1/payable_emails/{id}(thepayeeIdfrom 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
- In the demo console, open Merchant View › Workflows › Pay or refund by email. Fill in Email and Network (
baseorethereum), then Review and Confirm. The receipt shows Payable email and Pay this address. The signed-in console opens the same workflow. - Adding the email as a recipient: Console: not available. Use the API call.
- 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). - 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'sstate.GET /v1/payable_emails/{id}:statusandaddressnow.- In SET Console: Merchant View › Balance and payouts › Payouts.
- Webhooks:
recipient.created;payout.pending_approvalandpayout.approvedwith approval; thenpayout.<state>, for examplepayout.payment_processed. See Webhooks and events.
If it fails
403 payable_email_off: SET has not switched Payable Email on for your account.503 payable_email_disabled: not on for the deployment.400 email_invalid: send the person's email address.400 chain_invalid: a chain Payable Email does not pay on.409 claim_needs_base: a new payee is paid on Base.429 payee_cap_reached: today's limit on new payees is reached.502 wallet_provider_unavailable: the payee could not be looked up; try again.404 payee_unknown: no such payee for this account.400 party_invalid,400 destination_invalid: the recipient's details.409 payee_not_ready: the person isinvitedorsetup_required; pay them once they have a Cash-Out Address, or on Base before they sign in.400 amount_too_small,409 balance_too_low,409 limit_exceeded.403 scope_missing,409 approver_is_requester: approving with a key that lacksapprove, or the same key that asked.
All codes: Errors.
Related
- Pay an email address
- Retrieve a payee
- Create a recipient
- Pay a recipient
- Approve a payout
- Keep a balance and pay suppliers from it, with a second approver (UC-B-03)
- 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.