Developers / Docs / Sandbox & test data
Sandbox & test data
Test everything, including failures, before a real customer is involved.
Illustrative. The Partner API is a proposal. Names, fields and numbers on this page show the intended shape; the final contract will be published as an OpenAPI file with the sandbox.
| Sandbox | Live | |
|---|---|---|
| Address | sandbox-api.[domain]/v1 | api.[domain]/v1 |
| Keys | ck_test_…, instant | ck_live_…, after review |
| Data | Made-up customers, outlets, ProCos | Real customers and outlets |
| Points | Test points with no value | Real points, real liability |
| Limits | Generous and free | By plan |
| Magic values | Amount ending .99 declines; code TEST-EXPIRED expires | None |
| Webhooks | Tester page, replay any event | Signed, retried |
| Rules | Same code path and checks as live | Same code path and checks |
Test data
The sandbox ships with test ProCos, outlets and campaigns. Use Reset in the partner portal to put everything back in one click.
Magic values
| You send | You get |
|---|---|
| Amount ending .99 (for example 54999) | A decline, to test your failure screen |
| Code TEST-EXPIRED | An expired-code answer |
| Code TEST-USED | An already-used answer |
| A bill number you already sent, with different data | 409 |
The set of magic values will grow; the list here is the starting set.
