NXTL B2B REST API

Build global eSIM connectivity into your product.

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.

Base URL https://nxtlsim.com/api/v1

API access is available to approved NXTL Business accounts.

From API key to first issued eSIM

01

Check reachability

GET /health
02

Confirm the account

GET /partner
03

Estimate issuance

POST /esims/estimate
04

Queue the eSIM

POST /esims
05

Receive the result

esim.provisioned or GET /jobs/{id}
WHAT THE API ENABLES

Put connectivity inside the workflow your business already owns.

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.

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.

Operate a travelling team or fleet

Issue individually or in bulk, label every line, change network policy and suspend, resume or terminate service from your own system.

Keep support and finance informed

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.

DEVELOPER REFERENCE

Everything needed for a reliable first integration.

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.

48 operations · 8 groups
On this page

Before you start

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:

Approved business account

API keys belong to an approved NXTL Business account and inherit its available scopes, quota and commercial configuration.

Funded pooled balance

Issuance and API-funded actions use the business account's available balance. Check the current issuance cost and capacity before creating a batch.

Server-side environment

Keep API and webhook secrets on a trusted server. Never place them in browser JavaScript, a public repository or a distributed mobile application.

HTTPS webhook receiver

Use an HTTPS endpoint, preserve the raw request body for signature verification and return a 2xx response after safely accepting the event.

Sandbox Guidance: There is no separate public sandbox base URL documented today. Use keys, labels and rollout limits agreed for your account, and begin with a contained pilot.

Quick start

This sequence confirms the key, estimates the account impact and queues one eSIM without exposing a secret to the client.

1. Check the public health endpoint

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.

Bash
curl -sS "https://nxtlsim.com/api/v1/health"

2. Confirm the key and account

The response identifies the business account and the permissions available to this key. Store the key as a server-side secret.

Bash
curl -sS \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/partner"

3. Estimate before issuing

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.

Bash
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"

4. Queue one reusable eSIM

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.

Bash
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"

Authentication and scopes

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.

HTTP Header Format
X-NXTL-Key: $NXTL_KEY
Scope IdentifierGranted Operations & Access Level
balance:readRead partner profile, balance totals, ledger history, top-up invoices, and quota snapshots.
balance:writeCredit the pooled balance from the partner’s prepaid budget. The request field is amount_usd. This does not charge a saved payment method.
esims:readQuery fleet inventory, inspect single ICCID status/wallet/events, estimate costs, poll jobs, and view usage CDRs.
esims:writeIssue single/bulk eSIMs, edit nicknames, switch network tiers, suspend, resume, or terminate profiles.
keys:readInspect registered public key identifiers, status, and associated metadata.
keys:writeCreate new scoped API access keys or instantly revoke compromised keys.
webhooks:readInspect configured webhook target URL, subscribed event list, HMAC signing secrets, and delivery logs.
webhooks:writeConfigure webhook subscriptions, dispatch synthetic test pings, and replay previous deliveries.
thresholds:readQuery configured spend, line usage, and balance threshold alert rules.
thresholds:writeCreate, update, enable/disable, or remove automated usage thresholds and auto-suspend policies.
audit:readAccess immutable audit logs for administrative actions, security revisions, and key lifecycles.
usage:readGranular usage telemetry access (accepted alongside esims:read or balance:read).

Build for safe retries and observable failures

Idempotency

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.

Compatibility Note: X-NXTL-Idempotency-Key remains supported as a legacy alias. New integrations should use Idempotency-Key.

Rate limits

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.

Request tracing

Every response includes X-Request-Id. Record it with failed operations and include it when asking NXTL support to investigate.

Issuance is asynchronous by design

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.

Estimate
→
Accepted (202)
→
Pending or running
→
Complete or failed
→
Per-line result
  • • 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.
Critical Implementation Warning: Do not deliver a QR code or tell the customer that provisioning succeeded from the 202 response alone. Wait for the completed job or esim.provisioned event.

Common integration recipes

Three end-to-end patterns reflecting standard operational architectures across travel, mobility, and device fleet deployments.

Issue when the booking is confirmed

  1. Use the booking or order ID as client_reference.
  2. Estimate the issuance cost with POST /esims/estimate.
  3. POST /esims with a stable Idempotency-Key.
  4. Record the returned job_id against the booking.
  5. Listen for esim.provisioned and attach the activation result to the customer journey.
  6. Route esim.provision_failed to support or fulfilment review.
Why it matters: The customer receives connectivity inside the journey they already trust, while the business keeps a reliable reconciliation key.

* Qualification: Roaming usage may be reported after activity. Thresholds are operational safeguards, not guaranteed instantaneous hard spending caps.

Manage the line after issuance

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.

Identify

PATCH /esims/{iccid}/nickname

Change network tier

PATCH /esims/{iccid}/tier

Pause data

POST /esims/{iccid}/suspend

Resume data

POST /esims/{iccid}/resume

Terminate permanently

PATCH /esims/{iccid}/status
Lifecycle result: A successful call returns 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.
Network tier: 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.

Treat money fields as accounting data, not display text

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.

GET /quotas

Read current balance context, lifetime quota, rate-limit state, issuance fee and key/subscription summary.

GET /balance

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.

GET /balance/history

Read the balance ledger.

POST /topup

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.

GET /invoices

Read completed orders associated with API-driven balance top-ups.

Currency rules

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.

Reconcile usage at the level your operation needs

EndpointUse
GET /usage/summaryPartner-wide totals for a selected period
GET /usage/esimsPer-eSIM rollups and filters
GET /usage/cdrsItemised, paginated usage events
GET /usage/timeseriesDaily usage and top-up totals for reporting
GET /esims/{iccid}/usageUsage rows for one eSIM
GET /esims/{iccid}/eventsLedger/lifecycle events for one eSIM
Legacy Route Note: GET /usage/lines is retained as an alias of GET /usage/esims. The response key is lines on both.

Field shapes

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.

SurfacePublic fields
GET /usage/cdrsDefault 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}/usageDefault 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/esimswindow.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.recordedExisting 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.

Threshold model

  • • Scope: balance, esim or legacy-compatible line
  • • Existing USD metrics, unchanged: balance_below, line_usage_pct with notes.cap_per_line_usd, and line_usage_usd_today. They still sum ABS(amount_usd) only.
  • • Opt-in EUR metrics: 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.
  • • Period: instant, daily, weekly and monthly are accepted and stored. The evaluator does not use them.
  • • Action: 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.

Webhooks and signed event delivery

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.

Verification Code Samples

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);
}

Canonical Webhook Events (15 Events)

Event NameCategoryTrigger 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.

Make failures understandable and supportable

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.

Structured JSON Error Envelope
{
  "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 CodeError TypeIntegration Meaning & Handling Guidance
400 BAD_REQUESTbad_requestInvalid request body or parameters. Inspect details field for validation errors. Some earlier endpoints may return compact {"error":"code"}.
401 UNAUTHORIZEDunauthorizedMissing, invalid or revoked API secret in the X-NXTL-Key header.
402 INSUFFICIENT_BALANCEinsufficient_balancePooled balance cannot cover the requested operation. Earlier paths may return compact insufficient_budget or insufficient_balance. Top up balance to resume.
403 ACCESS_DENIEDaccess_deniedValid key without the required access scope for the requested endpoint.
404 NOT_FOUNDnot_foundRequested resource (ICCID, Job ID, Delivery ID, Key ID) was not found.
409 QUOTA_EXCEEDEDquota_exhaustedPartner lifetime issuance quota would be exceeded on bulk issuance.
429 RATE_LIMIT_EXCEEDEDrate_limit_exceededRequest rate limit exceeded (or single issuance quota exceeded with {"error":"quota_exceeded"}). Check Retry-After header.
502 UPSTREAM_ERRORupstream_errorUpstream carrier provisioning or service dependency failed. Retry with exponential backoff.

Endpoint reference

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.

Operations 4 operations

Health, partner profile, quotas and the partner audit log.

GET /health — Public health check
none (public)

Public health check

Responses
  • 200 — Plugin reachable.
cURL Example
curl -sS \
  "https://nxtlsim.com/api/v1/health"
GET /partner — Partner profile + scopes resolved by the key
balance:read

Partner profile + scopes resolved by the key

Responses
  • 200 — Partner profile + scopes.
cURL Example
curl -sS \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/partner"
GET /quotas — Balance, lifetime quota, rate limit, issuance fee, subscription state
balance:read

Balance, lifetime quota, rate limit, issuance fee, subscription state

Responses
  • 200 — Balance/quota/rate-limit/issuance fee snapshot.
cURL Example
curl -sS \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/quotas"
GET /audit — Partner-scoped audit log
audit:read

Partner-scoped audit log

Parameters
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
Responses
  • 200 — Paginated partner audit rows.
cURL Example
curl -sS \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/audit"
eSIMs 11 operations

Issue, list and change individual eSIM profiles.

GET /esims — List eSIMs in your fleet
esims:read

List eSIMs in your fleet

Parameters
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
Responses
  • 200 — Paginated list of eSIMs.
cURL Example
curl -sS \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/esims"
POST /esims — Issue a single eSIM (async)
esims:write Idempotent

Returns 202 Accepted with a job id. Webhook `esim.provisioned` fires when the SIM is bound. Send `Idempotency-Key` to make retries safe.

Parameters
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.
Request Body application/json optional
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
JSON Request Body Example
{
    "nickname": "Traveller 123",
    "tier": "cheapest",
    "client_reference": "ORDER-123"
}
Responses
  • 202 — 202 Accepted with job_id.
  • 402 — 402 Insufficient pooled balance.
  • 409 — 409 Lifetime issuance quota exhausted.
cURL Example
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"
GET /lines — Legacy alias of GET /esims
esims:read Legacy Alias

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.

Parameters
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
Responses
  • 200 — Paginated list of eSIMs.
cURL Example
curl -sS \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/lines"
GET /esims/{iccid} — Retrieve one eSIM
esims:read

Retrieve one eSIM

Parameters
Field Location Type Requirement Description
iccid path string required
Responses
  • 200 — Single eSIM resource.
cURL Example
curl -sS \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/esims/{iccid}"
PATCH /esims/{iccid}/nickname — Update nickname
esims:write

Update nickname

Parameters
Field Location Type Requirement Description
iccid path string required
Request Body application/json required
Property Type Requirement Description
nickname string optional
Responses
  • 200 — Single eSIM resource.
cURL Example
curl -sS -X PATCH \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/esims/{iccid}/nickname"
PATCH /esims/{iccid}/tier — Change network tier
esims:write

Change network tier

Parameters
Field Location Type Requirement Description
iccid path string required
Request Body application/json required
Property Type Requirement Description
tier string (cheapest, best_coverage) optional cheapest or best_coverage. standard is accepted as an alias of cheapest.
Responses
  • 200 — Single eSIM resource.
cURL Example
curl -sS -X PATCH \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/esims/{iccid}/tier"
PATCH /esims/{iccid}/status — Suspend, reactivate, or terminate
esims:write

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.

Parameters
Field Location Type Requirement Description
iccid path string required
Request Body application/json required
Property Type Requirement Description
action string (suspend, reactivate, terminate) optional
Responses
  • 200 — Generic acknowledgement.
  • 409 — Reactivate refused: eSIM is already terminated. Issue a new eSIM.
cURL Example
curl -sS -X PATCH \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/esims/{iccid}/status"
POST /esims/{iccid}/suspend — Suspend alias
esims:write

Same as PATCH /esims/{iccid}/status with action suspend. Reversible. Resume with POST /esims/{iccid}/resume or PATCH action reactivate.

Parameters
Field Location Type Requirement Description
iccid path string required
Responses
  • 200 — Generic acknowledgement.
cURL Example
curl -sS -X POST \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/esims/{iccid}/suspend"
POST /esims/{iccid}/resume — Reactivate alias
esims:write

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.

Parameters
Field Location Type Requirement Description
iccid path string required
Responses
  • 200 — Generic acknowledgement.
cURL Example
curl -sS -X POST \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/esims/{iccid}/resume"
GET /esims/{iccid}/wallet — Live carrier wallet read
esims:read

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.

Parameters
Field Location Type Requirement Description
iccid path string required
Responses
  • 200 — Wallet snapshot.
cURL Example
curl -sS \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/esims/{iccid}/wallet"
GET /esims/{iccid}/events — Per-line ledger events
esims:read

Per-line ledger events

Parameters
Field Location Type Requirement Description
iccid path string required
Responses
  • 200 — Per-line ledger events.
cURL Example
curl -sS \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/esims/{iccid}/events"
Bulk and jobs 7 operations

Batch issuance, estimates and asynchronous job results.

POST /esims/bulk-status — Look up the status of many ICCIDs in one call
esims:write

Look up the status of many ICCIDs in one call

Request Body application/json required
Property Type Requirement Description
iccids array optional
Responses
  • 200 — Array of `{iccid, status, tier, lifecycle}` rows.
cURL Example
curl -sS -X POST \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/esims/bulk-status"
POST /esims/bulk-tier — Change the network tier for many ICCIDs at once
esims:write

Change the network tier for many ICCIDs at once

Request Body application/json required
Property Type Requirement Description
iccids array optional
tier string (cheapest, best_coverage) optional cheapest or best_coverage.
Responses
  • 200 — All ICCIDs updated; per-ICCID `esim.tier_changed` webhooks fire.
cURL Example
curl -sS -X POST \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/esims/bulk-tier"
POST /esims/bulk-issue — Async batch issuance
esims:write Idempotent

Returns 202 + job id. Pre-flight balance + quota checks; on insufficient balance you get 402 with a full estimate breakdown.

Parameters
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.
Request Body application/json required
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
JSON Request Body Example
{
    "quantity": 1,
    "tier": "cheapest"
}
Responses
  • 202 — 202 Accepted with job_id.
  • 402 — 402 Insufficient pooled balance.
  • 409 — 409 Lifetime issuance quota exhausted.
cURL Example
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"
POST /esims/estimate — Pre-flight cost estimate
esims:read

Pre-flight cost estimate

Request Body application/json required
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.
JSON Request Body Example
{
    "quantity": 1,
    "tier": "cheapest"
}
Responses
  • 200 — Pre-flight cost estimate.
cURL Example
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"
GET /jobs — List your async jobs
esims:read

List your async jobs

Responses
  • 200 — Paginated list of jobs (issuance, bulk-tier, …) with status counts.
cURL Example
curl -sS \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/jobs"
GET /jobs/{id} — Job detail with per-row results
esims:read

Job detail with per-row results

Parameters
Field Location Type Requirement Description
id path integer required
Responses
  • 200 — Job detail with per-row results.
cURL Example
curl -sS \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/jobs/{id}"
GET /esim-requests/{job_id} — Legacy alias for /jobs/{id} (kept for back-compat)
esims:read Legacy Alias

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.

Parameters
Field Location Type Requirement Description
job_id path integer required
Responses
  • 200 — Job detail with per-row results.
cURL Example
curl -sS \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/esim-requests/{job_id}"
Balance 4 operations

Pooled balance, prepaid-budget top-ups, ledger and invoices.

GET /balance — Pool totals + per-eSIM wallet mirrors
balance:read

Pool totals + per-eSIM wallet mirrors

Responses
  • 200 — Pool totals + per-eSIM wallets.
cURL Example
curl -sS \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/balance"
GET /balance/history — Recent ledger entries
balance:read

Recent ledger entries

Parameters
Field Location Type Requirement Description
page query integer optional
per_page query integer optional
Responses
  • 200 — Ledger entries.
cURL Example
curl -sS \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/balance/history"
POST /topup — Credit pool from prepaid budget
balance:write Idempotent

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.

Parameters
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.
Request Body application/json required
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.
JSON Request Body Example
{
    "amount_usd": 25
}
Responses
  • 200 — Generic acknowledgement.
  • 402 — 402 Insufficient pooled balance.
cURL Example
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"
GET /invoices — WooCommerce orders for API-driven top-ups
balance:read

WooCommerce orders for API-driven top-ups

Responses
  • 200 — List of orders + invoice hints.
cURL Example
curl -sS \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/invoices"
Usage 6 operations

Aggregates, itemised usage events and daily totals.

GET /esims/{iccid}/usage — Per-line ledger rows, with usage detail on usage entries
esims:read

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.

Parameters
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.
Responses
  • 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 Example
curl -sS \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/esims/{iccid}/usage"
GET /usage/summary — Partner-wide aggregated usage
esims:read

Partner-wide aggregated usage

Parameters
Field Location Type Requirement Description
days query integer optional
Responses
  • 200 — Totals for `days`, MTD, today.
cURL Example
curl -sS \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/usage/summary"
GET /usage/esims — Per-eSIM money rollups
usage:read or esims:read

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.

Parameters
Field Location Type Requirement Description
since query string optional
until query string optional
iccid query string optional
limit query integer optional
Responses
  • 200 — Object with window and lines. See UsageEsimList. The array key is lines, not esims.
cURL Example
curl -sS \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/usage/esims"
GET /usage/lines — Legacy alias of /usage/esims
usage:read or esims:read Legacy Alias

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.

Responses
  • 200 — Same response shape as /usage/esims: { window, lines }.
cURL Example
curl -sS \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/usage/lines"
GET /usage/cdrs — Itemised usage ledger rows
usage:read or balance:read

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.

Parameters
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
Responses
  • 200 — Paginated CDR list. bytes and country are present but empty on the current serializer. See CdrList.
cURL Example
curl -sS \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/usage/cdrs"
GET /usage/timeseries — Daily usage + top-up totals (chart-ready)
usage:read or balance:read

Daily usage + top-up totals (chart-ready)

Parameters
Field Location Type Requirement Description
days query integer optional
Responses
  • 200 — Series of `{day, usage_usd, topup_usd, events}`.
cURL Example
curl -sS \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/usage/timeseries"
API keys 3 operations

Create, list and revoke keys. A new secret is returned once.

GET /api-keys — List keys (no secrets)
keys:read

List keys (no secrets)

Responses
  • 200 — List.
cURL Example
curl -sS \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/api-keys"
POST /api-keys — Create key (returns secret once)
keys:write

Create key (returns secret once)

Request Body application/json optional
Property Type Requirement Description
label string optional
Responses
  • 201 — { public_id, secret, scopes, warning }
cURL Example
curl -sS -X POST \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/api-keys"
DELETE /api-keys/{key_public} — Revoke key
keys:write

Revoke key

Parameters
Field Location Type Requirement Description
key_public path string required
Responses
  • 200 — Generic acknowledgement.
cURL Example
curl -sS -X DELETE \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/api-keys/{key_public}"
Webhooks 9 operations

Subscriptions, signing secret, delivery log and replay.

GET /webhooks — Read URL + subscriptions
webhooks:read

Read URL + subscriptions

Responses
  • 200 — Configured webhook URL and event list.
cURL Example
curl -sS \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/webhooks"
PUT /webhooks — Update URL + subscriptions
webhooks:write

Update URL + subscriptions

Request Body application/json optional
Property Type Requirement Description
webhook_url string optional
events array optional
Responses
  • 200 — Generic acknowledgement.
cURL Example
curl -sS -X PUT \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/webhooks"
GET /webhooks/events — Catalog of every event we emit + subscription state
webhooks:read

Catalog of every event we emit + subscription state

Responses
  • 200 — { events: [{event, description, subscribed}] }
cURL Example
curl -sS \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/webhooks/events"
GET /webhooks/secret — Active HMAC secret + signed-payload spec
webhooks:read

Active HMAC secret + signed-payload spec

Responses
  • 200 — { algorithm, header_v1, signed_payload, active_secret, rotating_secret }
cURL Example
curl -sS \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/webhooks/secret"
POST /webhooks/test — Send `test.ping` to configured URL
webhooks:write

Send `test.ping` to configured URL

Responses
  • 200 — Generic acknowledgement.
cURL Example
curl -sS -X POST \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/webhooks/test"
GET /webhooks/deliveries — List webhook deliveries
webhooks:read

List webhook deliveries

Parameters
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
Responses
  • 200 — Paginated deliveries.
cURL Example
curl -sS \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/webhooks/deliveries"
GET /webhooks/deliveries/{id} — Full delivery row (payload + response)
webhooks:read

Full delivery row (payload + response)

Parameters
Field Location Type Requirement Description
id path integer required
Responses
  • 200 — Delivery detail.
cURL Example
curl -sS \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/webhooks/deliveries/{id}"
POST /webhooks/deliveries/{id}/replay — Replay a delivery to your endpoint
webhooks:write

Replay a delivery to your endpoint

Parameters
Field Location Type Requirement Description
id path integer required
Responses
  • 200 — Generic acknowledgement.
cURL Example
curl -sS -X POST \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/webhooks/deliveries/{id}/replay"
POST /webhooks/{id}/replay — Replay a delivery (legacy alias)
webhooks:write Legacy Alias

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.

Parameters
Field Location Type Requirement Description
id path integer required
Responses
  • 200 — Generic acknowledgement.
cURL Example
curl -sS -X POST \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/webhooks/{id}/replay"
Thresholds 4 operations

Account-chosen alert and suspension rules. These are not a usage-based FUP.

GET /thresholds — List rules
thresholds:read

List rules

Responses
  • 200 — { rules: [...] }
cURL Example
curl -sS \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/thresholds"
POST /thresholds — Create rule
thresholds:write

Create rule

Request Body application/json 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
Responses
  • 201 — { id }
cURL Example
curl -sS -X POST \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/thresholds"
PATCH /thresholds/{id} — Update rule
thresholds:write

Update rule

Parameters
Field Location Type Requirement Description
id path integer required
Request Body application/json 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
Responses
  • 200 — Generic acknowledgement.
cURL Example
curl -sS -X PATCH \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/thresholds/{id}"
DELETE /thresholds/{id} — Delete rule
thresholds:write

Delete rule

Parameters
Field Location Type Requirement Description
id path integer required
Responses
  • 200 — Generic acknowledgement.
cURL Example
curl -sS -X DELETE \
  -H "X-NXTL-Key: $NXTL_KEY" \
  "https://nxtlsim.com/api/v1/thresholds/{id}"

Current API boundaries

The public API exposes the operations documented above. Some adjacent capabilities still require NXTL operations or a commercial integration review.

  • A public destination/network catalogue and dynamic pricing feed is not part of the current documented REST surface. Use the NXTL Coverage and Data Pricing pages, and discuss machine-readable pricing needs during integration planning.
  • Detailed upstream network diagnostics remain a support function rather than a partner API response.
  • The API does not guarantee that a specific device accepts a third-party eSIM. Validate the model and configuration separately.
  • Usage events can arrive after network activity. The usage poll default is 10 minutes and re-reads up to 12 hours of supplier lag, then threshold rules run on the minute tick. Reporting and threshold actions are not instantaneous.
  • Threshold rules cannot enforce an arbitrary multi-day gigabyte allowance. cap_per_line_usd is a monthly USD money cap. A GB cap over custom dates has to be calculated by the reseller.
  • There is no per-eSIM top-up or allocation endpoint and no DELETE eSIM route. Credit the pool with POST /topup. Pause with suspend/resume. Remove service only with terminate.
  • Standard NXTL service is data-only and does not provide ordinary cellular voice or SMS numbers through this API.

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.

READY TO DESIGN THE FIRST FLOW?

Bring the use case. Leave with an integration path.

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.