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

# PFInventoryGetInventoryOperationStatusAsync

> Get the status of an inventory operation using an OperationToken. You can check on the operation status at anytime within 1 day of the request by passing the TransactionToken to the this API.

Get the status of an inventory operation using an OperationToken. You can check on the operation status at anytime within 1 day of the request by passing the TransactionToken to the this API.

## Syntax

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

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle to use for authentication.

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

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 Windows. Get the status of an Inventory Operation using an OperationToken. When the asynchronous task is complete, call [PFInventoryGetInventoryOperationStatusGetResultSize](/services/playfab/api-references/c/pfinventory/functions/pfinventorygetinventoryoperationstatusgetresultsize) and [PFInventoryGetInventoryOperationStatusGetResult](/services/playfab/api-references/c/pfinventory/functions/pfinventorygetinventoryoperationstatusgetresult) to get the result.

## Requirements

**Header:** PFInventory.h

## See also

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