Automatic top-up succeeded
Fires once when an automatic top-up was paid and its credit was added. A top-up whose result was not known at first (usage:auto_top_up_failed with outcome unknown) sends this later if it turns out it went through. The customer gets the shop's normal receipt for the invoice. 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.
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?An automatic top-up was paid and its credit added. 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_succeeded", "event_subscription": "https://api.comecero.com/api/v1/event_subscriptions/1102610913420ES4f9QmLp", "fingerprint": "uat_6b1e0c9d2a7f4e3b8c5d1a0f9e2b7c4d:succeeded", "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_attempt", "occurrence_id": "uat_6b1e0c9d2a7f4e3b8c5d1a0f9e2b7c4d:succeeded", "attempt_id": "uat_6b1e0c9d2a7f4e3b8c5d1a0f9e2b7c4d", "customer_id": "0093717976099CuAiEBXu4", "subscription_id": "SB0123456789", "invoice_id": "1102611153840INVr3Kp9", "order_id": "1102611153845ORDm2Vb7", "payment_id": "1102611153842PAYw8Hn4", "principal": "16.67", "tax": "3.33", "gross": "20", "currency": "USD", "month": "2026-11", "month_count": 1, "month_amount": "20", "credit_balance": "21.42" }}{}One-time extra taken back Webhook
Fires once when this period's one-time extra was taken back (`DELETE .../spend_limit/burst`), by the customer or one of your tokens (`by_type`). What the period already committed stays billable: it is kept as `committed_floor_amount`, and `effective_limit_amount` is the limit or that floor, whichever is more. A send that fails is tried again later with the same `occurrence_id` (the change's `change_id`), so drop one you have seen. The customer gets an email at the same time (notification `subscription:spend_limit_changed`, when it is on). The body is an event object with the change in `data`.
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`.