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

# PFInventoryAddInventoryItemsAsync

> Add inventory items. Up to 10,000 stacks of items can be added to a single inventory collection. Stack size is uncapped.

Add inventory items. Up to 10,000 stacks of items can be added to a single inventory collection. Stack size is uncapped.

## Syntax

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

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle to use for authentication.

**`request`**   [PFInventoryAddInventoryItemsRequest\*](/services/playfab/api-references/c/pfinventorytypes/structs/pfinventoryaddinventoryitemsrequest)

Populated request object.

**`async`**   XAsyncBlock\*<br />*Inout*

XAsyncBlock for the async operation.

### Return value

Type: HRESULT

Result code for this API operation.

## Remarks

This API is available on all platforms. Given an entity type, entity identifier and container details, will add the specified inventory items. When the asynchronous task is complete, call [PFInventoryAddInventoryItemsGetResultSize](/services/playfab/api-references/c/pfinventory/functions/pfinventoryaddinventoryitemsgetresultsize) and [PFInventoryAddInventoryItemsGetResult](/services/playfab/api-references/c/pfinventory/functions/pfinventoryaddinventoryitemsgetresult) to get the result.

## Requirements

**Header:** PFInventory.h

## See also

[PFInventory members](/services/playfab/api-references/c/pfinventory/pfinventory_members)


## Related topics

- [PFInventoryAddInventoryItemsGetResult](/services/playfab/api-references/c/pfinventory/functions/pfinventoryaddinventoryitemsgetresult.md)
- [Services C API overview - PFInventory.h](/services/playfab/api-references/c/pfinventory/pfinventory_members.md)
- [PFInventoryAddInventoryItemsGetResultSize](/services/playfab/api-references/c/pfinventory/functions/pfinventoryaddinventoryitemsgetresultsize.md)
- [PFInventoryAddInventoryItemsRequest](/services/playfab/api-references/c/pfinventorytypes/structs/pfinventoryaddinventoryitemsrequest.md)
- [PFInventoryAddInventoryItemsOperation](/services/playfab/api-references/c/pfinventorytypes/structs/pfinventoryaddinventoryitemsoperation.md)
