Dataset
Chargebee subscription billing datasets for AI training
A Chargebee dataset is an export of a subscription business's Chargebee site: its customers and subscriptions, the catalog of items and item prices or plans and addons, invoices with their dunning attempts, credit notes, transactions at each payment gateway, coupons, quotes and the events Chargebee wrote for every change. SourceX sources it to a buyer's spec from established businesses that run Chargebee to bill their subscribers. Each dataset is de-identified, with customer details and payment tokens removed, and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- A Chargebee site's subscriptions, catalog, invoices with dunning attempts, credit notes, gateway transactions, coupons, quotes and events
- Typical systems
- Chargebee Billing on Product Catalog 1.0 (plans and addons) or 2.0 (items and item prices); Retention and RevRec where run
- Typical history
- Subscriptions and invoices from go-live or migration; events only as far back as the site or the owner's webhook archive keeps them
- Modality
- Structured billing records and JSON events; invoice and quote PDFs only where licensed
- Delivery formats
- API JSON or Chargebee export CSVs normalized to JSONL or Parquet, amounts in minor units and times in UTC as stored
- Preparation
- Customer IDs pseudonymized; names, emails, addresses, VAT numbers and custom fields removed or screened; payment sources and gateway tokens excluded
- Licensing
- Scoped per Chargebee site and date range; permitted use agreed per license; Chargebee's terms checked by owner and buyer
- Availability
- Sourced to your spec; catalog version, gateways and event history differ by site, and supply is not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| site_ref | string | Pseudonymous key for the live Chargebee site the records were exported from; test-site records are excluded. |
| customer_ref | string | Pseudonymous key in place of the Customer id, stable across subscriptions, invoices and events. |
| subscription | object | The Subscription: status (future, in_trial, active, non_renewing, paused, cancelled or transferred), billing period, term and trial dates, has_scheduled_changes and mrr, which Chargebee updates asynchronously. |
| subscription_items | array | Subscription items by ItemPrice with item type (plan, addon or charge), quantity and unit price; plan_id and addons on a Product Catalog 1.0 site. |
| catalog | object | The Item and ItemPrice definitions referenced (or Plan and Addon): pricing model, currency, period and item family. |
| invoice | object | An Invoice with status (paid, posted, payment_due, not_paid, voided, pending), total, amount_paid, credits_applied, amount_adjusted, write_off_amount, amount_due and line items with date_from and date_to. |
| dunning_attempts | array | The Invoice's dunning_attempts: attempt number, created_at, dunning_type, and the Transaction each produced with its txn_status. |
| transactions | array | Transaction rows: type (authorization, payment, refund, payment_reversal), status, payment_method, gateway, hashed id_at_gateway, error_code and error_text. |
| credit_notes | array | CreditNote rows by type (such as adjustment or refundable) with reason_code, status, the invoice referenced and any linked refunds. |
| discounts | array | Coupon definitions and use: discount type, duration type, what they apply on and redemptions, with coupon codes pseudonymized. |
| cancellation | object | The Subscription's cancelled_at, cancel_reason (such as not_paid or no_card) and the site's own cancel_reason_code. |
| quote | object | A Quote with operation type, status (such as open, accepted, declined, invoiced or closed), validity date and line items. |
| events | array | Event rows: event_type, occurred_at, source (api, admin_console, hosted_page, portal, scheduled_job) and the content snapshot of each affected resource. |
Field names from the table above; values are masked placeholders.
Example record
{
"site_ref": "site_2f9a",
"customer_ref": "cust_81d3",
"subscription": {
"subscription_ref": "sub_5c07",
"status": "active",
"billing_period": 1,
"billing_period_unit": "month",
"current_term_start": 1709251200,
"current_term_end": 1711929600,
"currency_code": "USD",
"mrr": 14900
},
"subscription_items": [
{
"item_price_id": "team-USD-monthly",
"item_type": "plan",
"quantity": 1,
"unit_price": 9900
},
{
"item_price_id": "seat-USD-monthly",
"item_type": "addon",
"quantity": 5,
"unit_price": 1000
}
],
"invoice": {
"invoice_ref": "inv_30412",
"status": "paid",
"date": 1709251200,
"total": 14900,
"amount_paid": 14900,
"credits_applied": 0,
"amount_due": 0,
"paid_at": 1709686800,
"dunning_status": "success"
},
"dunning_attempts": [
{
"attempt": 0,
"created_at": 1709251260,
"dunning_type": "auto_collect",
"txn_ref": "txn_a1",
"txn_status": "failure"
},
{
"attempt": 1,
"created_at": 1709686800,
"dunning_type": "auto_collect",
"txn_ref": "txn_a2",
"txn_status": "success"
}
],
"transactions": [
{
"txn_ref": "txn_a1",
"type": "payment",
"status": "failure",
"payment_method": "card",
"gateway": "gateway_a",
"id_at_gateway": "h_9e1c",
"error_code": "card_declined"
},
{
"txn_ref": "txn_a2",
"type": "payment",
"status": "success",
"gateway": "gateway_a",
"id_at_gateway": "h_41b7"
}
],
"events": [
{
"event_type": "subscription_renewed",
"occurred_at": 1709251200,
"source": "scheduled_job"
},
{
"event_type": "payment_failed",
"occurred_at": 1709251260,
"source": "scheduled_job"
},
{
"event_type": "payment_succeeded",
"occurred_at": 1709686800,
"source": "scheduled_job"
}
]
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Replay subscription lifecycles
Ordered events with successive snapshots give exact state transitions for agents that handle upgrades, pauses and renewals.
Model payment recovery
Invoices with numbered dunning attempts, gateway error codes and a final dunning status are labeled sequences for retry timing.
Train billing support agents
Prorated invoices, adjustment and refundable credit notes and refunds show how a billing team resolved plan changes.
Separate intent from outcome
Scheduled cancellations, removed cancellations and reason codes label who meant to leave, who was saved and who lapsed on a failed card.
Evaluate invoice arithmetic
Held-out invoices with line items, coupons, taxes, credits and proration test whether a model computes what was actually charged.
Use-case guides: Finance and accounting agents, Customer support agents, Enterprise and computer-use agents, Private evaluation sets
What makes this data valuable
Event depth
Event history, from the API or the owner's webhook archive, covers the same period as the subscriptions.
Catalog stated
The catalog version is named, and any migration from plans and addons to items is dated.
Attempts tied to transactions
Every dunning attempt links to a transaction with a gateway, a status and an error code.
Reason codes in use
The business set up cancel reason codes, and staff or customers filled them in.
Native history
Subscriptions began on the site and were not bulk-imported with backdated dates.
Live site only
No test-site records, and internal test customers are flagged.
Process
Chargebee dataset
Chargebee writes an event with a snapshot for every change
A Chargebee Subscription is the present. Its status, items, current term and next billing date are overwritten at each change, and its resource_version and updated_at say only that something changed. The past is in the Event resource. Each change, renewal, pause, cancellation, payment result, invoice and credit note writes an event with an event_type such as subscription_changed or payment_failed, the time it occurred and its source: the API, the admin console, a hosted page, the customer portal or Chargebee's own scheduled job. The event's content holds a point-in-time copy of each affected resource as it stood right after the change.
Ordering one subscription's events and comparing successive snapshots gives the plan, quantity, price and coupon in force between any two dates, and the source separates a customer's self-service downgrade from an agent's change in the console and from a renewal the scheduler ran. Intent is kept apart from effect. A subscription_cancellation_scheduled event marks the day a customer decided to leave, subscription_cancelled the day access ended, and a scheduled cancellation that was removed in between is a save. Changes queued for a term's end show too, though the subscription carries only has_scheduled_changes.
The log has edges. Ask how far back the event API reaches for the site, since long histories may exist only where the business archived its webhook deliveries or synced events to a warehouse. A business that moved from another billing system usually brought subscriptions in by bulk import with backdated start dates, and nothing before the move has events. Each snapshot is structured to the API version named in the event's api_version, so a long log can mix shapes. Customer snapshots repeat the name, email and billing address in every event, so de-identification has to reach into nested event content.
Chargebee sits above the gateways and runs one of two catalogs
Chargebee normally leaves the movement of money to a payment gateway the business connects, and one site can use several. Each Transaction names the gateway, the gateway account and the id_at_gateway, with Chargebee's own type and status and, on a failure, the gateway's error code and text. Offline payments such as cash, check or bank transfer are recorded by hand, with a payment_method and, for a check, a reference_number. Each Invoice lists its dunning attempts, ties each to the transaction it produced and ends with a dunning_status of in_progress, exhausted, stopped or success. Check how attempts are numbered and whether the first failed charge is in that list. Processing fees, payouts and dispute evidence stay at the gateway, so net revenue needs the gateway's records, joined on a consistently hashed id_at_gateway.
A site also runs one of two catalog models. On Product Catalog 1.0 a subscription has a plan_id, a plan quantity and a list of addons, and each plan is tied to one billing period, so moving from monthly to annual is a change of plan. On Product Catalog 2.0 the catalog is item families, items and item prices, where an item is the product and each item price is one currency and billing frequency for it, and a subscription holds subscription_items typed plan, addon or charge. There the same move is a new item price under an unchanged item. A migrated site carries both shapes in its history.
Chargebee's bulk exports, run from the console or as jobs through the export API, give files of current-state resources, one type at a time, so ask how nested lists such as line items, dunning attempts and linked payments were carried. Events and full objects come from the list APIs. Amounts are integers in the currency's minor unit and times are UTC epoch seconds. To test a sample, take one month of invoices. Check that each total is accounted for by amount_paid, credits_applied, amount_adjusted, write_off_amount and amount_due, that every dunning attempt points to a transaction in the delivery, and that replaying one subscription's events ends at the state in the subscription table.
What to check before licensing
- Have the data owner and your counsel read Chargebee's terms on exported data and API use before agreeing extraction and scope.
- Ask whether the site runs Product Catalog 1.0 or 2.0, whether and when it migrated, and get the definition of every plan, addon or item price the history references.
- Ask how far back events go, whether they came from the event API or the owner's stored webhooks, and whether each keeps its full content snapshot.
- Confirm PaymentSource records, card and bank details and gateway reference tokens are excluded, and that id_at_gateway is hashed or dropped.
- Search nested event content, billing addresses, cf_ custom fields, meta_data and comments on a sample for names, emails and VAT numbers.
- Ask which gateways the site used, how offline payments were recorded, and whether chargebacks and fees are present or held only at the gateway.
- Ask whether subscriptions were imported from an earlier billing system, and reconcile one month of invoices to payments, credits and amounts due.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
Can subscription history be rebuilt from a Chargebee export?
Yes, if events are included. The subscription table shows only current state. Each event stores the subscription, customer and invoice as they stood after one change, so ordered events rebuild every plan change, pause, renewal and cancellation. Without events, history must be inferred from invoice line items, which misses changes that produced no invoice.
Does it show why a payment failed?
As far as the gateway said. A failed transaction carries Chargebee's status plus the error code and text returned by the gateway that handled it, and the invoice lists each attempt with its result. Codes are the gateway's own, so a site that used two gateways has two vocabularies.
How do Product Catalog 1.0 and 2.0 data differ?
In the shape of a subscription and of every plan change. Older sites store one plan_id with a list of addons, and each plan is tied to a billing period. Newer sites store subscription items that point to item prices, where one item has a price per currency and frequency. The same switch to annual billing looks different in each, so mixed deliveries need a mapping.
Are card numbers or payment tokens in the dataset?
They should not be, and the sample is where you confirm it. Chargebee holds a payment source as a masked record with a reference to a token kept at the gateway. Those records and references are excluded in preparation, and customer names, emails, addresses and tax numbers are removed. Check for leftovers in masked_card_number on transactions, in custom fields and inside event snapshots, where customer details repeat.
Does it include revenue recognition or cancel-flow data?
Only partly. Billing holds invoices with service periods, credit notes and each subscription's cancel reason code. Recognition schedules come from Chargebee RevRec, and offer-and-save cancel flows from Chargebee Retention, separate products that a business may not run. If you need either, name it in the request and ask how its records join to the billing site's.
Is SourceX affiliated with Chargebee?
Chargebee is named to identify the system the records come from. That does not imply a partnership with or endorsement by Chargebee. The records belong to the business that runs Chargebee, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.
Related datasets
- Subscription billing and churn histories
Per-subscriber lifecycle records from a billing system: plan changes, invoices, payment attempts, dunning steps, cancellations and returns
- Revenue recognition schedules linked to contracts
Customer contracts joined to performance obligations, price allocation, period schedules and modification accounting
- Recurly subscription and dunning records
A Recurly site's accounts, subscriptions, plans, charge and credit invoices with line items, transactions, credit payments, coupon redemptions and dunning activity
- Stripe payment and billing records
One merchant account's payment intents and charge attempts with outcomes, refunds, disputes, balance transactions with fees, payouts and, where used, subscriptions and invoices
- ChartMogul subscription analytics records
A ChartMogul account's normalized billing records and the dated, classified MRR movements computed from them, with attributes, tags and manual corrections
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell us what your models need
Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.
Updated 26 November 2026.