Skip to content

Chargebee

Chargebee is a subscription billing and revenue management platform for recurring billing, invoicing, and payments.

Bruin supports Chargebee as a source for Ingestr assets.

Configuration

Step 1: Add a connection to .bruin.yml

yaml
connections:
    chargebee:
        - name: 'my-chargebee'
          site: 'your-site'
          api_key: 'live_xxx'
  • site: your Chargebee site name (the subdomain in https://<site>.chargebee.com).
  • api_key: your Chargebee API key.

Step 2: Create an asset file

yaml
name: public.chargebee
type: ingestr

parameters:
  source_connection: my-chargebee
  source_table: 'subscriptions'
  destination: postgres
  • source_connection: the Chargebee connection defined in .bruin.yml.
  • source_table: the Chargebee table to ingest (see below).

Available Source Tables

Chargebee source allows ingesting the following resources:

TablePKInc KeyInc StrategyDetails
customersidupdated_atmergeCustomer records, including billing details, contact info, and custom fields.
subscriptionsidupdated_atmergeRecurring subscriptions, including status, billing cycle, and subscription items.
invoicesidupdated_atmergeInvoices generated for subscriptions and one-off charges, including line items and amounts.
transactionsidupdated_atmergePayment, refund, and credit transactions linked to invoices.
ordersidupdated_atmergeOrders generated for invoices, including fulfillment and shipping details. Requires Order Management enabled on the site.
eventsidoccurred_atmergeActivity events such as subscription and customer changes, useful for change-style ingestion.