API reference

Analytics

5 endpoints. Every call is POST https://api.useburj.com/v1/<path> with a JSON body.

Key numbers for a period

POST
/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 of the same length.

Body

  • fromstring
    optional

    YYYY-MM-DD, default 30 days ago

  • tostring
    optional

    YYYY-MM-DD, default today (max 366 days)

Errors

Like every authenticated endpoint, it can also return AUTH_UNAUTHORIZED (401), RATE_LIMITED (429) and INTERNAL_ERROR (500). See all error codes.

Trend over time

POST
/analytics/timeseries

One point per day, week (starting Sunday) or month: eSIMs, orders, spend, installed, activated, expired, top-ups, refunds.

Body

  • fromstring
    optional
  • tostring
    optional
  • intervalstring
    optional

    day (default), week, month

Errors

Like every authenticated endpoint, it can also return AUTH_UNAUTHORIZED (401), RATE_LIMITED (429) and INTERNAL_ERROR (500). See all error codes.

Top countries / packages / sources

POST
/analytics/breakdown

Ranked with share of eSIMs and spend; countries also get install and activation rates.

Body

  • dimensionstring
    optional

    country (default), package, source

  • fromstring
    optional
  • tostring
    optional
  • limitinteger
    optional

    Default 20, max 100

Errors

Like every authenticated endpoint, it can also return AUTH_UNAUTHORIZED (401), RATE_LIMITED (429) and INTERNAL_ERROR (500). See all error codes.

Live eSIM picture

POST
/analytics/esims

How many eSIMs are in each state right now, the funnel (sold → ready → installed → activated → expired), and the ones running out of data (≥ 80%) or ending within 3 days.

Body

Send an empty JSON object: {}

Errors

Like every authenticated endpoint, it can also return AUTH_UNAUTHORIZED (401), RATE_LIMITED (429) and INTERNAL_ERROR (500). See all error codes.

Daily statistics (legacy)

POST
/statics/get

Kept for existing integrations; use /analytics/* for new work.

Body

  • daysinteger
    required

    Number of days

Errors

Like every authenticated endpoint, it can also return AUTH_UNAUTHORIZED (401), RATE_LIMITED (429) and INTERNAL_ERROR (500). See all error codes.