Test and live mode
Every object has a livemode field. Test and live never see each other: an id from one mode answers 404 resource_missing in the other.
How the mode is chosen#
| Credential | How the mode is chosen | If it does not match |
|---|---|---|
| API key | The key's own mode: htst_ is test, hlive_ is live. X-Holdyn-Mode is optional. | A different X-Holdyn-Mode header gives 400 mode_mismatch. |
| Dashboard session | The X-Holdyn-Mode header: test or live. The dashboard puts the mode in the URL (/dashboard/test/…) and sends the header for you. Absent means test. | live while the account is not live-enabled gives 403 live_not_enabled with missing. Any other value gives 400 parameter_invalid. |
| Participant portal | The mode of the link the party opened. | Not applicable. |
What is shared and what is separate#
Objects such as mandates, parties, collections, releases, events, webhook endpoints and API keys belong to one mode. Some configuration is the same in both modes because it describes the tenant: the team, settings, templates, presets and compliance acknowledgements. Those endpoints validate the header but do not filter by it.
The record is one chain per mode. The live chain starts at signup and also carries tenant-level history, so members can read it before live mode is enabled.
Test mode#
- Uses Stripe's test environment through your test connection. No real money moves.
- Emails to parties reach only your active team members and verified test recipients. Everything else is captured and can be read with
GET /notifications?status=captured_test. Test emails carry "[Test]" in the subject. - The test helpers exist only here. In live they answer
404 unrecognized_request_url. See Testing. - Receipts issued in test mode verify publicly as a "Test record".
Live mode#
Live mode opens when your account is approved and the live requirements are met: a verified live Stripe connection, payout protection, two-step verification for the owner and so on. See Going live. Sensitive live actions need a recent two-step verification (403 step_up_required tells the client to ask for a code).
