quota.threshold_reached
El uso cruzó el 80% de la cantidad incluida de una función.
Payload
All webhook payloads follow a consistent top-level structure with event-specific data nested within the data object.
The subscription ID.
The customer ID. Returns your externalId if you provided one when creating the customer, otherwise returns the Commet publicId.
The metered feature code.
Total usage in the current period after the crossing.
The included quantity for the period.
ISO 8601 start of the usage period.
{
"event": "quota.threshold_reached",
"timestamp": "2026-06-18T09:12:00.000Z",
"organizationId": "org_abc123",
"mode": "live",
"apiVersion": "2026-06-10",
"data": {
"subscriptionId": "sub_1a2b3c4d",
"customerId": "user_123",
"featureCode": "api_calls",
"currentUsage": 850,
"includedAmount": 1000,
"periodStart": "2026-06-01T00:00:00.000Z"
}
}Cuándo se dispara
Para planes medidos, el procesador asíncrono de uso compara el uso del período de cada función con su cantidad incluida. Cuando el uso cruza el 80% del monto incluido, esto se dispara una vez para esa función y período de facturación. Las funciones ilimitadas nunca lo disparan.
Si una sola ráfaga salta directamente más allá del monto incluido, solo se dispara quota.exceeded.
Úsalo para advertir al cliente que se está acercando a su límite.
¿Cómo está esta guía?