Sandbox & Test Mode
Stableyard uses key prefixes to determine live vs. test mode. Both modes hit the same base URL.Key Prefixes
| Mode | Public Key |
|---|---|
| Live | sy_pub_* |
| Test | sy_test_pub_* |
How It Works
- Test keys create test sessions, test webhooks, and test ledger entries
- Live keys create real sessions with real money
- Data is isolated — test sessions don’t appear in live queries and vice versa
livemodefield in responses tells you which mode you’re in
Auto-Settlement in Test Mode
Test sessions are automatically settled after a few seconds — no real blockchain transactions needed. This lets you test the full lifecycle (open → pending → routing → settled) without funding a wallet.What to Test
- Session creation — verify your payload, get back session objects
- Webhook delivery — register a test webhook, create sessions, verify events arrive
- Quote flow — test the two-step quote → commit flow
- Error handling — test with invalid parameters, expired sessions, etc.
- Idempotency — send the same
Idempotency-Keytwice, verify same response