Agents: fetch this page as plain markdown at
https://docs.usecleff.com/concepts/environments.md.Choose an environment
Every Business operates in two parallel environments at once:- Sandbox: no money moves and no fees accrue. Open to every Business once
its email is verified and its business profile is submitted. Every sandbox payout stops at
disbursed. See Know the limits of sandbox. - Production: money moves. Open once your Business’s verification (KYB) is approved. See Go live.
Select the environment with the credential
There is no environment parameter anywhere in the API. The environment comes from the credential making the call:Test the whole payout loop in sandbox
Sandbox runs the complete payout loop: funding, Beneficiary onboarding, approval, dispatch, disbursement and webhooks. Two things work differently by design:- Your balance is test money. See Use your sandbox test money.
- Beneficiary-facing emails carry a sandbox banner.
Use your sandbox test money
Once you create your account and submit your business profile, your sandbox has $1,000,000.00 USD of test money. Sandbox payouts never draw it down. Read the balance withGET /v1/funding/account:
available_balance_minor is 100000000
because amounts are in
minor units.
Set a different balance with
POST /v1/business/funding-account/sandbox-balance,
using a key with the business_admin role:
0 brings SANDBOX_WALLET_UNFUNDED back: sandbox
payout creation is refused until you set a balance above zero again. Sent
payouts never draw the sandbox balance down.
The top-up works only in sandbox: a production key is refused with
SANDBOX_ONLY, and a production balance changes only through
real deposits to your Cleff Account.
Know the limits of sandbox
Some production behaviour has no sandbox equivalent. Plan to see it for the first time in production, with a small payout:Next steps
Authentication
Get an API key and send it with every request.
Idempotency
Retry a request safely after a timeout or a
5xx.Errors
What each error code means and how to fix it.
Webhooks
Receive signed payout and beneficiary events instead of polling.