External Billing Events API: Sample Use cases and Flows

This article shares some possible sample flows you may encounter when working with external billing events. This can be a helpful jumping off point as you plan your app's implementation.

Report an external billing event using an access token or instance ID

  1. Create a Wix SDK client using AppStrategy authentication. AppStrategy requires either the instance ID or a token:

    Copy
  2. Call Report External Billing Event through the Wix client. Send the billing event details in the method call.

Report an external billing event using an API key

If you have neither the instance ID or the access token, use an API key to report the billing event.

  1. In the API key manager of the Wix account that owns your app, create an API key with the account-level Manage Custom Apps permission. You also need the account ID.

  2. Create an SDK client using ApiKeyStrategy authentication:

    Copy
  3. Call Report External Billing Event through the Wix client as above.

Did this help?