Gets the Wix Blocks App data as a decoded Json Web Token (JWT) object.
getDecodedAppInstance() function returns a Promise that resolves to an object with data about the installation of your app on a specific site.
It is useful when managing your application's pricing.
function getDecodedAppInstance(): Promise<decodedAppInstance>
This function does not take any parameters.
Fulfilled - An object with data about the installation of your app on a specific site.
The unique idenfitier of your app.
The ID of your app on this specific site.
The Plan ID of the app purchased by the site.
Was this helpful?
Retrieve the Vendor Product ID
1import wixApplication from 'wix-application';23// ...45const instance = await wixApplication.getDecodedAppInstance();6const plan = instance.vendorProductId; // 'basic'