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.
Create Order
Place a reseller purchase using your account price and prepaid wallet, with idempotency support.
Endpoint
POST /portal/order
Endpoint behavior
Submit a plan slug and quantity to place an order. Your account price and available wallet balance are checked, and the response includes the purchase result.
If you send an idempotencyKey and retry the same purchase, the API can return the original result instead of placing a duplicate order.
| Body field | Type | Required | Description |
|---|---|---|---|
| slug | string | Yes | Plan slug from the plans response |
| qty | number | No | Quantity, defaults to 1 |
| days | number | No | Optional provider-specific period value |
| idempotencyKey | string | Recommended | Stable client retry key |
Insufficient wallet balance returns HTTP 402. Duplicate idempotent purchase conflicts can return HTTP 409.
Create order
curl --location --request POST 'https://api.esimtrade.com/api/v1/portal/order' \
--header 'x-access-code: YOUR_ACCESS_CODE' \
--header 'x-secret-key: YOUR_SECRET_KEY' \
--header 'Content-Type: application/json' \
--data '{
"slug": "japan-5gb-30days",
"qty": 1,
"idempotencyKey": "order-20260417-001"
}'Validation error example
{
"error": "Invalid quantity"
}On this page
