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.
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
| Code | HTTP |
|---|---|
| validation_failed | 422 |
| unauthenticated | 401 |
| forbidden | 403 |
| not_found | 404 |
| conflict | 409 |
| idempotency_mismatch | 409 |
| module_disabled | 403 |
| rate_limited | 429 |
| provider_unavailable | 503 |
| payment_not_verified | 402 |
| server_error | 500 |
Public catalogue
-
GET
/api/v1/destinationspublicList countries and regions with plan counts and from-prices.
-
GET
/api/v1/destinations/{slug}publicDestination detail with coverage records from suppliers.
-
GET
/api/v1/esimspublicSearch products. Filters: country, region, type, tag, min_gb, max_price, sort.
-
GET
/api/v1/esims/{slug}publicProduct detail including restrictions and activation policy.
-
GET
/api/v1/pricing/quotepublicPrice quote for products, quantity, currency and coupon.
-
GET
/api/v1/devicespublicDevice compatibility records.
-
GET
/api/v1/content/{type}publicPublished CMS content (pages, posts, press, knowledge, guides).
Cart and checkout
-
POST
/api/v1/cartpublicCreate or replace a cart from client items; server revalidates prices.
-
PATCH
/api/v1/cart/{id}publicUpdate quantities, recipients or coupon.
-
POST
/api/v1/checkoutcustomer|guestCreate order and payment intent. Requires Idempotency-Key.
-
GET
/api/v1/checkout/payment-methodspublicEligible methods for country, currency and amount (payment routing).
-
POST
/api/v1/orders/lookuppublicGuest order lookup by reference and email (rate limited).
-
POST
/api/v1/coupons/validatepublicValidate a coupon against a cart.
Customer account
-
GET
/api/v1/accountcustomerProfile, preferences and summary counts.
-
PATCH
/api/v1/accountcustomerUpdate profile, language and currency.
-
GET
/api/v1/account/esimscustomerList eSIMs with lifecycle and installation status.
-
GET
/api/v1/account/esims/{id}customereSIM detail with installation details (QR, SM-DP+, activation code).
-
GET
/api/v1/account/esims/{id}/usagecustomerUsage records where the supplier provides them.
-
GET
/api/v1/account/esims/{id}/topupscustomerEligible top-up packages.
-
POST
/api/v1/esims/{id}/topupscustomerPurchase a top-up. Requires Idempotency-Key.
-
GET
/api/v1/orderscustomerCustomer orders.
-
GET
/api/v1/orders/{id}customerOrder detail with events timeline.
-
GET
/api/v1/account/transactionscustomerPayments and refunds.
-
POST
/api/v1/account/refundscustomerRequest a refund for an order item.
-
GET
/api/v1/account/walletcustomerWallet balances by currency (from ledger).
-
GET
/api/v1/account/wallet/transactionscustomerWallet ledger movements.
-
POST
/api/v1/account/wallet/depositscustomerCreate a deposit payment intent. Credit only after verified webhook.
-
GET
/api/v1/account/payment-methodscustomerSaved tokenised payment methods.
-
GET
/api/v1/account/statementscustomerMonthly statements.
-
GET
/api/v1/account/voucherscustomerOwned and received vouchers.
-
POST
/api/v1/vouchers/purchasecustomerBuy vouchers (gift, scheduled delivery). Requires Idempotency-Key.
-
POST
/api/v1/vouchers/redeemcustomerRedeem a code to wallet, checkout or product. Atomic, single use.
-
GET
/api/v1/account/referralscustomerReferral code, link, stats and referral records.
-
GET
/api/v1/account/rewardscustomerRewards and their status.
-
GET
/api/v1/account/notificationscustomerNotifications feed.
-
PATCH
/api/v1/account/notification-preferencescustomerChannel and topic preferences with consent.
-
GET
/api/v1/account/sessionscustomerActive sessions and devices.
-
DELETE
/api/v1/account/sessions/{id}customerRevoke a session.
-
POST
/api/v1/account/two-factorcustomerEnable two-step verification.
-
POST
/api/v1/account/privacy-requestscustomerData export or deletion request.
Support and Rihana
-
POST
/api/v1/support/ticketscustomer|guestCreate a ticket (also used by Rihana handover with conversation context).
-
GET
/api/v1/support/ticketscustomerCustomer tickets.
-
POST
/api/v1/support/tickets/{id}/messagescustomerReply to a ticket.
-
POST
/api/v1/rihana/conversationspublicStart a conversation.
-
POST
/api/v1/rihana/conversations/{id}/messagespublicSend a message; server runs retrieval and permitted tools.
-
POST
/api/v1/rihana/conversations/{id}/handoverpublicRequest a human; creates ticket and assigns department.
-
POST
/api/v1/leadspublicCapture a business lead (forms and Rihana).
-
POST
/api/v1/marketing/subscriptionspublicNewsletter subscription with double opt-in.
-
POST
/api/v1/push/subscriptionspublicStore a browser push subscription with topics and consent.
-
DELETE
/api/v1/push/subscriptions/{id}publicUnsubscribe.
Partner workspaces
-
GET
/api/v1/partner/dashboardpartnerWorkspace KPIs for merchant, reseller, affiliate or white-label partner.
-
GET
/api/v1/partner/cataloguepartnerAuthorised products with wholesale cost and retail price.
-
PUT
/api/v1/partner/pricing-rulespartnerRetail price rules and margins.
-
POST
/api/v1/partner/orderspartnerCreate order for a customer. Requires Idempotency-Key.
-
POST
/api/v1/partner/orders/bulkpartnerBulk order from CSV or JSON.
-
GET
/api/v1/partner/orderspartnerPartner orders.
-
GET
/api/v1/partner/customerspartnerPartner customers (tenant isolated).
-
POST
/api/v1/partner/voucher-batchespartnerGenerate a voucher batch.
-
GET
/api/v1/partner/voucherspartnerVoucher inventory.
-
GET
/api/v1/partner/sub-accountspartnerSub-merchants or sub-resellers.
-
GET
/api/v1/partner/walletpartnerPartner wallet and funding.
-
GET
/api/v1/partner/commissionspartnerCommission entries.
-
GET
/api/v1/partner/settlementspartnerSettlements and statements.
-
GET
/api/v1/partner/invoicespartnerInvoices.
-
GET
/api/v1/partner/reports/{report}partnerReports and exports.
-
GET
/api/v1/partner/teampartnerTeam members and roles.
-
POST
/api/v1/partner/team/invitationspartnerInvite a team member.
-
GET
/api/v1/partner/storefrontpartnerStorefront and branding settings.
-
POST
/api/v1/partner/domainspartnerAdd a custom domain and start verification.
-
GET
/api/v1/affiliate/linkspartnerTracked links and QR codes.
-
GET
/api/v1/affiliate/clickspartnerClick analytics.
-
GET
/api/v1/affiliate/conversionspartnerAttributed conversions.
-
POST
/api/v1/affiliate/payoutspartnerRequest payout above threshold.
Corporate workspace
-
GET
/api/v1/corporate/dashboardcorporateOrganisation KPIs.
-
GET
/api/v1/corporate/employeescorporateEmployees.
-
POST
/api/v1/corporate/employeescorporateInvite or import employees.
-
GET
/api/v1/corporate/departmentscorporateDepartments with budgets.
-
POST
/api/v1/corporate/allocationscorporateAllocate an eSIM or voucher to an employee.
-
GET
/api/v1/corporate/approvalscorporateApproval queue.
-
POST
/api/v1/corporate/approvals/{id}/decisioncorporateApprove or reject.
-
PUT
/api/v1/corporate/policiescorporateSpending controls and policies.
-
GET
/api/v1/corporate/travel-requestscorporateTravel requests.
-
GET
/api/v1/corporate/invoicescorporateInvoices and billing.
-
GET
/api/v1/corporate/reports/usagecorporateUsage and spend reports.
Developer and server-to-server
-
POST
/api/v1/ordersdeveloperCreate order. Requires Idempotency-Key.
-
POST
/api/v1/esims/provisiondeveloperRequest provisioning for a paid order item. Async; webhook on result.
-
GET
/api/v1/esims/{id}/statusdeveloperLifecycle status.
-
GET
/api/v1/esims/{id}/usagedeveloperUsage.
-
POST
/api/v1/esims/{id}/topupdeveloperApply a top-up. Requires Idempotency-Key.
-
GET
/api/v1/developer/projectscustomerAPI projects.
-
POST
/api/v1/developer/api-keyscustomerCreate a scoped key (secret shown once).
-
DELETE
/api/v1/developer/api-keys/{id}customerRevoke a key.
-
GET
/api/v1/developer/logscustomerRequest logs.
-
GET
/api/v1/developer/usagecustomerUsage by endpoint.
-
GET
/api/v1/webhooksdeveloperWebhook endpoints.
-
POST
/api/v1/webhooksdeveloperCreate endpoint (secret shown once).
-
POST
/api/v1/webhooks/deliveries/{id}/replaydeveloperReplay a delivery (permission required).
-
POST
/api/v1/sandbox/simulatedeveloperTrigger simulated lifecycle events (sandbox only).
-
GET
/api/v1/reports/{report}developerReporting API.
Inbound provider webhooks
-
POST
/api/v1/hooks/payments/{provider}signaturePayment provider webhook. Signature verified, idempotent, persisted before processing.
-
POST
/api/v1/hooks/esim/{provider}signatureeSIM supplier webhook (provisioning, installation, usage).
-
POST
/api/v1/hooks/kyc/{provider}signatureIdentity verification results.
-
POST
/api/v1/hooks/messaging/{provider}signatureSMS, email and push delivery receipts.
Administration
-
GET
/api/v1/admin/dashboardadmin:dashboard.viewExecutive KPIs from application records.
-
GET
/api/v1/admin/customersadmin:customers.viewCustomers with filters.
-
PATCH
/api/v1/admin/customers/{id}admin:customers.manageRestrict or update (approval for restrictions).
-
GET
/api/v1/admin/esimsadmin:esims.vieweSIM inventory and lifecycle.
-
GET
/api/v1/admin/provisioningadmin:esims.viewProvisioning queue and failures.
-
POST
/api/v1/admin/provisioning/{id}/reconcileadmin:esims.operateReconcile a timed-out request with the supplier before any retry.
-
GET
/api/v1/admin/ordersadmin:orders.viewOrders.
-
GET
/api/v1/admin/catalogueadmin:catalogue.viewProducts and mappings.
-
POST
/api/v1/admin/catalogue/syncadmin:catalogue.syncStart catalogue synchronisation for a provider.
-
PUT
/api/v1/admin/pricing/rulesadmin:pricing.managePricing rules and markups.
-
GET
/api/v1/admin/providersadmin:providers.viewProvider registry.
-
PUT
/api/v1/admin/providers/{id}/credentialsadmin:providers.credentialsStore encrypted credentials (write-only; never returned).
-
POST
/api/v1/admin/providers/{id}/testadmin:providers.manageRun a safe connection test.
-
PUT
/api/v1/admin/providers/routingadmin:providers.manageRouting and failover rules.
-
GET
/api/v1/admin/paymentsadmin:finance.viewPayments, failures, chargebacks.
-
GET
/api/v1/admin/ledgeradmin:finance.viewLedger entries and balances.
-
POST
/api/v1/admin/wallets/{id}/adjustmentsadmin:finance.adjustManual adjustment request (maker); checker approves.
-
POST
/api/v1/admin/approvals/{id}/decisionadmin:approvals.decideChecker decision on a sensitive operation.
-
POST
/api/v1/admin/refunds/{id}/approveadmin:refunds.approveApprove refund (second approver over threshold).
-
POST
/api/v1/admin/voucher-batchesadmin:vouchers.generateGenerate vouchers.
-
POST
/api/v1/admin/vouchers/{id}/revokeadmin:vouchers.revokeRevoke (approval required).
-
GET
/api/v1/admin/partnersadmin:partners.viewPartners and applications.
-
POST
/api/v1/admin/applications/{id}/decisionadmin:partners.approveApprove or reject a business application.
-
GET
/api/v1/admin/commissionsadmin:commissions.viewCommission entries.
-
POST
/api/v1/admin/payouts/{id}/approveadmin:payouts.approveApprove payout.
-
GET
/api/v1/admin/push/campaignsadmin:marketing.viewPush campaigns.
-
POST
/api/v1/admin/push/campaignsadmin:marketing.sendCreate, schedule or send a campaign (consent enforced).
-
GET
/api/v1/admin/content/{type}admin:content.viewCMS records with revisions.
-
POST
/api/v1/admin/content/{type}admin:content.publishCreate or update content; publish/schedule.
-
GET
/api/v1/admin/rihana/conversationsadmin:rihana.viewConversations.
-
POST
/api/v1/admin/rihana/knowledgeadmin:rihana.manageAdd or reindex knowledge sources.
-
GET
/api/v1/admin/modulesadmin:modules.viewModule registry and state.
-
PATCH
/api/v1/admin/modules/{key}admin:modules.manageEnable, disable or configure a module (audited).
-
PUT
/api/v1/admin/settingsadmin:settings.manageGlobal settings.
-
GET
/api/v1/admin/audit-logsadmin:security.viewAudit trail.
-
GET
/api/v1/admin/reports/{report}admin:reports.viewReports and exports.
Account, partner and corporate settings
-
DELETE
/api/v1/account/sessionscustomerSign out other sessions.
-
POST
/api/v1/account/payment-methodscustomerAdd a saved payment method via the gateway (tokenised).
-
GET
/api/v1/orders/{id}/receiptcustomerDownload a receipt PDF.
-
POST
/api/v1/business/applicationspublicSubmit a business programme application.
-
PATCH
/api/v1/partner/profilepartnerUpdate workspace profile.
-
POST
/api/v1/partner/verification/documentspartnerUpload KYB documents (to the verification provider).
-
POST
/api/v1/partner/sub-accountspartnerCreate a sub-merchant or sub-reseller.
-
POST
/api/v1/partner/campaign-linkspartnerCreate a tracked campaign link.
-
POST
/api/v1/partner/promotionspartnerCreate a partner promotion.
-
POST
/api/v1/partner/reports/schedulespartnerSchedule a report by email.
-
POST
/api/v1/partner/rolespartnerCreate a custom workspace role.
-
POST
/api/v1/partner/wallet/depositspartnerStart a wallet deposit (credited only after verified payment).
-
POST
/api/v1/partner/orders/{id}/resendpartnerResend installation details to the customer.
-
POST
/api/v1/partner/orders/{id}/refundspartnerRequest a refund for a partner order.
-
POST
/api/v1/partner/storefrontspartnerCreate a reseller storefront.
-
PUT
/api/v1/partner/storefrontpartnerSave storefront branding and content.
-
POST
/api/v1/partner/storefront/publishpartnerPublish the storefront.
-
PUT
/api/v1/partner/paymentspartnerWhite-label payment configuration.
-
PATCH
/api/v1/affiliate/profilepartnerUpdate affiliate profile.
-
POST
/api/v1/affiliate/campaignspartnerCreate an affiliate campaign.
-
POST
/api/v1/affiliate/coupon-requestspartnerRequest a personal coupon code.
-
PUT
/api/v1/affiliate/payment-detailspartnerPayout details (stored with the payout provider).
-
PUT
/api/v1/affiliate/taxpartnerTax information.
-
PATCH
/api/v1/corporate/settingscorporateCompany settings and policies.
-
PATCH
/api/v1/corporate/billingcorporateBilling details.
-
POST
/api/v1/corporate/departmentscorporateCreate a department.
-
POST
/api/v1/corporate/employees/importcorporateImport employees from CSV.
-
POST
/api/v1/developer/projectsdeveloperCreate an API project.
-
POST
/api/v1/developer/production-requestsdeveloperRequest production access.
Administration (operations and content)
-
POST
/api/v1/admin/segmentsadmin:marketing.manageCreate a customer segment.
-
POST
/api/v1/admin/customers/{id}/password-resetadmin:customers.manageSend a password reset email.
-
POST
/api/v1/admin/customers/{id}/restrictionsadmin:customers.restrictRequest an account restriction (maker-checker).
-
POST
/api/v1/admin/esims/{id}/refreshadmin:esims.manageRefresh eSIM status from the supplier.
-
POST
/api/v1/admin/esims/{id}/resendadmin:esims.manageResend installation email.
-
POST
/api/v1/admin/esims/{id}/suspendadmin:esims.manageSuspend at supplier where supported.
-
POST
/api/v1/admin/orders/{id}/refundsadmin:refunds.requestCreate a refund request.
-
POST
/api/v1/admin/catalogueadmin:catalogue.manageCreate a NESVRA product.
-
PUT
/api/v1/admin/fx/{currency}admin:finance.fxOverride an FX rate.
-
POST
/api/v1/admin/couponsadmin:marketing.manageCreate a coupon.
-
PUT
/api/v1/admin/referral-programmes/{id}admin:referrals.manageUpdate referral programme rules (approval).
-
POST
/api/v1/admin/admin-usersadmin:admins.manageInvite an administrator.
-
POST
/api/v1/admin/rolesadmin:roles.manageCreate a custom role.
-
PUT
/api/v1/admin/providers/{id}admin:providers.manageEnable, disable or reprioritise a provider.
-
POST
/api/v1/admin/automationsadmin:marketing.manageCreate a marketing automation.
-
PUT
/api/v1/admin/automations/{id}admin:marketing.manageActivate, pause or edit an automation.
-
POST
/api/v1/admin/content/pagesadmin:content.publishCreate a website page.
-
POST
/api/v1/admin/content/knowledgeadmin:content.publishCreate a knowledge article.
-
PUT
/api/v1/admin/content/{type}/{id}admin:content.editSave a content draft (versioned).
-
POST
/api/v1/admin/content/{id}/transitionsadmin:content.publishMove content through Draft, In review, Approved, Published.
-
PUT
/api/v1/admin/content/homepageadmin:content.publishPublish homepage layout.
-
PUT
/api/v1/admin/navigationadmin:content.publishPublish header and footer navigation.
-
POST
/api/v1/admin/mediaadmin:content.editUpload media to object storage.
-
POST
/api/v1/admin/media-coverageadmin:content.publishAdd verified third-party coverage.
-
POST
/api/v1/admin/redirectsadmin:seo.manageAdd a redirect.
-
POST
/api/v1/admin/ticketsadmin:support.manageCreate a ticket (for example from a conversation).
-
POST
/api/v1/admin/rihana/feedbackadmin:rihana.manageMark a Rihana answer as wrong.
-
POST
/api/v1/admin/rihana/indexadmin:rihana.manageQueue a knowledge reindex.
-
POST
/api/v1/admin/rihana/sourcesadmin:rihana.manageAdd a knowledge source.
-
POST
/api/v1/admin/rihana/evaluationsadmin:rihana.manageRun the evaluation suite.