Bills organizations on an AI tier for the AI tokens used in yearMonth (default: the current UTC month) above their budget, for every organization or only organizationId, and returns how many organizations were checked and how many overages were billed. Running it again for the same month bills nothing new. Not available in production (403). Super admin only.
POST
/admin/billing/cron/ai-overage-close
curl \
--request POST 'http://api.example.com/admin/billing/cron/ai-overage-close' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"yearMonth": "string",
"organizationId": "string"
}'
Request examples
{
"yearMonth": "string",
"organizationId": "string"
}
Response examples (200)
{
"data": {
"orgsChecked": 12,
"overagesBilled": 1
},
"statusCode": 200,
"timestamp": "2026-01-15T10:15:00.000Z"
}