Docs

Log into read the version of docs relevant to your site.

Export quotes for a specific period

Problem Statement

You want to export quotes from Chargebee for a specific timeframe.

Solution

Chargebee does not offer a direct UI option to export quotes by date range. Use the List all quotes API with the date[between] parameter to filter and retrieve quotes within a defined period. The API returns JSON, which you can convert to CSV using Postman or similar tools.

Configuration Steps

Step 1: Use the following GET request format to retrieve quotes within a date range:

https://<your-site>.chargebee.com/api/v2/quotes?date[between]=[start_timestamp,end_timestamp]

Step 2: Set the date range using the date[between] attribute. Enter timestamps in Unix time format.

Step 3: Convert dates to Unix timestamps using an epoch converter.

Step 4: Convert the JSON response to CSV using Postman or an online converter for analysis or reporting.

Was this article helpful?