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

# PFInventoryRedeemPlayStationStoreInventoryItemsAsync

> 将在 PlayStation Store 中购买的物品兑换到 PlayFab 库存集合中，以便向玩家授予 PlayStation 购买对应的权益。

兑换物品。

## 语法

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

### 参数

**`entityHandle`**   PFEntityHandle

用于身份验证的 PFEntityHandle。

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

已填充的请求对象。

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

用于异步操作的 XAsyncBlock。

### 返回值

类型：HRESULT

此 API 操作的结果代码。

## 备注

此 API 在 Win32、Sony PlayStation®、Linux 和 macOS 上可用。从 PlayStation Store 兑换物品。异步任务完成后，调用 [PFInventoryRedeemPlayStationStoreInventoryItemsGetResultSize](/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemplaystationstoreinventoryitemsgetresultsize) 和 [PFInventoryRedeemPlayStationStoreInventoryItemsGetResult](/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemplaystationstoreinventoryitemsgetresult) 获取结果。

## 要求

**头文件：** PFInventory.h

## 另请参阅

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