Can I filter events for a specific customer using API?

Modified on: Thu, 30 Jul, 2020 at 11:49 AM

This article covers 

How to check the last pending customer events using API?

Can I use List events API to filter the events using customer id?


Summary


In Chargebee, you can use the List events API to retrieve events. You can also use the web interface to filter events.


The list events API can be used to retrieve events and can support the following filter only,

  • event_type

  • event_id

  • webhook_status and 

  • occured_at

Warning: 
1. To filter using the customer_id is not supported via API. However, you can filter events using the customer_id from the Chargebee’s admin console.
2. Events older than 90 days will not be visible in the UI.


Note:
1. You can also verify the status of the latest webhook events by navigating to the specific customer record > scroll down > click the Events tab. 


To fetch event details using a specific customer Id


Go to Chargebee Dashboard 

Events 

> Click on Filter list to Add Filter

> Select Customer Id 

Equals 

> Enter the customer Id

> Click on Apply FIlter



You can add more than 1 filter if required.


Related articles and Documentation

Applying filters when retrieving data through API

Is it possible to filter set custom fields as filters via the APIs?

K
Kirthiga is the author of this solution article.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.