Dataset
Recurly subscription and dunning records datasets for AI training
A Recurly dataset is an export of a subscription business's Recurly site: its Account records, each Subscription with its state and expiration reason, the Plan and AddOn catalog, charge and credit Invoices with typed LineItems, Transactions with Recurly's status code and the gateway's response, CreditPayments, CouponRedemptions and dunning activity. SourceX sources it to a buyer's spec from established businesses that run Recurly to bill their subscribers. Each dataset is de-identified, with account details and billing info tokens removed, and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- A Recurly site's accounts, subscriptions, plans, charge and credit invoices with line items, transactions, credit payments, coupon redemptions and dunning activity
- Typical systems
- Recurly Subscriptions with its dunning campaigns, on sites that use credit invoices or still hold legacy invoices
- Typical history
- Invoices and transactions from go-live or migration; earlier subscription terms come from invoice lines or the Subscriptions - History export
- Modality
- Structured billing records as JSON or CSV; invoice PDFs only where licensed
- Delivery formats
- v3 API JSON or Recurly export CSVs normalized to JSONL or Parquet, amounts in currency units with the currency code, each timestamp's time zone stated
- Preparation
- Account codes and IDs pseudonymized; emails, names, addresses, VAT numbers, IP addresses and custom fields removed or screened; BillingInfo and gateway tokens excluded
- Licensing
- Scoped per Recurly site and date range; permitted use agreed per license; Recurly's terms checked by owner and buyer
- Availability
- Sourced to your spec; gateways, dunning setup and the share of legacy invoices 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 production Recurly site exported. |
| account_ref | string | Pseudonymous key replacing the Account id and its business-chosen code, stable across every other record. |
| account_attributes | object | What is kept of the Account: state, created_at, country, and bill_to with the parent account's key. |
| subscription | object | The Subscription: state (future, active, canceled, paused, expired, failed), plan code, quantity, unit_amount, period and trial dates, canceled_at, expires_at and expiration_reason. |
| subscription_versions | array | Rows of the Subscriptions - History export, where the site has it: version_started_at, version_ended_at, version_state, plan_code and unit amount. |
| plan_and_add_ons | object | Plan and AddOn definitions: code, interval_unit, interval_length, trial length, setup fee, price per currency and add_on_type. |
| invoice | object | An Invoice with type (charge, credit or legacy), origin, state, collection_method, subtotal, discount, tax, total, paid and balance. |
| line_items | array | LineItem rows with type, origin, legacy_category, plan or add-on code, quantity, unit_amount, start_date, end_date, proration_rate, refund and previous_line_item_id. |
| transactions | array | Transaction rows: type (purchase, refund, verify, authorization, capture), origin, status, amount, collected_at and the payment_gateway. |
| decline | array | For each failed Transaction, Recurly's status_code, the soft or hard category Recurly's error reference gives that code, gateway_response_code, gateway_message, avs_check and cvv_check. |
| credit_payments | array | CreditPayment rows with action (payment, refund, reduction or write_off), amount, the original credit invoice and the charge invoice it was applied to. |
| dunning | object | The Invoice's dunning_campaign_id, dunning_events_sent and final_dunning_event, with the DunningCampaign cycle's intervals, fail_invoice and expire_subscription settings. |
| coupon_redemptions | array | CouponRedemption rows with state and removed_at, and the Coupon's code, discount type and a duration such as forever, single_use or temporal. |
| export_source | object | Whether the row came from the v3 API or a named export such as Adjustments or Subscriptions - Churned, with the pull date. |
Field names from the table above; values are masked placeholders.
Example record
{
"site_ref": "site_4c1e",
"account_ref": "acct_9d27f0",
"account_attributes": {
"state": "active",
"country": "US"
},
"subscription": {
"subscription_ref": "sub_51b8a2",
"state": "active",
"plan_code": "premium-monthly",
"unit_amount": 14.99,
"currency": "USD",
"activated_at": "2022-08-03T14:22:11Z",
"canceled_at": null,
"expires_at": null,
"expiration_reason": null
},
"invoice": {
"invoice_ref": "inv_e07c33",
"type": "charge",
"origin": "renewal",
"state": "paid",
"collection_method": "automatic",
"subtotal": 14.99,
"discount": 3.0,
"tax": 0.0,
"total": 11.99,
"paid": 11.99,
"balance": 0.0
},
"line_items": [
{
"type": "charge",
"origin": "plan",
"plan_code": "premium-monthly",
"quantity": 1,
"unit_amount": 14.99,
"discount": 3.0,
"amount": 11.99,
"start_date": "2024-05-03T14:22:11Z",
"end_date": "2024-06-03T14:22:11Z",
"proration_rate": 1.0,
"refund": false
}
],
"transactions": [
{
"txn_ref": "txn_a1",
"type": "purchase",
"origin": "recurring",
"status": "declined",
"amount": 11.99,
"collected_at": "2024-05-03T14:22:16Z",
"payment_gateway": "gateway_a"
},
{
"txn_ref": "txn_a2",
"type": "purchase",
"origin": "recurring",
"status": "success",
"amount": 11.99,
"collected_at": "2024-05-09T09:03:40Z",
"payment_gateway": "gateway_a"
}
],
"decline": [
{
"txn_ref": "txn_a1",
"status_code": "insufficient_funds",
"category": "soft",
"gateway_response_code": "51",
"gateway_message": "Insufficient funds",
"avs_check": "Y"
}
],
"dunning": {
"dunning_campaign_ref": "dc_default",
"dunning_events_sent": 1,
"final_dunning_event": false,
"outcome": "recovered"
},
"coupon_redemptions": [
{
"coupon_code": "SPRING20",
"discount_type": "percent",
"percent": 20,
"duration": "temporal"
}
],
"export_source": {
"route": "api_v3",
"pulled_at": "2024-07-01T02:00:00Z"
}
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Learn payment recovery from retry outcomes
Declined Transactions with a status code, then retries and a recovered or expired ending, are labeled sequences for retry decisions.
Separate involuntary from voluntary churn
An expiration_reason of nonpayment and a canceled_at time are different labels, so a churn model does not blend a failed card with a decision to leave.
Classify billing events from invoice lines
Invoice origin with LineItem type, origin and proration_rate labels upgrades, downgrades, refunds and renewals for agents that read bills.
Train billing support agents
Credit invoices, CreditPayment rows and refund lines show how a questioned charge was put right.
Evaluate invoice arithmetic
Held-out invoices with coupons, proration, tax and applied credit test whether a model reaches the billed total.
Use-case guides: Finance and accounting agents, Customer support agents, Enterprise and computer-use agents, Private evaluation sets
What makes this data valuable
Typed invoices throughout
Charge and credit invoices dominate, with the legacy share stated.
Decline detail kept
Failed Transactions keep status_code and the gateway's raw code and message.
Every attempt present
Declined and voided Transactions are delivered, not only successful ones.
Credits traceable
Each CreditPayment names both the credit invoice and the charge invoice it paid.
Refund links resolve
A refund line's previous_line_item_id points at a line in the delivery.
Native history
Subscriptions began on the site and were not imported with backdated start dates.
Value drivers
Recurly dataset
Recurly types every invoice and every line, so a plan change reads from the bill
The Subscription the API returns is current state. Its plan, quantity and unit_amount are overwritten when a change takes effect, and a change set for the next bill date waits in pending_change. Earlier versions exist only in the Subscriptions - History export, which Recurly documents as activated on request and holding nothing older than April 2019. Otherwise the history is in the billing. Every Invoice has a type, charge or credit, and an origin such as purchase, renewal, immediate_change, termination, refund or write_off. Every LineItem has its own type, an origin such as plan, add_on, setup_fee or one_time, the start_date and end_date it covers, and a proration_rate.
With credit invoices on, a mid-cycle upgrade is two documents of origin immediate_change: a credit invoice for the unused part of the old plan and a charge invoice for the new one, joined by a CreditPayment when the credit is spent. A direct refund is a credit invoice of origin refund whose lines have refund set to true and a previous_line_item_id pointing at the line reversed. A credit line keeps the origin of the charge it came from, so a proration credit on a plan reads plan. Recurly has no proration origin. Upgrades, downgrades, refunds and renewals can be labeled from these documents alone.
The reading has limits. proration_rate is null on lines created before March 30, 2017. A change applied at renewal shows only as a different plan_code on the next renewal invoice. A subscriber who turns off renewal moves to canceled with a canceled_at time, keeps service until expires_at and only then becomes expired, with no invoice. Invoices created before a site had the Credit Invoices feature have the type legacy and hold charges and credits on one document, told apart by each line's legacy_category. Recurly documents the feature as on by default for sites created after May 8, 2018, so ask what share of the history is legacy.
Failed payments, dunning and what the exports carry
Each attempt to collect an invoice is a Transaction, and a failed one stays on file with Recurly's own status_code, such as insufficient_funds, the gateway's raw gateway_response_code and gateway_message, and the AVS and CVV results. Recurly's error reference sorts those codes into soft and hard declines. The category comes back with the API's transaction error and is otherwise mapped from the code, so ask which was done. The unpaid invoice moves to past_due and enters its campaign's dunning cycle. Retries arrive as new Transactions on the same invoice, and dunning_events_sent counts communications, not retries. The cycle's fail_invoice and expire_subscription settings decide whether the invoice is failed and written off and whether the subscription expires for nonpayment.
Where Intelligent Retries is on, Recurly's model picks when to retry a soft decline, so a retry model trained on those rows learns the vendor's policy. Bulk data usually comes from the site's CSV exports, run by hand or through Automated Exports. The documented Subscriptions export has no expiration reason. That column is in Subscriptions - Churned, where nonpayment is written Non-payment. Line items arrive in the Adjustments export. The Transactions export flattens the gateway response into columns such as gateway_error_codes and failure_type and carries first six and last four card digits. The older XML API gave amounts in cents where v3 gives decimals, so a delivery stitched from both can be off by a factor of one hundred. Ask which date filter, created or modified, and which time zone produced each file.
To test a sample, take one month of charge invoices. Each total should be covered by successful transactions, credit payments and the remaining balance. Every invoice that went past_due and then paid needs a declined transaction before the success. Every subscription that expired for nonpayment needs an unpaid invoice behind it. Then read the account code column, which Recurly defaults to the subscriber's email address when the business sets none.
What to check before licensing
- Have the data owner and your counsel read Recurly's terms on export of site data and on API use before agreeing extraction and scope.
- Ask when the site was created and when Credit Invoices was turned on, and count invoices of type legacy in the sample.
- Confirm the Account code was replaced, not only the id, and that emails, names, addresses, VAT numbers and the hosted login token are gone.
- Confirm BillingInfo is excluded, including gateway tokens and masked card digits, and that card digit, name and IP columns were dropped from Transactions rows.
- Ask which payment gateways the site used and when it switched, since gateway_response_code values are each gateway's own.
- Ask which export or API route produced each table and whether Subscriptions - History is activated, then reconcile one month of invoices to transactions and credit payments.
- Ask how dunning campaigns changed over the period, whether Intelligent Retries set the retry timing, and whether subscriptions were imported from another biller.
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 voluntary and involuntary churn be told apart in Recurly data?
Yes, from fields Recurly sets itself. A subscriber who chooses to leave gets a canceled_at time and the canceled state, then expires at the end of the paid term. A subscriber whose payments failed through dunning expires with a nonpayment expiration reason where the campaign is set to expire subscriptions. Ask for the campaign's end-of-cycle settings.
Can past plan changes be rebuilt if the subscription shows only current state?
Mostly, from the invoices. An immediate change writes a credit invoice and a charge invoice of origin immediate_change whose lines name the old and new plan codes. Changes with no billing effect, such as a pause, are on no invoice. They need the Subscriptions - History export, which Recurly documents as starting in April 2019, or webhook archives.
Why do some Recurly invoices have the type legacy?
They were created before the Credit Invoices feature was on for that site. Until then one invoice could mix charges and credits, so a proration credit sat beside ordinary charges. Recurly types those invoices legacy and gives each line a legacy_category of charge, credit, carryforward or applied_credit.
Are card numbers or gateway tokens in the dataset?
They should not be, and the sample is where you confirm it. Recurly's BillingInfo holds masked card digits, expiry dates and the gateway token or billing agreement, so a spec excludes that object. The Transactions export also carries first six and last four digits and a name column, so check that file too.
What do the CSV exports leave out compared with the API?
Nesting, and some fields. An export is one flat file per record type, so Adjustments and Transactions rows must be joined back to their invoice, and the gateway's response is reduced to a few columns. The documented Subscriptions export has no expiration reason. Dunning cycle settings are read from the API's DunningCampaign objects.
Is SourceX affiliated with Recurly?
Recurly is named to identify the system the records come from. That does not imply a partnership with or endorsement by Recurly. The records belong to the business that runs Recurly, 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
- Payment and card transaction records
Payment-level logs with every authorization attempt, its response, the money movement after it and the confirmed outcome
- Chargebee subscription billing records
A Chargebee site's subscriptions, catalog, invoices with dunning attempts, credit notes, gateway transactions, coupons, quotes and events
- Maxio B2B SaaS billing and revenue records
Subscription, usage, invoice and payment records from Maxio Advanced Billing, or contracts, transactions and revenue schedules from Maxio Core
- 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
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.