Pay a list of emails with one Safe transaction (UC-D-03)
Status: current as of 2026-11-17.
Who this is for
A platform paying hundreds or thousands of people by email in one run, from a Safe its own people sign for. SET resolves every email to an address, hands you one Safe Transaction Builder file for the whole list, and records the payments from the one transaction you report.
Before you start
- Account: a platform account (Payable Email on the Partner API is refused for a business account with
403 payable_email_merchant). - Plan: SET Direct Deposit, or the SET API on a platform account.
- Key: your partner key (
set_partner_…) withreadandwrite, or a SET API key with thedirect_depositandwritescopes. If batch approval is on for your account, the approver uses a different SET API key with theapproveanddirect_depositscopes; a partner key cannot approve. - Switch: SET turns Payable Email on for your account (
403 payable_email_offuntil then). - Must already exist: a Safe your own people control, on the network you pay on, with enough USDC for the list and SET's 0.75% on each payment into a wallet SET created.
- Fee: a payment into a wallet SET created for the person (
claimable) carries SET's 0.75%, added by you, the payer, so the person receives the full amount. A payment into a wallet the person chose carries no fee, and a payment to a Cash-Out Address has SET's 0.75% withheld once when it pays their bank.
By API
Send Authorization: Bearer <your key> on every call, and an Idempotency-Key on every POST.
- Ask for the text the Safe must approve. It is valid for one hour.
GET /api/partner/senders/message?chain=base&address=0x…
Response fields the next step uses: message, issuedAt.
- Have the Safe's owners sign
messagein the Safe app, then register the Safe. SET checks the approval with the Safe on chain (EIP-1271).
POST /api/partner/senders · Idempotency-Key: …
``json { "chain": "base", "address": "0x…", "issuedAt": "…", "signature": "0x…", "label": "Payout Safe" } ``
Response fields: proof (eip1271 for a Safe), screening, registered. Do this once.
- Start the batch with up to 20 emails. Each item takes an
amountand your ownreference.
POST /api/partner/payees/batch · Idempotency-Key: …
``json { "chain": "base", "items": [ { "email": "…", "amount": "50.00", "reference": "…" }, { "email": "…", "amount": "75.00", "reference": "…" } ] } ``
Response fields: id (pbt_…), summary (items, direct, claimable, notPayableYet, belowMinimum, errors), items[] (position, status, address, error), payTo[].
- Add the rest, up to 20 a call, one call after another. A batch holds up to 5,000 items.
POST /api/partner/payees/batch/{id}/items · Idempotency-Key: …
``json { "items": [ { "email": "…", "amount": "50.00", "reference": "…" } ] } ``
Response fields: the batch, as in step 3, with the new items numbered after the earlier ones.
- If batch approval is on for your account, someone other than who asked approves the batch. Until then it has no export and its transaction cannot be reported.
POST /api/partner/payees/batch/{id}/approve · Idempotency-Key: …, with the approver's key. No body.
Response fields: the batch, now with its payTo.
- Download the Safe file: one USDC transfer per payable item.
GET /api/partner/payees/batch/{id}?format=safe
?format=csv gives the same list as CSV (address, amount_usdc, reference, destination).
- Fund the Safe, import the file in the Safe app's Transaction Builder, then sign and execute it. This happens in the Safe; there is no SET call.
- Report the transaction once.
POST /api/partner/payments/batch · Idempotency-Key: …
``json { "chain": "base", "txHash": "0x…", "batchId": "pbt_…" } ``
Response fields: payments[] (paymentId, payeeId, state, reference), skipped[] (to, amountUsdc, reason). Payments into wallets SET created are recorded; payments to Cash-Out Addresses are listed under skipped and tracked from the chain.
How to read the answers:
- The file and
payTohold onlydirectandclaimableitems with an amount.invited,setup_requiredandbelow_minimumitems, and items with anerror, are left out. - A
referenceis 1 to 64 visible ASCII characters and must be unique within the call (400 reference_repeated). Use your own id, never a name or an email. - Each amount is at least 2 USDC; an item outside that answers
error: "amount_out_of_range". - Register a wallet your own people control, never an exchange's: a wallet belongs to one business at SET (
409 sender_taken). - The emails are not stored. Read the batch again before paying if time has passed: an answer can change.
In SET Console
- Register the Safe: Console: not available. Use the API call.
- In Deposit View, open Workflows, then Pay a list of emails in one transaction (admins only). Fill in One a line: email, amount (up to 20 lines) and Network (
baseorethereum), then Review and Confirm. The receipt shows Batch and Items, and Download CSV gives the list to pay. Or, in Developers and team, section Pay a list of emails (admins, with Payable Email on): type up to 20 lines ofemail, amount, referencein Emails, press Get addresses, then Download the list to pay. This form uses Base. - Add more than 20 emails to the batch: Console: not available. Use the API call.
- Approve the batch: Console: not available. Use the API call.
- Download the Safe file: Console: not available. Use the API call.
- Sign and execute in the Safe app, outside SET.
- Report the transaction: Console: not available. Use the API call.
Check it worked
GET /api/partner/payees/batch/{id}lists each item'spaymentswith theirstate.GET /api/partner/payments, and in Deposit View, Payouts, the panel Payments by email this month.- Events:
payable_payment.in_walletfor each recorded payment (treat it as paid), thenpayable_payment.claimedandpayable_payment.at_bank;payable_batch.approvedwhen a batch is approved.
If it fails
400 items_invalid:itemsis missing or empty.400 batch_too_large: more than 20 items in one call.400 reference_repeated: two items in the call share a reference.400 chain_invalid: the network is not one Payable Email pays on here; a multisend is reported only on a network where SET creates wallets.404 batch_unknown: no such batch for your account.409 batch_busy: another page was added at the same time; send this one again.409 batch_full: the batch would pass 5,000 items; start another.409 batch_not_approved: batch approval is on and the batch is not approved yet.409 batch_not_pending_approval,409 approver_is_requester,409 batch_moved: the batch is not waiting, the approver is who asked, or it changed meanwhile.400 format_invalid:formatis notcsvorsafe.400 tx_hash_invalid,409 payment_not_found,409 payment_failed,409 payment_mismatch,409 tx_already_reported,502 chain_unavailable: the transaction is malformed, not yet on chain, failed, moves no USDC, was reported for another account, or the chain could not be read.400 signature_expired,422 signature_not_from_wallet,409 sender_taken: the Safe registration failed (see Sender wallets).403 scope_missing: the key is read-only, or the approver's key lacksapprove.403 payable_email_off,503 payable_email_disabled: Payable Email is not on for your account, or for this deployment.400 idempotency_key_invalid,409 idempotency_key_in_progress,422 idempotency_key_reused: see Idempotency.
Every code is explained on Errors.
Related
- Batches of up to 5,000
- Recipe: pay from a Payout Safe
- Pay up to 20 emails at once
- Report a multisend
- Pay someone by email before they have a wallet (UC-D-02)
Changes
- 2026-11-17: SET's fee is 0.75% from 2026-11-17: charged once on each bank deposit and each exit to a bank, and added by the payer on a payout run to a wallet the person controls and on a Payable Email payment into a wallet SET created.
- 2026-11-16: Every use case step by step, by API and in the console.