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:
Operator discounts
A subscription that carries a kurnl operator discount gets one extra row per month withFee Type = Operator discount. Its Total Cost and Wholesale price monthly are negative:
kurnl pays the discount, so your margin is unchanged. Add the row to the subscription’s
Monthly row for the net wholesale amount. Match rows on Fee Type; do not assume every
row is Monthly. The same rows are in the dashboard’s Wholesale Billing CSV.