Whenever any important changes happen in your Chargebee site, they are recorded as events. An event contains data about affected resources and additional details such as when the change occurred. For example, when a subscription is cancelled due to non payment, an event subscription_cancelled
is recorded.
Due to webhook retries, it’s possible that your application receives the same webhook more than once. Ensure idempotency of the webhook call by detecting such duplicates within your application. This can be done by examining the id parameter since its value uniquely identifies an event.
For example, your application could do the following for each webhook notification:
Webhooks can also arrive at your application out-of-order. This can be due to issues such as network delays or webhook failures. However, you can order the events by examining the resource_version
attribute of the resource sent by the webhook. For every change made to the resource, resource_version
is updated with a new timestamp in milliseconds.
For example, if you wish to sync resource changes from Chargebee to your application, you could:
for the webhook url.
In addition to securing your webhook, you can ensure the integrity of the event data by fetching it again using the
API call.
This is a list of the event types we currently support. We will
continue to add more events moving forward. All events follow
a uniform pattern - <resource>_<event_name>.
The resources that will be present in the event content are provided beneath each event type's description.
Triggered when a coupon is created.
coupon
Triggered when a coupon is changed.
coupon
Triggered when a coupon is deleted.
coupon
Triggered when a coupon set is created.
coupon, coupon_set
Triggered when a coupon set is updated.
coupon, coupon_set
Triggered when a coupon set is deleted.
coupon, coupon_set
Triggered when coupon codes are added in coupon set.
coupon, coupon_set
Triggered when coupon codes are deleted in coupon set.
coupon, coupon_set
Triggered when coupon codes are updated in coupon set.
coupon, coupon_set
Triggered when a customer is created.
customer
Triggered when a customer is changed.
customer
Triggered when a customer is deleted.
customer, subscriptions(optional)
Triggered when a customer is copied to another site.
customer
Triggered when a customer is copied from another site.
customer
promotional_credits_added
Triggered when promotional credit is added.
customer, promotional_credit
promotional_credits_deducted
Triggered when promotional credit is deducted.
customer, promotional_credit
Triggered when a new subscription is created.
subscription, customer, invoice(optional), unbilled_charges(optional)
subscription_created_with_backdating
Triggered when a subscription is created and the value of subscription.started_at is in the past.
subscription, customer, invoice(optional), unbilled_charges(optional)
Triggered when a 'future' subscription gets started.
subscription, customer, invoice(optional)
subscription_trial_end_reminder
Triggered 6 days prior to the trial period's end date.
subscription, customer, advance_invoice_schedule(optional)
Triggered after the subscription has been moved from "Trial" to "Active" state.
subscription, customer, invoice(optional)
subscription_activated_with_backdating
Triggered after the subscription changes to `active` from another `status`, while the change is backdated.
subscription, customer, invoice(optional), unbilled_charges(optional)
Triggered when the subscription's recurring items are changed.
subscription, customer, invoice(optional), credit_notes(optional), unbilled_charges(optional)
subscription_trial_extended
Trial Extension
subscription, customer, advance_invoice_schedule(optional)
Triggered when either of MRR or CMRR is changed.
subscription
subscription_changed_with_backdating
Triggered when a subscription is changed with changes_scheduled_at set to a value in the past.
subscription, customer, invoice(optional), credit_notes(optional), unbilled_charges(optional)
subscription_cancellation_scheduled
Triggered when subscription is scheduled to cancel at end of current term.
subscription, customer, advance_invoice_schedule(optional)
subscription_cancellation_reminder
Triggered 6 days prior to the scheduled cancellation date.
subscription, customer, advance_invoice_schedule(optional)
Triggered when the subscription is cancelled. If it is cancelled due to non payment or because the card details are not present, the subscription will have the possible reason as 'cancel_reason'.
subscription, customer, invoice(optional), credit_notes(optional), unbilled_charges(optional)
subscription_canceled_with_backdating
Triggered when a subscription is canceled with cancel_at set to a value in the past.
subscription, customer, invoice(optional), credit_notes(optional), unbilled_charges(optional)
Triggered when the subscription is moved from `cancelled` `status` to `active` or `in_trial`.
subscription, customer, invoice(optional), unbilled_charges(optional)
subscription_reactivated_with_backdating
Triggered when the subscription is moved from `cancelled` `status` to `active` or `in_trial`, while `reactivate_from` is set to a value in the past.
subscription, customer, invoice(optional), unbilled_charges(optional)
Triggered when the subscription is renewed from the current term.
subscription, customer, invoice(optional), unbilled_charges(optional)
subscription_scheduled_cancellation_removed
Triggered when scheduled cancellation is removed for the subscription.
subscription, customer, advance_invoice_schedule(optional)
subscription_changes_scheduled
Triggered when subscription changes are scheduled for later. Changes will be applied at the end of current term.
subscription, customer, advance_invoice_schedule(optional)
subscription_scheduled_changes_removed
Triggered when scheduled change for the subscription is removed.
subscription, customer, advance_invoice_schedule(optional)
subscription_shipping_address_updated
Triggered when shipping address is added or updated for a subscription.
subscription, customer, advance_invoice_schedule(optional)
Triggered when a subscription is deleted.
subscription, customer, advance_invoice_schedule(optional)
Triggered when the subscription is paused.
subscription, customer, invoice(optional), credit_notes(optional), unbilled_charges(optional)
subscription_pause_scheduled
Triggered when the subscription is scheduled to pause.
subscription, customer, advance_invoice_schedule(optional)
subscription_scheduled_pause_removed
Triggered when scheduled pause is removed for the subscription.
subscription, customer, advance_invoice_schedule(optional)
Triggered when the subscription is resumed.
subscription, customer, invoice(optional), unbilled_charges(optional)
subscription_resumption_scheduled
Triggered when the subscription is scheduled to resume.
subscription, customer, advance_invoice_schedule(optional)
subscription_scheduled_resumption_removed
Triggered when scheduled resumption is removed for the subscription.
subscription, customer, advance_invoice_schedule(optional)
subscription_advance_invoice_schedule_added
Triggered when advance invoice is scheduled for a subscription.
subscription, customer, advance_invoice_schedules(optional)
subscription_advance_invoice_schedule_updated
Triggered when scheduled advance invoice is updated for a subscription.
subscription, customer, advance_invoice_schedules(optional)
subscription_advance_invoice_schedule_removed
Triggered when scheduled advance invoice is removed for a subscription.
subscription, customer, advance_invoice_schedules(optional)
Event triggered (in the case of metered billing) when a "Pending" invoice is created that has usage related charges or line items to be added, before being closed. This is triggered only when the “Notify for Pending Invoices” option is enabled.
invoice
Triggered when you make the following changes to the invoice - void, delete, invoice address update, status change, payment changes - apply payment / remove payment, credit apply/remove, credit note creation, and so on. 'Invoice_updated' is triggered for all changes made to the invoice except for the changes which trigger 'pending_invoice_updated'.
invoice
Event triggered when a new invoice is created except when created with status as pending. For pending invoices, this event is triggered when the invoice is closed.
invoice
invoice_generated_with_backdating
Triggered when an invoice has been created with date set to a value in the past. However, if the invoice is created with a pending status and the site setting is to set invoice.date to the date of closing the invoice, this event is never triggered.
invoice
Triggered when you make the following changes to a pending invoice - add a charge, add a non-recurring addon, or delete a line item.
invoice
Event triggered when an invoice is deleted.
invoice
Triggered when a credit note is created.
credit_note
credit_note_created_with_backdating
Triggered when a credit note is created such that generated_at is a value in the past.
credit_note
Triggered when a credit note is updated.
credit_note
Triggered when a credit note is deleted.
credit_note
subscription_renewal_reminder
Triggered 3 days before each subscription's renewal.
subscription, customer, advance_invoice_schedule(optional)
Triggered on one day before term end of every month.
subscription, customer, advance_invoice_schedule(optional)
Triggered when a transaction is recorded.
transaction
Triggered when a transaction is updated. E.g. (1) When a transaction is removed, (2) or when an excess payment is applied on an invoice, (3) or when amount_capturable gets updated.
transaction
Triggered when a transaction is deleted.
transaction
Triggered when the payment is successfully collected.
transaction, customer, subscription(optional)
Triggered when the payment collection fails.
transaction, invoice, customer, subscription(optional)
Triggered when a payment refund is made.
transaction, invoice, credit_note(optional), customer, subscription(optional)
Triggered when a payment is initiated via direct debit.
transaction, invoice, customer, subscription(optional)
Triggered when a refund is initiated via direct debit.
transaction, invoice, credit_note(optional), customer, subscription(optional)
Triggered when a authorization transaction is created.
transaction
Triggered when a authorization transaction is voided. Authorization can be voided either manually or when blocked funds are released by the gateway after a certain period of time.
transaction
Triggered when a card is added for a customer.
customer
Triggered when the card is updated for a customer.
customer
Triggered when the customer's credit card is expiring soon. Triggered 30 days before the expiry date.
customer
Triggered when the card for a customer has expired.
customer
Triggered when a card is deleted for a customer.
customer
Triggered when a payment source is added.
customer, payment_source
Triggered when the payment source is updated and also when a role is assigned to it.
customer, payment_source
Triggered when a payment source is deleted.
customer, payment_source
Triggered when the customer's payment source is expiring soon. Triggered 30 days before the expiry date.
customer, payment_source
Triggered when the payment source for a customer has expired.
customer, payment_source
virtual_bank_account_added
Triggered when a virtual bank account is added.
customer, virtual_bank_account
virtual_bank_account_updated
Triggered when the virtual bank account is updated.
customer, virtual_bank_account
virtual_bank_account_deleted
Triggered when a virtual bank account is deleted.
customer, virtual_bank_account
Triggered when a nonce is created.
token
Triggered when a nonce is consumed.
token
Triggered when a nonce is expired.
token
Triggered when unbilled charges are created
unbilled_charges
Triggered when unbilled charges are voided
unbilled_charges
Triggered when unbilled charges are deleted
unbilled_charges
unbilled_charges_invoiced
Triggered when unbilled charges are invoiced
unbilled_charges, invoice
Triggered when an order is generated.
order
Triggered when an order is updated.
order
Triggered when an order is cancelled.
order
Triggered when an order is delivered.
order
Triggered when an order is returned.
order
Triggered when an order reaches it's order date.
order
Triggered when an order reaches it's shipping date.
order
Triggered when an order is deleted.
order
Triggered when an order is resent.
order
Event triggered when a new quote is generated.
quote
Triggered when a quote is updated.
quote
Event triggered when a new quote is deleted.
quote
Triggered when a tax withheld is recorded for an invoice.
tax_withheld, invoice, credit_note
Triggered when a tax withheld is deleted.
tax_withheld, invoice, credit_note
Triggered when a tax withheld is refunded.
tax_withheld, invoice, credit_note
Triggered when a new gift is created.
gift
Triggered when a new gift is unclaimed and is ready to be claimed.
gift
Triggered when a gift is claimed.
gift
Triggered when a gift expires.
gift
Triggered when gift is cancelled.
gift
Triggered when a gift is updated.
gift
Triggered when a hierarchy is created.
customer
Triggered when a hierarchy is deleted.
customer
Triggered when a payment intent is created.
payment_intent
Triggered when a payment intent is updated.
payment_intent
Triggered when contract term is created.
contract_term
Triggered when a contract term is renewed.
contract_term
Triggered when contract term is terminated.
contract_term
Triggered when contract term is completed.
contract_term
Triggered when contract term is cancelled.
contract_term
Triggered when an item family is created.
item_family
Triggered when an item family is updated.
item_family
Triggered when an item family is deleted.
item_family
Triggered when an item is created.
item
Triggered when an item is updated.
item
Triggered when an item is deleted.
item
Triggered when an item price is created.
item_price
Triggered when an item price is updated.
item_price
Triggered when an item price is deleted.
item_price
Triggered when an attached item is created.
attached_item
Triggered when an attached item is updated.
attached_item
Triggered when an attached item is deleted.
attached_item
differential_price_created
Triggered when a differential price is created.
differential_price
differential_price_updated
Triggered when a differential price is updated.
differential_price
differential_price_deleted
Triggered when a differential price is deleted.
differential_price
Triggered when a `feature` is created.
feature, impacted_item(optional), impacted_subscription(optional)
Triggered when a `feature` is updated. Note: This event is not triggered when only the `status` of the feature has changed.
feature
Triggered when a `feature` is deleted.
feature, impacted_item(optional), impacted_subscription(optional)
Triggered when a `feature` status transitions to `active` for the first time.
feature, impacted_item(optional), impacted_subscription(optional)
Triggered when a `feature` status transitions to `active` for the second time or more.
feature
Triggered when a `feature` status transitions to `archived`.
feature
item_entitlements_updated
One or more `item_entitlement`s were added or updated for an `item` or a `feature`.
feature, impacted_item(optional), impacted_subscription(optional)
entitlement_overrides_updated
One or more `entitlement_override`s for a subscription were added or updated.
impacted_subscription
entitlement_overrides_removed
Triggered when one or more `entitlement_override` objects are removed. This is not triggered when Chargebee removes the objects automatically upon expiry.
impacted_subscription
item_entitlements_removed
One or more `item_entitlement`s were removed for an `item` or a `feature`.
feature, impacted_item(optional), impacted_subscription(optional)
entitlement_overrides_auto_removed
When a limited period `entitlement_override` expires, it is no longer returned. No event is immediately triggered for it. However, after expiry, the `entitlement_override` record gets deleted within 12 hours, triggering the `entitlement_overrides_auto_removed` event. Therefore, this event can be considered a delayed notification for one or more `entitlement_overrides` having expired.
feature, impacted_item(optional), impacted_subscription(optional)
subscription_entitlements_created
Triggered on subscription creation, alongside the subscription_created event whenever the subscription has subscription_entitlements. The event payload contains the first 100 subscription_entitlements. The has_next attribute is set to true if more than 100 subscription entitlements are available. You can retrieve the next page by calling the “List subscription entitlements” endpoint, passing the offset parameter as 1.
subscription_entitlements_created_detail
Triggered when a business entity is created
business_entity
Triggered when a business entity is changed
business_entity
Triggered when a business entity is deleted
business_entity
Triggered when a purchase resource is created successfully
purchase
Triggered when a Payment voucher is created.
payment_voucher
Triggered when a Payment voucher is Expired.
payment_voucher
Triggered when the Payment voucher Creation fails.
payment_voucher
Triggered when a product resource is created successfully
product
Triggered when a product resource is updated successfully
product
Triggered when a product resource is deleted successfully
product
Triggered when a product variant resource is created successfully
variant
Triggered when a product variant resource is updated successfully
variant
Triggered when a product variant resource is deleted successfully
variant
Retrieves list of events.