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

Revoke an eSIM

POST
/esim/revoke
Permanently withdraws an eSIM that is active or suspended. The eSIM
moves from assigned or suspended to revoked.
Irreversible, and there is no refund.
Returns 409 if the eSIM is not in a revocable state
(esim status not allow revocation).

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/revoke' \
--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:06
Anterior
Cancel an eSIM
Siguiente
Get data usage
Built with