Download a wholesale billing CSV for a given month. Every subscription that was active at any point in the month is included, with prorated quantities so a mid-month start/stop is billed for the days it was live. The provider is taken from your API key — there is no service_provider_id parameter.

Endpoint

Authentication

X-API-Key: krnl_... — auto-scoped to the authenticated provider. Rate-limited to 30 requests / minute per key.

Query parameters

Invalid values return 400 (month must be between 1 and 12, year must be 2000 or later).

Response

200 OK with Content-Type: text/csv and Content-Disposition: attachment; filename="provider-billing-YYYY-MM.csv". Columns:

Errors

Example

Proration counts both endpoints inclusive: a subscription that started and ended on the same day of a 31-day month bills at 1/31, and one active for the 10th through the 19th bills at 10/31. Cancelled-mid-month subscriptions still appear for the days they were active.