1. Manage eSIMs
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
      • Get an eSIM / installation details
        GET
      • Cancel an eSIM
        POST
      • Revoke an eSIM
        POST
    • 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
  1. Manage eSIMs

Cancel an eSIM

POST
/esim/cancel
Cancels an eSIM that has not been used. The eSIM moves from
assigned to cancelled, which is final.
Returns 409 if the eSIM has already been used or installed
(esim status not allow cancellation) or is not in a cancellable
status.

Solicitud

Autorización
Bearer Token
Proporciona tu token bearer en el encabezado
Authorization
al realizar solicitudes a recursos protegidos.
Ejemplo:
Authorization: Bearer ********************
or
Parámetros del Body application/jsonRequerido

Ejemplos

Respuestas

🟢200Success
application/json
The eSIM is now in the requested status (or already was).
Bodyapplication/json

🟠400BadJson
🟠401Unauthorized
🟠404NotFound
🟠409Conflict
🟠415UnsupportedMediaType
🟠422ValidationError
🟠429TooManyRequests
🔴500ServerError
🔴502BadGateway
🔴503Unavailable
Solicitud Ejemplo de Solicitud
Shell
JavaScript
Java
Swift
cURL
curl --location '/esim/cancel' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "esim_tran_no": "24110112345678"
}'
Respuesta Ejemplo de Respuesta
200 - done
Change applied
{"success":true,"data":{"code":"01JC7X4Q9ZK3M5N8P2R6T0VWYA","status":"suspended"},"message":"Done"}
Modificado en 2026-11-12 15:10:02
Anterior
Get an eSIM / installation details
Siguiente
Revoke an eSIM
Built with