Api
Owner subscription status (admin)
Admin-only. The owner's tier, status (active/inactive/none), and current period end. The dashboard reads this; the worker is the source of truth.
Query Parameters
owner*Owner
Header Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/admin/billing/status?owner=string"{ "owner": "string", "tier": "string", "status": "string", "current_period_end": "string"}{ "error": "string", "error_class": "string", "format_version": "string", "marker_coverage": 0}{ "error": "string", "error_class": "string", "format_version": "string", "marker_coverage": 0}{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string", "input": null, "ctx": {} } ]}Start a subscription checkout (admin) POST
Admin-only. Initializes a Paystack transaction for the tier's plan and returns inline-checkout params. apps/app proxies this; the Paystack secret stays worker-side.
Bill the owner's current overage (admin, manual) POST
Admin-only. Computes this cycle's overage from audit success counts and raises a Paystack invoice for it. Manual trigger until an end-of-cycle cron lands.