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

# character_vc_item_purchased

> character_vc_item_purchased 事件。

角色使用虛擬貨幣進行購買時，會觸發此事件。

## 屬性

| 名稱 | 類型 | 描述 |
| :- | :- | :- |
| CatalogVersion | String | 購買項目所在之目錄的版本。 |
| CurrencyCode | String | 用來購買項目的貨幣。 |
| ItemId | String | 已購買之目錄項目的識別碼。 |
| PlayerId | String | |
| PurchaseId | String | 購買交易的唯一識別碼。 |
| Quantity | int32 | 已購買項目的數量。 |
| StoreId | String | 購買項目所在的 StoreId。 |
| TitleId | String | |
| UnitPrice | uint32 | 每個項目支付的價格，以虛擬貨幣表示。 |

## 通用屬性

所有 V1 PlayStream 事件都會格式化為 JSON 物件，並共用下列通用屬性：

| 名稱 | 類型 | 描述 |
| :- | :- | :- |
| EntityId | String | 此事件所套用之實體 (遊戲、玩家等) 的識別碼。 |
| EntityType | String | 此事件所套用之實體的類型 (玩家、遊戲等)。如果 PlayFab 要對此實體採取動作，則 EntityType 必須是 'player'、'character' 或 'title'。PlayFab 目前不會剖析的任何實體類型，都必須在前面加上命名空間 (例如 'com.mygame.guild')，因為 PlayFab 可能隨時開始剖析根實體。 |
| EventId | String | PlayFab 為此事件指派的唯一識別碼。 |
| EventName | String | 此事件的名稱。 |
| EventNamespace | String | 為此事件指派的命名空間。例如：'com.myprogram.ads' |
| Source | String | 此 PlayStream 事件的來源名稱；如果事件源自我們，則會是 PlayFab。 |
| SourceType | [SourceType](/zh-TW/services/playfab/api-references/events/data-types/sourcetype) | 此事件的來源類型 (PlayFab 合作夥伴、其他後端，或來自 PlayFab API)。 |
| Timestamp | DateTime | 與此事件相關聯的時間 (UTC)。 |


## Related topics

- [PlayFab 2017 版本資訊](/zh-TW/services/playfab/release-notes/2017.md)
- [PlayFab 2016 年版本資訊](/zh-TW/services/playfab/release-notes/2016.md)
- [事件](/zh-TW/services/xbox-services/player-data/stats-leaderboards/event-based/events/index.md)
- [PlayFab 的 PlayStream 事件模型參考](/zh-TW/services/playfab/api-references/events/index.md)
- [player_vc_item_purchased](/zh-TW/services/playfab/api-references/events/Player/player-vc-item-purchased.md)
