Search.../
  1. Home
  2. Getting Started
  3. Overview
Generate a test token to explore our APIs

Paid Plan Changed Webhook

When you sign up for the Paid Plan Changed webhook, you will receive this notification when a user changes the app’s paid plan (to another paid plan)

Event 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

NAME
TYPE
DESCRIPTION
vendorProductId

string

operationTimeStamp

string

previousCycle

string

Supported values: NO_CYCLE, MONTHLY, YEARLY, ONE_TIME.

previousVendorProductId

string

invoiceId

string

couponName

string

cycle

string

Supported values: NO_CYCLE, MONTHLY, YEARLY, ONE_TIME.

Was this helpful?

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

Event Body

json

1{
2 "data": {
3 "eventType": "<event-type>",
4 "instanceId": "<app-instance-id>",
5 "data": "<stringified-JSON>"
6 }
7}

The parsed data will include:

Sample Data

json

1
2{
3 "data": {
4 "operationTimeStamp": "2019-12-08T07:42:04.535Z",
5 "vendorProductId": "e61158e5-e327-4694-ac50-2a3a0db87c84",
6 "cycle": "YEARLY",
7 "previousVendorProductId": "e61158e5-e327-4694-ac50-2a3a0db87c84",
8 "previousCycle": "MONTHLY"
9 },
10 "instanceId": "5bc2068d-010b-448c-a62a-d6bb269c2a4c",
11 "eventType": "PaidPlanChanged"
12}