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

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: write to create and stop a schedule, read to follow it; an approve key (a second key) if each run needs approval. Each run is made under the key that created the schedule. Send the key as Authorization: Bearer set_test_… or set_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

  1. Create the schedule. every is day, week, month, quarter or year. 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 no reference. 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`.
  1. Follow each run. Each run is a payout whose externalId is <schedule id>:<n>. The schedule reads sent, lastPayout, lastProblem and nextRunAt. GET /v1/payout_schedules/{id}, and the runs with GET /v1/payouts. Next step uses: lastPayout; with approval, approve it as in UC-B-03 step 5 (POST /v1/payouts/{id}/approve with the approver key).
  1. Stop it. Payouts already made are not touched. DELETE /v1/payout_schedules/{id} Next step uses: active (false).
  1. One payout later, once. For a single future payout, send scheduleAt on 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 answers 202 with state: "scheduled". Cancel it while it waits with [POST /v1/payouts/{id}/cancel](/docs/set-api/cancel-payout) (body {}, header Idempotency-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

  1. 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, quarter or year) and Start date, then Review and Confirm. The workflow always asks for approval of each payout. The signed-in console opens the same workflow.
  2. 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).
  3. Stopping a schedule: Console: not available. Use the API call.
  4. 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_schedules lists 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; see problem), payout_schedule.completed (its last payout was made), payout_schedule.canceled; each run's own payout.* events, and payout.scheduled or payout.canceled for a single later payout. See Webhooks and events.

If it fails

All codes: Errors.

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.