1. Notifications
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
        GET
      • Create a webhook subscription
        POST
      • Update a webhook subscription
        PATCH
      • Get a webhook subscription
        GET
      • List webhook subscriptions
        GET
      • Delete a webhook subscription
        DELETE
      • List deliveries
        GET
      • Get a delivery
        GET
      • List notifications sent for an eSIM
        GET
      • Retry a delivery
        POST
      • Send a test event
        POST
  • 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. Notifications

Update a webhook subscription

PATCH
/api/v1/webhooks/{webhook}
Changes the name, URL, subscribed events or active flag. Send only what you want to change. Set active to false to pause deliveries without deleting the subscription.

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 de ruta

Parámetros del Body application/jsonRequerido

Ejemplos

Respuestas

🟢200
application/json
The updated subscription.
Bodyapplication/json

Solicitud Ejemplo de Solicitud
Shell
JavaScript
Java
Swift
curl --location --request PATCH '/api/v1/webhooks/7' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "event_types": [
        "order.created",
        "order.cancelled",
        "esim.assigned",
        "esim.failed"
    ]
}'
Respuesta Ejemplo de Respuesta
{
    "data": {
        "id": 7,
        "name": "Order backend",
        "url": "https://partner.example.com/hooks/roamic",
        "event_types": [
            "order.created",
            "order.cancelled",
            "esim.assigned",
            "esim.failed"
        ],
        "active": true,
        "created_at": "2026-10-27T09:00:00Z",
        "updated_at": "2026-10-27T09:30:00Z"
    }
}
Modificado en 2026-10-28 09:24:46
Anterior
Create a webhook subscription
Siguiente
Get a webhook subscription
Built with