eSIMTrade Docs
api.esimtrade.com
Clear, practical reseller API documentation.
Start with authentication, check your wallet balance, review plans, and then work with orders and inventory. Each endpoint page explains its authentication, request fields, response shape, and copyable examples.
Authentication
How reseller credential pairs work, supported headers, and which auth modes are accepted by reseller routes.
Preferred credential model
New integrations should authenticate with a generated access-code and secret-key pair. These credentials are created in the reseller portal and can be rotated or revoked without changing the reseller account itself.
Routes using requireResellerAccess also accept a valid reseller session cookie when the request comes from an authenticated portal session.
| Header | Required | Purpose |
|---|---|---|
| x-access-code | Yes for pair auth | Identifies the API key record |
| x-secret-key | Yes for pair auth | Verifies the shared secret |
| x-api-key | Legacy only | Secret-only compatibility mode |
| Authorization: Bearer <secret> | Legacy only | Secret-only compatibility mode |
Plans request with pair auth
curl --location --request GET 'https://api.esimtrade.com/api/v1/portal/plans' \ --header 'x-access-code: YOUR_ACCESS_CODE' \ --header 'x-secret-key: YOUR_SECRET_KEY'
Rate limiting and access scope
Each API key has its own per-minute request limit. The default shown in the portal is 120 requests per minute; check your API Access settings for the limit assigned to your key.
API key responses are limited to the reseller account that owns the key. A key cannot read another reseller's orders, profile, balance, or eSIM inventory.
If an API key is revoked or expired, reseller routes return HTTP 401 Unauthorized.
