Chargebee is a recurring billing and subscription management tool that helps subscription businesses streamline their Revenue Operations. It offers a variety of functionality, including:

Chargebee also offers native reporting functionality, but there may be times where one might have more complex reporting needs than what is available on the platform by default. Fortunately, Chargebee also has a marketplace of third party tools that you can leverage to meet a variety of needs, and they also offer an API that you can use to build your own!

This guide will walk you through one option for how you can build your own integration using Amazon Web Services (AWS). More specifically, you will be able to ingest data from your Chargebee account into AWS and use that data for your own custom reporting workflows.

Pre-Requisites

It is highly recommended that the steps followed in this guide are done in your Test environment in Chargebee and a development account in AWS.

Architecture Overview

Architecture Diagram

The architecture for this guide is very straightforward. AWS Lambda will initiate an export API call to the Chargebee API. A secondary Lambda will download those files once they are ready. All of your exported Chargebee files will be stored in Amazon S3. AWS Step Functions will orchestrate the entire workflow, and your Chargebee Site name and API key will be stored in (and referenced from) AWS Systems Manager Parameter Store. The parameters will be encrypted using AWS Key Management Service. An optional Amazon EventBridge Scheduler can trigger the workflow on a scheduled basis.




Implementation Instructions

Follow the step-by-step instructions below to create the integration. Click on each step number to expand the section.