Skip to main content
Purchase an item or bundle. Up to 10,000 stacks of items can be added to a single inventory collection. Stack size is uncapped.

Syntax

Parameters

entityHandle   PFEntityHandle PFEntityHandle to use for authentication. request   PFInventoryPurchaseInventoryItemsRequest* 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 all platforms. Purchase a single item or bundle, paying the associated price. When the asynchronous task is complete, call PFInventoryPurchaseInventoryItemsGetResultSize and PFInventoryPurchaseInventoryItemsGetResult to get the result.

Requirements

Header: PFInventory.h

See also

PFInventory members
Last modified on August 1, 2026