Skip to content
Internal docs

GET /isp-network/wholesale-reconciliation

Endpoint

GET /api/v1/isp-network/wholesale-reconciliation

Query parameters

Parameter Type Required Description
period_month string Yes Billing period as exactly YYYY-MM or YYYY-MM-DD — the value is parsed positionally, so any other format fails with a 500 (not 400/422)
service_provider_id UUID Admin only Provider to reconcile

Compares the subscriptions that were active in the period against the subscriptions on the wholesale invoice for that period, and surfaces the difference in both directions — active-but-not-billed (under-billing) and billed-but-not-active.

Response — 200 OK

{
"service_provider_id": "uuid",
"period_month": "2026-06-01",
"invoiced": true,
"invoice_status": "string | null",
"billed_count": 42, // distinct subscription_ids on the invoice's lines
"should_be_billed_count": 43,
"active_not_billed": ["subscription-uuid"],
"billed_not_active": [],
"reconciled": false
}

reconciled is true only when both difference lists are empty.