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

# XStoreAddonLicense

> XStoreAddonLicense

# XStoreAddonLicense

Describes an add-on license.

## Syntax

```cpp theme={null}
typedef struct XStoreAddonLicense {  
    char skuStoreId[STORE_SKU_ID_SIZE];  
    char inAppOfferToken[IN_APP_OFFER_TOKEN_MAX_SIZE];  
    bool isActive;  
    time_t expirationDate;  
} XStoreAddonLicense  
```

### Members

*skuStoreId*\
Type: char\[STORE\_SKU\_ID\_SIZE]

The SKU ID for the license.

*inAppOfferToken*\
Type: char\[IN\_APP\_OFFER\_TOKEN\_MAX\_SIZE]

Title defined offer token that you can use to map items internally. For example: com.company.product.itemname.

*isActive*\
Type: bool

Indicates if the license is active.

*expirationDate*\
Type: time\_t

Expiration date of the license.

## Remarks

An add-on is a product or feature that you make available to your customers in the context of your game: for example, currency to be used in a game, new maps or weapons for a game, the ability to play your game without ads. Every game and add-on has an associated license that indicates whether the user is entitled to play the game or add-on. If the user is entitled to play the game or add-on as a trial, the license also provides additional info about the trial. **XStoreAddonLicense** is a parameter for the [XStoreQueryAddOnLicensesResult](/reference/system/xstore/functions/xstorequeryaddonlicensesresult) function.

## Requirements

**Header:** XStore.h (included in XGameRuntime.h)

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[XStore](/reference/system/xstore/xstore_members)\
[XStoreQueryAddOnLicensesResult](/reference/system/xstore/functions/xstorequeryaddonlicensesresult)


## Related topics

- [XStoreQueryAddOnLicensesResult](/reference/system/xstore/functions/xstorequeryaddonlicensesresult.md)
- [XStore](/reference/system/xstore/xstore_members.md)
- [XStoreQueryAddOnLicensesAsync](/reference/system/xstore/functions/xstorequeryaddonlicensesasync.md)
- [XStoreQueryAddOnLicensesResultCount](/reference/system/xstore/functions/xstorequeryaddonlicensesresultcount.md)
- [Granting players access to add-on content](/publishing/xstore-commerce/xstore-granting-access.md)
