Pay the same people on a schedule (UC-B-04)
Status: current as of 2026-11-18.
Who this is for
A business with a business account that pays a retainer, rent or a contractor's fixed fee on the same day each period, from its own USDC balance. SET makes one ordinary payout per run, with the same limits, approval and checks as a single payout.
Before you start
- Account: a business account on the SET API.
- Key scopes:
writeto create and stop a schedule,readto follow it; anapprovekey (a second key) if each run needs approval. Each run is made under the key that created the schedule. Send the key asAuthorization: Bearer set_test_…orset_live_…. - A funded wallet and a recipient: Keep a balance and pay suppliers from it (UC-B-03), steps 1 to 3.
- Switch: custodial wallets must be on for the deployment (otherwise
503 custodial_wallets_disabled).
By API
- Create the schedule.
everyisday,week,month,quarteroryear.startAt(optional) is an ISO 8601 time with its offset, in the future and within a year; leave it out to start now.count(optional) is 1 to 1000 payouts; leave it out to run until stopped.approval: "required"holds each run for a second key. A scheduled payout takes noreference.POST /v1/payout_schedules· Header:Idempotency-Key``json { "wallet": "wal_…", "recipient": "rcp_…", "amount": "300.00", "every": "month", "startAt": "…", "count": 12, "approval": "required" }`SET checks the recipient, amount and limits now.externalId(optional) makes a repeat return the same schedule. Next step uses:id(pos_…),nextRunAt,active`.
- Follow each run. Each run is a payout whose
externalIdis<schedule id>:<n>. The schedule readssent,lastPayout,lastProblemandnextRunAt.GET /v1/payout_schedules/{id}, and the runs withGET /v1/payouts. Next step uses:lastPayout; with approval, approve it as in UC-B-03 step 5 (POST /v1/payouts/{id}/approvewith the approver key).
- Stop it. Payouts already made are not touched.
DELETE /v1/payout_schedules/{id}Next step uses:active(false).
- One payout later, once. For a single future payout, send
scheduleAton a payout instead: an ISO 8601 time with its offset, within a year.POST /v1/payouts· Header:Idempotency-Key``json { "wallet": "wal_…", "recipient": "rcp_…", "amount": "300.00", "scheduleAt": "…" }`It answers202withstate: "scheduled". Cancel it while it waits with [POST /v1/payouts/{id}/cancel](/docs/set-api/cancel-payout) (body{}, headerIdempotency-Key`).
How runs behave: the wallet's balance is checked when each run is sent, and a run that cannot be paid is skipped with its reason. A run missed while SET's scheduler was down is skipped, never sent twice. A revoked key or a disabled recipient stops the schedule.
In SET Console
- In the demo console, open Merchant View › Workflows › Pay the same people on a schedule. Fill in Pay from wallet, Recipient, Amount (USDC), How often (
week,month,quarteroryear) and Start date, then Review and Confirm. The workflow always asks for approval of each payout. The signed-in console opens the same workflow. - In SET Console, Merchant View › Balance and payouts › Schedules lists your schedules; approve each waiting run under Payouts waiting for approval with Approve (admin or finance; not the person who asked).
- Stopping a schedule: Console: not available. Use the API call.
- A single payout with
scheduleAt, and canceling it: Console: not available. Use the API call.
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/payout_schedules/{id}:active,nextRunAt,sent,lastPayout,lastProblem.GET /v1/payout_scheduleslists them all.- In SET Console: Merchant View › Balance and payouts › Schedules and Payouts.
- Webhooks:
payout_schedule.created,payout_schedule.skipped(a run made no payout; seeproblem),payout_schedule.completed(its last payout was made),payout_schedule.canceled; each run's ownpayout.*events, andpayout.scheduledorpayout.canceledfor a single later payout. See Webhooks and events.
If it fails
400 every_invalid,400 start_at_invalid,400 count_invalid,400 approval_invalid,400 external_id_invalid: a field outside the rules above.400 reference_not_supported: a schedule or a later payout takes no reference.400 schedule_at_invalid:scheduleAtis not a future ISO time with offset within a year.404 wallet_unknown,404 recipient_unknown,409 recipient_disabled.400 amount_invalid,400 amount_too_small: at least 1.00 must reach the recipient after SET's fee.409 limit_exceeded: the amount passes a key or recipient limit (GET /v1/payout_limits).503 custodial_wallets_disabled,403 operator_cannot_pay_out: payouts are made with your own key.404 payout_schedule_unknown: no such schedule for this key's account.404 payout_unknown,409 payout_not_waiting,409 payout_moved: canceling a payout that is no longer waiting.
All codes: Errors.
Related
- Create a payout schedule
- Stop a payout schedule
- Payout controls
- 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.