> ## 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.

# items_purchased

> ItemsPurchased イベント。

インベントリからアイテムが購入されたときに発生するイベント。

## Properties

| Name              | Type                                                                                                 | Description                   |
| :---------------- | :--------------------------------------------------------------------------------------------------- | :---------------------------- |
| TransactionId     | String                                                                                               | トランザクション ID。                  |
| CollectionId      | String                                                                                               | コレクション ID。                    |
| ItemId            | String                                                                                               | アイテム ID。                      |
| StackId           | String                                                                                               | スタック ID。                      |
| Amount            | int?                                                                                                 | 購入されたアイテムの数量。                 |
| DurationInSeconds | long?                                                                                                | 購入されたアイテムの継続時間。               |
| SalePriceAmounts  | List\<[PurchasePriceAmount](/services/playfab/api-references/events/data-types/purchasepriceamount)> | アイテムが購入されたアイテムごとの価格。          |
| StoreId           | String                                                                                               | アイテムが購入されたストアの ID。ない場合は null。 |
| ItemType          | String                                                                                               | トランザクションで変更されたカタログ アイテムのタイプ。  |
| Balance           | int?                                                                                                 | トランザクションの結果として変更されたアイテムの残高。   |

## Common Properties

すべての V2 PlayStream イベントは JSON オブジェクトとして書式設定されており、ほとんどが次の共通プロパティを共有します。

| Name               | Type                                                                          | Description                                          |
| :----------------- | :---------------------------------------------------------------------------- | :--------------------------------------------------- |
| SchemaVersion      | String                                                                        | セマンティック バージョニング スキームに従った PlayStream イベント形式のバージョン。    |
| FullName           | [Object](/services/playfab/api-references/events/data-types/fullnameobject)   | イベント タイプを完全に指定するためのイベント名とイベント名前空間の組み合わせ。             |
| Id                 | String                                                                        | このイベントに対して PlayFab から割り当てられた一意の識別子。                  |
| Timestamp          | DateTime                                                                      | このイベントに関連付けられた時刻 (UTC)。                              |
| Entity             | [Object](/services/playfab/api-references/events/data-types/entityobject)     | このイベントが適用されるエンティティに関する詳細 (エンティティ ID とエンティティ タイプを含む)。 |
| Originator         | [Object](/services/playfab/api-references/events/data-types/originatorobject) | このイベントを開始したソースおよびソース タイプを説明するオブジェクト。                 |
| PayloadContentType | String                                                                        | イベント ペイロードの内容を指定します。既定値は "JSON" です。                  |
| Origin Info        | Object                                                                        | PlayFab の外部から発生したイベントに関する情報を含むオプション フィールド。           |


## Related topics

- [item_purchased](/ja-jp/services/playfab/api-references/events/CatalogV2/item-purchased.md)
- [PlayFab の PlayStream イベント モデル リファレンス](/ja-jp/services/playfab/api-references/events/index.md)
- [プレイヤー カスタム プロパティによる高度なセグメント化](/ja-jp/services/playfab/live-service-management/game-configuration/segmentation/advanced-segmentation.md)
- [ItemPurchasedCurrency データ型](/ja-jp/services/playfab/api-references/events/data-types/itempurchasedcurrency.md)
- [ItemPurchasedOverride データ型](/ja-jp/services/playfab/api-references/events/data-types/itempurchasedoverride.md)
