Skip to content

Latest commit

 

History

History
74 lines (47 loc) · 6 KB

data-schemas-for-store-products.md

File metadata and controls

74 lines (47 loc) · 6 KB
description title ms.date ms.topic keywords ms.localizationpriority
Describes the extended JSON data schema for Store products in the Windows.Services.Store namespace.
Data schemas for Store products
09/26/2017
article
windows 10, uwp, ExtendedJsonData, Store products, schema
medium

Data schemas for Store products

When you submit a product such as an app or add-on to the Store, the Store maintains a comprehensive set of data for the product and its licenses. In your app's code, you can programmatically access some of this data by using properties in the Windows.Services.Store namespace. For example, you can retrieve the description and price of the current app or an add-on for the current app by using the StoreProduct.Description and StoreProduct.Price properties.

However, much of the data for products in the Store is not exposed by predefined properties in the Windows.Services.Store namespace. To access the complete data for a product in your code, you can use the following general properties instead:

These properties return the complete data for the corresponding object as a JSON-formatted string. This article provides the complete schema for the data returned by these properties.

Note

Products in the Store are organized in a hierarchy of product, SKU, and availability objects. For more information, see Products, SKUs, and availabilities.

Schema for StoreProduct, StoreSku, StoreAvailability, and StoreCollectionData

The following schema describes the JSON-formatted string returned by StoreProduct.ExtendedJsonData. The StoreSku.ExtendedJsonData, StoreAvailability.ExtendedJsonData, and StoreCollectionData.ExtendedJsonData properties return only the portions of the schema that are defined under the DisplaySkuAvailabilities\Sku, DisplaySkuAvailabilities\Availabilities, and DisplaySkuAvailabilities\Sku\CollectionData paths, respectively.

For an example of a JSON-formatted string returned by StoreProduct.ExtendedJsonData, see this section.

:::code language="json" source="~/../snippets-windows/windows-uwp/monetize/InAppPurchasesAndLicenses_RS1/json/StoreProduct.ExtendedJsonData.json" range="1-729":::

Example

The following example demonstrates a JSON-formatted string returned by the StoreProduct.ExtendedJsonData property for app.

:::code language="json" source="~/../snippets-windows/windows-uwp/monetize/InAppPurchasesAndLicenses_RS1/json/StoreProduct.ExtendedJsonDataExample.json" range="1-268":::

Schema for StoreAppLicense and StoreLicense

The following schema describes the JSON-formatted string returned by StoreAppLicense.ExtendedJsonData. The StoreLicense.ExtendedJsonData property returns only the portions of the schema that are defined under the productAddOns path.

For an example of a JSON-formatted string returned by StoreAppLicense.ExtendedJsonData, see this section.

:::code language="json" source="~/../snippets-windows/windows-uwp/monetize/InAppPurchasesAndLicenses_RS1/json/StoreAppLicense.ExtendedJsonData.json" range="1-80":::

Example

The following example demonstrates a JSON-formatted string returned by the StoreAppLicense.ExtendedJsonData property for app.

:::code language="json" source="~/../snippets-windows/windows-uwp/monetize/InAppPurchasesAndLicenses_RS1/json/StoreAppLicense.ExtendedJsonDataExample.json" range="1-28":::

Schema for StorePurchaseProperties

The following schema describes the JSON-formatted string returned by StorePurchaseProperties.ExtendedJsonData.

:::code language="json" source="~/../snippets-windows/windows-uwp/monetize/InAppPurchasesAndLicenses_RS1/json/StorePurchaseProperties.ExtendedJsonData.json" range="1-12":::

Related topics