Subscriptions
Subscriptions are created automatically as part of the provisioning flows. You never create a subscription directly — instead you call the appropriate provisioning endpoint and kurnl creates and links the subscription to the subscriber.
Subscription lifecycle
PENDING → ACTIVE → SUSPENDED → ACTIVE (restored) ↘ CANCELLEDPENDING_INSTALL → ACTIVE (after install job completes)| Status | Description |
|---|---|
PENDING |
Created but not yet provisioned on the switch |
PENDING_INSTALL |
Home-drop — waiting for technician to complete the drop |
ACTIVE |
Switch port provisioned, service live |
SUSPENDED |
Port blocked temporarily; subscription preserved |
CANCELLED |
Cancelled; service runs until ended_at, then the line is closed (deprovisioned_at); its port is reset if kurnl had provisioned it |
How subscriptions are created
| Flow | Endpoint | When to use |
|---|---|---|
| CKO-03 (subscriber creates account) | POST /partner/external-checkout/complete |
Marketplace redirect with subscriber self-signup |
| CKO-03 Anonymous | POST /partner/external-checkout/anonymous-complete |
You own the subscriber relationship entirely |
| PAY-03 (ISP-initiated) | POST /partner/provisioning/provider-initiated |
ISP creates subscriber and subscription server-side |
| Bulk import | POST /partner/provisioning/bulk |
Batch of up to 100 subscribers |
Managing active subscriptions
Suspend, restore and cancel are available on the partner API, for every line of your provider account: POST /partner/external-checkout/subscription-status (auth X-Webhook-Secret, action: "suspend" | "restore" | "cancel").
Plan change is also available on the partner API: POST /partner/subscriptions/{id}/change-plan (auth X-API-Key, scope provisioning:write), plus a GET .../preview to check eligibility first. It applies immediately, once per calendar day (UTC).
Activation remains dashboard-only: it is not exposed on the partner API.
Webhook events
The events kurnl sends, when each one fires, their payloads and retries: Webhooks. Suspend and restore send none; the subscription-status response is the confirmation.