Guides

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:

  1. Show packages. Cache /countries and /{countryId}/packages for a few hours; prices are in USD with priceSAR for display. Or curate your own list with the favorites endpoints.
  2. Take your customer's payment in your own checkout.
  3. Order with /order/create: your booking number as externalReference, and an Idempotency-Key saved with the booking.
  4. Prepare each eSIM with /order/activate and send the install details.
  5. Follow it with webhooks: tell the traveller it's connected, warn at 80% data, offer a new package when it expires.

2. Show install instructions

/order/activate returns a profile with every way to install the eSIM. Offer them in this order:

FieldUse it when
iosQuickInstallThe traveller opens your message on the iPhone that will use the eSIM: one tap (iOS 17.4+).
androidQuickInstallSame, on Android phones that support it.
qrCodeUrlYour message is read on another screen; the phone scans the QR code.
smdpAddress + activationCodeManual entry, when scanning isn't possible.
lpaCodeIf you draw your own QR code: encode this string as it is.
apnName, pin, pukSupport 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/get with externalReference (exact match).
  • Match money: every order has a transactionId, and /transactions lists ORDER, REFUND, TOPUP, CREDIT and ADJUSTMENT movements with the balance after each.
  • Refunds (provider failures, partial orders, Burj refunds) are separate REFUND lines with the same externalReference and a relatedTransactionId pointing 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:

Summary
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:

  1. Alert. Set lowBalanceThreshold (USD) and handle balance.low. It fires once when the balance goes under the threshold, and re-arms when it goes back above.
  2. Know your runway. /analytics/overview returns balanceRunwayDays: how many days the balance lasts at the recent daily spend.
  3. Top up fast. /topup/create returns a payment link (mada, cards, Apple Pay, charged in SAR). Send it to whoever pays; balance.topped_up confirms 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:

EndpointGives you
/analytics/overvieweSIMs sold, spend, average price, install and activation rates, failed orders, refunds, top-ups, balance runway, and the change against the previous period.
/analytics/timeseriesThe same over time, by day, week or month.
/analytics/breakdownTop country, package or source.
/analytics/esimsThe 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.