Skip to main content
All billing actions via POST /api/instance-admin with instance JWT or platform admin JWT.

Authentication Matrix

get_revenue

Returns revenue summary for the instance.

list_fee_ledger

Returns: { rows, total, page, pageSize } — each row: id, fee_type, collection_status, fee_amount, gross_amount, billing_period, created_at, merchant_slug

export_revenue_csv

CSV columns: id, fee_type, collection_status, fee_amount, gross_amount, billing_period, created_at, merchant_slug, merchant_name. Max 10,000 rows. Client-side download:

generate_invoice

Errors: 409 duplicate period, 422 no collected fees.

finalize_invoice / void_invoice