Automatic top-up cap reached
Fires when a customer's credit fell below their level but a top-up would go over a monthly cap (the number of top-ups or what they charge, in that currency, across the customer's subscriptions), so none was made and nothing was charged. Sent once per customer, currency, month and caps in force. The top-up stays on and is looked at again when the month resets (next_reset_at). No email goes to the customer; their account page says it is paused. Each event has an occurrence_id that stays the same if it is sent again, so drop one you have seen. The body is an event object with the caps 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 customer's automatic top-ups reached a monthly cap, so a top-up that was due was not made (nothing was charged). 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/1102611153847EVa7Tq2Lm", "event_id": "1102611153847EVa7Tq2Lm", "test": true, "account_id": "AB1234", "type": "usage:auto_top_up_cap_reached", "event_subscription": "https://api.comecero.com/api/v1/event_subscriptions/1102610913420ES4f9QmLp", "fingerprint": "cap:9f2c4e6a8b0d1f3e5a7c9e1b3d5f7a90", "status": "delivered", "date_created": "2026-11-15T14:28:12Z", "date_modified": "2026-11-15T14:28:13Z", "environment_variables": null, "data": { "object": "usage_auto_top_up_cap", "occurrence_id": "cap:9f2c4e6a8b0d1f3e5a7c9e1b3d5f7a90", "customer_id": "0093717976099CuAiEBXu4", "subscription_id": "SB0123456789", "currency": "USD", "month": "2026-11", "monthly_max_count": 3, "monthly_max_amount": null, "month_count": 3, "reserved_count": 0, "month_amount": "60", "next_reset_at": "2026-12-01T00:00:00Z" }}{}Automatic top-up failed Webhook
Fires once when an automatic top-up's payment failed (`outcome` `failed`) or its result is not known yet (`outcome` `unknown`). Either way automatic top-up is turned off (`auto_top_up_enabled` false) and the top-up is never retried (`automatic_retry` false); only the customer's fresh consent turns it on again. An unknown payment is never charged again: Comecero checks it hourly, for up to 30 days, and once the payment is found taken the credit is added once and `usage:auto_top_up_succeeded` follows. Until then it stays unknown (it never turns into `failed`); after 30 days it is left to staff to settle with the payment provider. The customer gets an email at the same time (notification `subscription:auto_top_up_failed`, when it is on), which for an unknown result never says the payment failed. Each event has an `occurrence_id` that stays the same if it is sent again, so drop one you have seen. The body is an event object with the top-up in `data`.
Invoice created Webhook
Fires when an invoice is created. For an invoice made by a subscription change that needs a payment, it fires only once that payment succeeds. The body is an event object with the invoice in `data`.