This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves a preview of charges for a site's usage-based billing.
When you call this method, Wix triggers your app's List Custom Charges service plugin and returns the charges you provide. Use this method to verify that your service plugin is working correctly and returning the expected charges.
Important: This method only retrieves charge information for testing purposes. It doesn't create an invoice or charge the customer. Wix creates actual invoices by calling your List Custom Charges service plugin directly.
Note: This feature isn't yet available to all users. Your app can have only 1 usage-based plan and no other plans. To add a usage-based plan to your app, submit a request to add a usage-based plan.
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.