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
SandboxLive
Secret keytest_sk_…live_sk_…
Data returnedA fixed sample response for each endpointReal results from the source
BillingNever chargedCharged per call. See When you're charged
Organisation verificationNot neededRequired

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

  1. Replace test_sk_ with your live_sk_ key on your server.
  2. Fund your wallet. Live calls fail with response_code 04 when the balance is too low.
  3. Check that you handle every response code. Sandbox data almost always returns 00, so failure paths are easy to miss.

On this page

Prembly Slack Community

Join our developer Slack channel for real-time integration support, engineering updates, and direct Q&A with the Prembly team.

Join Slack Channel