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
Orders
API key or session
GET

List Orders

Paginate reseller order history with optional status and text filters.

Endpoint

GET /reseller/orders

Endpoint behavior

This route returns persisted reseller PortalOrder records filtered to the authenticated reseller. Results are ordered newest first and support pagination plus simple text and status filtering.

Query parameterTypeDescription
pagenumberPage number, default 1
pageSizenumberItems per page, default 20, capped at 100
statusstringOptional order status filter
qstringOptional search across provider order number, package name, and slug

Paginated order list

cURL
curl --location --request GET 'https://api.esimtrade.com/api/v1/reseller/orders?page=1&pageSize=20' \
--header 'x-access-code: YOUR_ACCESS_CODE' \
--header 'x-secret-key: YOUR_SECRET_KEY'

Filtered order list

cURL
curl --location --request GET 'https://api.esimtrade.com/api/v1/reseller/orders?status=active&q=japan' \
--header 'x-access-code: YOUR_ACCESS_CODE' \
--header 'x-secret-key: YOUR_SECRET_KEY'

Live response shape

JSON
{
  "page": 1,
  "pageSize": 5,
  "total": 2,
  "orders": [
    {
      "providerOrderNo": "B26022703140001",
      "slug": "PK_0.5_Daily",
      "packageCode": "PUX79Y0PK",
      "packageName": "Pakistan 500MB/Day",
      "locationCode": "PK",
      "status": "cancel",
      "quantity": 1,
      "costPrice": "0.5",
      "sellPrice": "0.5",
      "totalSellPrice": "0.5"
    }
  ]
}

Base URL

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

Open on API host

On this page