2024 is the year of the connector - vote here

Query the Chargebee API using regular SQL

You're a developer. You're perfectly capable of connecting to the Chargebee API and pulling down data. But why waste your time building an API integration when your skills and time are better spent elsewhere?

API integrations are hard to build and maintain. But with SyncHub, you can query your data source using a language you know and love - SQL.

How it works

Get your Chargebee data into your favourite reporting tool in just two minutes and three easy steps.

1 2 3 Connect Chargebee to SyncHub

Securely connect your cloud software to SyncHub and we'll do the rest.

1 2 3 We sync your data automatically

SyncHub incrementally syncs your data and stages it in a managed data warehouse (yours, or we'll provide one for free). We check for changes so you don't have to.

1 2 3 Build your customized reports

Query and share your data using our built-in Insights platform, or use your own reporting tools like Excel, Tableau or Power BI.

No ODBC driver required

SyncHub runs in the cloud, 24×7. There are no ODBC drivers to install or maintain, and no local computer required to cache your results. Just securely connect SyncHub to your Chargebee account and you can be querying your data in just a couple of minutes.

BYOD

Want more power? How about views, stored procedures or triggers? No problem - SyncHub's Bring Your Own Database feature gives you complete control over your database.

Real-time data*

Make a change in Chargebee and query it via SQL within minutes. Our feed is so quick, you'll think you're querying Chargebee directly!

Your data is secure

Your Chargebee data is stored using best-practice security protocols. But if you're still concerned, no worries - just use our BYOD (Bring Your Own Database) option when setting up your account.

Frequently asked questions

Not directly, no. But SyncHub's ERD model, combined with the real-time* sync from Chargebee, means that it is essentially the same as querying directly.
No. Our solution is cloud-hosted, meaning no installs are required on your own computers. Furthermore, because it is cloud-hosted, SyncHub runs in the background 24-7, keeping your data up to date while you sleep.
If your SQL skills are a little rusty, we've got you covered too. Our AI-powered Query Assistant uses knowledge of your Chargebee data model to create SQL queries for you - just describe your problem and watch the magic happen.
SyncHub can poll Chargebee as frequently as every five minutes, however this capability may be limited by the amount of data you have and/or the type of plan you have with Chargebee. The best way to find out is to simply grab a free trial of SyncHub, connect Chargebee, then see for yourself.
No. SyncHub is a reporting tool and cannot reflect changes back to your cloud application.
We currently sync Coupon, Credit note, Currency, Customer, Invoice, Item, Item family, Item price, Order, Payment source, Subscription, Transaction, Usage, Coupon item constraint, Coupon item constraint criteria, Coupon constraint, Credit note e invoice, Credit note line item, Credit note discount, Credit note line item discount, Credit note line item tier, Credit note tax, Credit note line item tax, Credit note linked refund, Credit note allocation, Credit note shipping address, Credit note billing address, Customer billing address, Customer referral u r l, Customer contact, Customer balance, Customer entity identifier, Customer tax providers field, Customer unbilled charge, Invoice line item, Invoice discount, Invoice line item discount, Invoice tax, Invoice line item tax, Invoice line item tier, Invoice linked payment, Invoice dunning attempt, Invoice applied credit, Invoice adjustment credit note, Invoice issued credit note, Invoice linked order, Invoice note, Invoice shipping address, Statement descriptor, Invoice billing address, Invoice e invoice, Item applicable item, Item bundle item, Attached item, Item price tier, Item price tax providers field, Order line item, Order shipping address, Order billing address, Order line item tax, Order line item discount, Order line item linked credit note, Order resent order, Payment source card, Payment source bank account, Payment source billing address, Payment source mandate, Subscription item, Subscription item tier, Subscription charged item, Subscription coupon, Subscription shipping address, Subscription referral info, Subscription contract term, Subscription discount, Transaction linked invoice, Transaction linked credit note, Transaction linked refund, Transaction linked payment, Transaction error details, Coupon item constraint item price, Coupon item constraint criteria currency, Coupon item constraint criteria item family, Coupon item constraint criteria item price period and Customer unbilled charge tier (see our Data Model for full details). If there's something else you need just ask.
Your Chargebee data is stored in its own dedicated data warehouse, hosted in our Microsoft Azure Sydney Data Center. If you'd like it stored somewhere else (even your own servers), just enquire about our BYOD (bring-your-own-database) option.
Absolutely. Every customer gets their very own isolated data warehouse. Database credentials are salt-encrypted...multi-factor authentication can be activated for your account...we take security very seriously. You can read more about our security best practices here.

Example queries

Check out these example queries for some inspiration

  • select cuct.UnitAmountInDecimal, cuct.QuantityUsedInDecimal, cuc.Deleted, cuc.BusinessEntityID from [chargebee].CustomerUnbilledChargeTier cuct left join [chargebee].CustomerUnbilledCharge cuc on cuct.CustomerUnbilledChargeRemoteID = cuc.RemoteID
  • select ciccipp.ItemPricePeriod, ciccipp.Iterator, cicc.ItemType, cicc.Iterator from [chargebee].CouponItemConstraintCriteriaItemPricePeriod ciccipp left join [chargebee].CouponItemConstraintCriteria cicc on ciccipp.CouponItemConstraintCriteriaRemoteID = cicc.RemoteID
  • select ciccif.ItemFamilyID, ciccif.CouponItemConstraintCriteriaID, cicc.ItemType, cicc.Iterator from [chargebee].CouponItemConstraintCriteriaItemFamily ciccif left join [chargebee].CouponItemConstraintCriteria cicc on ciccif.CouponItemConstraintCriteriaRemoteID = cicc.RemoteID
  • select top 12 InvoiceNotes, Redemptions, PeriodUnit, Period, UpdatedAt, ResourceVersion from [chargebee].Coupon order by InvoiceNotes
  • select top 27 TaxOriginRegistrationNumber, TaxOriginCountry, BusinessEntityID, VatNumberPrefix, CreateReasonCode, LocalCurrencyExchangeRate from [chargebee].CreditNote order by TaxOriginRegistrationNumber
  • select top 18 ManualExchangeRate, ForexType, Enabled, CurrencyCode, IsBaseCurrency, ID from [chargebee].Currency order by ManualExchangeRate
* Realtime

SyncHub's engine polls for changes every 5 minutes. However, different APIs, and different endpoints within those APIs, may impose restrictions beyond our control - thereby reducing the fidelity of your real-time feed.