Skip to content
Install NESVRA on your home screen for quick access to your eSIMs. Get the app
NESVRA

API documentation

NESVRA API v1

Reference for authentication, conventions and every endpoint planned for API v1. The API is in preview: endpoints are documented but not yet live.

Preview contract

Conventions

Base URL
https://api.nesvra.com/api/v1
Sandbox URL
https://sandbox.api.nesvra.com/api/v1
Authentication
Bearer token. Customer and workspace sessions use Laravel Sanctum; server integrations use project API keys (nsv_test_ / nsv_live_).
Idempotency
All POST endpoints that create money movements, orders, provisioning or redemptions require an Idempotency-Key header (UUID). Replays return the original response for 24 hours.
Pagination
Cursor pagination: ?limit=25&cursor=... Response meta: { next_cursor, prev_cursor, limit }.
Response envelope
Success: { "data": ..., "meta": {...} }. Error: { "error": { "code", "message", "fields", "request_id" } }.
Money
Money is { "amount_minor": int, "currency": "ISO 4217" }. Never floats.
Dates and codes
ISO 8601 UTC timestamps (2026-11-20T12:00:00Z). Countries are ISO 3166-1 alpha-2.
Rate limits
Headers X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset. 429 with Retry-After when exceeded.
curl https://sandbox.api.nesvra.com/api/v1/esims?country=JP&limit=2 \
  -H "Authorization: Bearer nsv_test_..." \
  -H "Accept: application/json"

Errors

CodeHTTP
validation_failed422
unauthenticated401
forbidden403
not_found404
conflict409
idempotency_mismatch409
module_disabled403
rate_limited429
provider_unavailable503
payment_not_verified402
server_error500

Public catalogue

  • GET/api/v1/destinationspublic

    List countries and regions with plan counts and from-prices.

  • GET/api/v1/destinations/{slug}public

    Destination detail with coverage records from suppliers.

  • GET/api/v1/esimspublic

    Search products. Filters: country, region, type, tag, min_gb, max_price, sort.

  • GET/api/v1/esims/{slug}public

    Product detail including restrictions and activation policy.

  • GET/api/v1/pricing/quotepublic

    Price quote for products, quantity, currency and coupon.

  • GET/api/v1/devicespublic

    Device compatibility records.

  • GET/api/v1/content/{type}public

    Published CMS content (pages, posts, press, knowledge, guides).

Cart and checkout

  • POST/api/v1/cartpublic

    Create or replace a cart from client items; server revalidates prices.

  • PATCH/api/v1/cart/{id}public

    Update quantities, recipients or coupon.

  • POST/api/v1/checkoutcustomer|guest

    Create order and payment intent. Requires Idempotency-Key.

  • GET/api/v1/checkout/payment-methodspublic

    Eligible methods for country, currency and amount (payment routing).

  • POST/api/v1/orders/lookuppublic

    Guest order lookup by reference and email (rate limited).

  • POST/api/v1/coupons/validatepublic

    Validate a coupon against a cart.

Customer account

  • GET/api/v1/accountcustomer

    Profile, preferences and summary counts.

  • PATCH/api/v1/accountcustomer

    Update profile, language and currency.

  • GET/api/v1/account/esimscustomer

    List eSIMs with lifecycle and installation status.

  • GET/api/v1/account/esims/{id}customer

    eSIM detail with installation details (QR, SM-DP+, activation code).

  • GET/api/v1/account/esims/{id}/usagecustomer

    Usage records where the supplier provides them.

  • GET/api/v1/account/esims/{id}/topupscustomer

    Eligible top-up packages.

  • POST/api/v1/esims/{id}/topupscustomer

    Purchase a top-up. Requires Idempotency-Key.

  • GET/api/v1/orderscustomer

    Customer orders.

  • GET/api/v1/orders/{id}customer

    Order detail with events timeline.

  • GET/api/v1/account/transactionscustomer

    Payments and refunds.

  • POST/api/v1/account/refundscustomer

    Request a refund for an order item.

  • GET/api/v1/account/walletcustomer

    Wallet balances by currency (from ledger).

  • GET/api/v1/account/wallet/transactionscustomer

    Wallet ledger movements.

  • POST/api/v1/account/wallet/depositscustomer

    Create a deposit payment intent. Credit only after verified webhook.

  • GET/api/v1/account/payment-methodscustomer

    Saved tokenised payment methods.

  • GET/api/v1/account/statementscustomer

    Monthly statements.

  • GET/api/v1/account/voucherscustomer

    Owned and received vouchers.

  • POST/api/v1/vouchers/purchasecustomer

    Buy vouchers (gift, scheduled delivery). Requires Idempotency-Key.

  • POST/api/v1/vouchers/redeemcustomer

    Redeem a code to wallet, checkout or product. Atomic, single use.

  • GET/api/v1/account/referralscustomer

    Referral code, link, stats and referral records.

  • GET/api/v1/account/rewardscustomer

    Rewards and their status.

  • GET/api/v1/account/notificationscustomer

    Notifications feed.

  • PATCH/api/v1/account/notification-preferencescustomer

    Channel and topic preferences with consent.

  • GET/api/v1/account/sessionscustomer

    Active sessions and devices.

  • DELETE/api/v1/account/sessions/{id}customer

    Revoke a session.

  • POST/api/v1/account/two-factorcustomer

    Enable two-step verification.

  • POST/api/v1/account/privacy-requestscustomer

    Data export or deletion request.

Support and Rihana

  • POST/api/v1/support/ticketscustomer|guest

    Create a ticket (also used by Rihana handover with conversation context).

  • GET/api/v1/support/ticketscustomer

    Customer tickets.

  • POST/api/v1/support/tickets/{id}/messagescustomer

    Reply to a ticket.

  • POST/api/v1/rihana/conversationspublic

    Start a conversation.

  • POST/api/v1/rihana/conversations/{id}/messagespublic

    Send a message; server runs retrieval and permitted tools.

  • POST/api/v1/rihana/conversations/{id}/handoverpublic

    Request a human; creates ticket and assigns department.

  • POST/api/v1/leadspublic

    Capture a business lead (forms and Rihana).

  • POST/api/v1/marketing/subscriptionspublic

    Newsletter subscription with double opt-in.

  • POST/api/v1/push/subscriptionspublic

    Store a browser push subscription with topics and consent.

  • DELETE/api/v1/push/subscriptions/{id}public

    Unsubscribe.

Partner workspaces

  • GET/api/v1/partner/dashboardpartner

    Workspace KPIs for merchant, reseller, affiliate or white-label partner.

  • GET/api/v1/partner/cataloguepartner

    Authorised products with wholesale cost and retail price.

  • PUT/api/v1/partner/pricing-rulespartner

    Retail price rules and margins.

  • POST/api/v1/partner/orderspartner

    Create order for a customer. Requires Idempotency-Key.

  • POST/api/v1/partner/orders/bulkpartner

    Bulk order from CSV or JSON.

  • GET/api/v1/partner/orderspartner

    Partner orders.

  • GET/api/v1/partner/customerspartner

    Partner customers (tenant isolated).

  • POST/api/v1/partner/voucher-batchespartner

    Generate a voucher batch.

  • GET/api/v1/partner/voucherspartner

    Voucher inventory.

  • GET/api/v1/partner/sub-accountspartner

    Sub-merchants or sub-resellers.

  • GET/api/v1/partner/walletpartner

    Partner wallet and funding.

  • GET/api/v1/partner/commissionspartner

    Commission entries.

  • GET/api/v1/partner/settlementspartner

    Settlements and statements.

  • GET/api/v1/partner/invoicespartner

    Invoices.

  • GET/api/v1/partner/reports/{report}partner

    Reports and exports.

  • GET/api/v1/partner/teampartner

    Team members and roles.

  • POST/api/v1/partner/team/invitationspartner

    Invite a team member.

  • GET/api/v1/partner/storefrontpartner

    Storefront and branding settings.

  • POST/api/v1/partner/domainspartner

    Add a custom domain and start verification.

  • GET/api/v1/affiliate/linkspartner

    Tracked links and QR codes.

  • GET/api/v1/affiliate/clickspartner

    Click analytics.

  • GET/api/v1/affiliate/conversionspartner

    Attributed conversions.

  • POST/api/v1/affiliate/payoutspartner

    Request payout above threshold.

Corporate workspace

  • GET/api/v1/corporate/dashboardcorporate

    Organisation KPIs.

  • GET/api/v1/corporate/employeescorporate

    Employees.

  • POST/api/v1/corporate/employeescorporate

    Invite or import employees.

  • GET/api/v1/corporate/departmentscorporate

    Departments with budgets.

  • POST/api/v1/corporate/allocationscorporate

    Allocate an eSIM or voucher to an employee.

  • GET/api/v1/corporate/approvalscorporate

    Approval queue.

  • POST/api/v1/corporate/approvals/{id}/decisioncorporate

    Approve or reject.

  • PUT/api/v1/corporate/policiescorporate

    Spending controls and policies.

  • GET/api/v1/corporate/travel-requestscorporate

    Travel requests.

  • GET/api/v1/corporate/invoicescorporate

    Invoices and billing.

  • GET/api/v1/corporate/reports/usagecorporate

    Usage and spend reports.

Developer and server-to-server

  • POST/api/v1/ordersdeveloper

    Create order. Requires Idempotency-Key.

  • POST/api/v1/esims/provisiondeveloper

    Request provisioning for a paid order item. Async; webhook on result.

  • GET/api/v1/esims/{id}/statusdeveloper

    Lifecycle status.

  • GET/api/v1/esims/{id}/usagedeveloper

    Usage.

  • POST/api/v1/esims/{id}/topupdeveloper

    Apply a top-up. Requires Idempotency-Key.

  • GET/api/v1/developer/projectscustomer

    API projects.

  • POST/api/v1/developer/api-keyscustomer

    Create a scoped key (secret shown once).

  • DELETE/api/v1/developer/api-keys/{id}customer

    Revoke a key.

  • GET/api/v1/developer/logscustomer

    Request logs.

  • GET/api/v1/developer/usagecustomer

    Usage by endpoint.

  • GET/api/v1/webhooksdeveloper

    Webhook endpoints.

  • POST/api/v1/webhooksdeveloper

    Create endpoint (secret shown once).

  • POST/api/v1/webhooks/deliveries/{id}/replaydeveloper

    Replay a delivery (permission required).

  • POST/api/v1/sandbox/simulatedeveloper

    Trigger simulated lifecycle events (sandbox only).

  • GET/api/v1/reports/{report}developer

    Reporting API.

Inbound provider webhooks

  • POST/api/v1/hooks/payments/{provider}signature

    Payment provider webhook. Signature verified, idempotent, persisted before processing.

  • POST/api/v1/hooks/esim/{provider}signature

    eSIM supplier webhook (provisioning, installation, usage).

  • POST/api/v1/hooks/kyc/{provider}signature

    Identity verification results.

  • POST/api/v1/hooks/messaging/{provider}signature

    SMS, email and push delivery receipts.

Administration

  • GET/api/v1/admin/dashboardadmin:dashboard.view

    Executive KPIs from application records.

  • GET/api/v1/admin/customersadmin:customers.view

    Customers with filters.

  • PATCH/api/v1/admin/customers/{id}admin:customers.manage

    Restrict or update (approval for restrictions).

  • GET/api/v1/admin/esimsadmin:esims.view

    eSIM inventory and lifecycle.

  • GET/api/v1/admin/provisioningadmin:esims.view

    Provisioning queue and failures.

  • POST/api/v1/admin/provisioning/{id}/reconcileadmin:esims.operate

    Reconcile a timed-out request with the supplier before any retry.

  • GET/api/v1/admin/ordersadmin:orders.view

    Orders.

  • GET/api/v1/admin/catalogueadmin:catalogue.view

    Products and mappings.

  • POST/api/v1/admin/catalogue/syncadmin:catalogue.sync

    Start catalogue synchronisation for a provider.

  • PUT/api/v1/admin/pricing/rulesadmin:pricing.manage

    Pricing rules and markups.

  • GET/api/v1/admin/providersadmin:providers.view

    Provider registry.

  • PUT/api/v1/admin/providers/{id}/credentialsadmin:providers.credentials

    Store encrypted credentials (write-only; never returned).

  • POST/api/v1/admin/providers/{id}/testadmin:providers.manage

    Run a safe connection test.

  • PUT/api/v1/admin/providers/routingadmin:providers.manage

    Routing and failover rules.

  • GET/api/v1/admin/paymentsadmin:finance.view

    Payments, failures, chargebacks.

  • GET/api/v1/admin/ledgeradmin:finance.view

    Ledger entries and balances.

  • POST/api/v1/admin/wallets/{id}/adjustmentsadmin:finance.adjust

    Manual adjustment request (maker); checker approves.

  • POST/api/v1/admin/approvals/{id}/decisionadmin:approvals.decide

    Checker decision on a sensitive operation.

  • POST/api/v1/admin/refunds/{id}/approveadmin:refunds.approve

    Approve refund (second approver over threshold).

  • POST/api/v1/admin/voucher-batchesadmin:vouchers.generate

    Generate vouchers.

  • POST/api/v1/admin/vouchers/{id}/revokeadmin:vouchers.revoke

    Revoke (approval required).

  • GET/api/v1/admin/partnersadmin:partners.view

    Partners and applications.

  • POST/api/v1/admin/applications/{id}/decisionadmin:partners.approve

    Approve or reject a business application.

  • GET/api/v1/admin/commissionsadmin:commissions.view

    Commission entries.

  • POST/api/v1/admin/payouts/{id}/approveadmin:payouts.approve

    Approve payout.

  • GET/api/v1/admin/push/campaignsadmin:marketing.view

    Push campaigns.

  • POST/api/v1/admin/push/campaignsadmin:marketing.send

    Create, schedule or send a campaign (consent enforced).

  • GET/api/v1/admin/content/{type}admin:content.view

    CMS records with revisions.

  • POST/api/v1/admin/content/{type}admin:content.publish

    Create or update content; publish/schedule.

  • GET/api/v1/admin/rihana/conversationsadmin:rihana.view

    Conversations.

  • POST/api/v1/admin/rihana/knowledgeadmin:rihana.manage

    Add or reindex knowledge sources.

  • GET/api/v1/admin/modulesadmin:modules.view

    Module registry and state.

  • PATCH/api/v1/admin/modules/{key}admin:modules.manage

    Enable, disable or configure a module (audited).

  • PUT/api/v1/admin/settingsadmin:settings.manage

    Global settings.

  • GET/api/v1/admin/audit-logsadmin:security.view

    Audit trail.

  • GET/api/v1/admin/reports/{report}admin:reports.view

    Reports and exports.

Account, partner and corporate settings

  • DELETE/api/v1/account/sessionscustomer

    Sign out other sessions.

  • POST/api/v1/account/payment-methodscustomer

    Add a saved payment method via the gateway (tokenised).

  • GET/api/v1/orders/{id}/receiptcustomer

    Download a receipt PDF.

  • POST/api/v1/business/applicationspublic

    Submit a business programme application.

  • PATCH/api/v1/partner/profilepartner

    Update workspace profile.

  • POST/api/v1/partner/verification/documentspartner

    Upload KYB documents (to the verification provider).

  • POST/api/v1/partner/sub-accountspartner

    Create a sub-merchant or sub-reseller.

  • POST/api/v1/partner/campaign-linkspartner

    Create a tracked campaign link.

  • POST/api/v1/partner/promotionspartner

    Create a partner promotion.

  • POST/api/v1/partner/reports/schedulespartner

    Schedule a report by email.

  • POST/api/v1/partner/rolespartner

    Create a custom workspace role.

  • POST/api/v1/partner/wallet/depositspartner

    Start a wallet deposit (credited only after verified payment).

  • POST/api/v1/partner/orders/{id}/resendpartner

    Resend installation details to the customer.

  • POST/api/v1/partner/orders/{id}/refundspartner

    Request a refund for a partner order.

  • POST/api/v1/partner/storefrontspartner

    Create a reseller storefront.

  • PUT/api/v1/partner/storefrontpartner

    Save storefront branding and content.

  • POST/api/v1/partner/storefront/publishpartner

    Publish the storefront.

  • PUT/api/v1/partner/paymentspartner

    White-label payment configuration.

  • PATCH/api/v1/affiliate/profilepartner

    Update affiliate profile.

  • POST/api/v1/affiliate/campaignspartner

    Create an affiliate campaign.

  • POST/api/v1/affiliate/coupon-requestspartner

    Request a personal coupon code.

  • PUT/api/v1/affiliate/payment-detailspartner

    Payout details (stored with the payout provider).

  • PUT/api/v1/affiliate/taxpartner

    Tax information.

  • PATCH/api/v1/corporate/settingscorporate

    Company settings and policies.

  • PATCH/api/v1/corporate/billingcorporate

    Billing details.

  • POST/api/v1/corporate/departmentscorporate

    Create a department.

  • POST/api/v1/corporate/employees/importcorporate

    Import employees from CSV.

  • POST/api/v1/developer/projectsdeveloper

    Create an API project.

  • POST/api/v1/developer/production-requestsdeveloper

    Request production access.

Administration (operations and content)

  • POST/api/v1/admin/segmentsadmin:marketing.manage

    Create a customer segment.

  • POST/api/v1/admin/customers/{id}/password-resetadmin:customers.manage

    Send a password reset email.

  • POST/api/v1/admin/customers/{id}/restrictionsadmin:customers.restrict

    Request an account restriction (maker-checker).

  • POST/api/v1/admin/esims/{id}/refreshadmin:esims.manage

    Refresh eSIM status from the supplier.

  • POST/api/v1/admin/esims/{id}/resendadmin:esims.manage

    Resend installation email.

  • POST/api/v1/admin/esims/{id}/suspendadmin:esims.manage

    Suspend at supplier where supported.

  • POST/api/v1/admin/orders/{id}/refundsadmin:refunds.request

    Create a refund request.

  • POST/api/v1/admin/catalogueadmin:catalogue.manage

    Create a NESVRA product.

  • PUT/api/v1/admin/fx/{currency}admin:finance.fx

    Override an FX rate.

  • POST/api/v1/admin/couponsadmin:marketing.manage

    Create a coupon.

  • PUT/api/v1/admin/referral-programmes/{id}admin:referrals.manage

    Update referral programme rules (approval).

  • POST/api/v1/admin/admin-usersadmin:admins.manage

    Invite an administrator.

  • POST/api/v1/admin/rolesadmin:roles.manage

    Create a custom role.

  • PUT/api/v1/admin/providers/{id}admin:providers.manage

    Enable, disable or reprioritise a provider.

  • POST/api/v1/admin/automationsadmin:marketing.manage

    Create a marketing automation.

  • PUT/api/v1/admin/automations/{id}admin:marketing.manage

    Activate, pause or edit an automation.

  • POST/api/v1/admin/content/pagesadmin:content.publish

    Create a website page.

  • POST/api/v1/admin/content/knowledgeadmin:content.publish

    Create a knowledge article.

  • PUT/api/v1/admin/content/{type}/{id}admin:content.edit

    Save a content draft (versioned).

  • POST/api/v1/admin/content/{id}/transitionsadmin:content.publish

    Move content through Draft, In review, Approved, Published.

  • PUT/api/v1/admin/content/homepageadmin:content.publish

    Publish homepage layout.

  • PUT/api/v1/admin/navigationadmin:content.publish

    Publish header and footer navigation.

  • POST/api/v1/admin/mediaadmin:content.edit

    Upload media to object storage.

  • POST/api/v1/admin/media-coverageadmin:content.publish

    Add verified third-party coverage.

  • POST/api/v1/admin/redirectsadmin:seo.manage

    Add a redirect.

  • POST/api/v1/admin/ticketsadmin:support.manage

    Create a ticket (for example from a conversation).

  • POST/api/v1/admin/rihana/feedbackadmin:rihana.manage

    Mark a Rihana answer as wrong.

  • POST/api/v1/admin/rihana/indexadmin:rihana.manage

    Queue a knowledge reindex.

  • POST/api/v1/admin/rihana/sourcesadmin:rihana.manage

    Add a knowledge source.

  • POST/api/v1/admin/rihana/evaluationsadmin:rihana.manage

    Run the evaluation suite.