Credit balance depleted
Fires when a credit entitlement with balance_alerts reaches zero. Checked each time the balance changes. Sent once: it is sent again only after credit is added. Usage past the credit is then charged or blocked as the metered entitlement's overage_policy says. The body is an event object with the balance alert in data.
X-Comecero-Signature?stringProof 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.
^[0-9a-f]{64}$User-Agent?stringAlways Comecero-Event (+https://comecero.com).
The event, sent by POST to your event subscription's destination as JSON (Content-Type: application/json), XML or an HTML table, following its format.
application/json- body
One delivery of one event to one event subscription. When something happens (an order is created, a payment completes), Comecero makes one event for each active event subscription to that event type, each with its own event_id and the same fingerprint. This is also the body Comecero POSTs to your webhook URL.
object?"event"Always event.
"event"type?event_typeThe kind of event. See the Webhooks section of this reference for when each one fires and what its data holds.
"account:modified""cart:payment_completed""gateway:created""gateway:modified""event_subscription:created""event_subscription:modified""event_subscription:deleted""license:issued""license:extended""license:expiry_changed""license:limit_changed""license:revoked""license:reinstated""license:expired""license_service:low_licenses""invoice:created""invoice:published""invoice:paid""invoice:payment_completed""order:created""order:payment_completed""order:fulfilled""order:licenses_assigned""payment:completed""payment:created_success""payment:created_failure""payment:captured_success""payment:captured_failure""payment:voided""product:created""product:modified""product:deleted""product:low_inventory""refund:created_success""refund:created_failure""refund:deleted""user:created""user:modified""shipment:created""shipment:modified""shipment:deleted""subscription:created""subscription:modified""subscription:cancelled""subscription:cancellation_scheduled""subscription:cancellation_unscheduled""subscription:completed""subscription:converted""subscription_item:added""subscription_item:cancelled""subscription_item:cancellation_scheduled""subscription_item:cancellation_unscheduled""subscription_item:modified""subscription:renewal_success""subscription:renewal_failure""usage:threshold_reached""usage:balance_low""usage:balance_depleted""usage:spend_limit_reached""usage:auto_top_up_succeeded""usage:auto_top_up_failed""usage:auto_top_up_cap_reached""usage:spend_limit_changed""usage:burst_opted_in""usage:burst_revoked"event_subscription?|The event subscription this delivery is for: its URL, or the full object when you send expand=event_subscription. Left out when the token may not read event subscriptions.
environment_variables?|The name and value pairs set on the event subscription when the event was made, passed through so your endpoint can read its own settings.
data?A credit entitlement's balance fell to its low line, or to zero. Ids and amounts only, no personal data.
Answer with any 2xx status within 60 seconds to mark the event delivered; the body is ignored. Anything else counts as a failure: another status (redirects are not followed), a timeout, or no connection. After a failure Comecero retries on a growing schedule: three times 2 minutes apart, then every 15 minutes, every hour, every 2 hours, every 4 hours and every 8 hours, 23 attempts over about 56 hours in all. Then the event is failed and is not tried again by itself; you can send it again with POST /events/{event_id}/retry while it is kept. Events are kept for 30 days after their last change, and for 7 days once delivered or in test mode. Deliveries can arrive more than once and out of order, so use event_id to skip repeats and compare date_created or get the object fresh before you overwrite newer data. Each event subscription gets its own copy: the same occurrence shares one fingerprint across subscriptions.
{ "object": "event", "url": "https://api.comecero.com/api/v1/events/1102611073847EVd3Mv8Rp", "event_id": "1102611073847EVd3Mv8Rp", "test": true, "account_id": "AB1234", "type": "usage:balance_depleted", "event_subscription": "https://api.comecero.com/api/v1/event_subscriptions/1102610913420ES4f9QmLp", "fingerprint": "m7Q2wR9xT4vK1nY3", "status": "delivered", "date_created": "2026-11-10T14:05:12Z", "date_modified": "2026-11-10T14:05:13Z", "environment_variables": null, "data": { "object": "usage_balance_alert", "agreement_id": "agr_cust_8412", "entitlement_id": "credit_cust_8412", "customer_id": "cust_8412", "balance": "0", "threshold": "0", "last_credit": "100", "ledger_entry_id": "ule_8b1e6f3a9c2d4e7f80a1b2c3d4e5f607" }}{}Credit balance low Webhook
Fires when a credit entitlement with `balance_alerts` falls to or below its low line: `low_balance`, or `low_percent` of the last credit added, whichever is higher. Checked each time the balance changes (a billing run draws on it, or credit is added). Sent once per crossing: it is sent again only after credit takes the balance back above the line. Not sent when the same change takes the balance to zero (`usage:balance_depleted` is sent instead). Use it to ask the customer to top up. The body is an event object with the balance alert in `data`.
Spending limit reached Webhook
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`.