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

# items_subtracted

> ItemsSubtracted event.

Event raised when items have been subtracted from an inventory.

## Properties

| Name | Type | Description |
| :- | :- | :- |
| TransactionId | String | The transaction id. |
| CollectionId | String | The collection id. |
| ItemId | String | The item id. |
| StackId | String | The stack id. |
| Amount | int? | The amount of items that were subtracted. |
| DurationInSeconds | long? | The duration of the item that was subtracted. |
| ItemType | String | The type of the catalog item that was modified in the transaction. |
| Balance | int? | The balance of the items changed as a result of the transaction. |

## Common Properties

All V2 PlayStream events are formatted as JSON objects and most share the following common properties:

| Name | Type | Description |
| :- | :- | :- |
| SchemaVersion | String | PlayStream event format version, following a semantic versioning scheme. |
| FullName | [Object](https://docs.xbox.com/services/playfab/api-references/events/data-types/fullnameobject.md) | Combination of the event name and event namespace to fully specify the event type. |
| Id | String | PlayFab-assigned unique identifier for this event. |
| Timestamp | DateTime | The time (in UTC) associated with this event. |
| Entity | [Object](https://docs.xbox.com/services/playfab/api-references/events/data-types/entityobject.md) | Details about the entity to which this event applies including Entity Id and Entity type. |
| Originator | [Object](https://docs.xbox.com/services/playfab/api-references/events/data-types/originatorobject.md) | Object describing the source and source type that initiated this event. |
| PayloadContentType | String | Specifies the content of the event payload. Default is "JSON". |
| Origin Info | Object | Optional field containing info about events originating outside of PlayFab. |


## Related topics

- [PlayStream Event Model reference](https://docs.xbox.com/services/xbox-services/player-data/stats-leaderboards/event-based/events/index.md)
- [Advanced Segmentation with Player Custom Properties](https://docs.xbox.com/services/playfab/live-service-management/game-configuration/segmentation/advanced-segmentation.md)
- [Inventory Stacks](https://docs.xbox.com/services/playfab/economy-monetization/economy-v2/inventory/stacks.md)
- [Subtract User Virtual Currency](https://docs.xbox.com/services/playfab/api-references/rest/admin/player-item-management/subtract-user-virtual-currency.md)
- [Add User Virtual Currency](https://docs.xbox.com/services/playfab/api-references/rest/client/player-item-management/add-user-virtual-currency.md)
