Exporting your data from a Stripe account before closing it: what the CSV and API exports contain and what you lose
Before clicking 'Close account' in your Stripe Dashboard, export these 7 core datasets. The exact CSV schemas, Stripe API pagination script, IRS 7-year audit requirements, card token migration protocols, and what is permanently lost.

When closing an LLC, winding down a side project, or migrating to a different payment gateway, founders often head to Stripe settings and click 'Close account' without realizing that account closure is permanent and immediate. Unlike personal email or consumer accounts that leave an archived read-only portal, closing a Stripe account revokes your dashboard access on the spot and immediately deactivates all API keys.
If you shut down the account before archiving your records, you cannot download transaction receipts, verify fee deductions during an IRS audit, reconcile payout deposits against your business bank account, or defend chargebacks that arrive up to 120 days later. Here is the worked checklist of every dashboard export to download, the Stripe API backup script for custom metadata, the statutory seven-year retention rules, and the data you lose permanently once the account closes.
If you are shutting down a company entity alongside Stripe, see our US LLC dissolution guide. For reconstructing transactions on past missed corporate filings, read our Form 5472 bank and Stripe reconstruction guide. If you are updating business contact records, review our foreign-owned LLC address and Form 8822-B guide.
What is permanently lost when a Stripe account is closed
Stripe's account closure is a hard termination. Once confirmed under Settings > Business > Account details > Close account, the following assets and capabilities are permanently locked or deleted:
| Asset or capability | Status after closure | Consequence for the business |
|---|---|---|
| Dashboard access | Terminated immediately | No web sign-in; cannot view past transactions, customer profiles, or disputes. |
| API keys (Live & Test) | Revoked immediately | All secret, publishable, and restricted keys stop working instantly (returns 401 Unauthorized). |
| Stored credit card tokens | Purged / Unmigratable | Customer card details cannot be exported in plain text or migrated to a new processor once closed. |
| Dispute defense | Disabled | Cannot upload evidence or contest chargebacks that arrive 30–120 days after closure. |
| Hosted invoice links | Broken | Links sent to customers (invoice.stripe.com/...) fail; past receipts cannot be regenerated. |
| Webhook history & logs | Deleted | Historical webhook payloads and delivery logs are purged from the platform. |
| Refund processing | Disabled | Cannot issue voluntary refunds through the platform; customers must seek manual bank transfers. |
| Tax forms (1099-K) | Unreachable via UI | Historical Form 1099-K PDFs cannot be downloaded self-serve; requires manual support tickets. |
Contacting Stripe Support after an account is closed to recover lost records is slow and often unavailing. Stripe support agents must run through identity reverification protocols, and internal tooling frequently can only provide high-level monthly balance summaries rather than granular itemized transaction histories.
The 7 core Stripe Dashboard exports to download
Before starting the closure flow, log into your Stripe Dashboard and navigate to each of the following seven sections. In each section, set the date filter to 'All time' and export full CSV files to a secure local folder.
| # | Report section | Dashboard navigation path | Primary columns included | Why you need it |
|---|---|---|---|---|
| 1 | Payments / Charges | Payments > Export (select 'All') | id, Amount, Currency, Status, Fee, Net, Customer ID, Customer Email, Card Brand, Card Last4, Refunded | Proof of gross customer revenue, refunds, and payment methods for revenue audits. |
| 2 | Balance history | Balances > Balance history > Export | id, Type, Gross, Fee, Net, Created (UTC), Available On, Description, Source ID, Reporting Category | The fundamental audit ledger: tracks every fee deduction, currency conversion, and balance adjustment. |
| 3 | Payouts | Balances > Payouts > Export | id, Amount, Currency, Status, Initiated (UTC), Arrival Date, Destination Bank Last4, Type | Directly reconciles with deposits appearing on your business bank account statements. |
| 4 | Customers | Customers > Export | id, Email, Description, Created (UTC), Delinquent, Address, Currency, Account Balance | Maintains your customer roster, contact emails, and billing country metadata for tax nexus. |
| 5 | Invoices | Billing > Invoices > Export | id, Number, Customer ID, Status, Total, Amount Due, Amount Paid, Tax, Period Start, Period End | Substantiates recurring B2B sales and sales tax collected across billing cycles. |
| 6 | Disputes & Chargebacks | Payments > Disputes > Export | id, Charge ID, Amount, Currency, Status, Reason, Created (UTC), Evidence Due | Explains dispute losses, chargeback fees ($15 per incident), and unrecovered balances. |
| 7 | Financial & Tax Reports | Reports > Financial reports | Monthly Balance Summary, Payout Reconciliation, and annual Form 1099-K PDFs (under Settings > Documents) | Essential for CPA corporate tax filing (Form 1120 / Form 5472) and IRS reporting reconciliation. |
For the Payments export, ensure you select 'Export all columns' in the pop-up modal rather than the default view. The custom column selector ensures metadata attributes, statement descriptors, failure codes, and dispute statuses are captured in the CSV.
The seven-year statutory tax retention requirements
Why must you keep Stripe transaction records for seven years? Both federal tax law and state revenue departments enforce strict record retention schedules. Under IRS rules, the burden of proof is entirely on the taxpayer to substantiate every dollar of gross receipts and deductible platform expenses.
| Authority & rule | Statutory retention period | Trigger or requirement | Stripe records required for defense |
|---|---|---|---|
| IRS Standard Audit Window IRC § 6501(a) | 3 years from filing date | Standard federal audit examination period for corporate and partnership returns. | Annual Form 1099-K, Balance Summary report, total gross charges vs bank deposits. |
| IRS Substantial Omission IRC § 6501(e)(1) | 6 years from filing date | Triggered if gross income is understated by more than 25% (often due to gross vs net confusion). | Complete Payments CSV and Balance History showing gross sales before Stripe fee subtractions. |
| IRS Worthless Debts & Losses IRC § 6511(d)(1) | 7 years from filing date | Claiming bad debt deductions, uncollectible invoice write-offs, or worthless securities. | Invoices CSV with status uncollectible, dispute export, and customer payment failure logs. |
| Foreign-Owned US LLCs IRC § 6038A (Form 5472) | Permanent / Statutory ($25,000 penalty) | Must maintain books and records substantiating all foreign related-party transactions. | Payouts CSV and bank transfer logs confirming owner distributions vs third-party revenue. |
| State Tax Departments (California FTB, NY DTF) | 4 to 6 years | California Franchise Tax Board (4 years) and New York (3–6 years) state corporate audits. | Customer billing address CSV to prove economic nexus and state apportionment percentages. |
A common mistake founders make during tax filings is reporting their net Stripe payouts as gross business revenue. Payouts reflect gross customer charges minus Stripe processing fees, refunds, and dispute holds. If your 1099-K reports $150,000 in gross charges but your bank account only shows $145,000 in payouts, the IRS Automated Underreporter (AUR) system flags an unresolved discrepancy. Having the Balance History CSV allows your CPA to report $150,000 in gross sales and $5,000 in deductible merchant processing fees on Form 1120.
Extracting nested metadata and objects with the Stripe API
Standard Dashboard CSVs have limitations: they cap exports at 100,000 rows, flatten complex structured data, and frequently truncate custom metadata dictionaries into unparsed strings. If your application attached critical metadata (such as internal user UUIDs, license keys, or multi-item order breakdowns), downloading the raw JSON objects via the Stripe API before closing the account is vital.
Here is an autonomous Python script using Stripe's official SDK that paginates through all charges, customers, payouts, and invoices, saving full JSON files locally:
Run this script using a restricted API key that has Read permissions on Core, Billing, and Reporting resources. Keep the resulting JSON files encrypted on cold storage (such as a private cloud bucket or offline encrypted disk) alongside your business tax records.
Migrating credit card tokens to another payment provider
If you are switching from Stripe to another processor (such as Adyen, Braintree, or Shopify Payments), you cannot simply export credit card numbers. Credit card data is protected under PCI DSS Level 1 security rules. Stripe will never provide raw card numbers (PANs) or CVVs to merchant owners.
To transfer your existing customer cards without forcing your subscribers to re-enter payment details, you must complete a formal Stripe Data Migration before closing your account:
- Initiate the export request while open: Contact Stripe Support or navigate to the Data Migration tool in your dashboard. You cannot initiate a migration once the account is in closure status.
- Provide recipient processor details: You must provide your new processor's active PCI Attestation of Compliance (AOC) and their 4096-bit PGP public encryption key.
- Stripe-to-processor secure transfer: Stripe's data security team encrypts the raw card vault data using the recipient processor's PGP key and transmits it directly via SFTP.
- Processing timeline: Card migrations require 10 to 14 business days. Keep your Stripe account open and active until the destination processor confirms that all card tokens have been successfully imported and mapped to your new customer records.
The trailing chargeback risk: why you must keep your bank open
Even after you close your Stripe account, your financial liability does not vanish. Card network rules (Visa, Mastercard, American Express) permit cardholders to file disputes 120 days after a purchase—or 120 days after the expected date of service delivery for subscription software.
When a chargeback occurs on a closed Stripe account:
- Stripe attempts automated ACH debits: Stripe will attempt to debit the disputed amount plus the standard dispute fee ($15.00) from the linked business bank account on file.
- Closing the bank account simultaneously causes failures: If you close the LLC bank account on the exact same day you close Stripe, the ACH debit fails. Stripe's automated risk systems flag the account for collections.
- Owner liability and MATCH list risk: Because the account owner provided personal verification (SSN or passport), Stripe may assign the unpaid debt to collections or report excessive unhandled chargebacks to the Member Alert to Control High-risk Merchants (MATCH) list, damaging your ability to open merchant accounts in the future.
- The safe buffer strategy: Stop taking charges, cancel all subscriptions, wait 60 to 90 days for trailing refund requests and disputes to settle, and only then proceed with closing the Stripe account and linked bank account.
Pre-closure shutdown checklist
Follow this exact sequence to shut down your Stripe merchant account cleanly:
- Disable public checkout & subscriptions: Remove your Stripe publishable keys from your web application, cancel active recurring subscriptions in Stripe Billing, and disable payment forms to ensure zero incoming transactions.
- Download the 7 Dashboard CSV reports: Export Payments, Balance History, Payouts, Customers, Invoices, Disputes, and Financial Reports across 'All time'.
- Run the API backup script: Execute the automated pagination script to archive raw JSON payloads for all custom metadata.
- Archive annual Form 1099-K documents: Download all generated Form 1099-K tax documents from Settings > Documents.
- Wait for the final payout to clear: Allow your rolling payout schedule (typically 2 to 7 business days) to transfer all funds until your Stripe account balance is exactly $0.00.
- Complete credit card data migration (if switching): If moving subscribers to another platform, complete the PGP data transfer before clicking close.
- Wait out the 60-day dispute buffer: Allow trailing disputes and refund requests to settle while your linked bank account remains open.
- Execute account closure: In the Stripe Dashboard, go to Settings > Business > Account details, scroll to the bottom, and click Close account. Confirm the confirmation prompt to finalize.