Skip to content

eSIMTrade Docs

Public API

api.esimtrade.com

cURL
JavaScript
HTTP
JSON

Simpler, clearer reseller API docs.

Start with authentication, check wallet balance, read plans, and then move into orders and inventory. These docs are designed to help teams integrate faster with less scrolling and less guessing.

Fast scan
Live route coverage
Copyable examples
Account
API key or session
GET

Metrics

Load reseller metrics, revenue series, top countries, and per-range API usage aggregates.

Endpoint

GET /reseller/metrics

Endpoint behavior

This route powers the reseller analytics surface. It aggregates orders, order events, and wallet activity into summary metrics, country rollups, revenue series, and API usage statistics for the selected range.

Query parameterTypeDescription
rangestringSupported values: 7d, 30d, 12m. Defaults to 30d.

Metrics for 30 days

cURL
curl --location --request GET 'https://api.esimtrade.com/api/v1/reseller/metrics?range=30d' \
--header 'x-access-code: YOUR_ACCESS_CODE' \
--header 'x-secret-key: YOUR_SECRET_KEY'

Live response shape

JSON
{
  "range": "30d",
  "metrics": {
    "walletBalanceCents": 5900,
    "walletBalanceUsd": "59.00",
    "totalSales": 0,
    "totalProfit": 0,
    "activeEsims": 0,
    "totalOrders": 0,
    "topCountries": [],
    "revenueSeries": [
      { "label": "Apr 17", "revenue": 0, "profit": 0, "orders": 0 }
    ],
    "apiUsage": {
      "purchaseCalls": 0,
      "syncCalls": 0,
      "walletActions": 3,
      "refundEvents": 0,
      "successRate": 100
    }
  }
}

Base URL

https://api.esimtrade.com/api/v1

Open on API host

On this page