StorePurchaseProperties.ExtendedJsonData Property

Definition

Gets or sets a JSON-formatted string that contains extended data to pass with the purchase request to the Microsoft Store.

public:
 property Platform::String ^ ExtendedJsonData { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring ExtendedJsonData();

void ExtendedJsonData(winrt::hstring value);
public string ExtendedJsonData { get; set; }
var string = storePurchaseProperties.extendedJsonData;
storePurchaseProperties.extendedJsonData = string;
Public Property ExtendedJsonData As String

Property Value

String

Platform::String

winrt::hstring

A JSON-formatted string that contains extended data to pass with the purchase request to the Microsoft Store.

Remarks

Use the ExtendedJsonData property to access the complete data for the StorePurchaseProperties object as a JSON-formatted string in your code. For more information about the structure of the data, see Data schemas for Store products.

If you want to associate the purchase request with a custom campaign, you can add a field named DevOfferId to the JSON string that is returned by this property and then assign the updated string to this property. You can then retrieve this value later by accessing the DeveloperOfferId property of a StoreCollectionData object. Here is an example JSON string that includes a DevOfferId field: "{\"DevOfferId\": \"your campaign ID\" }".

Applies to

See also