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

# PFInventoryTransferInventoryItemsAsync

> インベントリ アイテムを転送します。コレクション間で転送する場合、202 応答は、リクエストの制限時間内に転送が完了しなかったことを示します。

インベントリ アイテムを転送します。コレクション間で転送する場合、202 応答は、リクエストの制限時間内に転送が完了しなかったことを示します。保留中の操作は OperationStatus = 'InProgress' を探すことで識別できます。TransactionToken を GetInventoryOperationStatus API に渡すことで、リクエストから 1 日以内であればいつでも操作ステータスを確認できます。アイテム転送シナリオの詳細については、次のページを参照してください: [/services/playfab/economy-monetization/economy-v2/inventory/?tabs=inventory-game-manager#transfer-inventory-items](https://docs.xbox.com/ja-jp/services/playfab/economy-monetization/economy-v2/inventory.md#transfer-inventory-items)

## 構文

```cpp theme={null}
HRESULT PFInventoryTransferInventoryItemsAsync(  
    PFEntityHandle entityHandle,  
    const PFInventoryTransferInventoryItemsRequest* request,  
    XAsyncBlock* async  
)  
```

### パラメーター

**`entityHandle`**   PFEntityHandle

認証に使用する PFEntityHandle。

**`request`**   [PFInventoryTransferInventoryItemsRequest\*](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfinventorytypes/structs/pfinventorytransferinventoryitemsrequest.md)

値が設定されたリクエスト オブジェクト。

**`async`**   XAsyncBlock\*\
*Inout*

非同期操作用の XAsyncBlock。

### 戻り値

型: HRESULT

この API 操作の結果コード。

## 解説

この API はすべてのプラットフォームで利用できます。あるエンティティのコンテナー Id にある指定のインベントリ アイテムを、別のエンティティのコンテナー Id に転送します。非同期タスクが完了したら、[PFInventoryTransferInventoryItemsGetResultSize](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfinventory/functions/pfinventorytransferinventoryitemsgetresultsize.md) と [PFInventoryTransferInventoryItemsGetResult](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfinventory/functions/pfinventorytransferinventoryitemsgetresult.md) を呼び出して結果を取得します。

## 要件

**ヘッダー:** PFInventory.h

## 関連項目

[PFInventory のメンバー](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfinventory/pfinventory_members.md)


## Related topics

- [PFInventoryTransferInventoryItemsGetResult](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfinventory/functions/pfinventorytransferinventoryitemsgetresult.md)
- [Services C API overview - PFInventory.h](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfinventory/pfinventory_members.md)
- [Transfer Inventory Items](https://docs.xbox.com/api-reference/inventory/transfer-inventory-items.md)
- [PFInventoryTransferInventoryItemsOperation](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfinventorytypes/structs/pfinventorytransferinventoryitemsoperation.md)
- [PFInventoryTransferInventoryItemsResponse](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pfinventorytypes/structs/pfinventorytransferinventoryitemsresponse.md)
