API Version
Product Catalog
Library

Introduction

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.

Webhooks

If webhooks have been configured in Chargebee, events trigger those webhooks. If multiple webhooks have been configured, for every event, each webhook is called one after another. If a webhook call for an event fails or times out, it is retried based on a fixed schedule. The webhook call is an HTTP POST with content type application/json.

Caution:

Webhooks are asynchronous and are not recommended for time-critical applications. It is very much possible and even likely that webhooks reach your application out-of-order and that they get duplicated. For time-critical applications, we recommend using the List events API to poll Chargebee for events.

Retries & Duplicate Handling

To mark a webhook notification successful, we expect the HTTP status code to be 2XX from your webhook URL. If we don't receive 2XX response code, we retry calling your webhook with a progressively increasing delay for the next 2 days. You could also resend webhooks manually from the web console.

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:

  1. Get the event id and keep it in a persistent store such as a relational database or redis.
  2. Check whether the event id is already processed.
  3. If the event has not been processed then process the event; otherwise, it is a duplicate event so can be ignored.
  4. Also, since the last retry for a webhook happens at around 3 days and 7 hours after the original event trigger, keep the idempotency window as 3 days and 7 hours. In other words, you may purge the stored event ids that are more than 3 days and 7 hours old.

Out-of-order Delivery

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:

  1. Get the value (rv1) of the resource_version attribute from the resource in the webhook.
  2. Get the value (rv2) of resource_version from the resource stored on your side.
  3. If rv1 > rv2, process the resource; otherwise, ignore.

API Version

Chargebee supports multiple API versions now. The api_version attribute indicates the API version based on which the event content is structured. While processing webhooks, ensure that api_version is same as the API version used by your webhook server's client library.

Securing Your Webhook URL

You can have basic authentication for the webhook url.
  1. In the Webhook Settings page (Settings > Configure Chargebee > Webhooks),choose the tab for the webhook and check the option My webhook URL is protected by basic authentication.
  2. Enter Username and Password and click Update Webhook.
OR
Generate a random key and have it as part of your webhook URL
eg. http://yourapp.com/chargebee-webhook/cuktqaem0i2fkd5jt9cdtojcn9cvb3Y

In addition to securing your webhook, you can ensure the integrity of the event data by fetching it again using the Retrieve an Event API call.

Webhook IP Addresses

Webhooks from Chargebee originate from a specific set of IP addresses.

Sample event [ JSON ]

{ "event": { "id": "ev_16BPgETyVrQbiGhA", "occurred_at": 1702645601, "source": "admin_console", "user": "sarah@sarah.com", "object": "event", "api_version": "v2", "content": { "subscription": { "id": "16BPgETyVrQVHGh1", "billing_period": 1, "billing_period_unit": "month", "customer_id": "sarah", "status": "active", "current_term_start": 1702578600, "current_term_end": 1705256999, "next_billing_at": 1705257000, "created_at": 1702645601, "started_at": 1702578600, "activated_at": 1702578600, "created_from_ip": "10.0.0.1", "updated_at": 1702645601, "has_scheduled_changes": false, "channel": "web", "resource_version": 1702645601793, "deleted": false, "object": "subscription", "currency_code": "INR", "subscription_items": [ { "item_price_id": "cross-train-advanced-INR-1_MONTH", "item_type": "plan", "quantity": 1, "quantity_in_decimal": "1.0000", "unit_price": 11667, "unit_price_in_decimal": "116.66667", "amount": 11667, "amount_in_decimal": "116.66667", "free_quantity": 0, "free_quantity_in_decimal": "0.0000", "object": "subscription_item" } ], "due_invoices_count": 0, "mrr": 0, "has_scheduled_advance_invoices": false, "override_relationship": false, "create_pending_invoices": false, "auto_close_invoices": true, "business_entity_id": "16CQtCTrgrYwi9n2E" }, "customer": { "id": "sarah", "auto_collection": "on", "net_term_days": 0, "allow_direct_debit": false, "created_at": 1700038561, "created_from_ip": "10.0.0.2", "taxability": "taxable", "updated_at": 1702645580, "pii_cleared": "active", "channel": "web", "resource_version": 1702645580741, "deleted": false, "object": "customer", "card_status": "valid", "promotional_credits": 0, "refundable_credits": 0, "excess_payments": 0, "unbilled_charges": 0, "preferred_currency_code": "INR", "mrr": 0, "primary_payment_source_id": "pm_169vujTyVrL5fFDl", "payment_method": { "object": "payment_method", "type": "card", "reference_id": "tok_169vujTyVrL5LFDk", "gateway": "chargebee", "gateway_account_id": "gw_1mk51R4QrLmQtYMht", "status": "valid" }, "business_entity_id": "16CQtCTrgrYwi9n2E", "tax_providers_fields": [], "auto_close_invoices": true }, "card": { "status": "valid", "gateway": "chargebee", "gateway_account_id": "gw_1mk51R4QrLmQtYMht", "iin": "411111", "last4": "1111", "card_type": "visa", "funding_type": "credit", "expiry_month": 12, "expiry_year": 2024, "created_at": 1702645580, "updated_at": 1702645580, "ip_address": "10.0.0.1", "resource_version": 1702645580740, "object": "card", "masked_number": "************1111", "customer_id": "boom", "payment_source_id": "pm_169vujTyVrL5fFDl" }, "invoice": { "id": "203", "customer_id": "boom", "subscription_id": "16BPgETyVrQVHGh1", "recurring": true, "status": "paid", "price_type": "tax_exclusive", "date": 1702578600, "due_date": 1702578600, "net_term_days": 0, "exchange_rate": 83.283543, "total": 11667, "amount_paid": 11667, "amount_adjusted": 0, "write_off_amount": 0, "credits_applied": 0, "amount_due": 0, "paid_at": 1702645601, "updated_at": 1702645601, "resource_version": 1702645601783, "deleted": false, "object": "invoice", "first_invoice": true, "amount_to_collect": 0, "round_off_amount": 0, "new_sales_amount": 11667, "has_advance_charges": false, "currency_code": "INR", "base_currency_code": "USD", "generated_at": 1702578600, "is_gifted": false, "term_finalized": true, "channel": "web", "tax": 0, "line_items": [ { "id": "li_16BPgETyVrQWBGh3", "date_from": 1702578600, "date_to": 1705256999, "unit_amount": 11667, "quantity": 1, "amount": 11667, "pricing_model": "per_unit", "is_taxed": false, "tax_amount": 0, "unit_amount_in_decimal": "116.66667", "quantity_in_decimal": "1.0000", "amount_in_decimal": "116.66667", "object": "line_item", "subscription_id": "16BPgETyVrQVHGh1", "customer_id": "boom", "description": "cross-train-advanced-INR-1_MONTH", "entity_type": "plan_item_price", "entity_id": "cross-train-advanced-INR-1_MONTH", "metered": false, "tax_exempt_reason": "export", "discount_amount": 0, "item_level_discount_amount": 0 } ], "sub_total": 11667, "linked_payments": [ { "txn_id": "txn_16BPgETyVrQXVGh4", "applied_amount": 11667, "applied_at": 1702645601, "txn_status": "success", "txn_date": 1702645601, "txn_amount": 11667 } ], "applied_credits": [], "adjustment_credit_notes": [], "issued_credit_notes": [], "linked_orders": [], "dunning_attempts": [], "notes": [ { "note": "You can pay card." } ], "business_entity_id": "16CQtCTrgrYwi9n2E" } }, "event_type": "subscription_created", "webhook_status": "not_configured", "webhooks": [ { "id": "whv2_Azz5aITsMVdKtVWV", "webhook_status": "not_applicable", "object": "webhook" }, { "id": "whv2_Azz5aITsMVaqCVT4", "webhook_status": "not_applicable", "object": "webhook" }, { "id": "whv2_169lhWTpiH34m3Vp8", "webhook_status": "not_applicable", "object": "webhook" }, { "id": "whv2_AzZiyPTsMVf4DUdv", "webhook_status": "re_scheduled", "object": "webhook" } ] } }

API Index URL GET

https://{site}.chargebee.com/api/v2/events

Model Class

<chargebee>.Event
id
string, max chars=40
Uniquely identifies a event
occurred_at
timestamp(UTC) in seconds
Timestamp indicating when this event had occurred.
source
enumerated string, default=none
Source of the event
Possible values are
admin_consoleOperation made through the Chargebee admin UIapiOperation made through the APIscheduled_jobOperation made through the Scheduled Jobshosted_pageOperation made through the Hosted PagesportalOperation made through Self-Serve PortalsystemOperation that are triggered by ChargeBee SystemnoneIf no source can be identified for an operationjs_apiOperation made through the JS APImigrationDeprecatedbulk_operationOperation that are triggerd through bulk operation.external_serviceOperation that are triggered via webhook
admin_consoleOperation made through the Chargebee admin UIapiOperation made through the APIscheduled_jobOperation made through the Scheduled Jobshosted_pageOperation made through the Hosted Pages
portalOperation made through Self-Serve PortalsystemOperation that are triggered by ChargeBee SystemnoneIf no source can be identified for an operationjs_apiOperation made through the JS APImigrationDeprecatedbulk_operationOperation that are triggerd through bulk operation.external_serviceOperation that are triggered via webhook
Show all values[+]
user
optional, string, max chars=150
The “user” that triggered the event. The value depends on the source attribute:
  • When source is admin_console: the email address of the user that triggered the event.
  • When source is api, js_api or bulk_operation: the name of the API key that was used to trigger the event.
  • When the source is external_service: the name of the service that called our webhook. Eg. ADYEN, STRIPE, AMAZON_PAYMENTS etc.
  • When the source is hosted_page or portal: the user attribute is not passed.

event_type
optional, enumerated string
The types of event provided by chargebee. Refer event types for all the event types provided by us currently.
Possible values are
coupon_createdSent when a coupon is created.coupon_updatedSent when a coupon is changed.coupon_deletedSent when a coupon is deleted.coupon_set_createdSent when a coupon set is createdcoupon_set_updatedSent when a coupon set is changedcoupon_set_deletedSent when a coupon set is deletedcoupon_codes_addedSent when coupon codes are added in coupon setcoupon_codes_deletedSent when coupon codes are deleted in coupon setcoupon_codes_updatedSent when coupon codes are updatedcustomer_createdSent when a customer is created. This event happens when only a new customer is created or when a customer is automatically created during new subscription creation.customer_changedSent when a customer is changedcustomer_deletedSent when a customer is deletedcustomer_moved_outSent when a customer is copied to another sitecustomer_moved_inSent when a customer is copied from another sitepromotional_credits_addedSent when a customer prmotion credits addedpromotional_credits_deductedSent when a customer prmotion credits deductedsubscription_createdSent when a new subscription is created.subscription_created_with_backdatingSent when a new subscription is created with backdating.subscription_startedSent when a 'future' subscription gets started at the scheduled date.subscription_trial_end_reminderSent when the customer's trial period is about to end.subscription_activatedSent after the subscription has been moved from trial to active statesubscription_activated_with_backdatingSent after the subscription changes to `active` from another `status`, while the change is backdated.subscription_changedSent after the subscription's recurring items have been changedsubscription_trial_extendedTrial Extensionmrr_updatedSent when either of MRR or CMRR of a subscription changessubscription_changed_with_backdatingSent after the subscription's recurring items have been changed with backdated datesubscription_cancellation_scheduledSent when subscription is scheduled to cancel at end of current termsubscription_cancellation_reminderSent when the customer's subscription is nearing it's scheduled cancellation date.subscription_cancelledSent when the subscription gets cancelled. If cancelled due to non payment or card not present, the subscription will have the possible reason as 'cancel_reason'.subscription_canceled_with_backdatingSent when the subscription gets cancelled. If cancelled due to non payment or card not present, the subscription will have the possible reason as 'cancel_reason'.subscription_reactivatedSent when the subscription is moved from cancelled state to active or in_trial statesubscription_reactivated_with_backdatingSent when the subscription is moved from cancelled state to active or in_trial state with past datesubscription_renewedSent when the subscription is renewed from the current term.subscription_items_renewedSent when one or more Subscription Items are renewedsubscription_scheduled_cancellation_removedSent when scheduled cancellation is removed for the subscription.subscription_changes_scheduledSent when subscription changes are scheduled for later. Changes will be applied at the end of current term.subscription_scheduled_changes_removedSent when scheduled change for the subscription is removed.subscription_shipping_address_updatedTriggered when shipping address is added or updated for a subscription.subscription_deletedSent when a subscription has been deletedsubscription_pausedSent when the subscription is paused.subscription_pause_scheduledSent when the subscription is scheduled to pause.subscription_scheduled_pause_removedTriggered when scheduled pause is removed for the subscription.subscription_resumedSent when the subscription is moved from paused state to active statesubscription_resumption_scheduledTriggered when the subscription resumption is scheduled.subscription_scheduled_resumption_removedTriggered when scheduled resumption is removed for the subscription.subscription_advance_invoice_schedule_addedTriggered when advance invoice is scheduled for a subscription.subscription_advance_invoice_schedule_updatedTriggered when scheduled advance invoice is updated for a subscription.subscription_advance_invoice_schedule_removedTriggered when scheduled advance invoice is removed for a subscription.pending_invoice_createdEvent 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.pending_invoice_updatedEvent triggered when the option "Notify and wait to close invoices" is enabled, and the 'Pending' invoice is updated.invoice_generatedEvent triggered when a new invoice is generated. In case of metered billing, this event is triggered when a "Pending" invoice is closed.invoice_generated_with_backdatingEvent triggered when a new invoice is generated with past date as invoice date.invoice_updatedTriggered when the invoice’s shipping/billing address is updated, if the invoice is voided, or when the amount due is modified due to payments applied/removed.invoice_deletedEvent triggered when an invoice is deleted.credit_note_createdSent when a credit note is createdcredit_note_created_with_backdatingSent when a credit note is created with past date as credit note datecredit_note_updatedSent when a credit note is updatedcredit_note_deletedSent when a credit note is deletedpayment_schedules_createdEvent triggered when new payment schedules are created for an invoicepayment_schedules_updatedEvent triggered when payment schedules are updated for an invoicepayment_schedule_scheme_createdEvent triggered when a new payment schedule scheme is createdpayment_schedule_scheme_deletedEvent triggered when a payment schedule scheme is deletedsubscription_renewal_reminderSent before each subscription's renewal based on plan's periodadd_usages_reminderSent every month day before renewal date of plan's periodtransaction_createdTriggered when a transaction is recordedtransaction_updatedTriggered 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_deletedTriggered when a transaction is deleted.payment_succeededSent when the payment is successfully collectedpayment_failedSent when attempt to charge customer's credit card failspayment_refundedSent when a payment refund is madepayment_initiatedSent when a payment is initiated via direct debitrefund_initiatedSent when a refund is initiated via direct debitauthorization_succeededTriggered when a authorization transaction is created.authorization_voidedTriggered 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.card_addedSent when a card is added for a customer.card_updatedSent when the card is updated for a customer.card_expiry_reminderSent when the customer's credit card is expiring soon. Sent 30 days before the expiry date.card_expiredSent when a card for a customer is expiredcard_deletedSent when a card is deleted for a customerpayment_source_addedSent when a payment source is added for a customer.payment_source_updatedSent when the payment source is updated for a customer or when role is assigned to the payment source.payment_source_deletedSent when a payment source is deleted for a customerpayment_source_expiringSent when the customer's payment source is expiring soon. Sent 30 days before the expiry date.payment_source_expiredSent when a payment source for a customer is expiredpayment_source_locally_deletedSent when a payment source for a customer removed from Chargebeevirtual_bank_account_addedSent when a virtual bank account is added for a customer.virtual_bank_account_updatedSent when the virtual bank account is updated for a customer.virtual_bank_account_deletedSent when a virtual bank account is deleted for a customer.token_createdSent when a Token is createdtoken_consumedSent when a Token is consumedtoken_expiredSent when a Token is expiredunbilled_charges_createdTriggered when unbilled charges are createdunbilled_charges_voidedTriggered when unbilled charges are voidedunbilled_charges_deletedTriggered when unbilled charges are deletedunbilled_charges_invoicedTriggered when unbilled charges are invoicedorder_createdTriggered when order is createdorder_updatedTriggered when order is updatedorder_cancelledTriggered when order is cancelledorder_deliveredTriggered when order is marked as deliveredorder_returnedTriggered when order is marked as returnedorder_ready_to_processTriggered when order reaches it's order dateorder_ready_to_shipTriggered when order reaches it's shipping dateorder_deletedTriggered when order is deletedorder_resentTriggered when order is resentquote_createdTriggered when quote is createdquote_updatedTriggered when quote is updatedquote_deletedTriggered when quote is deletedtax_withheld_recordedTriggered when a tax withheld is recorded for an invoicetax_withheld_deletedTriggered when a tax withheld is deletedtax_withheld_refundedSent when a tax withheld refund is madegift_scheduledTriggered when a new gift is createdgift_unclaimedTriggered when a new gift is unclaimed and is ready to be claimedgift_claimedTriggered when a gift is claimedgift_expiredTriggered when a gift expiresgift_cancelledTriggered when a gift is cancelled.gift_updatedTriggered when a gift is updatedhierarchy_createdTriggered when a hierarchy is createdhierarchy_deletedTriggered when a hierarchy is deletedpayment_intent_createdSent when a Payment intent is createdpayment_intent_updatedSent when a Payment intent is updatedcontract_term_createdTriggered when new contract term is createdcontract_term_renewedTriggered when new contract term is renewedcontract_term_terminatedTriggered when contract term is terminatedcontract_term_completedTriggered when contract term is completedcontract_term_cancelledTriggered when contract term is cancelleditem_family_createdTriggered when an item family is createditem_family_updatedTriggered when an item family is updateditem_family_deletedTriggered when an item family is deleteditem_createdTriggered when an item is createditem_updatedTriggered when an item is updateditem_deletedTriggered when an item is deleteditem_price_createdTriggered when an item price is createditem_price_updatedTriggered when an item price is updateditem_price_deletedTriggered when an item price is deletedattached_item_createdTriggered when an Attached item is createdattached_item_updatedTriggered when an Attached item is updatedattached_item_deletedTriggered when an Attached item is deleteddifferential_price_createdTriggered when a differential price is createddifferential_price_updatedTriggered when a differential price is updateddifferential_price_deletedTriggered when a differential price is deletedfeature_createdTriggered when a feature is created.feature_updatedTriggered when an feature is updatedfeature_deletedTriggered when a feature is deletedfeature_activatedTriggered when a feature `status` transitions to `active` for the first time.feature_reactivatedTriggered when a feature `status` transitions to `active` for the second time or more.feature_archivedTriggered when an feature is archiveditem_entitlements_updatedTriggered when item entitlements are updated to a featureentitlement_overrides_updatedTriggered when an override entitlement is updatedentitlement_overrides_removedTriggered when an override entitlement is removeditem_entitlements_removedTriggered when item entitlements are removed for a featureentitlement_overrides_auto_removedTriggered when Subscription entitlements overrides for a feature are auto removed after expirysubscription_entitlements_createdTriggered when subscription entitlements are created for a new subscriptionsubscription_entitlements_updatedTriggered when subscription entitlements are updated for a subscription change.business_entity_createdSent when a business entity is created.business_entity_updatedSent when a business entity is updated.business_entity_deletedSent when a business entity is deleted.customer_business_entity_changedSent when a customer's business entity is changed.subscription_business_entity_changedSent when a subscription's business entity is changed.purchase_createdTriggered when purchase action completed successfullyvoucher_createdTriggered when a payment voucher is createdvoucher_expiredTriggered when a payment voucher is expiredvoucher_create_failedTriggered when a payment voucher creation is faileditem_price_entitlements_updatedTriggered when item Price entitlements are updated to a featureitem_price_entitlements_removedTriggered when item price entitlements are removed for a featuresubscription_ramp_createdTriggered when a subscription ramp is created.subscription_ramp_deletedTriggered when a subscription ramp is deleted.subscription_ramp_appliedTriggered when a subscription ramp is applied.subscription_ramp_draftedTriggered when a subscription ramp is moved to draft status.subscription_ramp_updatedTriggered when a subscription ramp is updated.price_variant_createdTriggered when a price variant is created.price_variant_updatedTriggered when a price variant is updated.price_variant_deletedTriggered when a price variant is deleted.customer_entitlements_updatedTriggered when entitlements for the list of customers got updated.subscription_moved_inTriggered when a subscription moved from other customersubscription_moved_outTriggered when a subscription moved to other customersubscription_movement_failedTriggered when a subscription movement failedomnichannel_subscription_createdTriggered when an omnichannel subscription is createdomnichannel_subscription_item_renewedTriggered when an omnichannel subscription item is renewedomnichannel_subscription_item_downgradedTriggered when an omnichannel subscription item is downgradedomnichannel_subscription_item_expiredTriggered when an omnichannel subscription item is expiredomnichannel_subscription_item_cancellation_scheduledTriggered when an omnichannel subscription item is scheduled for cancellationomnichannel_subscription_item_scheduled_cancellation_removedTriggered when an omnichannel subscription item scheduled cancellation is removedomnichannel_subscription_item_resubscribedTriggered when an omnichannel subscription item is resubscribedomnichannel_subscription_item_upgradedTriggered when an omnichannel subscription item is upgradedomnichannel_subscription_item_cancelledTriggered when an omnichannel subscription item is cancelledomnichannel_subscription_importedTriggered when an omnichannel subscription item is importedomnichannel_subscription_item_grace_period_startedTriggered when an omnichannel subscription item's grace period has startedomnichannel_subscription_item_grace_period_expiredTriggered when an omnichannel subscription item's grace period has expiredomnichannel_subscription_item_dunning_startedTriggered when an omnichannel subscription item's dunning has startedomnichannel_subscription_item_dunning_expiredTriggered when an omnichannel subscription item's dunning has expiredrule_createdTriggered when a rule is createdrule_updatedTriggered when a rule is updatedrule_deletedTriggered when a rule is deletedrecord_purchase_failedTriggered when an omnichannel record purchase is failedomnichannel_subscription_item_change_scheduledTriggered when an omnichannel subscription item change is scheduledomnichannel_subscription_item_scheduled_change_removedTriggered when an omnichannel subscription item scheduled change is removedomnichannel_subscription_item_reactivatedTriggered when an omnichannel subscription item's refund is reversedsales_order_createdTriggered when sales order is createdsales_order_updatedTriggered when sales order is updatedomnichannel_subscription_item_changedTriggered when an omnichannel subscription item is changedomnichannel_subscription_item_pausedTriggered when an omnichannel subscription item is pausedomnichannel_subscription_item_resumedTriggered when an omnichannel subscription item is resumed
coupon_createdSent when a coupon is created.coupon_updatedSent when a coupon is changed.coupon_deletedSent when a coupon is deleted.coupon_set_createdSent when a coupon set is created
coupon_set_updatedSent when a coupon set is changedcoupon_set_deletedSent when a coupon set is deletedcoupon_codes_addedSent when coupon codes are added in coupon setcoupon_codes_deletedSent when coupon codes are deleted in coupon setcoupon_codes_updatedSent when coupon codes are updatedcustomer_createdSent when a customer is created. This event happens when only a new customer is created or when a customer is automatically created during new subscription creation.customer_changedSent when a customer is changedcustomer_deletedSent when a customer is deletedcustomer_moved_outSent when a customer is copied to another sitecustomer_moved_inSent when a customer is copied from another sitepromotional_credits_addedSent when a customer prmotion credits addedpromotional_credits_deductedSent when a customer prmotion credits deductedsubscription_createdSent when a new subscription is created.subscription_created_with_backdatingSent when a new subscription is created with backdating.subscription_startedSent when a 'future' subscription gets started at the scheduled date.subscription_trial_end_reminderSent when the customer's trial period is about to end.subscription_activatedSent after the subscription has been moved from trial to active statesubscription_activated_with_backdatingSent after the subscription changes to `active` from another `status`, while the change is backdated.subscription_changedSent after the subscription's recurring items have been changedsubscription_trial_extendedTrial Extensionmrr_updatedSent when either of MRR or CMRR of a subscription changessubscription_changed_with_backdatingSent after the subscription's recurring items have been changed with backdated datesubscription_cancellation_scheduledSent when subscription is scheduled to cancel at end of current termsubscription_cancellation_reminderSent when the customer's subscription is nearing it's scheduled cancellation date.subscription_cancelledSent when the subscription gets cancelled. If cancelled due to non payment or card not present, the subscription will have the possible reason as 'cancel_reason'.subscription_canceled_with_backdatingSent when the subscription gets cancelled. If cancelled due to non payment or card not present, the subscription will have the possible reason as 'cancel_reason'.subscription_reactivatedSent when the subscription is moved from cancelled state to active or in_trial statesubscription_reactivated_with_backdatingSent when the subscription is moved from cancelled state to active or in_trial state with past datesubscription_renewedSent when the subscription is renewed from the current term.subscription_items_renewedSent when one or more Subscription Items are renewedsubscription_scheduled_cancellation_removedSent when scheduled cancellation is removed for the subscription.subscription_changes_scheduledSent when subscription changes are scheduled for later. Changes will be applied at the end of current term.subscription_scheduled_changes_removedSent when scheduled change for the subscription is removed.subscription_shipping_address_updatedTriggered when shipping address is added or updated for a subscription.subscription_deletedSent when a subscription has been deletedsubscription_pausedSent when the subscription is paused.subscription_pause_scheduledSent when the subscription is scheduled to pause.subscription_scheduled_pause_removedTriggered when scheduled pause is removed for the subscription.subscription_resumedSent when the subscription is moved from paused state to active statesubscription_resumption_scheduledTriggered when the subscription resumption is scheduled.subscription_scheduled_resumption_removedTriggered when scheduled resumption is removed for the subscription.subscription_advance_invoice_schedule_addedTriggered when advance invoice is scheduled for a subscription.subscription_advance_invoice_schedule_updatedTriggered when scheduled advance invoice is updated for a subscription.subscription_advance_invoice_schedule_removedTriggered when scheduled advance invoice is removed for a subscription.pending_invoice_createdEvent 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.pending_invoice_updatedEvent triggered when the option "Notify and wait to close invoices" is enabled, and the 'Pending' invoice is updated.invoice_generatedEvent triggered when a new invoice is generated. In case of metered billing, this event is triggered when a "Pending" invoice is closed.invoice_generated_with_backdatingEvent triggered when a new invoice is generated with past date as invoice date.invoice_updatedTriggered when the invoice’s shipping/billing address is updated, if the invoice is voided, or when the amount due is modified due to payments applied/removed.invoice_deletedEvent triggered when an invoice is deleted.credit_note_createdSent when a credit note is createdcredit_note_created_with_backdatingSent when a credit note is created with past date as credit note datecredit_note_updatedSent when a credit note is updatedcredit_note_deletedSent when a credit note is deletedpayment_schedules_createdEvent triggered when new payment schedules are created for an invoicepayment_schedules_updatedEvent triggered when payment schedules are updated for an invoicepayment_schedule_scheme_createdEvent triggered when a new payment schedule scheme is createdpayment_schedule_scheme_deletedEvent triggered when a payment schedule scheme is deletedsubscription_renewal_reminderSent before each subscription's renewal based on plan's periodadd_usages_reminderSent every month day before renewal date of plan's periodtransaction_createdTriggered when a transaction is recordedtransaction_updatedTriggered 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_deletedTriggered when a transaction is deleted.payment_succeededSent when the payment is successfully collectedpayment_failedSent when attempt to charge customer's credit card failspayment_refundedSent when a payment refund is madepayment_initiatedSent when a payment is initiated via direct debitrefund_initiatedSent when a refund is initiated via direct debitauthorization_succeededTriggered when a authorization transaction is created.authorization_voidedTriggered 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.card_addedSent when a card is added for a customer.card_updatedSent when the card is updated for a customer.card_expiry_reminderSent when the customer's credit card is expiring soon. Sent 30 days before the expiry date.card_expiredSent when a card for a customer is expiredcard_deletedSent when a card is deleted for a customerpayment_source_addedSent when a payment source is added for a customer.payment_source_updatedSent when the payment source is updated for a customer or when role is assigned to the payment source.payment_source_deletedSent when a payment source is deleted for a customerpayment_source_expiringSent when the customer's payment source is expiring soon. Sent 30 days before the expiry date.payment_source_expiredSent when a payment source for a customer is expiredpayment_source_locally_deletedSent when a payment source for a customer removed from Chargebeevirtual_bank_account_addedSent when a virtual bank account is added for a customer.virtual_bank_account_updatedSent when the virtual bank account is updated for a customer.virtual_bank_account_deletedSent when a virtual bank account is deleted for a customer.token_createdSent when a Token is createdtoken_consumedSent when a Token is consumedtoken_expiredSent when a Token is expiredunbilled_charges_createdTriggered when unbilled charges are createdunbilled_charges_voidedTriggered when unbilled charges are voidedunbilled_charges_deletedTriggered when unbilled charges are deletedunbilled_charges_invoicedTriggered when unbilled charges are invoicedorder_createdTriggered when order is createdorder_updatedTriggered when order is updatedorder_cancelledTriggered when order is cancelledorder_deliveredTriggered when order is marked as deliveredorder_returnedTriggered when order is marked as returnedorder_ready_to_processTriggered when order reaches it's order dateorder_ready_to_shipTriggered when order reaches it's shipping dateorder_deletedTriggered when order is deletedorder_resentTriggered when order is resentquote_createdTriggered when quote is createdquote_updatedTriggered when quote is updatedquote_deletedTriggered when quote is deletedtax_withheld_recordedTriggered when a tax withheld is recorded for an invoicetax_withheld_deletedTriggered when a tax withheld is deletedtax_withheld_refundedSent when a tax withheld refund is madegift_scheduledTriggered when a new gift is createdgift_unclaimedTriggered when a new gift is unclaimed and is ready to be claimedgift_claimedTriggered when a gift is claimedgift_expiredTriggered when a gift expiresgift_cancelledTriggered when a gift is cancelled.gift_updatedTriggered when a gift is updatedhierarchy_createdTriggered when a hierarchy is createdhierarchy_deletedTriggered when a hierarchy is deletedpayment_intent_createdSent when a Payment intent is createdpayment_intent_updatedSent when a Payment intent is updatedcontract_term_createdTriggered when new contract term is createdcontract_term_renewedTriggered when new contract term is renewedcontract_term_terminatedTriggered when contract term is terminatedcontract_term_completedTriggered when contract term is completedcontract_term_cancelledTriggered when contract term is cancelleditem_family_createdTriggered when an item family is createditem_family_updatedTriggered when an item family is updateditem_family_deletedTriggered when an item family is deleteditem_createdTriggered when an item is createditem_updatedTriggered when an item is updateditem_deletedTriggered when an item is deleteditem_price_createdTriggered when an item price is createditem_price_updatedTriggered when an item price is updateditem_price_deletedTriggered when an item price is deletedattached_item_createdTriggered when an Attached item is createdattached_item_updatedTriggered when an Attached item is updatedattached_item_deletedTriggered when an Attached item is deleteddifferential_price_createdTriggered when a differential price is createddifferential_price_updatedTriggered when a differential price is updateddifferential_price_deletedTriggered when a differential price is deletedfeature_createdTriggered when a feature is created.feature_updatedTriggered when an feature is updatedfeature_deletedTriggered when a feature is deletedfeature_activatedTriggered when a feature `status` transitions to `active` for the first time.feature_reactivatedTriggered when a feature `status` transitions to `active` for the second time or more.feature_archivedTriggered when an feature is archiveditem_entitlements_updatedTriggered when item entitlements are updated to a featureentitlement_overrides_updatedTriggered when an override entitlement is updatedentitlement_overrides_removedTriggered when an override entitlement is removeditem_entitlements_removedTriggered when item entitlements are removed for a featureentitlement_overrides_auto_removedTriggered when Subscription entitlements overrides for a feature are auto removed after expirysubscription_entitlements_createdTriggered when subscription entitlements are created for a new subscriptionsubscription_entitlements_updatedTriggered when subscription entitlements are updated for a subscription change.business_entity_createdSent when a business entity is created.business_entity_updatedSent when a business entity is updated.business_entity_deletedSent when a business entity is deleted.customer_business_entity_changedSent when a customer's business entity is changed.subscription_business_entity_changedSent when a subscription's business entity is changed.purchase_createdTriggered when purchase action completed successfullyvoucher_createdTriggered when a payment voucher is createdvoucher_expiredTriggered when a payment voucher is expiredvoucher_create_failedTriggered when a payment voucher creation is faileditem_price_entitlements_updatedTriggered when item Price entitlements are updated to a featureitem_price_entitlements_removedTriggered when item price entitlements are removed for a featuresubscription_ramp_createdTriggered when a subscription ramp is created.subscription_ramp_deletedTriggered when a subscription ramp is deleted.subscription_ramp_appliedTriggered when a subscription ramp is applied.subscription_ramp_draftedTriggered when a subscription ramp is moved to draft status.subscription_ramp_updatedTriggered when a subscription ramp is updated.price_variant_createdTriggered when a price variant is created.price_variant_updatedTriggered when a price variant is updated.price_variant_deletedTriggered when a price variant is deleted.customer_entitlements_updatedTriggered when entitlements for the list of customers got updated.subscription_moved_inTriggered when a subscription moved from other customersubscription_moved_outTriggered when a subscription moved to other customersubscription_movement_failedTriggered when a subscription movement failedomnichannel_subscription_createdTriggered when an omnichannel subscription is createdomnichannel_subscription_item_renewedTriggered when an omnichannel subscription item is renewedomnichannel_subscription_item_downgradedTriggered when an omnichannel subscription item is downgradedomnichannel_subscription_item_expiredTriggered when an omnichannel subscription item is expiredomnichannel_subscription_item_cancellation_scheduledTriggered when an omnichannel subscription item is scheduled for cancellationomnichannel_subscription_item_scheduled_cancellation_removedTriggered when an omnichannel subscription item scheduled cancellation is removedomnichannel_subscription_item_resubscribedTriggered when an omnichannel subscription item is resubscribedomnichannel_subscription_item_upgradedTriggered when an omnichannel subscription item is upgradedomnichannel_subscription_item_cancelledTriggered when an omnichannel subscription item is cancelledomnichannel_subscription_importedTriggered when an omnichannel subscription item is importedomnichannel_subscription_item_grace_period_startedTriggered when an omnichannel subscription item's grace period has startedomnichannel_subscription_item_grace_period_expiredTriggered when an omnichannel subscription item's grace period has expiredomnichannel_subscription_item_dunning_startedTriggered when an omnichannel subscription item's dunning has startedomnichannel_subscription_item_dunning_expiredTriggered when an omnichannel subscription item's dunning has expiredrule_createdTriggered when a rule is createdrule_updatedTriggered when a rule is updatedrule_deletedTriggered when a rule is deletedrecord_purchase_failedTriggered when an omnichannel record purchase is failedomnichannel_subscription_item_change_scheduledTriggered when an omnichannel subscription item change is scheduledomnichannel_subscription_item_scheduled_change_removedTriggered when an omnichannel subscription item scheduled change is removedomnichannel_subscription_item_reactivatedTriggered when an omnichannel subscription item's refund is reversedsales_order_createdTriggered when sales order is createdsales_order_updatedTriggered when sales order is updatedomnichannel_subscription_item_changedTriggered when an omnichannel subscription item is changedomnichannel_subscription_item_pausedTriggered when an omnichannel subscription item is pausedomnichannel_subscription_item_resumedTriggered when an omnichannel subscription item is resumed
Show all values[+]
api_version
optional, enumerated string, default=v1
The Chargebee API Version used for rendering this event content. While processing webhooks, ensure this version is same as the API version used by your webhook server's client library.
Possible values are
v1Chargebee API version V1v2Chargebee API version V2
v1Chargebee API version V1v2Chargebee API version V2
Show all values[+]
content
jsonobject
The JSON data associated with this event. Has resources (subscription, invoice etc) based on the event type. These resources are structured based on the Chargebee API version indicated by the api_version attribute.
origin_user
optional, string

The email address of the user, if captured, in the API operation that triggered the event. This email address is captured through either the chargebee-request-origin-user or chargebee-request-origin-user-encoded custom HTTP request headers.

Note:

Applicable only when event_source is api.


optional, list of webhook
Array of webhook call statuses: one for each of the webhooks configured for the site. This object is only available after the first webhook call for the event has completed or timed out. Also, creation/updation of the webhook object data is a queued operation and hence there can be an additional delay of up to 5 seconds.

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.

Note: If consolidated invoicing is enabled, the attributes invoice.subscription_id and credit_note.subscription_id should not be used (as it will not be present if the invoice / credit note has lines from multiple subscriptions). Instead to know the related subscriptions, their line_items' subscription_id attribute should be referred.

coupon_created
Triggered when a coupon is created.
coupon
coupon_updated
Triggered when a coupon is changed.
coupon
coupon_deleted
Triggered when a coupon is deleted.
coupon
coupon_set_created
Triggered when a coupon set is created.
coupon, coupon_set
coupon_set_updated
Triggered when a coupon set is updated.
coupon, coupon_set
coupon_set_deleted
Triggered when a coupon set is deleted.
coupon, coupon_set
coupon_codes_added
Triggered when coupon codes are added in coupon set.
coupon, coupon_set
coupon_codes_deleted
Triggered when coupon codes are deleted in coupon set.
coupon, coupon_set
coupon_codes_updated
Triggered when coupon codes are updated in coupon set.
coupon, coupon_set
customer_created
Triggered when a customer is created.
customer
customer_changed
Triggered when customer details are changed, and the payment method role of a customer is updated.
customer
customer_deleted
Triggered when a customer is deleted.
customer, subscriptions(optional)
customer_moved_out
Triggered when a customer is copied to another site.
customer
customer_moved_in
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
subscription_created
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)
subscription_started
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)
subscription_activated
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)
subscription_changed
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)
mrr_updated
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)
subscription_cancelled
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)
subscription_reactivated
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)
subscription_renewed
Triggered when the subscription is renewed from the current term.
subscription, customer, invoice(optional), unbilled_charges(optional)
subscription_items_renewed
Triggered when one or more subscription items are renewed.
subscription, customer, invoice(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)
subscription_deleted
Triggered when a subscription is deleted.
subscription, customer, advance_invoice_schedule(optional)
subscription_paused
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)
subscription_resumed
Triggered when the subscription is resumed.
subscription, customer, invoice(optional), unbilled_charges(optional)
subscription_moved_in
Triggered when the subscription is moving in from one customer to another asynchronously.
subscription
subscription_moved_out
Triggered when the subscription is moving out from one customer to another asynchronously.
subscription
subscription_movement_failed
Triggered when the subscription movement fails during moving in or out of a subscription from one customer to another asynchronously.
subscription
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)
pending_invoice_created
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
pending_invoice_updated
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
invoice_generated
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
invoice_updated
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
invoice_deleted
Event triggered when an invoice is deleted.
invoice
credit_note_created
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
credit_note_updated
Triggered when a credit note is updated.
credit_note
credit_note_deleted
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)
add_usages_reminder
Triggered on one day before term end of every month.
subscription, customer, advance_invoice_schedule(optional)
transaction_created
Triggered when a transaction is recorded.
transaction
transaction_updated
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
transaction_deleted
Triggered when a transaction is deleted.
transaction
payment_succeeded
Triggered when the payment is successfully collected.
transaction, customer, subscription(optional), invoice(optional)
payment_failed
Triggered when the payment collection fails.
transaction, invoice, customer, subscription(optional)
payment_refunded
Triggered when a payment refund is made.
transaction, invoice, credit_note(optional), customer, subscription(optional)
payment_initiated
Triggered when a payment is initiated via direct debit.
transaction, invoice, customer, subscription(optional)
refund_initiated
Triggered when a refund is initiated via direct debit.
transaction, invoice, credit_note(optional), customer, subscription(optional)
authorization_succeeded
Triggered when a authorization transaction is created.
transaction
authorization_voided
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
card_added
Deprecated
Triggered when a card is added for a customer.
customer
card_updated
Deprecated
Triggered when the card is updated for a customer.
customer
card_expiry_reminder
Deprecated
Triggered when the customer's credit card is expiring soon. Triggered 30 days before the expiry date.
customer
card_expired
Deprecated
Triggered when the card for a customer has expired.
customer
card_deleted
Deprecated
Triggered when a card is deleted for a customer.
customer
payment_source_added
Triggered when a payment source is added.
customer, payment_source
payment_source_updated
Triggered when the payment source is updated.
customer, payment_source
payment_source_deleted
Triggered when a payment source is deleted.
customer, payment_source
payment_source_expiring
Triggered when the customer's payment source is expiring soon. Triggered 30 days before the expiry date.
customer, payment_source
payment_source_expired
Triggered when the payment source for a customer has expired.
customer, payment_source
payment_source_locally_deleted
Triggered when a payment source is deleted at Chargebee.
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
token_created
Triggered when a nonce is created.
token
token_consumed
Triggered when a nonce is consumed.
token
token_expired
Triggered when a nonce is expired.
token
unbilled_charges_created
Triggered when unbilled charges are created
unbilled_charges
unbilled_charges_voided
Triggered when unbilled charges are voided
unbilled_charges
unbilled_charges_deleted
Triggered when unbilled charges are deleted
unbilled_charges
unbilled_charges_invoiced
Triggered when unbilled charges are invoiced
unbilled_charges, invoice
order_created
Triggered when an order is generated.
order
order_updated
Triggered when an order is updated.
order
order_cancelled
Triggered when an order is cancelled.
order
order_delivered
Triggered when an order is delivered.
order
order_returned
Triggered when an order is returned.
order
order_ready_to_process
Triggered when an order reaches it's order date.
order
order_ready_to_ship
Triggered when an order reaches it's shipping date.
order
order_deleted
Triggered when an order is deleted.
order
order_resent
Triggered when an order is resent.
order
quote_created
Event triggered when a new quote is generated.
quote
quote_updated
Triggered when a quote is updated.
quote
quote_deleted
Event triggered when a new quote is deleted.
quote
tax_withheld_recorded
Triggered when a tax withheld is recorded for an invoice.
tax_withheld, invoice, credit_note
tax_withheld_deleted
Triggered when a tax withheld is deleted.
tax_withheld, invoice, credit_note
tax_withheld_refunded
Triggered when a tax withheld is refunded.
tax_withheld, invoice, credit_note
gift_scheduled
Triggered when a new gift is created.
gift
gift_unclaimed
Triggered when a new gift is unclaimed and is ready to be claimed.
gift
gift_claimed
Triggered when a gift is claimed.
gift
gift_expired
Triggered when a gift expires.
gift
gift_cancelled
Triggered when gift is cancelled.
gift
gift_updated
Triggered when a gift is updated.
gift
hierarchy_created
Triggered when a hierarchy is created.
customer
hierarchy_deleted
Triggered when a hierarchy is deleted.
customer
payment_intent_created
Triggered when a payment intent is created.
payment_intent
payment_intent_updated
Triggered when a payment intent is updated.
payment_intent
contract_term_created
Triggered when contract term is created.
contract_term
contract_term_renewed
Triggered when a contract term is renewed.
contract_term
contract_term_terminated
Triggered when contract term is terminated.
contract_term
contract_term_completed
Triggered when contract term is completed.
contract_term
contract_term_cancelled
Triggered when contract term is cancelled.
contract_term
item_family_created
Triggered when an item family is created.
item_family
item_family_updated
Triggered when an item family is updated.
item_family
item_family_deleted
Triggered when an item family is deleted.
item_family
item_created
Triggered when an item is created.
item
item_updated
Triggered when an item is updated.
item
item_deleted
Triggered when an item is deleted.
item
item_price_created
Triggered when an item price is created.
item_price
item_price_updated
Triggered when an item price is updated.
item_price
item_price_deleted
Triggered when an item price is deleted.
item_price
attached_item_created
Triggered when an attached item is created.
attached_item
attached_item_updated
Triggered when an attached item is updated.
attached_item
attached_item_deleted
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
feature_created
Triggered when a `feature` is created.
feature, impacted_item(optional), impacted_subscription(optional)
feature_updated
Triggered when a `feature` is updated. Note: This event is not triggered when only the `status` of the feature has changed.
feature
feature_deleted
Triggered when a `feature` is deleted.
feature, impacted_item(optional), impacted_subscription(optional)
feature_activated
Triggered when a `feature` status transitions to `active` for the first time.
feature, impacted_item(optional), impacted_subscription(optional)
feature_reactivated
Triggered when a `feature` status transitions to `active` for the second time or more.
feature
feature_archived
Triggered when a `feature` status transitions to `archived`.
feature
item_entitlements_updated
One or more `entitlement`s were added or updated for an `item`.
feature, impacted_item (optional), impacted_subscription (optional)
item_price_entitlements_updated
One or more `entitlement`s were added or updated for an `item_price`.
feature, impacted_item_price (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)
item_price_entitlements_removed
One or more `item_price_entitlement`s were removed for an `item_price` or a `feature`.
feature, impacted_item_price(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
subscription_entitlements_updated
Triggered on subscription change, alongside the subscription_changed event whenever there are updates to a subscription's entitlements resulting from modifications to its recurring and non recurring items. 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_updated_detail
business_entity_created
Triggered when a business entity is created
business_entity
business_entity_updated
Triggered when a business entity is changed
business_entity
business_entity_deleted
Triggered when a business entity is deleted
business_entity
purchase_created
Triggered when a purchase resource is created successfully
purchase
voucher_created
Triggered when a Payment voucher is created.
payment_voucher
voucher_expired
Triggered when a Payment voucher is Expired.
payment_voucher
voucher_create_failed
Triggered when the Payment voucher Creation fails.
payment_voucher
price_variant_created
Triggered when a price variant resource is created successfully
price_variant
price_variant_updated
Triggered when a price variant resource is updated successfully
price_variant
price_variant_deleted
Triggered when a price variant resource is deleted successfully
price_variant
installment_config_created
Triggered when an installment_config is created.
installment_config
installment_config_deleted
Triggered when an installment_config is deleted.
installment_config
invoice_installments_created
Triggered when installment resources are created for an invoice.
installment
invoice_installment_updated
Triggered when an installment status changes.
installment
subscription_ramp_created
Triggered when a ramp is created.
ramp
subscription_ramp_deleted
Triggered when a ramp is deleted.
ramp
subscription_ramp_applied
Triggered when a ramp is executed successfully.
ramp
subscription_ramp_updated
Triggered when a ramp is updated.
ramp
subscription_ramp_drafted
Triggered when a ramp is moved to draft status.
ramp
customer_entitlements_updated
Triggered when a `customer_entitlement` is updated.
customer_entitlement
omnichannel_subscription_created
Triggered when an omnichannel subscription is created.
omnichannel_subscription, omnichannel_transaction, customer
omnichannel_subscription_imported
Triggered when an omnichannel subscription is imported.
omnichannel_subscription, omnichannel_transaction, customer
omnichannel_subscription_item_renewed
Triggered when an omnichannel subscription item is renewed.
omnichannel_subscription_item, omnichannel_subscription, omnichannel_transaction, customer
omnichannel_subscription_item_expired
Triggered when an omnichannel subscription item is expired.
omnichannel_subscription_item, omnichannel_subscription, customer
omnichannel_subscription_item_cancelled
Triggered when an omnichannel subscription item is cancelled.
omnichannel_subscription_item, omnichannel_subscription, customer
omnichannel_subscription_item_cancellation_scheduled
Triggered when an omnichannel subscription item is scheduled for cancellation.
omnichannel_subscription_item, omnichannel_subscription, customer
omnichannel_subscription_item_scheduled_cancellation_removed
Triggered when an omnichannel subscription item scheduled cancellation is removed.
omnichannel_subscription_item, omnichannel_subscription, customer
omnichannel_subscription_item_resubscribed
Triggered when an omnichannel subscription item is resubscribed.
omnichannel_subscription_item, omnichannel_subscription, omnichannel_transaction, customer
omnichannel_subscription_item_upgraded
Triggered when an omnichannel subscription item is upgraded.
omnichannel_subscription_item, omnichannel_subscription, omnichannel_transaction, customer
omnichannel_subscription_item_downgraded
Triggered when an omnichannel subscription item is downgraded.
omnichannel_subscription_item, omnichannel_subscription, omnichannel_transaction, customer
omnichannel_subscription_item_grace_period_started
Triggered when an omnichannel subscription item has entered a grace period.
omnichannel_subscription_item, omnichannel_subscription, customer
omnichannel_subscription_item_grace_period_expired
Triggered when an omnichannel subscription item's grace period has expired.
omnichannel_subscription_item, omnichannel_subscription, customer
omnichannel_subscription_item_dunning_started
Triggered when an omnichannel subscription item has entered a dunning period.
omnichannel_subscription_item, omnichannel_subscription, customer
omnichannel_subscription_item_dunning_expired
Triggered when an omnichannel subscription item's dunning period has expired.
omnichannel_subscription_item, omnichannel_subscription, customer
record_purchase_failed
Triggered when the record a purchase API fails to create an omnichannel subscription. recorded_purchases, customer
omnichannel_subscription_item_change_scheduled
Triggered when an omnichannel subscription item change is scheduled.
omnichannel_subscription_item, omnichannel_subscription_item_scheduled_change, customer
omnichannel_subscription_item_scheduled_change_removed
Triggered when an omnichannel subscription item scheduled change is removed.
omnichannel_subscription_item, omnichannel_subscription_item_scheduled_change, customer
omnichannel_subscription_item_reactivated
Triggered when an omnichannel subscription item's refund is reversed.
omnichannel_subscription_item, omnichannel_subscription, customer
omnichannel_subscription_item_paused
Triggered when an omnichannel subscription item is paused.
omnichannel_subscription_item, omnichannel_subscription, customer
id id
string, max chars=40
Uniquely identifies a event
occurred_at occurred_at
timestamp(UTC) in seconds
Timestamp indicating when this event had occurred.
source source
enumerated string, default=none
Source of the event
Possible values are
admin_consoleOperation made through the Chargebee admin UIapiOperation made through the APIscheduled_jobOperation made through the Scheduled Jobshosted_pageOperation made through the Hosted PagesportalOperation made through Self-Serve PortalsystemOperation that are triggered by ChargeBee SystemnoneIf no source can be identified for an operationjs_apiOperation made through the JS APImigrationDeprecatedbulk_operationOperation that are triggerd through bulk operation.external_serviceOperation that are triggered via webhook
admin_consoleOperation made through the Chargebee admin UIapiOperation made through the APIscheduled_jobOperation made through the Scheduled Jobshosted_pageOperation made through the Hosted Pages
portalOperation made through Self-Serve PortalsystemOperation that are triggered by ChargeBee SystemnoneIf no source can be identified for an operationjs_apiOperation made through the JS APImigrationDeprecatedbulk_operationOperation that are triggerd through bulk operation.external_serviceOperation that are triggered via webhook
Show all values[+]
user user
optional, string, max chars=150
The “user” that triggered the event. The value depends on the source attribute:
  • When source is admin_console: the email address of the user that triggered the event.
  • When source is api, js_api or bulk_operation: the name of the API key that was used to trigger the event.
  • When the source is external_service: the name of the service that called our webhook. Eg. ADYEN, STRIPE, AMAZON_PAYMENTS etc.
  • When the source is hosted_page or portal: the user attribute is not passed.

event_type event_type
optional, enumerated string
The types of event provided by chargebee. Refer event types for all the event types provided by us currently.
Possible values are
coupon_createdSent when a coupon is created.coupon_updatedSent when a coupon is changed.coupon_deletedSent when a coupon is deleted.coupon_set_createdSent when a coupon set is createdcoupon_set_updatedSent when a coupon set is changedcoupon_set_deletedSent when a coupon set is deletedcoupon_codes_addedSent when coupon codes are added in coupon setcoupon_codes_deletedSent when coupon codes are deleted in coupon setcoupon_codes_updatedSent when coupon codes are updatedcustomer_createdSent when a customer is created. This event happens when only a new customer is created or when a customer is automatically created during new subscription creation.customer_changedSent when a customer is changedcustomer_deletedSent when a customer is deletedcustomer_moved_outSent when a customer is copied to another sitecustomer_moved_inSent when a customer is copied from another sitepromotional_credits_addedSent when a customer prmotion credits addedpromotional_credits_deductedSent when a customer prmotion credits deductedsubscription_createdSent when a new subscription is created.subscription_created_with_backdatingSent when a new subscription is created with backdating.subscription_startedSent when a 'future' subscription gets started at the scheduled date.subscription_trial_end_reminderSent when the customer's trial period is about to end.subscription_activatedSent after the subscription has been moved from trial to active statesubscription_activated_with_backdatingSent after the subscription changes to `active` from another `status`, while the change is backdated.subscription_changedSent after the subscription's recurring items have been changedsubscription_trial_extendedTrial Extensionmrr_updatedSent when either of MRR or CMRR of a subscription changessubscription_changed_with_backdatingSent after the subscription's recurring items have been changed with backdated datesubscription_cancellation_scheduledSent when subscription is scheduled to cancel at end of current termsubscription_cancellation_reminderSent when the customer's subscription is nearing it's scheduled cancellation date.subscription_cancelledSent when the subscription gets cancelled. If cancelled due to non payment or card not present, the subscription will have the possible reason as 'cancel_reason'.subscription_canceled_with_backdatingSent when the subscription gets cancelled. If cancelled due to non payment or card not present, the subscription will have the possible reason as 'cancel_reason'.subscription_reactivatedSent when the subscription is moved from cancelled state to active or in_trial statesubscription_reactivated_with_backdatingSent when the subscription is moved from cancelled state to active or in_trial state with past datesubscription_renewedSent when the subscription is renewed from the current term.subscription_items_renewedSent when one or more Subscription Items are renewedsubscription_scheduled_cancellation_removedSent when scheduled cancellation is removed for the subscription.subscription_changes_scheduledSent when subscription changes are scheduled for later. Changes will be applied at the end of current term.subscription_scheduled_changes_removedSent when scheduled change for the subscription is removed.subscription_shipping_address_updatedTriggered when shipping address is added or updated for a subscription.subscription_deletedSent when a subscription has been deletedsubscription_pausedSent when the subscription is paused.subscription_pause_scheduledSent when the subscription is scheduled to pause.subscription_scheduled_pause_removedTriggered when scheduled pause is removed for the subscription.subscription_resumedSent when the subscription is moved from paused state to active statesubscription_resumption_scheduledTriggered when the subscription resumption is scheduled.subscription_scheduled_resumption_removedTriggered when scheduled resumption is removed for the subscription.subscription_advance_invoice_schedule_addedTriggered when advance invoice is scheduled for a subscription.subscription_advance_invoice_schedule_updatedTriggered when scheduled advance invoice is updated for a subscription.subscription_advance_invoice_schedule_removedTriggered when scheduled advance invoice is removed for a subscription.pending_invoice_createdEvent 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.pending_invoice_updatedEvent triggered when the option "Notify and wait to close invoices" is enabled, and the 'Pending' invoice is updated.invoice_generatedEvent triggered when a new invoice is generated. In case of metered billing, this event is triggered when a "Pending" invoice is closed.invoice_generated_with_backdatingEvent triggered when a new invoice is generated with past date as invoice date.invoice_updatedTriggered when the invoice’s shipping/billing address is updated, if the invoice is voided, or when the amount due is modified due to payments applied/removed.invoice_deletedEvent triggered when an invoice is deleted.credit_note_createdSent when a credit note is createdcredit_note_created_with_backdatingSent when a credit note is created with past date as credit note datecredit_note_updatedSent when a credit note is updatedcredit_note_deletedSent when a credit note is deletedpayment_schedules_createdEvent triggered when new payment schedules are created for an invoicepayment_schedules_updatedEvent triggered when payment schedules are updated for an invoicepayment_schedule_scheme_createdEvent triggered when a new payment schedule scheme is createdpayment_schedule_scheme_deletedEvent triggered when a payment schedule scheme is deletedsubscription_renewal_reminderSent before each subscription's renewal based on plan's periodadd_usages_reminderSent every month day before renewal date of plan's periodtransaction_createdTriggered when a transaction is recordedtransaction_updatedTriggered 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_deletedTriggered when a transaction is deleted.payment_succeededSent when the payment is successfully collectedpayment_failedSent when attempt to charge customer's credit card failspayment_refundedSent when a payment refund is madepayment_initiatedSent when a payment is initiated via direct debitrefund_initiatedSent when a refund is initiated via direct debitauthorization_succeededTriggered when a authorization transaction is created.authorization_voidedTriggered 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.card_addedSent when a card is added for a customer.card_updatedSent when the card is updated for a customer.card_expiry_reminderSent when the customer's credit card is expiring soon. Sent 30 days before the expiry date.card_expiredSent when a card for a customer is expiredcard_deletedSent when a card is deleted for a customerpayment_source_addedSent when a payment source is added for a customer.payment_source_updatedSent when the payment source is updated for a customer or when role is assigned to the payment source.payment_source_deletedSent when a payment source is deleted for a customerpayment_source_expiringSent when the customer's payment source is expiring soon. Sent 30 days before the expiry date.payment_source_expiredSent when a payment source for a customer is expiredpayment_source_locally_deletedSent when a payment source for a customer removed from Chargebeevirtual_bank_account_addedSent when a virtual bank account is added for a customer.virtual_bank_account_updatedSent when the virtual bank account is updated for a customer.virtual_bank_account_deletedSent when a virtual bank account is deleted for a customer.token_createdSent when a Token is createdtoken_consumedSent when a Token is consumedtoken_expiredSent when a Token is expiredunbilled_charges_createdTriggered when unbilled charges are createdunbilled_charges_voidedTriggered when unbilled charges are voidedunbilled_charges_deletedTriggered when unbilled charges are deletedunbilled_charges_invoicedTriggered when unbilled charges are invoicedorder_createdTriggered when order is createdorder_updatedTriggered when order is updatedorder_cancelledTriggered when order is cancelledorder_deliveredTriggered when order is marked as deliveredorder_returnedTriggered when order is marked as returnedorder_ready_to_processTriggered when order reaches it's order dateorder_ready_to_shipTriggered when order reaches it's shipping dateorder_deletedTriggered when order is deletedorder_resentTriggered when order is resentquote_createdTriggered when quote is createdquote_updatedTriggered when quote is updatedquote_deletedTriggered when quote is deletedtax_withheld_recordedTriggered when a tax withheld is recorded for an invoicetax_withheld_deletedTriggered when a tax withheld is deletedtax_withheld_refundedSent when a tax withheld refund is madegift_scheduledTriggered when a new gift is createdgift_unclaimedTriggered when a new gift is unclaimed and is ready to be claimedgift_claimedTriggered when a gift is claimedgift_expiredTriggered when a gift expiresgift_cancelledTriggered when a gift is cancelled.gift_updatedTriggered when a gift is updatedhierarchy_createdTriggered when a hierarchy is createdhierarchy_deletedTriggered when a hierarchy is deletedpayment_intent_createdSent when a Payment intent is createdpayment_intent_updatedSent when a Payment intent is updatedcontract_term_createdTriggered when new contract term is createdcontract_term_renewedTriggered when new contract term is renewedcontract_term_terminatedTriggered when contract term is terminatedcontract_term_completedTriggered when contract term is completedcontract_term_cancelledTriggered when contract term is cancelleditem_family_createdTriggered when an item family is createditem_family_updatedTriggered when an item family is updateditem_family_deletedTriggered when an item family is deleteditem_createdTriggered when an item is createditem_updatedTriggered when an item is updateditem_deletedTriggered when an item is deleteditem_price_createdTriggered when an item price is createditem_price_updatedTriggered when an item price is updateditem_price_deletedTriggered when an item price is deletedattached_item_createdTriggered when an Attached item is createdattached_item_updatedTriggered when an Attached item is updatedattached_item_deletedTriggered when an Attached item is deleteddifferential_price_createdTriggered when a differential price is createddifferential_price_updatedTriggered when a differential price is updateddifferential_price_deletedTriggered when a differential price is deletedfeature_createdTriggered when a feature is created.feature_updatedTriggered when an feature is updatedfeature_deletedTriggered when a feature is deletedfeature_activatedTriggered when a feature `status` transitions to `active` for the first time.feature_reactivatedTriggered when a feature `status` transitions to `active` for the second time or more.feature_archivedTriggered when an feature is archiveditem_entitlements_updatedTriggered when item entitlements are updated to a featureentitlement_overrides_updatedTriggered when an override entitlement is updatedentitlement_overrides_removedTriggered when an override entitlement is removeditem_entitlements_removedTriggered when item entitlements are removed for a featureentitlement_overrides_auto_removedTriggered when Subscription entitlements overrides for a feature are auto removed after expirysubscription_entitlements_createdTriggered when subscription entitlements are created for a new subscriptionsubscription_entitlements_updatedTriggered when subscription entitlements are updated for a subscription change.business_entity_createdSent when a business entity is created.business_entity_updatedSent when a business entity is updated.business_entity_deletedSent when a business entity is deleted.customer_business_entity_changedSent when a customer's business entity is changed.subscription_business_entity_changedSent when a subscription's business entity is changed.purchase_createdTriggered when purchase action completed successfullyvoucher_createdTriggered when a payment voucher is createdvoucher_expiredTriggered when a payment voucher is expiredvoucher_create_failedTriggered when a payment voucher creation is faileditem_price_entitlements_updatedTriggered when item Price entitlements are updated to a featureitem_price_entitlements_removedTriggered when item price entitlements are removed for a featuresubscription_ramp_createdTriggered when a subscription ramp is created.subscription_ramp_deletedTriggered when a subscription ramp is deleted.subscription_ramp_appliedTriggered when a subscription ramp is applied.subscription_ramp_draftedTriggered when a subscription ramp is moved to draft status.subscription_ramp_updatedTriggered when a subscription ramp is updated.price_variant_createdTriggered when a price variant is created.price_variant_updatedTriggered when a price variant is updated.price_variant_deletedTriggered when a price variant is deleted.customer_entitlements_updatedTriggered when entitlements for the list of customers got updated.subscription_moved_inTriggered when a subscription moved from other customersubscription_moved_outTriggered when a subscription moved to other customersubscription_movement_failedTriggered when a subscription movement failedomnichannel_subscription_createdTriggered when an omnichannel subscription is createdomnichannel_subscription_item_renewedTriggered when an omnichannel subscription item is renewedomnichannel_subscription_item_downgradedTriggered when an omnichannel subscription item is downgradedomnichannel_subscription_item_expiredTriggered when an omnichannel subscription item is expiredomnichannel_subscription_item_cancellation_scheduledTriggered when an omnichannel subscription item is scheduled for cancellationomnichannel_subscription_item_scheduled_cancellation_removedTriggered when an omnichannel subscription item scheduled cancellation is removedomnichannel_subscription_item_resubscribedTriggered when an omnichannel subscription item is resubscribedomnichannel_subscription_item_upgradedTriggered when an omnichannel subscription item is upgradedomnichannel_subscription_item_cancelledTriggered when an omnichannel subscription item is cancelledomnichannel_subscription_importedTriggered when an omnichannel subscription item is importedomnichannel_subscription_item_grace_period_startedTriggered when an omnichannel subscription item's grace period has startedomnichannel_subscription_item_grace_period_expiredTriggered when an omnichannel subscription item's grace period has expiredomnichannel_subscription_item_dunning_startedTriggered when an omnichannel subscription item's dunning has startedomnichannel_subscription_item_dunning_expiredTriggered when an omnichannel subscription item's dunning has expiredrule_createdTriggered when a rule is createdrule_updatedTriggered when a rule is updatedrule_deletedTriggered when a rule is deletedrecord_purchase_failedTriggered when an omnichannel record purchase is failedomnichannel_subscription_item_change_scheduledTriggered when an omnichannel subscription item change is scheduledomnichannel_subscription_item_scheduled_change_removedTriggered when an omnichannel subscription item scheduled change is removedomnichannel_subscription_item_reactivatedTriggered when an omnichannel subscription item's refund is reversedsales_order_createdTriggered when sales order is createdsales_order_updatedTriggered when sales order is updatedomnichannel_subscription_item_changedTriggered when an omnichannel subscription item is changedomnichannel_subscription_item_pausedTriggered when an omnichannel subscription item is pausedomnichannel_subscription_item_resumedTriggered when an omnichannel subscription item is resumed
coupon_createdSent when a coupon is created.coupon_updatedSent when a coupon is changed.coupon_deletedSent when a coupon is deleted.coupon_set_createdSent when a coupon set is created
coupon_set_updatedSent when a coupon set is changedcoupon_set_deletedSent when a coupon set is deletedcoupon_codes_addedSent when coupon codes are added in coupon setcoupon_codes_deletedSent when coupon codes are deleted in coupon setcoupon_codes_updatedSent when coupon codes are updatedcustomer_createdSent when a customer is created. This event happens when only a new customer is created or when a customer is automatically created during new subscription creation.customer_changedSent when a customer is changedcustomer_deletedSent when a customer is deletedcustomer_moved_outSent when a customer is copied to another sitecustomer_moved_inSent when a customer is copied from another sitepromotional_credits_addedSent when a customer prmotion credits addedpromotional_credits_deductedSent when a customer prmotion credits deductedsubscription_createdSent when a new subscription is created.subscription_created_with_backdatingSent when a new subscription is created with backdating.subscription_startedSent when a 'future' subscription gets started at the scheduled date.subscription_trial_end_reminderSent when the customer's trial period is about to end.subscription_activatedSent after the subscription has been moved from trial to active statesubscription_activated_with_backdatingSent after the subscription changes to `active` from another `status`, while the change is backdated.subscription_changedSent after the subscription's recurring items have been changedsubscription_trial_extendedTrial Extensionmrr_updatedSent when either of MRR or CMRR of a subscription changessubscription_changed_with_backdatingSent after the subscription's recurring items have been changed with backdated datesubscription_cancellation_scheduledSent when subscription is scheduled to cancel at end of current termsubscription_cancellation_reminderSent when the customer's subscription is nearing it's scheduled cancellation date.subscription_cancelledSent when the subscription gets cancelled. If cancelled due to non payment or card not present, the subscription will have the possible reason as 'cancel_reason'.subscription_canceled_with_backdatingSent when the subscription gets cancelled. If cancelled due to non payment or card not present, the subscription will have the possible reason as 'cancel_reason'.subscription_reactivatedSent when the subscription is moved from cancelled state to active or in_trial statesubscription_reactivated_with_backdatingSent when the subscription is moved from cancelled state to active or in_trial state with past datesubscription_renewedSent when the subscription is renewed from the current term.subscription_items_renewedSent when one or more Subscription Items are renewedsubscription_scheduled_cancellation_removedSent when scheduled cancellation is removed for the subscription.subscription_changes_scheduledSent when subscription changes are scheduled for later. Changes will be applied at the end of current term.subscription_scheduled_changes_removedSent when scheduled change for the subscription is removed.subscription_shipping_address_updatedTriggered when shipping address is added or updated for a subscription.subscription_deletedSent when a subscription has been deletedsubscription_pausedSent when the subscription is paused.subscription_pause_scheduledSent when the subscription is scheduled to pause.subscription_scheduled_pause_removedTriggered when scheduled pause is removed for the subscription.subscription_resumedSent when the subscription is moved from paused state to active statesubscription_resumption_scheduledTriggered when the subscription resumption is scheduled.subscription_scheduled_resumption_removedTriggered when scheduled resumption is removed for the subscription.subscription_advance_invoice_schedule_addedTriggered when advance invoice is scheduled for a subscription.subscription_advance_invoice_schedule_updatedTriggered when scheduled advance invoice is updated for a subscription.subscription_advance_invoice_schedule_removedTriggered when scheduled advance invoice is removed for a subscription.pending_invoice_createdEvent 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.pending_invoice_updatedEvent triggered when the option "Notify and wait to close invoices" is enabled, and the 'Pending' invoice is updated.invoice_generatedEvent triggered when a new invoice is generated. In case of metered billing, this event is triggered when a "Pending" invoice is closed.invoice_generated_with_backdatingEvent triggered when a new invoice is generated with past date as invoice date.invoice_updatedTriggered when the invoice’s shipping/billing address is updated, if the invoice is voided, or when the amount due is modified due to payments applied/removed.invoice_deletedEvent triggered when an invoice is deleted.credit_note_createdSent when a credit note is createdcredit_note_created_with_backdatingSent when a credit note is created with past date as credit note datecredit_note_updatedSent when a credit note is updatedcredit_note_deletedSent when a credit note is deletedpayment_schedules_createdEvent triggered when new payment schedules are created for an invoicepayment_schedules_updatedEvent triggered when payment schedules are updated for an invoicepayment_schedule_scheme_createdEvent triggered when a new payment schedule scheme is createdpayment_schedule_scheme_deletedEvent triggered when a payment schedule scheme is deletedsubscription_renewal_reminderSent before each subscription's renewal based on plan's periodadd_usages_reminderSent every month day before renewal date of plan's periodtransaction_createdTriggered when a transaction is recordedtransaction_updatedTriggered 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_deletedTriggered when a transaction is deleted.payment_succeededSent when the payment is successfully collectedpayment_failedSent when attempt to charge customer's credit card failspayment_refundedSent when a payment refund is madepayment_initiatedSent when a payment is initiated via direct debitrefund_initiatedSent when a refund is initiated via direct debitauthorization_succeededTriggered when a authorization transaction is created.authorization_voidedTriggered 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.card_addedSent when a card is added for a customer.card_updatedSent when the card is updated for a customer.card_expiry_reminderSent when the customer's credit card is expiring soon. Sent 30 days before the expiry date.card_expiredSent when a card for a customer is expiredcard_deletedSent when a card is deleted for a customerpayment_source_addedSent when a payment source is added for a customer.payment_source_updatedSent when the payment source is updated for a customer or when role is assigned to the payment source.payment_source_deletedSent when a payment source is deleted for a customerpayment_source_expiringSent when the customer's payment source is expiring soon. Sent 30 days before the expiry date.payment_source_expiredSent when a payment source for a customer is expiredpayment_source_locally_deletedSent when a payment source for a customer removed from Chargebeevirtual_bank_account_addedSent when a virtual bank account is added for a customer.virtual_bank_account_updatedSent when the virtual bank account is updated for a customer.virtual_bank_account_deletedSent when a virtual bank account is deleted for a customer.token_createdSent when a Token is createdtoken_consumedSent when a Token is consumedtoken_expiredSent when a Token is expiredunbilled_charges_createdTriggered when unbilled charges are createdunbilled_charges_voidedTriggered when unbilled charges are voidedunbilled_charges_deletedTriggered when unbilled charges are deletedunbilled_charges_invoicedTriggered when unbilled charges are invoicedorder_createdTriggered when order is createdorder_updatedTriggered when order is updatedorder_cancelledTriggered when order is cancelledorder_deliveredTriggered when order is marked as deliveredorder_returnedTriggered when order is marked as returnedorder_ready_to_processTriggered when order reaches it's order dateorder_ready_to_shipTriggered when order reaches it's shipping dateorder_deletedTriggered when order is deletedorder_resentTriggered when order is resentquote_createdTriggered when quote is createdquote_updatedTriggered when quote is updatedquote_deletedTriggered when quote is deletedtax_withheld_recordedTriggered when a tax withheld is recorded for an invoicetax_withheld_deletedTriggered when a tax withheld is deletedtax_withheld_refundedSent when a tax withheld refund is madegift_scheduledTriggered when a new gift is createdgift_unclaimedTriggered when a new gift is unclaimed and is ready to be claimedgift_claimedTriggered when a gift is claimedgift_expiredTriggered when a gift expiresgift_cancelledTriggered when a gift is cancelled.gift_updatedTriggered when a gift is updatedhierarchy_createdTriggered when a hierarchy is createdhierarchy_deletedTriggered when a hierarchy is deletedpayment_intent_createdSent when a Payment intent is createdpayment_intent_updatedSent when a Payment intent is updatedcontract_term_createdTriggered when new contract term is createdcontract_term_renewedTriggered when new contract term is renewedcontract_term_terminatedTriggered when contract term is terminatedcontract_term_completedTriggered when contract term is completedcontract_term_cancelledTriggered when contract term is cancelleditem_family_createdTriggered when an item family is createditem_family_updatedTriggered when an item family is updateditem_family_deletedTriggered when an item family is deleteditem_createdTriggered when an item is createditem_updatedTriggered when an item is updateditem_deletedTriggered when an item is deleteditem_price_createdTriggered when an item price is createditem_price_updatedTriggered when an item price is updateditem_price_deletedTriggered when an item price is deletedattached_item_createdTriggered when an Attached item is createdattached_item_updatedTriggered when an Attached item is updatedattached_item_deletedTriggered when an Attached item is deleteddifferential_price_createdTriggered when a differential price is createddifferential_price_updatedTriggered when a differential price is updateddifferential_price_deletedTriggered when a differential price is deletedfeature_createdTriggered when a feature is created.feature_updatedTriggered when an feature is updatedfeature_deletedTriggered when a feature is deletedfeature_activatedTriggered when a feature `status` transitions to `active` for the first time.feature_reactivatedTriggered when a feature `status` transitions to `active` for the second time or more.feature_archivedTriggered when an feature is archiveditem_entitlements_updatedTriggered when item entitlements are updated to a featureentitlement_overrides_updatedTriggered when an override entitlement is updatedentitlement_overrides_removedTriggered when an override entitlement is removeditem_entitlements_removedTriggered when item entitlements are removed for a featureentitlement_overrides_auto_removedTriggered when Subscription entitlements overrides for a feature are auto removed after expirysubscription_entitlements_createdTriggered when subscription entitlements are created for a new subscriptionsubscription_entitlements_updatedTriggered when subscription entitlements are updated for a subscription change.business_entity_createdSent when a business entity is created.business_entity_updatedSent when a business entity is updated.business_entity_deletedSent when a business entity is deleted.customer_business_entity_changedSent when a customer's business entity is changed.subscription_business_entity_changedSent when a subscription's business entity is changed.purchase_createdTriggered when purchase action completed successfullyvoucher_createdTriggered when a payment voucher is createdvoucher_expiredTriggered when a payment voucher is expiredvoucher_create_failedTriggered when a payment voucher creation is faileditem_price_entitlements_updatedTriggered when item Price entitlements are updated to a featureitem_price_entitlements_removedTriggered when item price entitlements are removed for a featuresubscription_ramp_createdTriggered when a subscription ramp is created.subscription_ramp_deletedTriggered when a subscription ramp is deleted.subscription_ramp_appliedTriggered when a subscription ramp is applied.subscription_ramp_draftedTriggered when a subscription ramp is moved to draft status.subscription_ramp_updatedTriggered when a subscription ramp is updated.price_variant_createdTriggered when a price variant is created.price_variant_updatedTriggered when a price variant is updated.price_variant_deletedTriggered when a price variant is deleted.customer_entitlements_updatedTriggered when entitlements for the list of customers got updated.subscription_moved_inTriggered when a subscription moved from other customersubscription_moved_outTriggered when a subscription moved to other customersubscription_movement_failedTriggered when a subscription movement failedomnichannel_subscription_createdTriggered when an omnichannel subscription is createdomnichannel_subscription_item_renewedTriggered when an omnichannel subscription item is renewedomnichannel_subscription_item_downgradedTriggered when an omnichannel subscription item is downgradedomnichannel_subscription_item_expiredTriggered when an omnichannel subscription item is expiredomnichannel_subscription_item_cancellation_scheduledTriggered when an omnichannel subscription item is scheduled for cancellationomnichannel_subscription_item_scheduled_cancellation_removedTriggered when an omnichannel subscription item scheduled cancellation is removedomnichannel_subscription_item_resubscribedTriggered when an omnichannel subscription item is resubscribedomnichannel_subscription_item_upgradedTriggered when an omnichannel subscription item is upgradedomnichannel_subscription_item_cancelledTriggered when an omnichannel subscription item is cancelledomnichannel_subscription_importedTriggered when an omnichannel subscription item is importedomnichannel_subscription_item_grace_period_startedTriggered when an omnichannel subscription item's grace period has startedomnichannel_subscription_item_grace_period_expiredTriggered when an omnichannel subscription item's grace period has expiredomnichannel_subscription_item_dunning_startedTriggered when an omnichannel subscription item's dunning has startedomnichannel_subscription_item_dunning_expiredTriggered when an omnichannel subscription item's dunning has expiredrule_createdTriggered when a rule is createdrule_updatedTriggered when a rule is updatedrule_deletedTriggered when a rule is deletedrecord_purchase_failedTriggered when an omnichannel record purchase is failedomnichannel_subscription_item_change_scheduledTriggered when an omnichannel subscription item change is scheduledomnichannel_subscription_item_scheduled_change_removedTriggered when an omnichannel subscription item scheduled change is removedomnichannel_subscription_item_reactivatedTriggered when an omnichannel subscription item's refund is reversedsales_order_createdTriggered when sales order is createdsales_order_updatedTriggered when sales order is updatedomnichannel_subscription_item_changedTriggered when an omnichannel subscription item is changedomnichannel_subscription_item_pausedTriggered when an omnichannel subscription item is pausedomnichannel_subscription_item_resumedTriggered when an omnichannel subscription item is resumed
Show all values[+]
api_version api_version
optional, enumerated string, default=v1
The Chargebee API Version used for rendering this event content. While processing webhooks, ensure this version is same as the API version used by your webhook server's client library.
Possible values are
v1Chargebee API version V1v2Chargebee API version V2
v1Chargebee API version V1v2Chargebee API version V2
Show all values[+]
content
jsonobject
The JSON data associated with this event. Has resources (subscription, invoice etc) based on the event type. These resources are structured based on the Chargebee API version indicated by the api_version attribute.
origin_user origin_user
optional, string

The email address of the user, if captured, in the API operation that triggered the event. This email address is captured through either the chargebee-request-origin-user or chargebee-request-origin-user-encoded custom HTTP request headers.

Note:

Applicable only when event_source is api.


webhooks
optional, list of webhook
Array of webhook call statuses: one for each of the webhooks configured for the site. This object is only available after the first webhook call for the event has completed or timed out. Also, creation/updation of the webhook object data is a queued operation and hence there can be an additional delay of up to 5 seconds.

Retrieves list of events.


Notes

Sample Codes
import Chargebee from "chargebee";
const chargebee = new Chargebee({
  site : "{site}",
  apiKey : "{site_api_key}",
});
try {
    const result = await chargebee.event.list({
      limit : 2,
      event_type : { in : ["subscription_created","customer_created"] }
    });
    result.list.forEach((entry) => {
      console.log(entry);
      const event = entry.event;
    });
} catch (err) {
  console.log(err);
}
copy
Click to Copy
import Chargebee from "chargebee";
const chargebee = new Chargebee({
  site : "{site}",
  apiKey : "{site_api_key}",
});
try {
    const result = await chargebee.event.list({
      limit : 2,
      event_type : { in : ["subscription_created","customer_created"] }
    });
    result.list.forEach((entry) => {
      console.log(entry);
      const event = entry.event;
    });
} catch (err) {
  console.log(err);
}

Sample Result [ JSON ]

Show more...
{
    "list": [
        {
            "event": {
                "id": "ev_16BPgETyVrQbiGhA",
                "occurred_at": 1702645601,
                "source": "admin_console",
                "user": "sarah@sarah.com",
                "object": "event",
                "api_version": "v2",
                "content": {
                    "subscription": {
                        "id": "16BPgETyVrQVHGh1",
                        "billing_period": 1,
                        "billing_period_unit": "month",
                        "customer_id": "sarah",
                        "status": "active",
                        "current_term_start": 1702578600,
                        "current_term_end": 1705256999,
                        "next_billing_at": 1705257000,
                        "created_at": 1702645601,
                        "started_at": 1702578600,
                        "activated_at": 1702578600,
                        "created_from_ip": "10.0.0.1",
                        "updated_at": 1702645601,
                        "has_scheduled_changes": false,
                        "channel": "web",
                        "resource_version": 1702645601793,
                        "deleted": false,
                        "object": "subscription",
                        "currency_code": "INR",
                        "subscription_items": [
                            {
                                "item_price_id": "cross-train-advanced-INR-1_MONTH",
                                "item_type": "plan",
                                "quantity": 1,
                                "quantity_in_decimal": "1.0000",
                                "unit_price": 11667,
                                "unit_price_in_decimal": "116.66667",
                                "amount": 11667,
                                "amount_in_decimal": "116.66667",
                                "free_quantity": 0,
                                "free_quantity_in_decimal": "0.0000",
                                "object": "subscription_item"
                            },
                            {..}
                        ],
                        "due_invoices_count": 0,
                        "mrr": 0,
                        "has_scheduled_advance_invoices": false,
                        "override_relationship": false,
                        "create_pending_invoices": false,
                        "auto_close_invoices": true,
                        "business_entity_id": "16CQtCTrgrYwi9n2E"
                    },
                    "customer": {
                        "id": "sarah",
                        "auto_collection": "on",
                        "net_term_days": 0,
                        "allow_direct_debit": false,
                        "created_at": 1700038561,
                        "created_from_ip": "10.0.0.2",
                        "taxability": "taxable",
                        "updated_at": 1702645580,
                        "pii_cleared": "active",
                        "channel": "web",
                        "resource_version": 1702645580741,
                        "deleted": false,
                        "object": "customer",
                        "card_status": "valid",
                        "promotional_credits": 0,
                        "refundable_credits": 0,
                        "excess_payments": 0,
                        "unbilled_charges": 0,
                        "preferred_currency_code": "INR",
                        "mrr": 0,
                        "primary_payment_source_id": "pm_169vujTyVrL5fFDl",
                        "payment_method": {
                            "object": "payment_method",
                            "type": "card",
                            "reference_id": "tok_169vujTyVrL5LFDk",
                            "gateway": "chargebee",
                            "gateway_account_id": "gw_1mk51R4QrLmQtYMht",
                            "status": "valid"
                        },
                        "business_entity_id": "16CQtCTrgrYwi9n2E",
                        "tax_providers_fields": [],
                        "auto_close_invoices": true
                    },
                    "card": {
                        "status": "valid",
                        "gateway": "chargebee",
                        "gateway_account_id": "gw_1mk51R4QrLmQtYMht",
                        "iin": "411111",
                        "last4": "1111",
                        "card_type": "visa",
                        "funding_type": "credit",
                        "expiry_month": 12,
                        "expiry_year": 2024,
                        "created_at": 1702645580,
                        "updated_at": 1702645580,
                        "ip_address": "10.0.0.1",
                        "resource_version": 1702645580740,
                        "object": "card",
                        "masked_number": "************1111",
                        "customer_id": "boom",
                        "payment_source_id": "pm_169vujTyVrL5fFDl"
                    },
                    "invoice": {
                        "id": "203",
                        "customer_id": "boom",
                        "subscription_id": "16BPgETyVrQVHGh1",
                        "recurring": true,
                        "status": "paid",
                        "price_type": "tax_exclusive",
                        "date": 1702578600,
                        "due_date": 1702578600,
                        "net_term_days": 0,
                        "exchange_rate": 83.283543,
                        "total": 11667,
                        "amount_paid": 11667,
                        "amount_adjusted": 0,
                        "write_off_amount": 0,
                        "credits_applied": 0,
                        "amount_due": 0,
                        "paid_at": 1702645601,
                        "updated_at": 1702645601,
                        "resource_version": 1702645601783,
                        "deleted": false,
                        "object": "invoice",
                        "first_invoice": true,
                        "amount_to_collect": 0,
                        "round_off_amount": 0,
                        "new_sales_amount": 11667,
                        "has_advance_charges": false,
                        "currency_code": "INR",
                        "base_currency_code": "USD",
                        "generated_at": 1702578600,
                        "is_gifted": false,
                        "term_finalized": true,
                        "channel": "web",
                        "tax": 0,
                        "line_items": [
                            {
                                "id": "li_16BPgETyVrQWBGh3",
                                "date_from": 1702578600,
                                "date_to": 1705256999,
                                "unit_amount": 11667,
                                "quantity": 1,
                                "amount": 11667,
                                "pricing_model": "per_unit",
                                "is_taxed": false,
                                "tax_amount": 0,
                                "unit_amount_in_decimal": "116.66667",
                                "quantity_in_decimal": "1.0000",
                                "amount_in_decimal": "116.66667",
                                "object": "line_item",
                                "subscription_id": "16BPgETyVrQVHGh1",
                                "customer_id": "boom",
                                "description": "cross-train-advanced-INR-1_MONTH",
                                "entity_type": "plan_item_price",
                                "entity_id": "cross-train-advanced-INR-1_MONTH",
                                "metered": false,
                                "tax_exempt_reason": "export",
                                "discount_amount": 0,
                                "item_level_discount_amount": 0
                            },
                            {..}
                        ],
                        "sub_total": 11667,
                        "linked_payments": [
                            {
                                "txn_id": "txn_16BPgETyVrQXVGh4",
                                "applied_amount": 11667,
                                "applied_at": 1702645601,
                                "txn_status": "success",
                                "txn_date": 1702645601,
                                "txn_amount": 11667
                            },
                            {..}
                        ],
                        "applied_credits": [],
                        "adjustment_credit_notes": [],
                        "issued_credit_notes": [],
                        "linked_orders": [],
                        "dunning_attempts": [],
                        "notes": [
                            {
                                "note": "You can pay card."
                            },
                            {..}
                        ],
                        "business_entity_id": "16CQtCTrgrYwi9n2E"
                    }
                },
                "event_type": "subscription_created",
                "webhook_status": "not_configured",
                "webhooks": [
                    {
                        "id": "whv2_Azz5aITsMVdKtVWV",
                        "webhook_status": "not_applicable",
                        "object": "webhook"
                    },
                    {..}
                ]
            }
        },
        {..}
    ]
}

URL Format GET

https://{site}.chargebee.com/api/v2/events

Method

<chargebee>.event.list({<param name> : <value>,<param name> : <value> ...})
limit[]
optional, integer, default=10, min=1, max=100
The number of resources to be returned.
offset[]
optional, string, max chars=1000
Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set offset to the value of next_offset obtained in the previous iteration of the API call.
sort_by[<sort-order>]
optional, string filter
Sorts based on the specified attribute.
Supported attributes : occurred_at
Supported sort-orders : asc, desc

Example "sort_by[asc]" : "occurred_at"
This will sort the result based on the 'occurred_at' attribute in ascending(earliest first) order.
Filter Params
For operator usages, see the Pagination and Filtering section.
id[<operator>]
optional, string filter
Uniquely identifies a event. Possible values are :
Supported operators : is, is_not, starts_with, in, not_in

Example "id[is] = "8ndk0hbKm"
is[<operator>]
optional, string, min chars=1 filter
Possible values are :
Supported operators :

Example
is_not[<operator>]
optional, string, min chars=1 filter
Possible values are :
Supported operators :

Example
starts_with[<operator>]
optional, string, min chars=1 filter
Possible values are :
Supported operators :

Example
in[<operator>]
optional, string filter
Possible values are :
Supported operators :

Example
not_in[<operator>]
optional, string filter
Possible values are :
Supported operators :

Example
webhook_status[<operator>]
optional, enumerated string filter
Returns the events (occurred in the past 6 days) which has this status in any of the events' webhooks.
Note : To retrieve events which have occurred before the 6 day period, use the occurred_at(start_time/end_time) attribute.
Possible values are : not_configured, scheduled, succeeded, re_scheduled, failed, skipped, not_applicable, disabled
Supported operators : is, is_not, in, not_in

Example "webhook_status[is] = "succeeded"
is[<operator>]
optional, enumerated string filter
Possible values are : not_configured, scheduled, succeeded, re_scheduled, failed, skipped, not_applicable, disabled
Supported operators :

Example
is_not[<operator>]
optional, enumerated string filter
Possible values are : not_configured, scheduled, succeeded, re_scheduled, failed, skipped, not_applicable, disabled
Supported operators :

Example
in[<operator>]
optional, string filter
Possible values are :
Supported operators :

Example
not_in[<operator>]
optional, string filter
Possible values are :
Supported operators :

Example
event_type[<operator>]
optional, enumerated string filter
Specify it if you need to fetch events of a particular type. Possible values are : coupon_created, coupon_updated, coupon_deleted, coupon_set_created, coupon_set_updated, coupon_set_deleted, coupon_codes_added, coupon_codes_deleted, coupon_codes_updated, customer_created, customer_changed, customer_deleted, customer_moved_out, customer_moved_in, promotional_credits_added, promotional_credits_deducted, subscription_created, subscription_created_with_backdating, subscription_started, subscription_trial_end_reminder, subscription_activated, subscription_activated_with_backdating, subscription_changed, subscription_trial_extended, mrr_updated, subscription_changed_with_backdating, subscription_cancellation_scheduled, subscription_cancellation_reminder, subscription_cancelled, subscription_canceled_with_backdating, subscription_reactivated, subscription_reactivated_with_backdating, subscription_renewed, subscription_items_renewed, subscription_scheduled_cancellation_removed, subscription_changes_scheduled, subscription_scheduled_changes_removed, subscription_shipping_address_updated, subscription_deleted, subscription_paused, subscription_pause_scheduled, subscription_scheduled_pause_removed, subscription_resumed, subscription_resumption_scheduled, subscription_scheduled_resumption_removed, subscription_advance_invoice_schedule_added, subscription_advance_invoice_schedule_updated, subscription_advance_invoice_schedule_removed, pending_invoice_created, pending_invoice_updated, invoice_generated, invoice_generated_with_backdating, invoice_updated, invoice_deleted, credit_note_created, credit_note_created_with_backdating, credit_note_updated, credit_note_deleted, payment_schedules_created, payment_schedules_updated, payment_schedule_scheme_created, payment_schedule_scheme_deleted, subscription_renewal_reminder, add_usages_reminder, transaction_created, transaction_updated, transaction_deleted, payment_succeeded, payment_failed, payment_refunded, payment_initiated, refund_initiated, authorization_succeeded, authorization_voided, card_added, card_updated, card_expiry_reminder, card_expired, card_deleted, payment_source_added, payment_source_updated, payment_source_deleted, payment_source_expiring, payment_source_expired, payment_source_locally_deleted, virtual_bank_account_added, virtual_bank_account_updated, virtual_bank_account_deleted, token_created, token_consumed, token_expired, unbilled_charges_created, unbilled_charges_voided, unbilled_charges_deleted, unbilled_charges_invoiced, order_created, order_updated, order_cancelled, order_delivered, order_returned, order_ready_to_process, order_ready_to_ship, order_deleted, order_resent, quote_created, quote_updated, quote_deleted, tax_withheld_recorded, tax_withheld_deleted, tax_withheld_refunded, gift_scheduled, gift_unclaimed, gift_claimed, gift_expired, gift_cancelled, gift_updated, hierarchy_created, hierarchy_deleted, payment_intent_created, payment_intent_updated, contract_term_created, contract_term_renewed, contract_term_terminated, contract_term_completed, contract_term_cancelled, item_family_created, item_family_updated, item_family_deleted, item_created, item_updated, item_deleted, item_price_created, item_price_updated, item_price_deleted, attached_item_created, attached_item_updated, attached_item_deleted, differential_price_created, differential_price_updated, differential_price_deleted, feature_created, feature_updated, feature_deleted, feature_activated, feature_reactivated, feature_archived, item_entitlements_updated, entitlement_overrides_updated, entitlement_overrides_removed, item_entitlements_removed, entitlement_overrides_auto_removed, subscription_entitlements_created, subscription_entitlements_updated, business_entity_created, business_entity_updated, business_entity_deleted, customer_business_entity_changed, subscription_business_entity_changed, purchase_created, voucher_created, voucher_expired, voucher_create_failed, item_price_entitlements_updated, item_price_entitlements_removed, subscription_ramp_created, subscription_ramp_deleted, subscription_ramp_applied, subscription_ramp_drafted, subscription_ramp_updated, price_variant_created, price_variant_updated, price_variant_deleted, customer_entitlements_updated, subscription_moved_in, subscription_moved_out, subscription_movement_failed, omnichannel_subscription_created, omnichannel_subscription_item_renewed, omnichannel_subscription_item_downgraded, omnichannel_subscription_item_expired, omnichannel_subscription_item_cancellation_scheduled, omnichannel_subscription_item_scheduled_cancellation_removed, omnichannel_subscription_item_resubscribed, omnichannel_subscription_item_upgraded, omnichannel_subscription_item_cancelled, omnichannel_subscription_imported, omnichannel_subscription_item_grace_period_started, omnichannel_subscription_item_grace_period_expired, omnichannel_subscription_item_dunning_started, omnichannel_subscription_item_dunning_expired, rule_created, rule_updated, rule_deleted, record_purchase_failed, omnichannel_subscription_item_change_scheduled, omnichannel_subscription_item_scheduled_change_removed, omnichannel_subscription_item_reactivated, sales_order_created, sales_order_updated, omnichannel_subscription_item_changed, omnichannel_subscription_item_paused, omnichannel_subscription_item_resumed
Supported operators : is, is_not, in, not_in

Example "event_type[is] = "customer_created"
is[<operator>]
optional, enumerated string filter
Possible values are : coupon_created, coupon_updated, coupon_deleted, coupon_set_created, coupon_set_updated, coupon_set_deleted, coupon_codes_added, coupon_codes_deleted, coupon_codes_updated, customer_created, customer_changed, customer_deleted, customer_moved_out, customer_moved_in, promotional_credits_added, promotional_credits_deducted, subscription_created, subscription_created_with_backdating, subscription_started, subscription_trial_end_reminder, subscription_activated, subscription_activated_with_backdating, subscription_changed, subscription_trial_extended, mrr_updated, subscription_changed_with_backdating, subscription_cancellation_scheduled, subscription_cancellation_reminder, subscription_cancelled, subscription_canceled_with_backdating, subscription_reactivated, subscription_reactivated_with_backdating, subscription_renewed, subscription_items_renewed, subscription_scheduled_cancellation_removed, subscription_changes_scheduled, subscription_scheduled_changes_removed, subscription_shipping_address_updated, subscription_deleted, subscription_paused, subscription_pause_scheduled, subscription_scheduled_pause_removed, subscription_resumed, subscription_resumption_scheduled, subscription_scheduled_resumption_removed, subscription_advance_invoice_schedule_added, subscription_advance_invoice_schedule_updated, subscription_advance_invoice_schedule_removed, pending_invoice_created, pending_invoice_updated, invoice_generated, invoice_generated_with_backdating, invoice_updated, invoice_deleted, credit_note_created, credit_note_created_with_backdating, credit_note_updated, credit_note_deleted, payment_schedules_created, payment_schedules_updated, payment_schedule_scheme_created, payment_schedule_scheme_deleted, subscription_renewal_reminder, add_usages_reminder, transaction_created, transaction_updated, transaction_deleted, payment_succeeded, payment_failed, payment_refunded, payment_initiated, refund_initiated, authorization_succeeded, authorization_voided, card_added, card_updated, card_expiry_reminder, card_expired, card_deleted, payment_source_added, payment_source_updated, payment_source_deleted, payment_source_expiring, payment_source_expired, payment_source_locally_deleted, virtual_bank_account_added, virtual_bank_account_updated, virtual_bank_account_deleted, token_created, token_consumed, token_expired, unbilled_charges_created, unbilled_charges_voided, unbilled_charges_deleted, unbilled_charges_invoiced, order_created, order_updated, order_cancelled, order_delivered, order_returned, order_ready_to_process, order_ready_to_ship, order_deleted, order_resent, quote_created, quote_updated, quote_deleted, tax_withheld_recorded, tax_withheld_deleted, tax_withheld_refunded, gift_scheduled, gift_unclaimed, gift_claimed, gift_expired, gift_cancelled, gift_updated, hierarchy_created, hierarchy_deleted, payment_intent_created, payment_intent_updated, contract_term_created, contract_term_renewed, contract_term_terminated, contract_term_completed, contract_term_cancelled, item_family_created, item_family_updated, item_family_deleted, item_created, item_updated, item_deleted, item_price_created, item_price_updated, item_price_deleted, attached_item_created, attached_item_updated, attached_item_deleted, differential_price_created, differential_price_updated, differential_price_deleted, feature_created, feature_updated, feature_deleted, feature_activated, feature_reactivated, feature_archived, item_entitlements_updated, entitlement_overrides_updated, entitlement_overrides_removed, item_entitlements_removed, entitlement_overrides_auto_removed, subscription_entitlements_created, subscription_entitlements_updated, business_entity_created, business_entity_updated, business_entity_deleted, customer_business_entity_changed, subscription_business_entity_changed, purchase_created, voucher_created, voucher_expired, voucher_create_failed, item_price_entitlements_updated, item_price_entitlements_removed, subscription_ramp_created, subscription_ramp_deleted, subscription_ramp_applied, subscription_ramp_drafted, subscription_ramp_updated, price_variant_created, price_variant_updated, price_variant_deleted, customer_entitlements_updated, subscription_moved_in, subscription_moved_out, subscription_movement_failed, omnichannel_subscription_created, omnichannel_subscription_item_renewed, omnichannel_subscription_item_downgraded, omnichannel_subscription_item_expired, omnichannel_subscription_item_cancellation_scheduled, omnichannel_subscription_item_scheduled_cancellation_removed, omnichannel_subscription_item_resubscribed, omnichannel_subscription_item_upgraded, omnichannel_subscription_item_cancelled, omnichannel_subscription_imported, omnichannel_subscription_item_grace_period_started, omnichannel_subscription_item_grace_period_expired, omnichannel_subscription_item_dunning_started, omnichannel_subscription_item_dunning_expired, rule_created, rule_updated, rule_deleted, record_purchase_failed, omnichannel_subscription_item_change_scheduled, omnichannel_subscription_item_scheduled_change_removed, omnichannel_subscription_item_reactivated, sales_order_created, sales_order_updated, omnichannel_subscription_item_changed, omnichannel_subscription_item_paused, omnichannel_subscription_item_resumed
Supported operators :

Example
is_not[<operator>]
optional, enumerated string filter
Possible values are : coupon_created, coupon_updated, coupon_deleted, coupon_set_created, coupon_set_updated, coupon_set_deleted, coupon_codes_added, coupon_codes_deleted, coupon_codes_updated, customer_created, customer_changed, customer_deleted, customer_moved_out, customer_moved_in, promotional_credits_added, promotional_credits_deducted, subscription_created, subscription_created_with_backdating, subscription_started, subscription_trial_end_reminder, subscription_activated, subscription_activated_with_backdating, subscription_changed, subscription_trial_extended, mrr_updated, subscription_changed_with_backdating, subscription_cancellation_scheduled, subscription_cancellation_reminder, subscription_cancelled, subscription_canceled_with_backdating, subscription_reactivated, subscription_reactivated_with_backdating, subscription_renewed, subscription_items_renewed, subscription_scheduled_cancellation_removed, subscription_changes_scheduled, subscription_scheduled_changes_removed, subscription_shipping_address_updated, subscription_deleted, subscription_paused, subscription_pause_scheduled, subscription_scheduled_pause_removed, subscription_resumed, subscription_resumption_scheduled, subscription_scheduled_resumption_removed, subscription_advance_invoice_schedule_added, subscription_advance_invoice_schedule_updated, subscription_advance_invoice_schedule_removed, pending_invoice_created, pending_invoice_updated, invoice_generated, invoice_generated_with_backdating, invoice_updated, invoice_deleted, credit_note_created, credit_note_created_with_backdating, credit_note_updated, credit_note_deleted, payment_schedules_created, payment_schedules_updated, payment_schedule_scheme_created, payment_schedule_scheme_deleted, subscription_renewal_reminder, add_usages_reminder, transaction_created, transaction_updated, transaction_deleted, payment_succeeded, payment_failed, payment_refunded, payment_initiated, refund_initiated, authorization_succeeded, authorization_voided, card_added, card_updated, card_expiry_reminder, card_expired, card_deleted, payment_source_added, payment_source_updated, payment_source_deleted, payment_source_expiring, payment_source_expired, payment_source_locally_deleted, virtual_bank_account_added, virtual_bank_account_updated, virtual_bank_account_deleted, token_created, token_consumed, token_expired, unbilled_charges_created, unbilled_charges_voided, unbilled_charges_deleted, unbilled_charges_invoiced, order_created, order_updated, order_cancelled, order_delivered, order_returned, order_ready_to_process, order_ready_to_ship, order_deleted, order_resent, quote_created, quote_updated, quote_deleted, tax_withheld_recorded, tax_withheld_deleted, tax_withheld_refunded, gift_scheduled, gift_unclaimed, gift_claimed, gift_expired, gift_cancelled, gift_updated, hierarchy_created, hierarchy_deleted, payment_intent_created, payment_intent_updated, contract_term_created, contract_term_renewed, contract_term_terminated, contract_term_completed, contract_term_cancelled, item_family_created, item_family_updated, item_family_deleted, item_created, item_updated, item_deleted, item_price_created, item_price_updated, item_price_deleted, attached_item_created, attached_item_updated, attached_item_deleted, differential_price_created, differential_price_updated, differential_price_deleted, feature_created, feature_updated, feature_deleted, feature_activated, feature_reactivated, feature_archived, item_entitlements_updated, entitlement_overrides_updated, entitlement_overrides_removed, item_entitlements_removed, entitlement_overrides_auto_removed, subscription_entitlements_created, subscription_entitlements_updated, business_entity_created, business_entity_updated, business_entity_deleted, customer_business_entity_changed, subscription_business_entity_changed, purchase_created, voucher_created, voucher_expired, voucher_create_failed, item_price_entitlements_updated, item_price_entitlements_removed, subscription_ramp_created, subscription_ramp_deleted, subscription_ramp_applied, subscription_ramp_drafted, subscription_ramp_updated, price_variant_created, price_variant_updated, price_variant_deleted, customer_entitlements_updated, subscription_moved_in, subscription_moved_out, subscription_movement_failed, omnichannel_subscription_created, omnichannel_subscription_item_renewed, omnichannel_subscription_item_downgraded, omnichannel_subscription_item_expired, omnichannel_subscription_item_cancellation_scheduled, omnichannel_subscription_item_scheduled_cancellation_removed, omnichannel_subscription_item_resubscribed, omnichannel_subscription_item_upgraded, omnichannel_subscription_item_cancelled, omnichannel_subscription_imported, omnichannel_subscription_item_grace_period_started, omnichannel_subscription_item_grace_period_expired, omnichannel_subscription_item_dunning_started, omnichannel_subscription_item_dunning_expired, rule_created, rule_updated, rule_deleted, record_purchase_failed, omnichannel_subscription_item_change_scheduled, omnichannel_subscription_item_scheduled_change_removed, omnichannel_subscription_item_reactivated, sales_order_created, sales_order_updated, omnichannel_subscription_item_changed, omnichannel_subscription_item_paused, omnichannel_subscription_item_resumed
Supported operators :

Example
in[<operator>]
optional, string filter
Possible values are :
Supported operators :

Example
not_in[<operator>]
optional, string filter
Possible values are :
Supported operators :

Example
source[<operator>]
optional, enumerated string filter
Source of the event. Possible values are : admin_console, api, scheduled_job, hosted_page, portal, system, none, js_api, migration, bulk_operation, external_service
Supported operators : is, is_not, in, not_in

Example "source[is] = "hosted_page"
is[<operator>]
optional, enumerated string filter
Possible values are : admin_console, api, scheduled_job, hosted_page, portal, system, none, js_api, migration, bulk_operation, external_service
Supported operators :

Example
is_not[<operator>]
optional, enumerated string filter
Possible values are : admin_console, api, scheduled_job, hosted_page, portal, system, none, js_api, migration, bulk_operation, external_service
Supported operators :

Example
in[<operator>]
optional, string filter
Possible values are :
Supported operators :

Example
not_in[<operator>]
optional, string filter
Possible values are :
Supported operators :

Example
occurred_at[<operator>]
optional, timestamp(UTC) in seconds filter
Timestamp indicating when this event had occurred. Possible values are :
Supported operators : after, before, on, between

Example "occurred_at[after] = "1349116200"
after[<operator>]
optional, timestamp(UTC) in seconds filter
Possible values are :
Supported operators :

Example
before[<operator>]
optional, timestamp(UTC) in seconds filter
Possible values are :
Supported operators :

Example
on[<operator>]
optional, timestamp(UTC) in seconds filter
Possible values are :
Supported operators :

Example
between[<operator>]
optional, string filter
Possible values are :
Supported operators :

Example
event event
always returned
Resource object representing event
next_offset next_offset
optional, string, max chars=1000
This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter `offset`.

Sample admin console URL

https://{site}.chargebee.com/admin-console/events/123x

Retrieves a specific event identified by a unique event identifier.

Note: Only events that are less than 90 days old will be retrieved.

Notes

Sample Codes
import Chargebee from "chargebee";
const chargebee = new Chargebee({
  site : "{site}",
  apiKey : "{site_api_key}",
});
try {
    const result = await chargebee.event.retrieve("ev___test__KyVnHhSBWm4wM2ru");
    console.log(result);
    const event = result.event;
} catch (err) {
  console.log(err);
}
copy
Click to Copy
import Chargebee from "chargebee";
const chargebee = new Chargebee({
  site : "{site}",
  apiKey : "{site_api_key}",
});
try {
    const result = await chargebee.event.retrieve("ev___test__KyVnHhSBWm4wM2ru");
    console.log(result);
    const event = result.event;
} catch (err) {
  console.log(err);
}

Sample Result [ JSON ]

Show more...
{
    "event": {
        "api_version": "v2",
        "content": {
            "customer": {
                "allow_direct_debit": false,
                "auto_collection": "off",
                "card_status": "no_card",
                "created_at": 1517505958,
                "deleted": false,
                "excess_payments": 0,
                "id": "__test__KyVnHhSBWm4tg2rq",
                "net_term_days": 0,
                "object": "customer",
                "pii_cleared": "active",
                "preferred_currency_code": "USD",
                "promotional_credits": 0,
                "refundable_credits": 0,
                "resource_version": 1517505958000,
                "taxability": "taxable",
                "unbilled_charges": 0,
                "updated_at": 1517505958
            }
        },
        "event_type": "customer_created",
        "id": "ev___test__KyVnHhSBWm4wM2ru",
        "object": "event",
        "occurred_at": 1517505959,
        "source": "api",
        "user": "full_access_key_v1",
        "webhook_status": "scheduled"
    }
}

URL Format GET

https://{site}.chargebee.com/api/v2/events/{event-id}

Method

<chargebee>.event.retrieve(<event_id>,{<param name> : <value>,<param name> : <value> ...})
event event
always returned
Resource object representing event

Sample admin console URL

https://{site}.chargebee.com/admin-console/events/123x