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/jsonand a JSON body,{}when empty. - Send
Authorization: Bearer <token>on everything except/loginand/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.
Always branch on success and code, not only on the HTTP status. Newer endpoints use real statuses (400, 403, 404, 409, 422, 429, 502), but a few older ones answer business errors with HTTP 200 to keep existing integrations working. Never parse message: its wording can change.
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/configgives the rate and limits). priceSARis included on packages for display only; you are always charged the USDprice.- 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/toare 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.
| Code | Label | Meaning |
|---|---|---|
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.
| Endpoints | Requests per minute |
|---|---|
| Orders (create, activate) | 60 |
| Lists (eSIMs, transactions, deliveries…) | 60 |
| Analytics | 60 |
| CSV exports | 10 |
| Top-up create | 10 |
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: truemeans there were more: narrow the dates. - Errors are still JSON, so check the status before saving.