# Spending limit reached (/api/webhooks/usage-spend-limit-reached)

Webhook event `usage:spend_limit_reached`, sent as `POST` to your subscription's URL.

Fires when a customer's usage spend in a subscription period (before tax, credit paid and cash, every usage plan of the subscription) reaches 100% of their spending limit. Sent once per period and limit: every change of the customer's own limit (its `revision`) is a new limit, and so is a new amount of the shop's `default_spend_limit`, so reaching the limit again after a change sends it again. It may come from the billing run when it stops a bill at the limit. At 50 and 80% the customer gets a warning email; no webhook is sent for those. A send that fails is tried again with the subscription's next billing run, with the same `occurrence_id`, so drop one you have seen. The customer gets an email at the same time (notification `subscription:spend_limit`, when it is on). The body is an event object with the alert in `data`.

## Parameters

- `X-Comecero-Signature` (header): Proof the delivery comes from Comecero and was not changed. It is the HMAC-SHA256 of the raw request body (UTF-8), keyed with the signature key as UTF-8, written as 64 lowercase hex characters. The key is the event subscription's `signature_key`, or the account's signature key (Settings, Technical) when the subscription has none. Every account gets one when it is created, so deliveries are signed unless the key was removed. To check it, compute the HMAC over the body exactly as received, before you parse it, and compare the two strings in constant time. Reject the delivery when they differ. The signature has no timestamp, so to guard against a replayed delivery also skip any `event_id` you already handled. If you cannot check signatures, use the event only as a hint: get the object by its id from the API before you act on it.
- `User-Agent` (header): Always `Comecero-Event (+https://comecero.com)`.

Responses: 200.

Full schemas: operation `event_usage_spend_limit_reached` in /openapi.json.