Get started

Making requests

POST + JSON to one base URL, one response shape, and the conventions every endpoint follows.

Request format

  • Every endpoint is POST https://api.useburj.com/v1/<path>, even the ones that only read.
  • Send Content-Type: application/json and a JSON body, {} when empty.
  • Send Authorization: Bearer <token> on everything except /login and /enter.
  • Path parameters are part of the path: /TR/packages, /935911682414/data.

Response shape

Every answer is JSON with success. On success the result is in data (a few older endpoints put it at the top level, as /enter does with accessToken). On failure you get a stable code, a human message and sometimes details.

See Errors for every code.

Money

  • Balance, prices and order totals are in USD with up to 2 decimals.
  • Top-up payments are charged in SAR at a fixed 3.75 SAR per USD (/topup/config gives the rate and limits).
  • priceSAR is included on packages for display only; you are always charged the USD price.
  • Use a decimal type (or integer cents) in your code, not floating point, when you add amounts up.

Dates and times

  • Timestamps are ISO 8601 in UTC, in fields ending in At (createdAt, generatedAt) and in usage dates.
  • Filters from / to are calendar days, YYYY-MM-DD, in Riyadh time (UTC+3), both inclusive, at most 366 days apart.
  • Older raw fields such as createdTime: { _seconds, _nanoseconds } are still there for existing integrations. Prefer the ISO fields.

eSIM status

Every eSIM has a numeric status and a statusLabel. Filters accept either. Status and usage are updated live from the network, and the changes that matter arrive as webhooks.

CodeLabelMeaning
100
CREATED
Bought; the profile hasn't been requested yet. Call /order/activate.
200
READY
Profile ready, not installed on a phone yet.
230
INSTALLED
Installed on the traveller's phone.
240
ACTIVATED
Connected; plan dates not known yet.
250
ACTIVE
In use: start / end dates and data usage known.
260
INACTIVE
Paused by the network.
300
EXPIRED
Plan ended (time or data).
600
REFUNDED
Refunded by Burj.

Rate limits

Limits are per partner, per endpoint, per minute. Over the limit you get HTTP 429 RATE_LIMITED: wait and retry, ideally with exponential backoff.

EndpointsRequests per minute
Orders (create, activate)60
Lists (eSIMs, transactions, deliveries…)60
Analytics60
CSV exports10
Top-up create10

Need more for a launch or a migration? Contact Burj before the day.

CSV exports

/orders/export, /transactions/export and /statement/export take the same filters as their lists and answer with a file:

  • UTF-8 with a BOM, so Arabic opens correctly in Excel.
  • The file name is in Content-Disposition.
  • Up to 50,000 rows. X-Truncated: true means there were more: narrow the dates.
  • Errors are still JSON, so check the status before saving.