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

# PFInventoryRedeemAppleAppStoreInventoryItemsAsync

> Redeem inventory items from the Apple App Store for an entity. Available on Windows and iOS; get the result size and result after the async task completes.

Redeem items.

## Syntax

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

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle to use for authentication.

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

Populated request object.

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

XAsyncBlock for the async operation.

### Return value

Type: HRESULT

Result code for this API operation.

## Remarks

This API is available on Windows and iOS. Redeem items from the Apple App Store. When the asynchronous task is complete, call [PFInventoryRedeemAppleAppStoreInventoryItemsGetResultSize](https://docs.xbox.com/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemappleappstoreinventoryitemsgetresultsize.md) and [PFInventoryRedeemAppleAppStoreInventoryItemsGetResult](https://docs.xbox.com/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemappleappstoreinventoryitemsgetresult.md) to get the result.

## Requirements

**Header:** PFInventory.h

## See also

[PFInventory members](https://docs.xbox.com/services/playfab/api-references/c/pfinventory/pfinventory_members.md)


## Related topics

- [PFInventoryRedeemAppleAppStoreInventoryItemsGetResult](https://docs.xbox.com/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemappleappstoreinventoryitemsgetresult.md)
- [Services C API overview - PFInventory.h](https://docs.xbox.com/services/playfab/api-references/c/pfinventory/pfinventory_members.md)
- [PFInventoryRedeemAppleAppStoreInventoryItemsRequest](https://docs.xbox.com/services/playfab/api-references/c/pfinventorytypes/structs/pfinventoryredeemappleappstoreinventoryitemsrequest.md)
- [Redeem Apple App Store Inventory Items](https://docs.xbox.com/services/playfab/api-references/rest/economy/inventory/redeem-apple-app-store-inventory-items.md)
- [PFInventoryRedeemAppleAppStoreInventoryItemsResponse](https://docs.xbox.com/services/playfab/api-references/c/pfinventorytypes/structs/pfinventoryredeemappleappstoreinventoryitemsresponse.md)
