Runs the daily billing sweep (base fees, recurring add-ons, then invoicing of pending items) as of asOf or now, for every organization or only organizationId, records the run and returns its summary. Not available in production (403). Super admin only.
POST
/admin/billing/cron/daily-sweep
curl \
--request POST 'http://api.example.com/admin/billing/cron/daily-sweep' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"asOf": "string",
"organizationId": "string"
}'
Request examples
{
"asOf": "string",
"organizationId": "string"
}
Response examples (200)
{
"data": {
"invoicesCreated": 3,
"totalCents": 45000,
"groupsFailed": 0,
"failedGroups": [
"string"
],
"stuckReset": 0,
"baseFeeRowsCreated": 2,
"recurringAddonRowsCreated": 1
},
"statusCode": 200,
"timestamp": "2026-01-15T10:15:00.000Z"
}