Checks the storage used in yearMonth (default: the current UTC month) against each organization's storage cap, for every organization or only organizationId, and sends one alert listing the organizations over their cap; nothing is charged. Returns how many organizations were checked and how many were over. Not available in production (403). Super admin only.
POST
/admin/billing/cron/storage-close
curl \
--request POST 'http://api.example.com/admin/billing/cron/storage-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,
"breaches": 1
},
"statusCode": 200,
"timestamp": "2026-01-15T10:15:00.000Z"
}