Google Play Purchase History.json Explained
Purchase History.json is the heart of a Google Play Takeout export: the machine-readable list of what you acquired and when. This page explains its role and general structure, with an important caveat about guarantees.
First, the caveat: no published schema
Google does not publish a formal, versioned schema for the Play Takeout files. Everything below describes the structure as observed in real exports, ours and those documented by the community. Fields can differ between accounts, content types and time periods, and Google can change them without notice. Any statement here is "typically present", never "contractually guaranteed".
What the file is for
Within the Google Play Store folder of your export, Purchase History.json records acquisitions: depending on the account, apps and games, in-app purchases, subscriptions. Think of it as the what and when, and often the how much too: in the real export we verified, every entry carried a price. The sibling file, Order History.json, holds the order ledger: amounts, currency, payment and refund related fields.
General structure
The file is a JSON array of records. Each record describes one acquisition and typically carries:
- A document description: the item's title and its type (in the verified export, a
documentTypefield such as "In App Item"). - A purchase timestamp: when the acquisition happened, in UTC in the verified export.
- A price: in the verified export, an
invoicePricefield, formatted text with the currency symbol (for example "€5.49") and no separate currency code.
Google publishes no schema for Takeout files, so nothing guarantees a price in every entry of every export. In the real export we verified, all 31 Purchase History entries carried a price, and Order History carried amounts for its 10 orders, 9 of which matched a Purchase History entry exactly, to the millisecond and the cent: adding the two files together would have counted those purchases twice. Google's developer documentation for Google Play data also lists invoicePrice among the key fields of Google Play purchases, but it describes an API for developers, a different channel from Takeout, and does not guarantee what a Takeout export contains.
What a record looks like
The snippet below uses the key names and nesting of the real export we verified, with invented values: it is not real user data, and the payment label has been left out on purpose.
[
{
"purchaseHistory": {
"invoicePrice": "€4.99",
"paymentMethodTitle": "…",
"userLanguageCode": "en_GB",
"userCountry": "GB",
"doc": {
"documentType": "In App Item",
"title": "Coin Pack (fictional)"
},
"purchaseTime": "2021-11-02T09:05:12.345Z"
}
}
]
Field by field
What each key held in the verified export, and what App Purchase Vault does with it. Google can rename or drop any of them without notice.
| Key | What it holds | What App Purchase Vault does with it |
|---|---|---|
purchaseTime | When the purchase happened: an ISO 8601 date in UTC, with milliseconds | The purchase date |
doc.title | The item's name: an app, or an in-app item such as a coin pack | The item name. The app it belongs to is filled in only when the export gives enough evidence; otherwise it stays unidentified, never guessed |
doc.documentType | The kind of item, for example In App Item or Android Apps | The type: app, in-app purchase, subscription… |
invoicePrice | The price as text with its currency symbol, for example "€5.49"; no separate currency code | Amount and currency. For a bare $, the record's country is used to tell which dollar it is |
userCountry | A country code, for example FR | Kept and shown as the purchase country |
userLanguageCode | A language and region code, for example fr_FR | Kept, never displayed |
paymentMethodTitle | A payment label: a card network with its last digits, or a carrier billing label | Never stored as written: reduced to a card network and its last 4 digits, or a carrier name, and not shown in the app |
purchaseState | Absent from every record we have seen | Nothing is inferred: no "paid" or "completed" status is ever shown |
Apps, IAP, subscriptions
In observed exports, the purchase-type information is what lets you separate the three big categories people care about:
| Category | What a record represents | Watch out for |
|---|---|---|
| Apps & games | One-time acquisition of an app or game (paid or free) | Free apps may appear too: acquisition ≠ payment |
| In-app purchases | Items bought inside an app | The record names the item; the parent app may need inference from the title |
| Subscriptions | Subscription-related events | Renewals vs. the initial subscription can be recorded differently; compare with Order History before totalling |
Fields a viewer should ignore
Order History.json can carry payment-method related fields, and so can Purchase History.json (a paymentMethodTitle field in the verified export). A well-behaved viewer or parser should drop these during parsing: never display them, never store them. The useful history is "what, when, how much". Card details add nothing to that, only risk.
The same discipline applies to sharing: a purchase history is personal data. Keep exports local, and treat any tool that wants to upload them with suspicion.
orderId, creationTime, totalPrice, tax, refundAmount, the country and each line item's title and type; contact, billing-instrument and IP address fields are never read. Sensitive payment fields are discarded at parse time. The tolerance for schema variation described above is a design requirement, not an afterthought.We handle the JSON.
App Purchase Vault is on Google Play: pick the ZIP and it reads these files for you, on your phone only.