The Billing API allows to charge site owners for using your app.
With the Billing API, you can:
See the App Instance API for more information on how to track data that's associated with individual app instances. Learn more about charging customers varying amounts each billing cycle with the Custom Charges service plugin.
It’s important to note the following points before starting to code:
Retrieves the URL for a Wix checkout page for the specified paid plan of your app.
This call succeeds only in case you have previously set up an external pricing page in your app's dashboard.
The returned checkout URL is valid for 48 hours.
This API allows your app to manage your pricing page outside of Wix while still using the standard Wix checkout flow.
You can only call this method when authenticated as a Wix app or Wix user identity.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
Retrieves a list of the site owner's past purchases for your app.
You don't have to explicitly pass an identifier for the Wix site as part of the request, since this information is taken automatically from the context.
The response doesn't include any details about cancellations.
You can only call this method when authenticated as a Wix app or Wix user identity.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.