Guides
End-to-end recipes for the things partners build most.
1. Sell an eSIM end to end
The usual shape of an integration, from your customer paying to the traveller holding an eSIM:
- Show packages. Cache
/countriesand/{countryId}/packagesfor a few hours; prices are in USD withpriceSARfor display. Or curate your own list with the favorites endpoints. - Take your customer's payment in your own checkout.
- Order with
/order/create: your booking number asexternalReference, and an Idempotency-Key saved with the booking. - Prepare each eSIM with
/order/activateand send the install details. - Follow it with webhooks: tell the traveller it's connected, warn at 80% data, offer a new package when it expires.
partial in the answer) delivered fewer eSIMs than asked and refunded the rest. Order the missing ones again with a new key.2. Show install instructions
/order/activate returns a profile with every way to install the eSIM. Offer them in this order:
| Field | Use it when |
|---|---|
iosQuickInstall | The traveller opens your message on the iPhone that will use the eSIM: one tap (iOS 17.4+). |
androidQuickInstall | Same, on Android phones that support it. |
qrCodeUrl | Your message is read on another screen; the phone scans the QR code. |
smdpAddress + activationCode | Manual entry, when scanning isn't possible. |
lpaCode | If you draw your own QR code: encode this string as it is. |
apnName, pin, puk | Support details; most phones set the APN automatically. |
- Tell travellers to install before leaving, on Wi-Fi, and to switch the eSIM on when they land.
- An eSIM profile can usually be installed only once: don't encourage deleting and re-adding it.
- Re-read the details any time with
/{orderId}/data.
3. Reconcile with externalReference
externalReference (up to 100 characters) is stored on every eSIM of the order and appears in eSIM lists, transactions, statements, CSV exports and webhooks. Use your booking or invoice number, and matching Burj to your books is a lookup instead of a puzzle:
- Find the eSIMs of a booking:
/orders/getwithexternalReference(exact match). - Match money: every order has a
transactionId, and/transactionslistsORDER,REFUND,TOPUP,CREDITandADJUSTMENTmovements with the balance after each. - Refunds (provider failures, partial orders, Burj refunds) are separate
REFUNDlines with the sameexternalReferenceand arelatedTransactionIdpointing to the order.
4. Monthly statement & CSV
/statement/months lists the months that have activity; /statement returns one month with a summary that always adds up:
opening balance
+ top-ups + credits + refunds (+ sandbox adjustments)
− orders
= closing balance…followed by every movement (lines, paginated with cursor). /statement/export gives the same month as a CSV your accountant can open in Excel. For any period, /transactions/export exports the movements between two dates.
5. Never run out of balance
An empty balance stops sales. Three things keep it from happening:
- Alert. Set
lowBalanceThreshold(USD) and handlebalance.low. It fires once when the balance goes under the threshold, and re-arms when it goes back above. - Know your runway.
/analytics/overviewreturnsbalanceRunwayDays: how many days the balance lasts at the recent daily spend. - Top up fast.
/topup/createreturns a payment link (mada, cards, Apple Pay, charged in SAR). Send it to whoever pays;balance.topped_upconfirms the credit, or check with/topup/check.
Limits and the exchange rate come from /topup/config.
6. Analytics in your own BI
Feed your dashboards (Looker Studio, Power BI, Metabase…) straight from the API:
| Endpoint | Gives you |
|---|---|
/analytics/overview | eSIMs sold, spend, average price, install and activation rates, failed orders, refunds, top-ups, balance runway, and the change against the previous period. |
/analytics/timeseries | The same over time, by day, week or month. |
/analytics/breakdown | Top country, package or source. |
/analytics/esims | The live picture: eSIMs per status, the sold → installed → activated funnel, and eSIMs expiring soon or low on data. |
For row-level data, run a nightly job with /orders/export and /transactions/export for yesterday (from = to = the day), and load the CSVs into your warehouse. Mind the export limit of 10 per minute.