Fulfil a customer order
Attach an eSIM to a flight, stay, tour, relocation, membership or premium-service order. Use your booking or customer reference to reconcile the result.
Issue and manage NXTL data eSIMs, fund a pooled business balance, reconcile usage and receive signed events through one server-to-server API.
Designed for travel platforms, company mobility, customer benefits and compatible-device operations across NXTL-supported destinations.
API access is available to approved NXTL Business accounts.
GET /health
GET /partner
POST /esims/estimate
POST /esims
esim.provisioned or GET /jobs/{id}
The NXTL API removes the hand-off to a separate purchasing process. Issue at the moment connectivity is needed, keep your own reference attached, and bring status, usage and billing information back into your operation.
Attach an eSIM to a flight, stay, tour, relocation, membership or premium-service order. Use your booking or customer reference to reconcile the result.
Issue individually or in bulk, label every line, change network policy and suspend, resume or terminate service from your own system.
Read usage and balance data, follow a consistent ledger, receive signed events and retain request IDs for support investigation.
The portal and API work with the same business account, balance and eSIM inventory—start manually and automate without moving to another platform.
This reference documents the current NXTL B2B API. Use the endpoint groups below for human-readable integration guidance and the published OpenAPI document for machine-readable tooling.
The NXTL B2B REST API provides server-to-server endpoints for programmatic provisioning and management. The companion eSIM API integration guide explains the application workflow around these operations. Before integrating, ensure your environment meets these operational requirements:
API keys belong to an approved NXTL Business account and inherit its available scopes, quota and commercial configuration.
Issuance and API-funded actions use the business account's available balance. Check the current issuance cost and capacity before creating a batch.
Keep API and webhook secrets on a trusted server. Never place them in browser JavaScript, a public repository or a distributed mobile application.
Use an HTTPS endpoint, preserve the raw request body for signature verification and return a 2xx response after safely accepting the event.
This sequence confirms the key, estimates the account impact and queues one eSIM without exposing a secret to the client.
GET /health is the only public operation. Use it to confirm that the API is reachable; it does not prove that your key, balance or quota is ready.
curl -sS "https://nxtlsim.com/api/v1/health"
The response identifies the business account and the permissions available to this key. Store the key as a server-side secret.
curl -sS \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/partner"
Read the returned estimate and affordability result before starting a larger issuance request. Current fees and account capacity come from the API; do not duplicate them as permanent constants in your application.
curl -sS -X POST \
-H "X-NXTL-Key: $NXTL_KEY" \
-H "Content-Type: application/json" \
-d '{"quantity":1,"tier":"cheapest"}' \
"https://nxtlsim.com/api/v1/esims/estimate"
A successful request returns HTTP 202 with a job ID. Issuance continues asynchronously. Poll GET /jobs/{id} or receive the esim.provisioned or esim.provision_failed event.
curl -sS -X POST \
-H "X-NXTL-Key: $NXTL_KEY" \
-H "Idempotency-Key: order-123-esim" \
-H "Content-Type: application/json" \
-d '{
"nickname":"Traveller 123",
"tier":"cheapest",
"client_reference":"ORDER-123"
}' \
"https://nxtlsim.com/api/v1/esims"
Authenticate requests by passing your API key in the X-NXTL-Key header on every operation except GET /health. A newly created key returns its secret once; subsequent key listings expose only public identifiers. Store secrets in a managed server-side secret store and rotate or revoke them independently.
X-NXTL-Key: $NXTL_KEY
| Scope Identifier | Granted Operations & Access Level |
|---|---|
balance:read | Read partner profile, balance totals, ledger history, top-up invoices, and quota snapshots. |
balance:write | Credit the pooled balance from the partner’s prepaid budget. The request field is amount_usd. This does not charge a saved payment method. |
esims:read | Query fleet inventory, inspect single ICCID status/wallet/events, estimate costs, poll jobs, and view usage CDRs. |
esims:write | Issue single/bulk eSIMs, edit nicknames, switch network tiers, suspend, resume, or terminate profiles. |
keys:read | Inspect registered public key identifiers, status, and associated metadata. |
keys:write | Create new scoped API access keys or instantly revoke compromised keys. |
webhooks:read | Inspect configured webhook target URL, subscribed event list, HMAC signing secrets, and delivery logs. |
webhooks:write | Configure webhook subscriptions, dispatch synthetic test pings, and replay previous deliveries. |
thresholds:read | Query configured spend, line usage, and balance threshold alert rules. |
thresholds:write | Create, update, enable/disable, or remove automated usage thresholds and auto-suspend policies. |
audit:read | Access immutable audit logs for administrative actions, security revisions, and key lifecycles. |
usage:read | Granular usage telemetry access (accepted alongside esims:read or balance:read). |
Send Idempotency-Key on POST /esims, POST /esims/bulk-issue and POST /topup. Retrying the same operation with the same key returns the original outcome and adds Idempotent-Replayed: true. Generate a stable key from your own business operation—not a new random value for every retry.
X-NXTL-Idempotency-Key remains supported as a legacy alias. New integrations should use Idempotency-Key.
Read X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset on responses. Account configuration may change the limit, so do not hard-code one global request rate. Treat HTTP 429 as retryable after the indicated reset.
Every response includes X-Request-Id. Record it with failed operations and include it when asking NXTL support to investigate.
A successful issuance request means NXTL accepted the work—not that a profile is already ready. Single and bulk issuance return a job ID. Use GET /jobs/{id} for status and per-row results, or subscribe to the relevant webhook events.
POST /esims queues one eSIM and accepts nickname, tier and client_reference.POST /esims/bulk-issue accepts quantity from 1 to 1,000, plus tier, client_reference and metadata.POST /esims/estimate checks the proposed issuance cost and balance impact without creating eSIMs.GET /jobs lists asynchronous jobs.GET /jobs/{id} returns the current state, summary and per-row outcomes where available./esim-requests/{job_id} is a legacy alias; use /jobs/{id} in new work.esim.provisioned event.
Three end-to-end patterns reflecting standard operational architectures across travel, mobility, and device fleet deployments.
client_reference.POST /esims/estimate.POST /esims with a stable Idempotency-Key.job_id against the booking.esim.provisioned and attach the activation result to the customer journey.esim.provision_failed to support or fulfilment review.POST /esims/estimate and confirm affordable: true.POST /esims/bulk-issue with a stable batch reference and Idempotency-Key.GET /jobs/{id} or listen for job.completed and job.failed.GET /balance and usage summaries.POST /thresholds.notify or suspend as the configured action.balance.low, balance.exhausted and esim.usage_threshold as required.* Qualification: Roaming usage may be reported after activity. Thresholds are operational safeguards, not guaranteed instantaneous hard spending caps.
Suspend and resume are reversible and can be repeated. POST /esims/{iccid}/suspend is the same operation as PATCH /esims/{iccid}/status with action set to suspend. POST /esims/{iccid}/resume is the same operation with action set to reactivate. Termination is a different action, terminate, and it is permanent.
PATCH /esims/{iccid}/nickname
PATCH /esims/{iccid}/tier
POST /esims/{iccid}/suspend
POST /esims/{iccid}/resume
PATCH /esims/{iccid}/status
ok, action and iccid. POST /esims returns 202 status: accepted, job_id and client_reference. It does not return an activation code. GET /jobs is paged with page (default 1) and per_page (default 20, max 100) and returns jobs, total, page, pages. Job status is pending, running, completed or failed. reactivate of an eSIM whose status is already terminated returns HTTP 409 already_terminated. Resume can return HTTP 402 resume_blocked or insufficient_balance. There is no DELETE /esims/{iccid} route.
POST /esims, POST /esims/estimate, POST /esims/bulk-issue, PATCH /esims/{iccid}/tier and POST /esims/bulk-tier take cheapest or best_coverage. The alias standard is accepted and stored as cheapest. A new eSIM uses cheapest unless the issue request sets a tier.
The business account uses a pooled balance. Current issuance fees, available balance, quota and account configuration must be read from the API instead of copied into application code.
Read current balance context, lifetime quota, rate-limit state, issuance fee and key/subscription summary.
Read pool totals in USD and the stored per-eSIM wallet mirrors in wallets[] (wallet_balance_usd number, last_sync string). This is not a live carrier fetch and it does not move funds.
Read the balance ledger.
Credit the pooled balance from prepaid budget_usd. The body field is amount_usd. The request has no ICCID. There is no per-eSIM top-up or allocation route. GET /balance wallets[] items are iccid, nickname, wallet_balance_usd (number, stored mirror) and last_sync (string). GET /esims/{iccid}/wallet is the live read: wallet_id, wallet_balance_usd, raw_balance.
Read completed orders associated with API-driven balance top-ups.
Current OCS usage debits the pooled EUR balance. On those rows currency is EUR, amount_eur is the signed retail charge, and amount_usd is 0. That zero is not an FX conversion and it does not mean the usage was free. The partner cost is the retail EUR debit. Wholesale cost, supplier rate and price-book fields stay internal.
usage.recorded reports the same retail charge as a positive amount in currency, with amount_eur matching amount and amount_usd still 0 for EUR. Ledger reads (GET /usage/cdrs and GET /esims/{iccid}/usage) keep the signed ledger values, so a debit is negative. ?currency= and Accept-Currency do not rewrite these usage amounts.
| Endpoint | Use |
|---|---|
GET /usage/summary | Partner-wide totals for a selected period |
GET /usage/esims | Per-eSIM rollups and filters |
GET /usage/cdrs | Itemised, paginated usage events |
GET /usage/timeseries | Daily usage and top-up totals for reporting |
GET /esims/{iccid}/usage | Usage rows for one eSIM |
GET /esims/{iccid}/events | Ledger/lifecycle events for one eSIM |
GET /usage/lines is retained as an alias of GET /usage/esims. The response key is lines on both.
These endpoints do not return the same fields. Country and volume are stored internally and are returned on per-line usage rows and on usage.recorded. They are not returned by the fleet rollup. Supplier session id, session time and wholesale cost are stored and are not on any public usage payload.
| Surface | Public fields |
|---|---|
GET /usage/cdrs | Default envelope is unchanged: cdrs, total, page, pages. id is the ledger id. Amounts stay signed. bytes and network strings stay empty unless you send accounting=1. That opt-in joins usage detail by the ledger idempotency key, keeps one row per ledger event, and adds detail_available plus ledger_id (same integer as id). detail_available: false means no stored detail. true with bytes: 0 is measured zero. after_id is optional. When it is set, results are id > after_id ordered by id ascending and the body adds next_cursor. Omit after_id to keep page and per_page with id descending. |
GET /esims/{iccid}/usage | Default rows are unchanged. accounting=1 adds ledger_id, the same ledger primary key, on each row. after_id pages forward by that id. Without after_id, page stays 50 rows ordered by id descending. GET /esims/{iccid}/events also adds ledger_id only when accounting=1. |
GET /usage/esims | window.since, window.until (string or null), and lines[]. Each line has iccid, provider, tier, provision_status, usage_usd, usage_eur, usage_events, first_event, last_event. The three usage totals are JSON strings. first_event and last_event are datetime strings or null. No bytes and no country. |
usage.recorded | Existing fields stay. data.ledger_id is the new ledger row id when the debit insert returns one, otherwise null. It is not derived from amount or time. data.idempotency_key is the same unique ledger key. A supplier replay does not insert a second row and does not emit a second event. data.id on the envelope is still the delivery id, not the ledger id. |
balance, esim or legacy-compatible linebalance_below, line_usage_pct with notes.cap_per_line_usd, and line_usage_usd_today. They still sum ABS(amount_usd) only.line_usage_pct_eur uses notes.cap_per_line_eur and UTC month-to-date ABS(amount_eur) where currency is EUR. line_usage_eur_today is the UTC calendar day of those same native EUR debits. Existing rules are not converted or enabled for you.instant, daily, weekly and monthly are accepted and stored. The evaluator does not use them.notify or suspend. suspend pauses the eSIM. It does not terminate it.Rules are checked on the minute reconcile tick after usage has been polled. The usage poll default is 600 seconds, and each poll re-reads up to 12 hours of supplier lag. A byte or GB allowance over a custom date range is not enforced by these rules. Account for that in the reseller integration.
NXTL delivers asynchronous lifecycle and billing events to your registered HTTPS webhook endpoint. Every inbound request includes the X-NXTL-Signature-V1 header containing the delivery timestamp and an HMAC-SHA256 signature calculated over {timestamp}.{raw_json_body} using your active webhook secret.
Header Specification: X-NXTL-Signature-V1: t=<unix_timestamp>,v1=<hmac_sha256_hex>. Always compute HMAC over the raw UTF-8 request payload before JSON parsing.
const crypto = require('crypto');
function verifyNxtlWebhook(rawBody, signatureHeader, secret) {
if (!signatureHeader) return false;
// Format: t=<unix_timestamp>,v1=<hex_hmac_sha256>
const parts = signatureHeader.split(',');
const timestamp = parts.find(p => p.startsWith('t='))?.slice(2);
const v1 = parts.find(p => p.startsWith('v1='))?.slice(3);
if (!timestamp || !v1) return false;
// Validate v1 is exactly 64 hexadecimal characters
if (v1.length !== 64 || !/^[0-9a-f]{64}$/i.test(v1)) {
return false;
}
// Reconstruct signed payload
const signedPayload = `${timestamp}.${rawBody}`;
const computedHex = crypto
.createHmac('sha256', secret)
.update(signedPayload, 'utf8')
.digest('hex');
const expectedBuf = Buffer.from(computedHex, 'hex');
const suppliedBuf = Buffer.from(v1, 'hex');
if (expectedBuf.length !== suppliedBuf.length) return false;
return crypto.timingSafeEqual(expectedBuf, suppliedBuf);
}
import hmac, hashlib
def verify_nxtl_webhook(raw_body: bytes, signature_header: str, secret: str) -> bool:
if not signature_header:
return False
parts = dict(part.split('=', 1) for part in signature_header.split(','))
timestamp, v1 = parts.get('t'), parts.get('v1')
if not timestamp or not v1 or len(v1) != 64:
return False
signed_payload = f"{timestamp}.".encode('utf-8') + raw_body
computed_hex = hmac.new(secret.encode('utf-8'), signed_payload, hashlib.sha256).hexdigest()
return hmac.compare_digest(computed_hex, v1)
function verify_nxtl_webhook(string $raw_body, string $signature_header, string $secret): bool {
parse_str(str_replace(',', '&', $signature_header), $parts);
$timestamp = $parts['t'] ?? '';
$v1 = $parts['v1'] ?? '';
if (empty($timestamp) || empty($v1) || strlen($v1) !== 64) {
return false;
}
$signed_payload = $timestamp . '.' . $raw_body;
$computed_hex = hash_hmac('sha256', $signed_payload, $secret);
return hash_equals($computed_hex, $v1);
}
| Event Name | Category | Trigger Condition & Payload Meaning |
|---|---|---|
esim.provisioned |
eSIM Lifecycle | eSIM successfully provisioned (one ICCID ready for profile download). |
esim.provision_failed |
eSIM Lifecycle | Asynchronous issuance failed for an order item. |
esim.tier_changed |
eSIM Lifecycle | Network tier changed (single or bulk). |
esim.suspended |
eSIM Lifecycle | eSIM suspended (data paused). |
esim.reactivated |
eSIM Lifecycle | eSIM resumed after suspend. |
esim.terminated |
eSIM Lifecycle | eSIM permanently terminated. |
esim.exchanged |
eSIM Lifecycle | Old eSIM swapped for a fresh one (device replacement). |
esim.usage_threshold |
eSIM Lifecycle | Per-eSIM usage threshold (e.g. 80% of cap) crossed. |
balance.topup |
Pooled Balance | API top-up credited the pooled balance. |
balance.low |
Pooled Balance | Pooled balance fell below configured threshold. |
balance.exhausted |
Pooled Balance | Pooled balance reached zero — auto-suspend may have fired. |
usage.recorded |
Usage Telemetry | Billable retail usage on a partner eSIM. For current EUR profiles amount and amount_eur are the positive charge and amount_usd is 0. bytes is octets. country is a name, with operator, network, rat, mcc, mnc and tadig. |
job.completed |
Batch Processing | Async bulk job (issuance, etc.) finished. |
job.failed |
Batch Processing | Async bulk job failed at least one row. |
test.ping |
Diagnostics | Manually-triggered test event from the partner portal. |
NXTL API responses use a structured error object with error, type, code, message, doc_url, optional details and a request ID. Some earlier lifecycle and balance operations can return a compact { "error": "code" } object. Treat the HTTP status as authoritative, handle optional fields defensively and retain the X-Request-Id response header when contacting support.
{
"error": true,
"type": "INSUFFICIENT_BALANCE",
"code": "insufficient_balance",
"message": "Pooled balance cannot cover the requested operation.",
"doc_url": "https://nxtlsim.com/business-api/errors/insufficient_balance",
"request_id": "req_8f1b2c3d4e5f",
"details": {
"required_usd": 11.99,
"available_usd": 4.50
}
}
| Status Code | Error Type | Integration Meaning & Handling Guidance |
|---|---|---|
400 BAD_REQUEST | bad_request | Invalid request body or parameters. Inspect details field for validation errors. Some earlier endpoints may return compact {"error":"code"}. |
401 UNAUTHORIZED | unauthorized | Missing, invalid or revoked API secret in the X-NXTL-Key header. |
402 INSUFFICIENT_BALANCE | insufficient_balance | Pooled balance cannot cover the requested operation. Earlier paths may return compact insufficient_budget or insufficient_balance. Top up balance to resume. |
403 ACCESS_DENIED | access_denied | Valid key without the required access scope for the requested endpoint. |
404 NOT_FOUND | not_found | Requested resource (ICCID, Job ID, Delivery ID, Key ID) was not found. |
409 QUOTA_EXCEEDED | quota_exhausted | Partner lifetime issuance quota would be exceeded on bulk issuance. |
429 RATE_LIMIT_EXCEEDED | rate_limit_exceeded | Request rate limit exceeded (or single issuance quota exceeded with {"error":"quota_exceeded"}). Check Retry-After header. |
502 UPSTREAM_ERROR | upstream_error | Upstream carrier provisioning or service dependency failed. Retry with exponential backoff. |
All paths below are relative to https://nxtlsim.com/api/v1. This reference documents the current NXTL B2B API. Use the endpoint groups below for human-readable integration guidance and the published OpenAPI document for machine-readable tooling.
Health, partner profile, quotas and the partner audit log.
Public health check
200 — Plugin reachable.curl -sS \
"https://nxtlsim.com/api/v1/health"
Partner profile + scopes resolved by the key
200 — Partner profile + scopes.curl -sS \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/partner"
Balance, lifetime quota, rate limit, issuance fee, subscription state
200 — Balance/quota/rate-limit/issuance fee snapshot.curl -sS \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/quotas"
Partner-scoped audit log
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
action |
query | string | optional | Action prefix filter, e.g. `esim.` or `webhook.`. |
target_type |
query | string | optional | |
target_id |
query | string | optional | |
since |
query | string | optional | |
until |
query | string | optional | |
page |
query | integer | optional | |
per_page |
query | integer | optional |
200 — Paginated partner audit rows.curl -sS \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/audit"
Issue, list and change individual eSIM profiles.
List eSIMs in your fleet
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
iccid |
query | string | optional | |
status |
query | string (pre_service, ready, suspended, terminated) | optional | |
tier |
query | string | optional | |
client_reference |
query | string | optional | |
page |
query | integer | optional | |
per_page |
query | integer | optional |
200 — Paginated list of eSIMs.curl -sS \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/esims"
Returns 202 Accepted with a job id. Webhook `esim.provisioned` fires when the SIM is bound. Send `Idempotency-Key` to make retries safe.
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
Idempotency-Key |
header | string | optional | Unique key per logical operation; safe retries return the original outcome plus `Idempotent-Replayed: true`. Legacy header `X-NXTL-Idempotency-Key` is also accepted. |
| Property | Type | Requirement | Description |
|---|---|---|---|
nickname |
string | optional | |
tier |
string (cheapest, best_coverage) | optional | Accepted values are cheapest and best_coverage. The alias standard is accepted and stored as cheapest. When omitted, issuance uses cheapest. |
client_reference |
string | optional |
{
"nickname": "Traveller 123",
"tier": "cheapest",
"client_reference": "ORDER-123"
}
202 — 202 Accepted with job_id.402 — 402 Insufficient pooled balance.409 — 409 Lifetime issuance quota exhausted.curl -sS -X POST \
-H "X-NXTL-Key: $NXTL_KEY" \
-H "Idempotency-Key: example-operation-1" \
-H "Content-Type: application/json" \
-d '{"nickname":"Traveller 123","tier":"cheapest","client_reference":"ORDER-123"}' \
"https://nxtlsim.com/api/v1/esims"
Same fleet list as GET /esims. New integrations should call /esims.
Back-Compatibility Note: Retained so existing integrations keep working. New integrations should use the current path named in the summary.
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
iccid |
query | string | optional | |
status |
query | string (pre_service, ready, suspended, terminated) | optional | |
tier |
query | string | optional | |
client_reference |
query | string | optional | |
page |
query | integer | optional | |
per_page |
query | integer | optional |
200 — Paginated list of eSIMs.curl -sS \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/lines"
Retrieve one eSIM
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
iccid |
path | string | required |
200 — Single eSIM resource.curl -sS \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/esims/{iccid}"
Update nickname
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
iccid |
path | string | required |
| Property | Type | Requirement | Description |
|---|---|---|---|
nickname |
string | optional |
200 — Single eSIM resource.curl -sS -X PATCH \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/esims/{iccid}/nickname"
Change network tier
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
iccid |
path | string | required |
| Property | Type | Requirement | Description |
|---|---|---|---|
tier |
string (cheapest, best_coverage) | optional | cheapest or best_coverage. standard is accepted as an alias of cheapest. |
200 — Single eSIM resource.curl -sS -X PATCH \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/esims/{iccid}/tier"
Body action is suspend, reactivate, or terminate. suspend pauses data and can be reversed with reactivate. POST /esims/{iccid}/resume is the same reactivate action. terminate sets the carrier subscriber to DISCONNECTED and cannot be undone: a later reactivate returns 409 already_terminated. reactivate can also return 402 when balance or a usage guard blocks resume. There is no DELETE eSIM route.
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
iccid |
path | string | required |
| Property | Type | Requirement | Description |
|---|---|---|---|
action |
string (suspend, reactivate, terminate) | optional |
200 — Generic acknowledgement.409 — Reactivate refused: eSIM is already terminated. Issue a new eSIM.curl -sS -X PATCH \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/esims/{iccid}/status"
Same as PATCH /esims/{iccid}/status with action suspend. Reversible. Resume with POST /esims/{iccid}/resume or PATCH action reactivate.
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
iccid |
path | string | required |
200 — Generic acknowledgement.curl -sS -X POST \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/esims/{iccid}/suspend"
Same as PATCH /esims/{iccid}/status with action reactivate. Does not restore a terminated eSIM (409 already_terminated). May return 402 resume_blocked or insufficient_balance.
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
iccid |
path | string | required |
200 — Generic acknowledgement.curl -sS -X POST \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/esims/{iccid}/resume"
Read-only live fetch of the carrier wallet for this ICCID. Returns wallet_id, wallet_balance_usd (normalized number) and raw_balance (carrier number). Does not add credit. There is no per-eSIM top-up or allocation route. Pool credit is POST /topup. GET /balance wallets[] is the stored mirror, not this live read.
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
iccid |
path | string | required |
200 — Wallet snapshot.curl -sS \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/esims/{iccid}/wallet"
Per-line ledger events
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
iccid |
path | string | required |
200 — Per-line ledger events.curl -sS \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/esims/{iccid}/events"
Batch issuance, estimates and asynchronous job results.
Look up the status of many ICCIDs in one call
| Property | Type | Requirement | Description |
|---|---|---|---|
iccids |
array | optional |
200 — Array of `{iccid, status, tier, lifecycle}` rows.curl -sS -X POST \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/esims/bulk-status"
Change the network tier for many ICCIDs at once
| Property | Type | Requirement | Description |
|---|---|---|---|
iccids |
array | optional | |
tier |
string (cheapest, best_coverage) | optional | cheapest or best_coverage. |
200 — All ICCIDs updated; per-ICCID `esim.tier_changed` webhooks fire.curl -sS -X POST \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/esims/bulk-tier"
Returns 202 + job id. Pre-flight balance + quota checks; on insufficient balance you get 402 with a full estimate breakdown.
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
Idempotency-Key |
header | string | optional | Unique key per logical operation; safe retries return the original outcome plus `Idempotent-Replayed: true`. Legacy header `X-NXTL-Idempotency-Key` is also accepted. |
| Property | Type | Requirement | Description |
|---|---|---|---|
quantity |
integer | optional | |
tier |
string (cheapest, best_coverage) | optional | Accepted values are cheapest and best_coverage. The alias standard is accepted and stored as cheapest. When omitted, issuance uses cheapest. |
client_reference |
string | optional | |
metadata |
object | optional |
{
"quantity": 1,
"tier": "cheapest"
}
202 — 202 Accepted with job_id.402 — 402 Insufficient pooled balance.409 — 409 Lifetime issuance quota exhausted.curl -sS -X POST \
-H "X-NXTL-Key: $NXTL_KEY" \
-H "Idempotency-Key: example-operation-1" \
-H "Content-Type: application/json" \
-d '{"quantity":1,"tier":"cheapest"}' \
"https://nxtlsim.com/api/v1/esims/bulk-issue"
Pre-flight cost estimate
| Property | Type | Requirement | Description |
|---|---|---|---|
quantity |
integer | optional | |
tier |
string (cheapest, best_coverage) | optional | Accepted values are cheapest and best_coverage. The alias standard is accepted and stored as cheapest. When omitted, issuance uses cheapest. |
{
"quantity": 1,
"tier": "cheapest"
}
200 — Pre-flight cost estimate.curl -sS -X POST \
-H "X-NXTL-Key: $NXTL_KEY" \
-H "Content-Type: application/json" \
-d '{"quantity":1,"tier":"cheapest"}' \
"https://nxtlsim.com/api/v1/esims/estimate"
List your async jobs
200 — Paginated list of jobs (issuance, bulk-tier, …) with status counts.curl -sS \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/jobs"
Job detail with per-row results
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
id |
path | integer | required |
200 — Job detail with per-row results.curl -sS \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/jobs/{id}"
Legacy alias for /jobs/{id} (kept for back-compat)
Back-Compatibility Note: Retained so existing integrations keep working. New integrations should use the current path named in the summary.
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
job_id |
path | integer | required |
200 — Job detail with per-row results.curl -sS \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/esim-requests/{job_id}"
Pooled balance, prepaid-budget top-ups, ledger and invoices.
Pool totals + per-eSIM wallet mirrors
200 — Pool totals + per-eSIM wallets.curl -sS \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/balance"
Recent ledger entries
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
page |
query | integer | optional | |
per_page |
query | integer | optional |
200 — Ledger entries.curl -sS \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/balance/history"
Credits the partner pooled balance from prepaid budget_usd by amount_usd. The request has no ICCID and does not fund one eSIM. Does not charge a saved card. Returns 402 when prepaid budget is smaller than the amount. Send Idempotency-Key so a retry returns the original credit. There is no per-eSIM top-up or allocation endpoint.
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
Idempotency-Key |
header | string | optional | Unique key per logical operation; safe retries return the original outcome plus `Idempotent-Replayed: true`. Legacy header `X-NXTL-Idempotency-Key` is also accepted. |
| Property | Type | Requirement | Description |
|---|---|---|---|
amount_usd |
number | optional | USD amount credited to the pooled balance from the partner prepaid budget. Minimum 0.01. This does not charge a saved payment method. |
{
"amount_usd": 25
}
200 — Generic acknowledgement.402 — 402 Insufficient pooled balance.curl -sS -X POST \
-H "X-NXTL-Key: $NXTL_KEY" \
-H "Idempotency-Key: example-operation-1" \
-H "Content-Type: application/json" \
-d '{"amount_usd":25}' \
"https://nxtlsim.com/api/v1/topup"
WooCommerce orders for API-driven top-ups
200 — List of orders + invoice hints.curl -sS \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/invoices"
Aggregates, itemised usage events and daily totals.
Scope esims:read. Returns every ledger row for the ICCID, newest first, 50 per page. Only rows with entry_type usage include bytes, mb, country, operator, rat, mcc, mnc and tadig. Those values are joined from stored usage detail by idempotency key. amount_usd and amount_eur are signed ledger numbers (usage is negative). For current EUR usage, amount_usd is 0 and amount_eur is the retail EUR debit. A zero amount_usd is not free usage. created_at is the ledger timestamp string. Supplier session time, session id and wholesale cost are stored internally and are not returned.
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
iccid |
path | string | required | |
page |
query | integer | optional | Page number. Page size is fixed at 50. The response has no total or pages count. |
200 — Per-line ledger rows. Volume and country are present only on entry_type usage.404 — ICCID is not on this partner account. Body is { "error": "not_found" }.curl -sS \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/esims/{iccid}/usage"
Partner-wide aggregated usage
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
days |
query | integer | optional |
200 — Totals for `days`, MTD, today.curl -sS \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/usage/summary"
Scope usage:read or esims:read. Response object is { window, lines }. The array key is lines, not esims. Each line has iccid, provider, tier, provision_status, usage_usd, usage_eur, usage_events, first_event and last_event. usage_usd, usage_eur and usage_events are JSON strings because they are returned from SQL without a numeric cast. first_event and last_event are datetime strings or null when the line has no usage in the window. This endpoint does not return bytes, country or network identifiers. since defaults to the first instant of the current UTC month. until is exclusive when set.
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
since |
query | string | optional | |
until |
query | string | optional | |
iccid |
query | string | optional | |
limit |
query | integer | optional |
200 — Object with window and lines. See UsageEsimList. The array key is lines, not esims.curl -sS \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/usage/esims"
Legacy alias of /usage/esims
Back-Compatibility Note: Retained so existing integrations keep working. New integrations should use the current path named in the summary.
200 — Same response shape as /usage/esims: { window, lines }.curl -sS \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/usage/lines"
Scope usage:read or balance:read. One object per ledger row with entry_type usage. Envelope is { cdrs, total, page, pages }. id is the ledger row id (stable integer). amount_usd and amount_eur are signed JSON numbers copied from the ledger, so a usage debit is negative. currency is the ledger currency string. customer_total_after is the balance after that row, or null. created_at is the ledger datetime string, not the supplier session time. bytes, mb, country, operator, rat, mcc, mnc and tadig are always present. Without accounting=1 they stay empty (bytes 0, text fields empty) so existing clients keep the legacy payload. With accounting=1 the same idempotency-key join used by per-line usage fills them, adds detail_available, and adds ledger_id equal to id. One ledger row stays one CDR. after_id is an optional exclusive cursor ordered by id ascending; omit it to keep page/offset ordered by id descending. There is no amount field and no idempotency_key on this response. For current EUR usage, amount_usd is 0 and amount_eur is the negative retail EUR charge. Zero amount_usd does not mean the usage was free.
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
iccid |
query | string | optional | |
since |
query | string | optional | |
until |
query | string | optional | |
page |
query | integer | optional | |
per_page |
query | integer | optional |
200 — Paginated CDR list. bytes and country are present but empty on the current serializer. See CdrList.curl -sS \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/usage/cdrs"
Daily usage + top-up totals (chart-ready)
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
days |
query | integer | optional |
200 — Series of `{day, usage_usd, topup_usd, events}`.curl -sS \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/usage/timeseries"
Create, list and revoke keys. A new secret is returned once.
List keys (no secrets)
200 — List.curl -sS \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/api-keys"
Create key (returns secret once)
| Property | Type | Requirement | Description |
|---|---|---|---|
label |
string | optional |
201 — { public_id, secret, scopes, warning }curl -sS -X POST \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/api-keys"
Revoke key
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
key_public |
path | string | required |
200 — Generic acknowledgement.curl -sS -X DELETE \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/api-keys/{key_public}"
Subscriptions, signing secret, delivery log and replay.
Read URL + subscriptions
200 — Configured webhook URL and event list.curl -sS \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/webhooks"
Update URL + subscriptions
| Property | Type | Requirement | Description |
|---|---|---|---|
webhook_url |
string | optional | |
events |
array | optional |
200 — Generic acknowledgement.curl -sS -X PUT \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/webhooks"
Catalog of every event we emit + subscription state
200 — { events: [{event, description, subscribed}] }curl -sS \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/webhooks/events"
Active HMAC secret + signed-payload spec
200 — { algorithm, header_v1, signed_payload, active_secret, rotating_secret }curl -sS \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/webhooks/secret"
Send `test.ping` to configured URL
200 — Generic acknowledgement.curl -sS -X POST \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/webhooks/test"
List webhook deliveries
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
status |
query | string (pending, delivered, failed) | optional | |
event |
query | string | optional | |
since |
query | string | optional | |
until |
query | string | optional | |
page |
query | integer | optional |
200 — Paginated deliveries.curl -sS \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/webhooks/deliveries"
Full delivery row (payload + response)
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
id |
path | integer | required |
200 — Delivery detail.curl -sS \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/webhooks/deliveries/{id}"
Replay a delivery to your endpoint
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
id |
path | integer | required |
200 — Generic acknowledgement.curl -sS -X POST \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/webhooks/deliveries/{id}/replay"
Replay a delivery (legacy alias)
Back-Compatibility Note: Retained so existing integrations keep working. New integrations should use the current path named in the summary.
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
id |
path | integer | required |
200 — Generic acknowledgement.curl -sS -X POST \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/webhooks/{id}/replay"
Account-chosen alert and suspension rules. These are not a usage-based FUP.
List rules
200 — { rules: [...] }curl -sS \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/thresholds"
Create rule
| Property | Type | Requirement | Description |
|---|---|---|---|
scope |
string (balance, esim, line) | optional | |
metric |
string (balance_below, line_usage_pct, line_usage_usd_today, line_usage_pct_eur, line_usage_eur_today) | optional | balance_below compares the live partner pool in USD. line_usage_pct is UTC month-to-date ABS(amount_usd) divided by notes.cap_per_line_usd, times 100. line_usage_usd_today is UTC calendar-day ABS(amount_usd). There is no byte or GB metric. |
operator |
string (<, <=, =, >=, >) | optional | |
threshold_value |
number | optional | |
period |
string (instant, daily, weekly, monthly) | optional | Accepted and stored, but the evaluator does not read it. line_usage_pct is always the UTC calendar month. line_usage_usd_today is always the UTC calendar day. An arbitrary multi-day GB allowance is not enforced here and must be accounted by the reseller. |
action |
string (notify, suspend) | optional | notify sends the threshold webhook and email. suspend enqueues a reversible line suspend for the ICCID that crossed the rule. It does not terminate the eSIM. |
enabled |
boolean | optional | |
notes |
object | optional |
201 — { id }curl -sS -X POST \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/thresholds"
Update rule
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
id |
path | integer | required |
| Property | Type | Requirement | Description |
|---|---|---|---|
scope |
string (balance, esim, line) | optional | |
metric |
string (balance_below, line_usage_pct, line_usage_usd_today, line_usage_pct_eur, line_usage_eur_today) | optional | balance_below compares the live partner pool in USD. line_usage_pct is UTC month-to-date ABS(amount_usd) divided by notes.cap_per_line_usd, times 100. line_usage_usd_today is UTC calendar-day ABS(amount_usd). There is no byte or GB metric. |
operator |
string (<, <=, =, >=, >) | optional | |
threshold_value |
number | optional | |
period |
string (instant, daily, weekly, monthly) | optional | Accepted and stored, but the evaluator does not read it. line_usage_pct is always the UTC calendar month. line_usage_usd_today is always the UTC calendar day. An arbitrary multi-day GB allowance is not enforced here and must be accounted by the reseller. |
action |
string (notify, suspend) | optional | notify sends the threshold webhook and email. suspend enqueues a reversible line suspend for the ICCID that crossed the rule. It does not terminate the eSIM. |
enabled |
boolean | optional | |
notes |
object | optional |
200 — Generic acknowledgement.curl -sS -X PATCH \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/thresholds/{id}"
Delete rule
| Field | Location | Type | Requirement | Description |
|---|---|---|---|---|
id |
path | integer | required |
200 — Generic acknowledgement.curl -sS -X DELETE \
-H "X-NXTL-Key: $NXTL_KEY" \
"https://nxtlsim.com/api/v1/thresholds/{id}"
The public API exposes the operations documented above. Some adjacent capabilities still require NXTL operations or a commercial integration review.
cap_per_line_usd is a monthly USD money cap. A GB cap over custom dates has to be calculated by the reseller.
POST /topup. Pause with suspend/resume. Remove service only with terminate.
If a required operation is not documented, treat it as unavailable until NXTL confirms it—do not build against undocumented endpoints, unpublished routes, or inferred upstream carrier capabilities.
Tell us who or what you need to connect, the markets involved, expected monthly volume and the system that should trigger fulfilment. We will assess account, device, commercial and API fit.
API approval is not automatic. Begin with a contained workflow and expand after the operational path is proven.