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

# 服務 C API 概觀 - PFInventory.h

> 服務 C API 概觀 - PFInventory.h

## 函式

| 函式 | 說明 |
| - | - |
| [PFInventoryAddInventoryItemsAsync](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryaddinventoryitemsasync.md) | 新增庫存項目。單一庫存集合最多可新增 10,000 個項目堆疊。堆疊大小沒有上限。 |
| [PFInventoryAddInventoryItemsGetResult](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryaddinventoryitemsgetresult.md) | 取得成功的 PFInventoryAddInventoryItemsAsync 呼叫的結果。 |
| [PFInventoryAddInventoryItemsGetResultSize](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryaddinventoryitemsgetresultsize.md) | 取得儲存 AddInventoryItems 呼叫結果所需的位元組大小。 |
| [PFInventoryDeleteInventoryCollectionAsync](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorydeleteinventorycollectionasync.md) | 刪除庫存集合。如需庫存集合的詳細資訊，請參閱：[https://learn.microsoft.com/gaming/playfab/features/economy-v2/inventory/collections](https://learn.microsoft.com/gaming/playfab/features/economy-v2/inventory/collections) |
| [PFInventoryDeleteInventoryItemsAsync](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorydeleteinventoryitemsasync.md) | 刪除庫存項目 |
| [PFInventoryDeleteInventoryItemsGetResult](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorydeleteinventoryitemsgetresult.md) | 取得成功的 PFInventoryDeleteInventoryItemsAsync 呼叫的結果。 |
| [PFInventoryDeleteInventoryItemsGetResultSize](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorydeleteinventoryitemsgetresultsize.md) | 取得儲存 DeleteInventoryItems 呼叫結果所需的位元組大小。 |
| [PFInventoryExecuteInventoryOperationsAsync](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryexecuteinventoryoperationsasync.md) | 執行庫存作業清單。單一要求最多可執行 50 個作業。單一要求中可修改/新增的項目也有 300 個的限制。例如，新增包含 50 個項目的套件組合會計為修改了 50 個項目。所有作業都必須在單一庫存集合內完成。相較於個別庫存作業，此 API 的 RPS 較低，玩家實體的限制為每 90 秒 60 個要求。 |
| [PFInventoryExecuteInventoryOperationsGetResult](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryexecuteinventoryoperationsgetresult.md) | 取得成功的 PFInventoryExecuteInventoryOperationsAsync 呼叫的結果。 |
| [PFInventoryExecuteInventoryOperationsGetResultSize](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryexecuteinventoryoperationsgetresultsize.md) | 取得儲存 ExecuteInventoryOperations 呼叫結果所需的位元組大小。 |
| [PFInventoryExecuteTransferOperationsAsync](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryexecutetransferoperationsasync.md) | 轉移庫存項目清單。單一要求最多可執行 50 個作業。當回應碼為 202 時，表示一或多個作業未在要求的時間範圍內完成。您可以尋找 OperationStatus = 'InProgress' 來識別擱置中的作業。在要求後 1 天內，您可以隨時將 TransactionToken 傳遞給 GetInventoryOperationStatus API 來檢查作業狀態。 |
| [PFInventoryExecuteTransferOperationsGetResult](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryexecutetransferoperationsgetresult.md) | 取得成功的 PFInventoryExecuteTransferOperationsAsync 呼叫的結果。 |
| [PFInventoryExecuteTransferOperationsGetResultSize](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryexecutetransferoperationsgetresultsize.md) | 取得儲存 ExecuteTransferOperations 呼叫結果所需的位元組大小。 |
| [PFInventoryGetInventoryCollectionIdsAsync](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorygetinventorycollectionidsasync.md) | 取得庫存集合識別碼。一次最多可傳回 50 個識別碼 (啟用回應壓縮時為 250 個)。您可以使用接續權杖，對傳回數量超過限制的結果進行分頁。新的集合識別碼可能需要幾秒鐘才會顯示。 |
| [PFInventoryGetInventoryCollectionIdsGetResult](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorygetinventorycollectionidsgetresult.md) | 取得成功的 PFInventoryGetInventoryCollectionIdsAsync 呼叫的結果。 |
| [PFInventoryGetInventoryCollectionIdsGetResultSize](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorygetinventorycollectionidsgetresultsize.md) | 取得儲存 GetInventoryCollectionIds 呼叫結果所需的位元組大小。 |
| [PFInventoryGetInventoryItemsAsync](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorygetinventoryitemsasync.md) | 取得目前的庫存項目。 |
| [PFInventoryGetInventoryItemsGetResult](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorygetinventoryitemsgetresult.md) | 取得成功的 PFInventoryGetInventoryItemsAsync 呼叫的結果。 |
| [PFInventoryGetInventoryItemsGetResultSize](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorygetinventoryitemsgetresultsize.md) | 取得儲存 GetInventoryItems 呼叫結果所需的位元組大小。 |
| [PFInventoryGetInventoryOperationStatusAsync](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorygetinventoryoperationstatusasync.md) | 使用 OperationToken 取得庫存作業的狀態。在要求後 1 天內，您可以隨時將 TransactionToken 傳遞給此 API 來檢查作業狀態。 |
| [PFInventoryGetInventoryOperationStatusGetResult](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorygetinventoryoperationstatusgetresult.md) | 取得成功的 PFInventoryGetInventoryOperationStatusAsync 呼叫的結果。 |
| [PFInventoryGetInventoryOperationStatusGetResultSize](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorygetinventoryoperationstatusgetresultsize.md) | 取得儲存 GetInventoryOperationStatus 呼叫結果所需的位元組大小。 |
| [PFInventoryGetTransactionHistoryAsync](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorygettransactionhistoryasync.md) | 取得玩家的交易歷程記錄。一次最多可傳回 50 個事件 (啟用回應壓縮時為 250 個)。您可以使用接續權杖，對傳回數量超過限制的結果進行分頁。取得交易歷程記錄的 RPS 限制低於取得玩家庫存，玩家實體的限制為每 300 秒 30 個要求。 |
| [PFInventoryGetTransactionHistoryGetResult](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorygettransactionhistorygetresult.md) | 取得成功的 PFInventoryGetTransactionHistoryAsync 呼叫的結果。 |
| [PFInventoryGetTransactionHistoryGetResultSize](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorygettransactionhistorygetresultsize.md) | 取得儲存 GetTransactionHistory 呼叫結果所需的位元組大小。 |
| [PFInventoryPurchaseInventoryItemsAsync](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorypurchaseinventoryitemsasync.md) | 購買項目或套件組合。單一庫存集合最多可新增 10,000 個項目堆疊。堆疊大小沒有上限。 |
| [PFInventoryPurchaseInventoryItemsGetResult](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorypurchaseinventoryitemsgetresult.md) | 取得成功的 PFInventoryPurchaseInventoryItemsAsync 呼叫的結果。 |
| [PFInventoryPurchaseInventoryItemsGetResultSize](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorypurchaseinventoryitemsgetresultsize.md) | 取得儲存 PurchaseInventoryItems 呼叫結果所需的位元組大小。 |
| [PFInventoryRedeemAppleAppStoreInventoryItemsAsync](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemappleappstoreinventoryitemsasync.md) | 兌換項目。 |
| [PFInventoryRedeemAppleAppStoreInventoryItemsGetResult](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemappleappstoreinventoryitemsgetresult.md) | 取得成功的 PFInventoryRedeemAppleAppStoreInventoryItemsAsync 呼叫的結果。 |
| [PFInventoryRedeemAppleAppStoreInventoryItemsGetResultSize](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemappleappstoreinventoryitemsgetresultsize.md) | 取得儲存 RedeemAppleAppStoreInventoryItems 呼叫結果所需的位元組大小。 |
| [PFInventoryRedeemGooglePlayInventoryItemsAsync](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemgoogleplayinventoryitemsasync.md) | 兌換項目。 |
| [PFInventoryRedeemGooglePlayInventoryItemsGetResult](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemgoogleplayinventoryitemsgetresult.md) | 取得成功的 PFInventoryRedeemGooglePlayInventoryItemsAsync 呼叫的結果。 |
| [PFInventoryRedeemGooglePlayInventoryItemsGetResultSize](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemgoogleplayinventoryitemsgetresultsize.md) | 取得儲存 RedeemGooglePlayInventoryItems 呼叫結果所需的位元組大小。 |
| [PFInventoryRedeemMicrosoftStoreInventoryItemsAsync](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemmicrosoftstoreinventoryitemsasync.md) | 兌換來自 Microsoft Store 的項目。支援的權利類型為 Developer Manager Consumable 和 Durable。 |
| [PFInventoryRedeemMicrosoftStoreInventoryItemsGetResult](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemmicrosoftstoreinventoryitemsgetresult.md) | 取得成功的 PFInventoryRedeemMicrosoftStoreInventoryItemsAsync 呼叫的結果。 |
| [PFInventoryRedeemMicrosoftStoreInventoryItemsGetResultSize](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemmicrosoftstoreinventoryitemsgetresultsize.md) | 取得儲存 RedeemMicrosoftStoreInventoryItems 呼叫結果所需的位元組大小。 |
| [PFInventoryRedeemNintendoEShopInventoryItemsAsync](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemnintendoeshopinventoryitemsasync.md) | 兌換項目。 |
| [PFInventoryRedeemNintendoEShopInventoryItemsGetResult](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemnintendoeshopinventoryitemsgetresult.md) | 取得成功的 PFInventoryRedeemNintendoEShopInventoryItemsAsync 呼叫的結果。 |
| [PFInventoryRedeemNintendoEShopInventoryItemsGetResultSize](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemnintendoeshopinventoryitemsgetresultsize.md) | 取得儲存 RedeemNintendoEShopInventoryItems 呼叫結果所需的位元組大小。 |
| [PFInventoryRedeemPlayStationStoreInventoryItemsAsync](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemplaystationstoreinventoryitemsasync.md) | 兌換項目。 |
| [PFInventoryRedeemPlayStationStoreInventoryItemsGetResult](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemplaystationstoreinventoryitemsgetresult.md) | 取得成功的 PFInventoryRedeemPlayStationStoreInventoryItemsAsync 呼叫的結果。 |
| [PFInventoryRedeemPlayStationStoreInventoryItemsGetResultSize](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemplaystationstoreinventoryitemsgetresultsize.md) | 取得儲存 RedeemPlayStationStoreInventoryItems 呼叫結果所需的位元組大小。 |
| [PFInventoryRedeemSteamInventoryItemsAsync](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemsteaminventoryitemsasync.md) | 兌換項目。 |
| [PFInventoryRedeemSteamInventoryItemsGetResult](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemsteaminventoryitemsgetresult.md) | 取得成功的 PFInventoryRedeemSteamInventoryItemsAsync 呼叫的結果。 |
| [PFInventoryRedeemSteamInventoryItemsGetResultSize](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemsteaminventoryitemsgetresultsize.md) | 取得儲存 RedeemSteamInventoryItems 呼叫結果所需的位元組大小。 |
| [PFInventorySubtractInventoryItemsAsync](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorysubtractinventoryitemsasync.md) | 扣除庫存項目。 |
| [PFInventorySubtractInventoryItemsGetResult](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorysubtractinventoryitemsgetresult.md) | 取得成功的 PFInventorySubtractInventoryItemsAsync 呼叫的結果。 |
| [PFInventorySubtractInventoryItemsGetResultSize](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorysubtractinventoryitemsgetresultsize.md) | 取得儲存 SubtractInventoryItems 呼叫結果所需的位元組大小。 |
| [PFInventoryTransferInventoryItemsAsync](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorytransferinventoryitemsasync.md) | 轉移庫存項目。在集合之間轉移時，202 回應表示轉移未在要求的時間範圍內完成。您可以尋找 OperationStatus = 'InProgress' 來識別擱置中的作業。在要求後 1 天內，您可以隨時將 TransactionToken 傳遞給 GetInventoryOperationStatus API 來檢查作業狀態。如需項目轉移案例的詳細資訊，請參閱：[https://learn.microsoft.com/gaming/playfab/features/economy-v2/inventory/?tabs=inventory-game-manager#transfer-inventory-items](https://learn.microsoft.com/gaming/playfab/features/economy-v2/inventory/?tabs=inventory-game-manager#transfer-inventory-items) |
| [PFInventoryTransferInventoryItemsGetResult](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorytransferinventoryitemsgetresult.md) | 取得成功的 PFInventoryTransferInventoryItemsAsync 呼叫的結果。 |
| [PFInventoryTransferInventoryItemsGetResultSize](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorytransferinventoryitemsgetresultsize.md) | 取得儲存 TransferInventoryItems 呼叫結果所需的位元組大小。 |
| [PFInventoryUpdateInventoryItemsAsync](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryupdateinventoryitemsasync.md) | 更新庫存項目 |
| [PFInventoryUpdateInventoryItemsGetResult](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryupdateinventoryitemsgetresult.md) | 取得成功的 PFInventoryUpdateInventoryItemsAsync 呼叫的結果。 |
| [PFInventoryUpdateInventoryItemsGetResultSize](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryupdateinventoryitemsgetresultsize.md) | 取得儲存 UpdateInventoryItems 呼叫結果所需的位元組大小。 |


## Related topics

- [服務 C API 概觀 - PFInventoryTypes.h](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventorytypes/pfinventorytypes_members.md)
- [PFInventorySubtractInventoryItemsAsync](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorysubtractinventoryitemsasync.md)
- [PFInventoryTransferInventoryItemsAsync](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorytransferinventoryitemsasync.md)
- [PFInventoryUpdateInventoryItemsAsync](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventoryupdateinventoryitemsasync.md)
- [PFInventoryGetInventoryItemsAsync](https://docs.xbox.com/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorygetinventoryitemsasync.md)
