eSIMTrade Docs
api.esimtrade.com
Simpler, clearer reseller API docs.
Start with authentication, check wallet balance, read plans, and then move into orders and inventory. Each endpoint page includes its authentication mode, request fields, response shape, and copyable examples.
Load reseller metrics, revenue series, top countries, and per-range API usage aggregates.
Endpoint
GET /reseller/metrics
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 parameter | Type | Description |
|---|---|---|
| range | string | Supported values: 7d, 30d, 12m. Defaults to 30d. |
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'
{
"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
}
}
}On this page