Chargebee

Connect & Ingest data from Chargebee

Chargebee is a subscription billing and revenue management platform that helps businesses automate recurring billing, manage subscriptions, and handle invoicing. The Sling Chargebee connector extracts data from the Chargebee REST API, supporting customers, subscriptions, invoices, transactions, orders, and more.

circle-check

Setup

The following credentials and inputs are accepted:

Secrets:

  • api_key (required) -> Your Chargebee full-access API key

  • site (required) -> Your Chargebee site subdomain (e.g., if your Chargebee URL is https://mycompany.chargebee.com, the site is mycompany)

Inputs:

  • anchor_date (optional) -> The starting date for historical data extraction (default: 1 year ago). Format: YYYY-MM-DD

Getting Your API Key

  1. Go to Settings > Configure Chargebee > API Keys

  2. Click Add API Key and select Full-Access Key

  3. Copy the generated API key

circle-exclamation

Using sling conns

Here are examples of setting a connection named CHARGEBEE. We must provide the type=api property:

Environment Variable

See here to learn more about the .env.sling file.

Sling Env File YAML

See here to learn more about the sling env.yaml file.

With anchor date for historical data:

Replication

Here's an example replication configuration to sync Chargebee data to a PostgreSQL database:

Full refresh example for reference data:

Endpoints

Customers & Subscriptions

Endpoint
Description
Incremental

customer

Customer records

Yes

subscription

Active and canceled subscriptions

Yes

payment_source

Saved payment sources

Yes

Billing & Invoicing

Endpoint
Description
Incremental

invoice

Invoices with line items

Yes

credit_note

Credit notes

Yes

transaction

Payment transactions

Yes

unbilled_charge

Pending charges not yet invoiced

No

Orders

Endpoint
Description
Incremental

order

Orders linked to invoices

Yes

quote

Quotes for subscriptions

Yes

Product Catalog (v2)

Endpoint
Description
Incremental

item_family

Item families grouping related items

No

item

Items in the product catalog

Yes

item_price

Pricing for items

Yes

Promotions & Discounts

Endpoint
Description
Incremental

coupon

Discount coupons

No

promotional_credit

Promotional credits applied to accounts

No

gift

Gift subscriptions

No

Events & Other

Endpoint
Description
Incremental

event

Chargebee events (uses occurred_at)

Yes

comment

Comments on resources

No

site_migration_detail

Site migration details

No

To discover available endpoints:

Incremental Sync

The Chargebee connector uses time-based incremental sync with the updated_at timestamp for most endpoints:

  • First run: Fetches all records from anchor_date (default: 1 year ago) to present

  • Subsequent runs: Only fetches records updated after the last sync

Supported Incremental Endpoints

The following endpoints support incremental sync via updated_at[after]:

  • customer, subscription, invoice, credit_note, transaction, order, item, item_price, payment_source, quote

Event Endpoint

The event endpoint uses occurred_at instead of updated_at for incremental tracking, fetching events that occurred after the last sync timestamp.

Full-Refresh Endpoints

These endpoints do not support incremental filtering and always perform a full refresh:

  • coupon, item_family, comment, gift, promotional_credit, unbilled_charge, site_migration_detail

Date Fields

All Unix timestamp fields are automatically converted to proper datetime columns with a _date suffix:

Original Field
Converted Field

created_at

created_at_date

updated_at

updated_at_date

cancelled_at

cancelled_at_date

trial_start

trial_start_date

trial_end

trial_end_date

occurred_at

occurred_at_date

...

...

Rate Limiting

The Chargebee API has rate limits:

  • Standard: 150 requests per minute

The connector automatically:

  • Uses conservative rate limiting (2 requests/second with concurrency of 3)

  • Retries with exponential backoff on 429 (rate limit) responses

Common Use Cases

Sync Core Billing Data

Sync Product Catalog

Sync Events for Audit Trail

If you are facing issues connecting, please reach out to us at [email protected]envelope, on discordarrow-up-right or open a Github Issue herearrow-up-right.

Last updated

Was this helpful?