Roamic API v2
    • Topics
      • Authentication
        • Verify token
      • Browse packages
        • List countries and regions
        • List packages
        • Get a package
      • Manage orders
        • Get an order
        • List orders
        • Create new order
      • Manage eSIMs
        • List eSIMs
        • Get an eSIM / installation details
        • Cancel an eSIM
        • Revoke an eSIM
      • Monitor usage
        • Get data usage
      • Top up eSIM
        • List top-up packages for an eSIM
        • Place a top-up order
      • Billing details
        • Get billing details
      • Notifications
        • List webhook event types
        • Create a webhook subscription
        • Update a webhook subscription
        • Get a webhook subscription
        • List webhook subscriptions
        • Delete a webhook subscription
        • List deliveries
        • Get a delivery
        • List notifications sent for an eSIM
        • Retry a delivery
        • Send a test event
    • Raíz
    • Schemas
      • Paginated
      • EsimIdentifier
      • OrderType
      • EsimStatus
      • OrderStatus
      • Result
      • FinancialStatus
      • Error
      • FulfillmentStatus
      • ValidationErrorBody
      • Order
      • TopupStatus
      • StoreOrder
      • WebhookDeliveryStatus
      • Customer
      • WebhookEventType
      • Billing
      • User
      • OrderLineItem
      • Esim
      • BillingFull
      • Topup
      • Settings
      • BillingInput
      • Country
      • Package
      • Product
      • TopupPackage
      • CreateOrder
      • CreateTopupOrder
      • NotificationLog
      • WebhookSubscription
      • WebhookSubscriptionInput
      • WebhookDelivery

    Common endpoints

    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).

    Pagination#

    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:
    StatusMeaning
    401Missing or invalid token.
    404The resource does not exist or is not yours.
    409The resource is in a state that does not allow the operation, or an idempotency conflict.
    422Validation failed. The body contains message and an errors object keyed by field.
    429Rate limit exceeded. Wait Retry-After seconds.
    502The 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
    Siguiente
    Verify token
    Built with