The Roamic API lets partners browse the eSIM catalog, place orders, deliver eSIMs to their customers,
monitor data usage, top up existing eSIMs and receive lifecycle events through webhooks.Getting started#
1.
Ask Roamic for an API token. Tokens are issued per partner.
2.
Call GET /api/v1/user to verify that your token works.
3.
Browse the catalog (GET /api/v1/packages), then place an order (POST /api/v1/orders).
4.
Fetch the eSIM (GET /api/v1/esims/{code}) and hand the installation details to your customer,
or subscribe to webhooks to be notified when it is ready.
Base URL#
All endpoints live under /api/v1. Use the Sandbox server to integrate and test, and the Production server when you go live.Authentication#
Every request must carry your token as a Bearer token:Authorization: Bearer <your-token>
Accept: application/json
Each token only ever sees the data created with that same token. Requesting a resource that
belongs to someone else behaves exactly like requesting one that does not exist (404).Every list endpoint is paginated. Use page and per_page (default 15, maximum 100).
Responses contain data, links (first, last, prev, next) and meta
(current_page, per_page, total, last_page, …). Follow links.next to get the next page:
it already carries your per_page and filters.Filtering#
List endpoints accept filters in the form filter[name]=value, for example filter[status]=assigned.Idempotency#
POST /api/v1/orders and POST /api/v1/orders/topups create real purchases. Send an Idempotency-Key header
(a UUID is ideal) with every such request. If a request times out, retry it with the same key:
you will receive the original response instead of creating a second order. Reusing a key with a
different body is rejected. Never retry these calls without it.Rate limits#
Limits are applied per token: 120 requests/min for reads, 30 requests/min for writes,
30 requests/min for live usage queries (on top of the read limit) and 6 requests/min for
webhook test pings. When exceeded the API answers 429 with a Retry-After header.Errors#
Errors are JSON. The HTTP status tells you what happened:| Status | Meaning |
|---|
401 | Missing or invalid token. |
404 | The resource does not exist or is not yours. |
409 | The resource is in a state that does not allow the operation, or an idempotency conflict. |
422 | Validation failed. The body contains message and an errors object keyed by field. |
429 | Rate limit exceeded. Wait Retry-After seconds. |
502 | The upstream eSIM provider failed. Safe to retry reads; for orders, retry with the same Idempotency-Key. |
{ "message": "The given data was invalid.", "errors": { "line_items.0.sku": ["The selected sku is invalid."] } }
Order lifecycle#
An order is created and the eSIMs are
provisioned asynchronously: right after the order is created they are pending/requested, and become
assigned (with ICCID, activation code and QR) once the profile is ready. Poll the order or eSIM, or,
better, subscribe to the esim.assigned webhook. Modificado en 2026-11-10 07:50:21