comecerodocs

Webhook events

The events Comecero sends to your endpoints, what each one holds and how to check it really came from Comecero.

Events

usage:credit_grantedCredit grant confirmedaccount:modifiedAccount modifiedcart:payment_completedCart payment completedgateway:createdGateway createdgateway:modifiedGateway modifiedevent_subscription:createdEvent subscription createdevent_subscription:modifiedEvent subscription modifiedevent_subscription:deletedEvent subscription deletedlicense:issuedLicense key issuedlicense:extendedLicense key extendedlicense:expiry_changedLicense key expiry moved earlierlicense:limit_changedLicense key limit changedlicense:revokedLicense key revokedlicense:reinstatedLicense key reinstatedlicense:expiredLicense key expiredlicense_service:low_licensesLicense service low on licensesusage:threshold_reachedUsage threshold reachedusage:balance_lowCredit balance lowusage:balance_depletedCredit balance depletedusage:spend_limit_reachedSpending limit reachedusage:spend_limit_changedSpending limit raisedusage:burst_opted_inOne-time extra opted in tousage:burst_revokedOne-time extra taken backusage:auto_top_up_succeededAutomatic top-up succeededusage:auto_top_up_failedAutomatic top-up failedusage:auto_top_up_cap_reachedAutomatic top-up cap reachedentitlement:changedEntitlement changedinvoice:createdInvoice createdinvoice:publishedInvoice publishedinvoice:paidInvoice paidinvoice:payment_completedInvoice payment completedorder:createdOrder createdorder:payment_completedOrder payment completedorder:fulfilledOrder fulfilledorder:licenses_assignedOrder licenses assignedpayment:completedPayment completedpayment:created_successPayment succeededpayment:created_failurePayment failedpayment:captured_successPayment capturedpayment:captured_failurePayment capture failedpayment:voidedPayment voidedproduct:createdProduct createdproduct:modifiedProduct modifiedproduct:deletedProduct deletedproduct:low_inventoryProduct low on inventoryrefund:created_successRefund succeededrefund:created_failureRefund failedrefund:deletedRefund deleteduser:createdUser createduser:modifiedUser modifiedshipment:createdShipment createdshipment:modifiedShipment modifiedshipment:deletedShipment deletedsubscription:createdSubscription createdsubscription:modifiedSubscription modifiedsubscription:cancelledSubscription cancelledsubscription:cancellation_scheduledSubscription cancellation scheduledsubscription:cancellation_unscheduledSubscription cancellation unscheduledsubscription:completedSubscription completedsubscription:convertedSubscription convertedsubscription_item:addedSubscription item addedsubscription_item:cancelledSubscription item cancelledsubscription_item:cancellation_scheduledSubscription item cancellation scheduledsubscription_item:cancellation_unscheduledSubscription item cancellation unscheduledsubscription_item:modifiedSubscription item modifiedsubscription:renewal_successSubscription renewedsubscription:renewal_failureSubscription renewal failed

Guides that use it

License services

Give buyers a license key after each sale, either from a list of keys you upload or from your own license server that Comecero calls with the order.

Meta data

Store your own data on Comecero carts, orders, customers, products and more with the meta field, and carry it from a cart or invoice to the order.

Entitlements

Decide what each customer may use in your app from what they bought. Features, feature sets and their revisions, memberships, overrides and limits.

SDK and HTTP integration

The entitlements SDK is coming soon. Use the HTTP check API today from your server with a usage key, and keep access checks and caching in your app.

Account and test mode

Sign up for Comecero, keep test and live tokens and data apart, test payments with test cards for success and decline, and get ready to go live.

Quickstart

Go from a new account to a paid test order with curl in about 5 minutes. Create a test token, a product and a cart, then pay with a test card.

Accept payments

Build a checkout with the API. Create a cart, take a card, PayPal or Apple Pay payment, handle 3-D Secure and declines, and capture or void later.

Invoices

Bill a customer with an invoice. Add products or custom items, publish the draft, send a payment link, take payment by API and follow the invoice events.

Refunds

Give money back with the API. Refund a whole order or part of it by amount or items, refund one payment, refund to store credit and follow the refund events.

Subscriptions

Sell a subscription with a plan and a cart, follow renewals with webhooks, change items with proration, cancel, retry failed payments and handle grace periods.

Webhooks

Get events such as order created or payment completed sent to your server, check the signature, answer fast, skip repeats and resend failed events.

Fraud screening

What Comecero checks before a card or wallet payment goes to the bank, what a blocked payment returns, trusted customers, and how to test a fraud block.

Multi-use license keys

Have Comecero make a license key for each sale, limit it to a number of devices, and keep it in step with renewals, refunds and chargebacks.

Analytics

Send storefront page views and purchases to Google Analytics 4 and Google Ads conversions, and add your own tracking code to the hosted storefront.

Auto fulfill and capture delay

How fulfillment settings decide when order items are marked fulfilled and when an authorized payment is captured, so you can take the money only after shipping.

Show usage in your app

Show each customer how much of their plan they have used this month, and email them at 80% with the usage threshold webhook. Uses usage so far and alerts.

Balance alerts

Get a webhook when a customer's prepaid credit runs low or runs out, so you can ask them to top up before usage is charged or blocked.

Credits and burndown

Sell prepaid credit, add it safely with an idempotency key, read the balance, and see exactly what is used first when usage is billed.

Follow usage

See usage this period so far, the shopper's own usage, the events behind a bill, and webhook alerts when a customer nears their allowance.

Quickstart

Set up usage billing for one customer in test mode and send their first usage events, then read usage so far, in short Node.js scripts.

Usage billing API

Every usage billing route on the Comecero API, grouped by resource, with who may call it and a link to its full page in the API reference.