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.
This method may require higher-level permissions than the caller has, based on their identity and roles and permissions. In these cases, you can ensure the method is called with the required level of authorization by using one of the following:
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.