• Home
  • Blog
  • Purchase and Payment Records No Longer Live Forever

Purchase and Payment Records No Longer Live Forever

A pixel-art database, an archive box and an hourglass, joined by arrows.

A player buys a cosmetic in your store. Three years later they've moved on, maybe asked you to delete their account, and the payment record is still sitting in the same live database as today's purchases. So is every payment, wallet transaction and consumed entitlement your game has ever produced.

Then a privacy officer, an auditor or a large customer asks a simple question: how long do you keep this? Until now, the answer for most Online package data was "indefinitely", and there was no way to make it anything else.

That changes with Data Retention for the Online package in AGS. It's rolling out environment by environment now. There's nothing to set up, but one API behavior changes, covered under Before It Runs.

Why Records Piled Up

The Monetization and Stats services shipped with no retention policy. A record was written on every purchase and every stat cycle, and never removed. Two problems grow out of that.

The first is cost. Say a player buys an item in year one. In year two, the record is still queried now and then for a refund or a support ticket. By year four nobody touches it, but it still sits in the same high-performance database as this week's orders, at that database's price. Multiply that by every player who ever left, and a large share of the storage is data nobody reads.

The second is compliance. Storage-limitation rules such as GDPR's say personal data shouldn't be kept longer than its purpose requires. A purchase record tied to a player who left three years ago is hard to defend when there's no schedule for when it goes. A privacy team usually finds this out at the worst moment: during a data subject request or a vendor review, with no deletion policy to point to.

How Data Retention Works

Once your environment is on it, a scheduled job runs once a month across your Monetization and Stats data. It checks the age and status of each record. Records past their live-database window move to archive storage. Records past their full retention period are deleted.

Three details matter here.

Archived records are kept intact. Nothing is masked, anonymized or summarized. A three-year-old payment record in the archive is the same record, field for field, that it was in the live database. That's deliberate: when Finance needs it for a tax audit, or Support needs it for a late chargeback, authorized staff can retrieve the full record.

One retention period per record type. The same schedule applies to every environment:

RECORD TYPE LIVE DATABASE KEPT FOR
Payment orders 2 years 10 years
Charged and refunded order events 1 year 10 years
Paid virtual currency transactions 1 year 10 years
Free or gifted virtual currency transactions 1 year 3 years
Operational order events 1 year 2 years
Consumed or revoked entitlements 90 days 1 year
Finished stat cycles 90 days 1 year


The live database column is how long a record stays there before it moves to the archive. These are configured periods, not to-the-day guarantees. The job runs monthly and the deletion clock starts when a record is archived, so a record can be kept up to about a month longer. Records that were already past their live window when the rollout reached your environment are kept longer still.

Deletion is final. When a record passes its retention period, it's permanently deleted from archive storage by an automatic expiration rule, so it can't be recovered. Each run writes an append-only audit log of what was archived, retrieved and deleted, as evidence that the policy is enforced.

A cleanup script deletes old rows. A retention policy decides, for every record, where it lives and when it ends.

Players never see any of this. Wallet balances are stored separately from transaction history and aren't recalculated from it, so balances don't change. Active entitlements, all-time stats and leaderboard rankings aren't touched. The job reads from a replica and writes in throttled batches, to keep its load away from live traffic.

What You Get

  • A retention policy you can point to:
    every record type it covers has a documented lifetime, enforced automatically every month.

  • Less data in the live database:
    records older than their live window move out of the high-performance database.

  • Full-fidelity retrieval:
    archived payment and transaction records can be restored unchanged for audits, refunds and disputes.

  • Legal hold:
    records involved in litigation, an audit or an investigation can be put on hold while they're still in the live database. Held records are archived separately and aren't deleted until the hold is released.

  • Erasure that respects both obligations:
    when a player asks for deletion, their data leaves every live surface. Any record you're legally required to keep is access-restricted until its retention period ends, then hard-deleted.

Built for More than Storage Cleanup

  • Privacy reviews:
    answer "how long do you keep purchase data?" with a schedule.

  • Tax and financial audits:
    produce the original record for any transaction within the statutory period.

  • Late disputes and refunds:
    retrieve a payment record that left the live database months ago, without digging through a production database.

  • Litigation and investigations:
    put specific records on legal hold, so routine deletion can't remove evidence.

  • Player erasure requests:
    honor the request on every live surface, while keeping only what the law requires you to keep.

Before It Runs

A few things worth knowing first:

  • Check one API change.
    Once your environment is on Data Retention, endpoints that list a player's entitlements with activeOnly=false no longer return consumed or revoked entitlements older than 90 days, because those have moved to the archive. Active entitlements aren't affected. If a support tool shows full entitlement history, expect it to stop at 90 days.

  • Nothing to set up.
    There's no toggle and no SDK change.

  • Know who can get a record back.
    Retrieval and legal hold are handled by authorized AccelByte staff, and every request is logged.

  • Check the schedule against your markets.
    The same retention periods apply to every environment. If a market you operate in requires something different, raise it with us before you rely on this as your only retention control.

This doesn't make financial records disappear sooner: core records are still kept for ten years. It also doesn't cover the order record itself, which stays in the live database. What it adds is an end date, an archive that stays out of your live database, and a log that shows both. Answering an auditor goes from searching a production database to pulling the record.

Availability

Rolling out to AGS Public Cloud and Private Cloud environments in stages. The rollout began November 9, 2026. Public Cloud and the first Private Cloud environments reach full operation by December 10, 2026, and the remaining Private Cloud environments follow from January 18 to early March 2027. Data Retention ships as its own service, not as part of an AGS version.

Try It, Then Tell Us

If you run a privacy or compliance review, add the retention schedule above to your data inventory for Monetization and Stats. If you build support tooling on entitlement history, test it against the 90-day cutoff before your environment switches over (see Availability). Questions about the schedule, retrieval or legal hold: tell us on Discord.

Know How Long Your Player Data Lives

Data Retention gives Monetization and Stats records a documented lifetime on AGS, with nothing to set up. Questions about the schedule, retrieval or legal hold? Talk to us. New to AGS? Start on Public Cloud.

You're almost signed up!

Verify your account by following the instructions sent to .

If you still haven't received an email, please check your spam folder.

Please provide a valid name.

Please provide a valid email address.

Please provide a valid studio name.

You must agree to the policy to continue.

Talk to us

Table of Contents

Bring your first player online today.

Get started for free, and scale as your game grows.

Or talk to us

Ask AccelByte

What can we help you find out?

  1. What would you like to know?

    Ask about our products, pricing, or how to get started.