Sandbox vs Production
Yona uses a single base URL. Your API key prefix determines whether you’re in sandbox or production.
Base URL
https://gateway.useyona.com
How it works
| Sandbox | Production | |
|---|---|---|
| Key prefix | sk_test_* | sk_live_* |
| Tax submissions | Simulated (mock tax authority) | Real (irreversible) |
| Data isolation | Separate from production | Separate from sandbox |
| Plan required | Free plan works | Paid plan required |
Sandbox behavior
In sandbox mode (sk_test_* keys):
- Invoices are NOT submitted to the real tax authority
- A mock tax authority service simulates submission responses
- All operations work identically to production except no real tax submissions
- Sandbox data is isolated from production data
- Free plan restricts to sandbox only (
liveApiAccess: false)
Switching environments
With the SDK, environment is auto-detected from the key prefix:
Sandbox
const sandbox = new EInvoice({ apiKey: 'sk_test_your_key_here' });Production
const production = new EInvoice({ apiKey: 'sk_live_your_key_here' });With raw HTTP, use the same base URL — the key determines environment:
Sandbox request
Production request
When to go live
See the Going Live Checklist for a complete pre-launch checklist.
Last updated on