Quickstart
Buy and install a test eSIM in the sandbox in five minutes, with copy-paste requests.
export BURJ_TOKEN=… and every snippet picks it up.1. Log in to the sandbox
/login sends a 6-digit code by SMS or WhatsApp to your registered phone. loginType: "test" picks the sandbox. Then /enter exchanges the code for your sandbox accessToken.
export BURJ_TOKEN="…accessToken from the answer…"Already have a token? Copy it from Developers in the partner dashboard with the switch on Sandbox.
2. Give yourself test money
Sandbox accounts start empty. /sandbox/balance sets the test balance to any amount up to 1,000,000 USD. It’s recorded as an ADJUSTMENT, so statements still add up.
3. Pick a package
/{countryId}/packages lists the packages of a destination with your price in USD (and priceSAR for display). Destination ids come from /countries. Here, Türkiye. Note a package id, such as esim-tr-10gb-30d.
4. Buy it and get the install details
/order/create pays from the balance and returns one entry per eSIM in data.esims, each with status 100 CREATED. Send a fresh Idempotency-Key per order so a retry never buys twice. externalReference is your own order number.
Then /order/activate with the eSIM’s id prepares it and returns its profile: QR code, LPA code and one-tap install links. The status becomes 200 READY. This is what you give the traveller.
5. Watch it live with webhooks
Point /webhook/configuration at an HTTPS endpoint of yours (a request-bin service works for a first look). The answer includes your signing secret: keep it.
Then move the test eSIM through its life with /sandbox/esim/simulate: installed, activated, usage (with usagePercent) and expired. Each step updates the eSIM and sends the matching webhook, exactly as a real one would.
What's next
- Verify webhook signatures before trusting an event.
- Show install instructions the way travellers succeed with them.
- Test the failures: provider errors, partial orders, low balance.
- When it all works, log in with
loginType: "prod"and swap the token. Nothing else changes.