Sandbox
The sandbox lets you build your integration without touching real records or your wallet. It uses the same base URL and the same endpoints as live. The only difference is the key.
https://api.prembly.com| Sandbox | Live | |
|---|---|---|
| Secret key | test_sk_… | live_sk_… |
| Data returned | A fixed sample response for each endpoint | Real results from the source |
| Billing | Never charged | Charged per call. See When you're charged |
| Organisation verification | Not needed | Required |
How sandbox responses work
Each verification endpoint returns the same sample payload every time, whatever you send. It has the same shape as a live response, so you can build your parsing against it, but the values are not looked up. The message field tells you the response is test data.
The request is still validated. A malformed request returns response_code 05 in the sandbox, just as it would live.
Unverified organisations
Until your organisation is verified, live keys are refused with a 403. Use your sandbox key in the meantime. Once you're verified, swap the key; nothing else in your code changes.
Going live
- Replace
test_sk_with yourlive_sk_key on your server. - Fund your wallet. Live calls fail with
response_code04when the balance is too low. - Check that you handle every response code. Sandbox data almost always returns
00, so failure paths are easy to miss.