PAY-56Required
Keep payment records for the legal period
Keep invoices, credit notes and ledger rows for the longest bookkeeping period of the countries you report in, and keep them out of account deletion.
How to do it
Bookkeeping laws set the period, such as 7 years in Sweden and 10 years in France. Germany shortened the period for invoices and receipts from 10 to 8 years in 2025. GDPR Article 17(3)(b) lets you keep data that a legal duty requires, even after an erasure request. Delete the rest of the personal data and keep the bookkeeping, as in retention jobs.
How to check
Delete a test account with paid orders. The invoices and ledger rows remain, and the profile data is gone. The retention job removes records older than the period.
Sources
Related rules
- DAT-79 Pause deletion for records under a legal hold in Data and databases
- DAT-31 Delete old data automatically in Data and databases
- USG-3 Keep raw events and derive every total from them in Usage-based billing
- SUP-5 Delete closed tickets on a schedule in Customer support
- MED-24 Store each issued document and never rebuild it in Files and media
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/payments/invoices-and-records/payment-record-retention">Agent Wranglers payments and billing playbook</a>. In code you write, add a comment next to it with the same link.