Pay US contractors by email at an exact net amount, from the same key (UC-A-07)
Status: current as of 2026-11-16.
Who this is for
A platform that already uses the SET API and wants to pay US contractors whose only known detail is an email address, each an exact amount, each job once. When you finish, each job is reserved under your own reference, paid from your own wallet, and marked paid, and a retry can never pay it twice.
Before you start
- Account: a SET API platform account, on the SET API plan.
- Key: your SET API key with the
direct_depositscope, sent asAuthorization: Bearer …on/api/partner/*(One key for the SET API and Direct Deposit). The Direct Deposit OpenAPI document names no other scope for these calls. - Switch: SET turns Payable Email on for your platform (
403 payable_email_offuntil it does). - What must exist: a wallet you pay from, registered with SET (Sender wallets); a payment to a wallet SET created is accepted only from one of your registered wallets.
By API
- Ask where to pay this person.
directanswers their own Cash-Out Address;claimablea wallet SET created that only their email can open;setup_required,invitedandbelow_minimumare not payable yet, so resolve them again later.POST /api/partner/payees·Idempotency-Key``json { "email": "…", "chain": "base", "amountUsdc": "500.00" }`The next step uses:payeeId,status,address,destination`.
- For a
directpayee, ask what to send so the bank receives the net you promised. For aclaimablepayee, the wallet receives exactly what you send.GET /api/partner/quote?netUsd=500.00&chain=base&address=0x…The next step uses:amountUsdc.
- Reserve the job under your reference. A second intent for the same reference is refused with the first one, so a retry never pays twice.
POST /api/partner/payout_intents·Idempotency-Key``json { "reference": "…", "amountUsdc": "500.00", "chain": "base", "payeeId": "pye_…" }`The next step uses:id,address,state(open`).
- Pay
addressfrom your registered wallet. For a payment into a wallet SET created, report the transaction; a payment to a Cash-Out Address is tracked from the chain.POST /api/partner/payments·Idempotency-Key``json { "payeeId": "pye_…", "chain": "base", "txHash": "0x…" }`The next step uses:payment.paymentId,payment.state`.
- Mark the job paid by setting your reference on the transaction; the open intent with that reference becomes paid.
POST /api/partner/references·Idempotency-Key``json { "chain": "base", "txHash": "0x…", "reference": "…" }`The answer to check:reference,txHash`.
In SET Console
These workflows are in Deposit View, which the console shows where the deployment has Direct Deposit on.
- In Deposit View, open Workflows and choose Pay someone by email. Fill in Payee's email, Amount (USDC) and Network, then Review and Confirm. The receipt shows the payee, its status and Pay this address.
- Ask what to send for an exact net. Console: not available. Use the API call.
- Choose Pay an exact amount once: Your reference, Amount (USDC), Payee's address and Network, then Review and Confirm. It reserves by address, so it suits a
directpayee; for aclaimablepayee reserved bypayeeId, use the API call. - Report a payment into a wallet SET created. Console: not available. Use the API call.
- Choose Put your reference on a payout: Transaction hash, Your reference and Network, then Review and Confirm.
In the demo console, Platform View also has Pay a contractor by email; it uses a different call (POST /v1/payable_emails) and is not in the signed-in console.
Check it worked
GET /api/partner/payout_intents?reference=…:stateispaid, withtxHashandpaidAt.GET /api/partner/payments?payeeId=pye_…: each reported payment'sstate(pending_chain,in_wallet,claimed,at_bankorfailed).- In Deposit View, Payouts shows Payments by email this month.
- Webhooks:
payout_intent.paid;payable_payment.in_wallet,payable_payment.claimedandpayable_payment.at_bank. Events from these calls carryapi: "direct_deposit", whichever key sent them.
If it fails
403 payable_email_off: SET has not turned Payable Email on for your platform.503 payable_email_disabled: it is off for the deployment.409 claim_needs_base: a new payee's wallet is created on Base; sendchain: "base".409 payee_not_payable,422 below_minimum: the payee is not payable yet, or the amount is under the minimum.409 already_intended,409 already_paid: this reference already has an intent; the answer carries the first one.409 sender_unregistered: the payment did not come from one of your registered wallets.409 amount_out_of_range: a Payable Email payment must be at least 2.00 USDC.409 payment_mismatch,409 tx_already_reported: the transaction does not match the payee, or was already reported.400 reference_invalid: a reference is 1 to 64 visible ASCII characters, with no names or emails.400 amount_invalid,400 address_invalid,404 address_unknown: the quote's inputs.403 merchant_no_direct_deposit: a business-account key cannot open the Direct Deposit API.401 partner_key_invalid,403 scope_missing,403 ip_not_allowed,429 rate_limited: the key, itsdirect_depositscope, its address list, or the rate limit.
All codes: Errors. Retrying a POST safely: Idempotency.
Related
- Paying each reference once
- Paying a net amount
- One year-end tax and audit pack
- The email goes to the wallet provider only; SET neither stores nor logs it. The bank leg is for US payees, except residents of New York.
- All use cases
Changes
- 2026-11-16: Every use case step by step, by API and in the console.