Returns information about the user’s purchase history.
Important:
Before using this API endpoint, learn more about how to implement in-app purchases.
Parameters:
Name | Data Type | Parameter Type | Description |
---|---|---|---|
appDefId (required) | String | Header/Query | App ID, as specified in the Developers Center. If you are sending this field through the header: prefix the field value with x-wix- |
instanceId (required) | String | Header/Query | The app’s instanceId in this site (a GUID). If you are sending this field through the header: prefix the field value with x-wix- |
signature (required) | String | Header/Query | The computed signature. If you are sending this field through the header: prefix the field value with x-wix- |
timestamp (required) | Date | Header/Query | The timestamp, as an ISO 8601 timestamp. If you are sending this field through the header: prefix the field value with x-wix- |
version (required) | Integer | Query | The specific version of this endpoint. This version uses semantic versioning, in the form of major.minor.path. Latest version is 1.0.0. |
Response:
This endpoint returns an array of objects, where each object is a purchase or upgrade made in your app (for a given instanceId).
Name | Type | Description |
---|---|---|
purchaseId | String (UUID) | Unique identifier for this purchase on Wix’s database (used for support, issuing a refund, etc) |
vendorProductId | String | Name of the in-app product that was purchased |
datePurchased | Date | Purchase date, as an ISO 8601 timestamp |
Response Example: