Subscriber Management
Overview
There are two distinct surfaces, and it’s important not to confuse them:
- Partner API (
X-API-Key) — how you create subscribers programmatically, as part of checkout or a migration. This is the server-to-server integration surface. - Operator dashboard (JWT-authenticated) — where subscribers and
subscriptions are managed after creation (edit details, change plan, cancel).
These endpoints live under
/api/v1/dashboard/*and are not reachable with a partner API key; they back your dashboard UI.
Creating subscribers (partner API)
Programmatic subscriber creation happens through the checkout/provisioning flows, which create the subscriber, the subscription, and (optionally) provision the port in one call:
- CKO-03 external checkout —
POST /partner/external-checkout/complete(and the anonymous variant) create a subscriber + subscription from your own checkout. Provisioning is idempotent across paths: the same subscriber email + plan version + location returns the existing subscription instead of duplicating it, and a replayedsession_idreturns the session’s existing subscription. - CKO-04 provider-initiated provisioning —
POST /partner/provisioning/provider-initiated(and/bulk) create + activate a subscriber’s port without a marketplace redirect. Use this to migrate an existing subscriber base.
Managing subscribers & subscriptions (dashboard)
After creation, management is done in the operator dashboard (dashboard JWT +
the subscribers:read / subscribers:write permissions), not via the partner
API key:
- Subscribers — create/list/get/update live under
/api/v1/dashboard/subscribers(update isPUT). See the operator guide Add a subscriber & subscription. - Activation is
/api/v1/subscription/{id}/activateand remains dashboard-only (see Subscriptions reference). - Plan change — unlike activation, this one is also available on the partner
API:
POST /partner/subscriptions/{id}/change-plan(plus aGET .../previewto check eligibility first) changes the plan on your ownACTIVEsubscriptions immediately, once per calendar day (UTC). See the plan change reference for the full guard table, billing behaviour, and whatbandwidth_updated: falsemeans. - Suspend, restore and cancel — when kurnl bills, suspension is automatic (non-payment
with a CRTC grace window). A failed payment clears itself once nothing is owed; a
suspended line comes back only when your staff press Reactivate after it is paid. When
you own billing, the partner lever is
POST /partner/external-checkout/subscription-status(X-Webhook-Secret,action: "suspend" | "restore" | "cancel"). What each action does, before and after the install, and its errors: subscription-status reference.
Subscription statuses
| Status | Meaning |
|---|---|
PENDING |
Created but not yet activated — awaiting payment or manual activation |
PENDING_INSTALL |
Home-drop — awaiting technician install |
ACTIVE |
Port provisioned, subscriber has service |
SUSPENDED |
Paused — typically overdue payment (automatic) |
CANCELLED |
Cancelled — service runs until ended_at, then the line is closed (deprovisioned_at); its port is reset if kurnl had provisioned it |
Migrating an existing subscriber base
- For each subscriber, call provider-initiated provisioning (CKO-04) with
their
plan_version_idandlocation_hash— this creates + activates them. - Store kurnl’s returned
subscriber_id/subscription_idin your own system. - Manage them thereafter from the dashboard (or your own dashboard-authenticated integration).