Go Headless

/

REST
Articles
Get Started
Use the Wix MCP
What's New

App Management
OAuth 2
App Billing
App Instance
Introduction
Sample Flows
App Instance Object
G
Get App Instance
App Instance Installed
App Instance Removed
Paid Plan Auto Renewal Cancelled
Paid Plan Changed
Paid Plan Purchased
App Permissions
Embedded Scripts
BI Event
Editor Deep Link
Site Plugins

Business Solutions
eCommerce
Stores
Bookings
CMS
Events
Restaurants
Blog
Forum
Pricing Plans
Portfolio

Assets
Media
HTTP Functions
Pro Gallery

CRM
Members & Contacts
Forms
Community
Communication
Loyalty Program
CRM

Business Management
AI Site-Chat
Analytics
App Installation
Async Job
Automations
Calendar
Captcha
Categories
Cookie Consent Policy
Data Extension Schema
Dashboard
FAQ App
Get Paid
Headless Authentication
Locations
Marketing
Multilingual
Notifications
Payments
Site Search
Secrets
Site Properties
Site URLs
Tags

Account Level
About Account Level APIs
Sites
Resellers
Domains
B2B Site Management
User Management








Paid Plan Purchased


Triggered when a Wix user purchases a paid plan for your app.

Event BodyEvent Body Event data is received as a JSON Web Token (JWT). It may be delayed. Be sure to verify the data was sent by Wix.
Event Data
operationTimeStampstringformat date-time

Date and time of purchase.


vendorProductIdstringmaxLength 100

Purchased app plan.


cyclestring

Selected payment cycle.


expiresOnstringformat date-time

Plan expiration date.


couponNamestringmaxLength 150

Coupon applied to purchase (if relevant).


invoiceIdstringmaxLength 50

Invoice ID.

Event Body

The data payload will include the following as an encoded JWT:

JSON
{ "data": { "eventType": "PaidPlanPurchased", "instanceId": "<app-instance-id>", "data": "<stringified-JSON>", // The identity field is sent as a stringified JSON "identity": { "identityType": "<identityType>", // ANONYMOUS_VISITOR, MEMBER, WIX_USER, APP "anonymousVisitorId": "<anonymousVisitorId>", // in case of ANONYMOUS_VISITOR "memberId": "<memberId>", // in case of MEMBER "wixUserId": "<wixUserId>", // in case of WIX_USER "appId": "<appId>" // in case of APP } } }

Paid Plan Purchased
JSON
{ "operationTimeStamp": "2019-12-09T07:44:53.659Z", "vendorProductId": "e8f429d5-0a6a-468f-8044-87f519a53202", "cycle": "MONTHLY", "expiresOn": "2020-01-09T07:44:53Z" }
Did this help?