Skip to content
EchoRoam Wholesale

ECHOROAM WHOLESALE

API Documentation

Everything you need to buy and manage eSIMs programmatically: catalog, orders, top-ups, cancellations, wallet balance, and signed webhooks. Backed by a catalog of over 5,100+ packages across 190+ destinations with Tier-1 carrier breakouts (USIP, native Docomo Tokyo breakouts).

⚡1:1 Drop-in Compatibility with eSIM Access

Migrating from eSIM Access / Redtea Mobile? EchoRoam Wholesale was engineered as an exact drop-in mirror:

  • Keep your existing header: use either RT-AccessCode: wk_live_… or Authorization: Bearer wk_live_…
  • Keep your existing endpoint paths: POST /esim/order and POST /balance/query are fully aliased.
  • Keep your payload schemas: packageInfoList arrays, pager objects, and esimList arrays are supported out of the box.

1. Base URL & Authentication

All API requests go to:

https://echoroam.com/api/open/v1

Generate an API key in your wholesale dashboard → API & Webhooks. Pass your key using either the standard HTTP Bearer header or the native eSIM Access header:

# Standard Bearer header
Authorization: Bearer wk_live_xxxxxxxxxxxxxxxxxxxxxxxx

# Or native eSIM Access header (100% compatible)
RT-AccessCode: wk_live_xxxxxxxxxxxxxxxxxxxxxxxx
ErrorMeaning
401 UNAUTHORIZEDMissing, invalid or revoked API key
403 SUSPENDEDAccount suspended — contact support

2. Response Envelope & Error Codes

Every response follows the exact JSON envelope:

{
  "success": true,          // or false
  "errorCode": null,        // machine-readable string when success=false
  "errorMsg": null,         // human-readable detail when success=false
  "obj": { ... }            // payload (null on error)
}
errorCodeHTTPMeaning
INSUFFICIENT_BALANCE402Wallet balance too low — top up first
PACKAGE_NOT_FOUND404Unknown packageCode / plan slug
ORDER_NOT_FOUND404No order with that id/reference (or not yours)
CANNOT_CANCEL409eSIM already activated/used, or order not in a cancellable state
ORDER_FAILED / TOPUP_FAILED409Upstream fulfillment failed — wallet fully refunded
INVALID_JSON / MISSING_PACKAGE400Request validation failed

3. Idempotency

Every wallet-affecting call (esim/order, esim/topup, esim/cancel) accepts a transactionId. Retrying with the same transactionId returns the original result — no duplicate charges, ever. Wallet entries are additionally guarded by unique idempotency keys at the ledger level.

4. Endpoints

POST /package/list

Query the wholesale catalog. Prices are in 1/10000 USD units (e.g. 68900 = US$6.89), matching eSIM Access. Accepts either top-level pagination (pageNum, pageSize) or nested pager: { pageNum, pageSize }.

FieldTypeDescription
packageCode / slugstringQuery a specific plan. Automatically enriches the response with carrier networks, 5G flags, and breakout IP.
packageCodesstring[]Query a list of specific plan slugs (up to 500) in a single call.
locationCodestringDestination filter — e.g. "JP", "US", "europe".
typestringSet to "TOPUP" with iccid to query eligible top-up packages for an eSIM.
pageSize / pager.pageSizenumberOptional, default 500, max 10,000.
pageNum / pager.pageNumnumberOptional, 1-based page number.
curl -X POST https://echoroam.com/api/open/v1/package/list \
  -H "RT-AccessCode: wk_live_xxx" -H "Content-Type: application/json" \
  -d '{"packageCode":"JP_10_30"}'
{
  "success": true, "errorCode": null, "errorMsg": null,
  "obj": {
    "total": 1,
    "packageList": [{
      "packageCode": "JP_10_30",          // plan slug — pass into esim/order
      "slug": "JP_10_30",
      "name": "Japan 10GB 30Days",
      "price": 52900,                      // US$5.29 (1/10000 USD units)
      "priceUsd": 5.29,
      "currencyCode": "USD",
      "volume": 10737418240,               // bytes
      "duration": 30,
      "durationUnit": "DAY",
      "dataType": 1,                       // 1 = total bundle, 2 = per-day
      "location": "Japan",
      "locationCode": "JP",
      "speed": "4G/5G",
      "breakoutIp": "Tokyo (Local)",       // Traffic exit location
      "ipExport": "JP",
      "supportTopUpType": 2,               // 1 = Non-reloadable, 2 = Data reloadable, 3 = Days reloadable
      "supportTopUpDesc": "Data Reloadable for same area within validity",
      "topupSupported": true,
      "locationNetworkList": [
        {
          "locationName": "Japan",
          "locationCode": "JP",
          "operatorList": [
            { "operatorName": "NTT Docomo", "networkType": "5G" },
            { "operatorName": "SoftBank", "networkType": "4G" }
          ]
        }
      ]
    }]
  }
}

POST /package/detail

Query detailed network specifications and IP breakouts for a specific plan. Also available via GET /package/detail?packageCode=....

FieldTypeDescription
packageCode / slug *stringPlan slug (e.g. "US_10_30").
curl -X POST https://echoroam.com/api/open/v1/package/detail \
  -H "RT-AccessCode: wk_live_xxx" -H "Content-Type: application/json" \
  -d '{"packageCode":"US_10_30_usip"}'

POST /esim/order (or /esim/order/create)

Purchase and provision an eSIM with wallet balance. Unlike legacy suppliers where you have to poll repeatedly for 30 seconds, EchoRoam returns the full eSIM profile synchronouslyin < 2 seconds!

FieldTypeDescription
packageCode *stringPlan slug from /package/list (also accepted inside packageInfoList[0].packageCode).
periodNum / daysnumberNumber of days (1–365) for daily plans (dataType = 2). Total price is periodNum × daily rate.
transactionIdstringYour unique reference for idempotency (prevents duplicate orders on network retries).
packageInfoListobject[]Optional: pass the native eSIM Access array format directly.
# Option A: Native eSIM Access request format
curl -X POST https://echoroam.com/api/open/v1/esim/order \
  -H "RT-AccessCode: wk_live_xxx" -H "Content-Type: application/json" \
  -d '{
    "transactionId": "order-1001",
    "packageInfoList": [
      { "packageCode": "JP_10_30", "count": 1, "price": 52900 }
    ]
  }'

# Option B: Simplified format
curl -X POST https://echoroam.com/api/open/v1/esim/order \
  -H "RT-AccessCode: wk_live_xxx" -H "Content-Type: application/json" \
  -d '{"packageCode":"JP_10_30","transactionId":"order-1001"}'
{
  "success": true, "errorCode": null, "errorMsg": null,
  "obj": {
    "orderNo": "B261102000001",          // Supplier order reference
    "orderId": "dfd1bf0a-…",              // EchoRoam Wholesale order ID
    "transactionId": "order-1001",
    "iccid": "8965012602090587234",
    "packageCode": "JP_10_30",
    "status": "fulfilled",
    "price": 52900,
    "priceUsd": 5.29,
    "currencyCode": "USD",
    "esim": {
      "iccid": "8965012602090587234",
      "qrCodeUrl": "https://echoroam.com/api/qr/...",
      "shortUrl": "https://echoroam.com/install?iccid=8965012602090587234",
      "ac": "LPA:1$smdp.io$...",          // Ready-to-install activation code
      "smdpAddress": "smdp.io",
      "activationCode": "...",
      "apn": "internet"
    },
    // Also provided as an array for 1:1 eSIM Access compatibility:
    "esimList": [{
      "iccid": "8965012602090587234",
      "qrCodeUrl": "https://echoroam.com/api/qr/...",
      "shortUrl": "https://echoroam.com/install?iccid=8965012602090587234",
      "ac": "LPA:1$smdp.io$..."
    }]
  }
}

POST /esim/query

Fetch order + live eSIM status, consumed bytes (orderUsage), total bytes (totalVolume), QR code, APN, and top-up eligibility. Supports single-order lookups or batch paginated sync via pager: { pageNum, pageSize }. Also available via GET /esim/query?iccid=....

orderNostringThe orderNo from esim/order.
orderIdstringThe EchoRoam Wholesale order UUID.
iccidstringThe eSIM ICCID (returns your most recent order).
pager / pageNum, pageSizeobjectOptional: pass to retrieve a paginated list of your recent eSIMs in esimList: [...].
curl -X POST https://echoroam.com/api/open/v1/esim/query \
  -H "RT-AccessCode: wk_live_xxx" -H "Content-Type: application/json" \
  -d '{"orderNo":"B261102000001"}'
{
  "success": true,
  "obj": {
    "orderNo": "B261102000001",
    "status": "fulfilled",
    "packageCode": "JP_10_30",
    "planName": "Japan 10GB 30Days",
    "esim": {
      "iccid": "8965012602090587234",
      "qrCodeUrl": "https://echoroam.com/api/qr/...",
      "shortUrl": "https://echoroam.com/install?iccid=8965012602090587234",
      "ac": "LPA:1$smdp.io$...",
      "apn": "internet",
      "totalVolume": 10737418240,         // 10 GB
      "orderUsage": 993537452,             // 947.5 MB used
      "esimStatus": "IN_USE",
      "smdpStatus": "RELEASED",
      "supportTopUpType": 2,
      "topupSupported": true,
      "canTopUp": true                     // Live top-up eligibility
    },
    "esimList": [ ... ]                    // Array wrapper for eSIM Access compatibility
  }
}

POST /balance/query (or GET /balance)

Query your wholesale USD wallet balance. Supports both POST /balance/query (eSIM Access format) and GET /balance. Returns the balance in $1/10000$ USD units (2500000 = US$250.00) alongside standard decimal balanceUsd.

curl -X POST https://echoroam.com/api/open/v1/balance/query \
  -H "RT-AccessCode: wk_live_xxx"
{
  "success": true, "errorCode": null, "errorMsg": null,
  "obj": {
    "balance": 2500000,                    // US$250.00 in 1/10000 units
    "balanceUsd": 250.00,
    "currency": "USD",
    "currencyCode": "USD"
  }
}

GET / POST /esim/topup/packages

Query available top-up packages and pricing for a specific eSIM. Takes an iccid (or orderNo) and returns live eligibility (canTopUp: true/false) with the exact carrier-supported recharge tiers.

curl "https://echoroam.com/api/open/v1/esim/topup/packages?iccid=8965012602090587234" \
  -H "RT-AccessCode: wk_live_xxx"

POST /esim/topup

Apply a top-up package to an active eSIM. Debits wallet balance and adds data/days instantly to the live ICCID.

FieldTypeDescription
packageCode *stringThe top-up packageCode from /esim/topup/packages.
iccid / orderNo / orderId *stringTarget eSIM identifier.
transactionIdstringYour unique idempotency reference.
curl -X POST https://echoroam.com/api/open/v1/esim/topup \
  -H "RT-AccessCode: wk_live_xxx" -H "Content-Type: application/json" \
  -d '{"packageCode":"TOPUP_JP_5_30","iccid":"8965012602090587234","transactionId":"topup-101"}'

POST /esim/cancel

Cancel an unused, unactivated eSIM and automatically receive an instant 100% wallet refund. Accepts iccid, orderNo, orderId, or esimTranNo.

Vietnam (Viettel) Policy: Vietnam eSIMs cannot be cancelled or refunded automatically via API or dashboard. Refunds are eligible within 30 days of purchase only if the eSIM has not been installed, and must be submitted via a support ticket in your dashboard.
curl -X POST https://echoroam.com/api/open/v1/esim/cancel \
  -H "RT-AccessCode: wk_live_xxx" -H "Content-Type: application/json" \
  -d '{"iccid":"8965012602090587234"}'
{
  "success": true,
  "obj": { "orderNo": "B261102000001", "status": "cancelled", "refunded": 52900 }
}

5. Webhooks

Subscribe to real-time events in your dashboard → API & Webhooks. We POST signed JSON to your webhook endpoint. Current event types: esim.fulfilled, webhook.test.

Verifying signatures

Every delivery carries an EchoRoam-Signature header in standard format:t=<unix seconds>,v1=<hmac> where the HMAC isHMAC-SHA256(secret, "t" + "." + rawBody).

// Node.js
import crypto from "crypto";
function verifySignature(rawBody, header, secret) {
  const parts = Object.fromEntries(header.split(",").map(kv => kv.split("=")));
  if (Math.abs(Date.now()/1000 - Number(parts.t)) > 300) return false;
  const expected = crypto.createHmac("sha256", secret)
    .update(parts.t + "." + rawBody).digest("hex");
  return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));
}

6. Wallet Rules, Banking & Support SLA

CurrencyWallets and plans settle in USD with 0% currency conversion markup.
Top-up limitsUS$50 minimum for your first top-up; US$100 – US$10,000 for subsequent reloads. Prepaid only.
Zero-Fee BankingWe support domestic bank transfers in USD (ACH/Fedwire), EUR (SEPA), GBP (Faster Payments), and AUD (PayID) with 0% deposit fees and 0% FX spread.
Price list exportDownload the full wholesale catalog (5,100+ plans) in CSV format: Download EchoRoam_Wholesale_Pricing.csv.
RefundsFailed fulfillments and cancelled (unactivated) eSIMs refund automatically to the wallet, instantly.
Support & SLADedicated 24/7 Wholesale Support Desk in dashboard → Support Tickets: instant (< 1 min) automated diagnostics, order/ICCID inspection & unactivated eSIM refunds, with priority engineering escalation (< 4 hours for critical API issues, < 1 business day for general inquiries).

Questions or custom volume pricing: [email protected].