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.
CLI Pro Required: APIs require a CLI Pro token or Platform Plan.
Setup
The following credentials and inputs are accepted:
Secrets:
api_key(required) -> Your Chargebee full-access API keysite(required) -> Your Chargebee site subdomain (e.g., if your Chargebee URL ishttps://mycompany.chargebee.com, the site ismycompany)
Inputs:
anchor_date(optional) -> The starting date for historical data extraction (default: 1 year ago). Format:YYYY-MM-DD
Getting Your API Key
Log in to your Chargebee Dashboard
Go to Settings > Configure Chargebee > API Keys
Click Add API Key and select Full-Access Key
Copy the generated API key
Important: Use a Full-Access API key for read access to all resources. Read-Only keys may not have access to all endpoints.
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
customer
Customer records
Yes
subscription
Active and canceled subscriptions
Yes
payment_source
Saved payment sources
Yes
Billing & Invoicing
invoice
Invoices with line items
Yes
credit_note
Credit notes
Yes
transaction
Payment transactions
Yes
unbilled_charge
Pending charges not yet invoiced
No
Orders
order
Orders linked to invoices
Yes
quote
Quotes for subscriptions
Yes
Product Catalog (v2)
item_family
Item families grouping related items
No
item
Items in the product catalog
Yes
item_price
Pricing for items
Yes
Promotions & Discounts
coupon
Discount coupons
No
promotional_credit
Promotional credits applied to accounts
No
gift
Gift subscriptions
No
Events & Other
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 presentSubsequent 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:
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 support@slingdata.io, on discord or open a Github Issue here.
Last updated
Was this helpful?