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

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_deposit scope, sent as Authorization: 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_off until 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

  1. Ask where to pay this person. direct answers their own Cash-Out Address; claimable a wallet SET created that only their email can open; setup_required, invited and below_minimum are 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`.
  1. For a direct payee, ask what to send so the bank receives the net you promised. For a claimable payee, the wallet receives exactly what you send. GET /api/partner/quote?netUsd=500.00&chain=base&address=0x… The next step uses: amountUsdc.
  1. 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`).
  1. Pay address from 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`.
  1. 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.

  1. 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.
  2. Ask what to send for an exact net. Console: not available. Use the API call.
  3. 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 direct payee; for a claimable payee reserved by payeeId, use the API call.
  4. Report a payment into a wallet SET created. Console: not available. Use the API call.
  5. 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=…: state is paid, with txHash and paidAt.
  • GET /api/partner/payments?payeeId=pye_…: each reported payment's state (pending_chain, in_wallet, claimed, at_bank or failed).
  • In Deposit View, Payouts shows Payments by email this month.
  • Webhooks: payout_intent.paid; payable_payment.in_wallet, payable_payment.claimed and payable_payment.at_bank. Events from these calls carry api: "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; send chain: "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, its direct_deposit scope, its address list, or the rate limit.

All codes: Errors. Retrying a POST safely: Idempotency.

Changes

  • 2026-11-16: Every use case step by step, by API and in the console.