Skip to content
NEXDGE
Start free
/01  API

Webhooks.

Receive real-time events when a subscription activates, renews, cancels, or a top-up payment succeeds.

Events

payment.succeededA one-time payment completed successfully (top-up)
subscription.activeA new subscription was activated
subscription.renewedA subscription renewed for another billing period
subscription.cancelledA subscription was cancelled

Payload structure

Every event payload includes a type field and a data object. The metadata field carries user_id, plan, and billing period.

payload
{
  "type": "subscription.active",
  "data": {
    "subscription_id": "sub_abc123",
    "metadata": {
      "user_id": "uuid",
      "plan": "pro",
      "billing": "monthly"
    }
  }
}