Use this file to discover all available pages before exploring further.
This walkthrough does the full “pay a payroll” flow: calculate an employee’s
net salary, then create a payout for that amount and watch it settle.
Sandbox payouts are handled by an in-process mock provider — no real funds
are moved. Every response carries mock: true and the X-Clevis-Mock: true
header.
Pass net_salary straight through as the amount. Setting processing.step_seconds: 0
runs the mock state machine synchronously so the response already has
status: "PAID" — exactly what you want in scripts and tests.
Without processing.step_seconds: 0, the response would come back with
status: "PENDING" and advance to PROCESSING then PAID on a 2-second
timer (configurable). Use GET /v1/payouts/{id} to poll, or subscribe to
webhooks for push notifications.
The response comes back with status: "REJECTED", status_code: "301", and
status_detail ending in "(mock trigger).". The full menu of triggers is on
the Magic triggers page.