> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Transaction History

> Query the PlayFab Economy v2 Transaction History API to audit inventory operations, purchases, and item grants performed on a player's account.

<Info>
  Economy v2 is now Generally Available. For support and feedback, go to the [PlayFab Forum](https://community.playfab.com).
</Info>

The Economy v2 Inventory service has a Transaction History API that allows you to get a view of all the operations performed on a player's inventory. This data can be used to help track usage of game systems, troubleshoot bugs, and identify malicious actors.

Transaction Histories are grouped by a player's different Inventory Collections with each Collection having its own history. More information about using `CollectionId`s and having multiple inventories per player can be found [here](/services/playfab/economy-monetization/economy-v2/inventory/collections).

Some events such as CollectionCreated and CollectionDeleted aren't presented in the transaction history.

## Getting a Player's Transaction History

### Game Manager

1. In [Game Manager](/services/playfab/live-service-management/gamemanager), navigate to `Players`
2. Select the player you wish to view, then go to `Transaction History`

### API

You can use the `GetTransactionHistory` API to get player's transaction history. A `CollectionId` parameter is passed in to indicate which Inventory Collection's History to view. Player's are limited to only accessing their own transaction histories. Title Entities can pass in an `Entity` parameter to indicate which player's transaction history they wish to access.

The `Filter` parameter can be used to pass in timestamp constraints that allow you to see a specific time window of transactions. `Filter` only supports `timestamp ge` (greater-than-or-equal) and `timestamp le` (less-than-or-equal) and there's a maximum limit of a six-month long timestamp period for viewing transaction history.

An example `GetTransactionHistory` request:

```json theme={null}
{
    "Entity": {
        "Id": "ABCD12345678",
        "Type": "title_player_account",
    },
    "CollectionId": "default",
    "Count": 10,
    "Filter": "timestamp ge 2021-12-30T23:00Z and timestamp le 2021-12-31T23:00Z"
}
```

#### Continuation Tokens

The `ContinuationToken` field that is returned from a response can be passed into a transaction history request to paginate through multiple counts of results.


## Related topics

- [Economy V2 Limits](/services/playfab/economy-monetization/economy-v2/limits.md)
- [PFInventoryGetTransactionHistoryRequest](/services/playfab/api-references/c/pfinventorytypes/structs/pfinventorygettransactionhistoryrequest.md)
- [PFInventoryGetTransactionHistoryAsync](/services/playfab/api-references/c/pfinventory/functions/pfinventorygettransactionhistoryasync.md)
- [PFInventoryGetTransactionHistoryResponse](/services/playfab/api-references/c/pfinventorytypes/structs/pfinventorygettransactionhistoryresponse.md)
- [PFInventoryGetTransactionHistoryGetResult](/services/playfab/api-references/c/pfinventory/functions/pfinventorygettransactionhistorygetresult.md)
