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.
If you don't have an access token, call Create Access Token and pass it your app instance ID.
Pass the access token as the authorization header to Report External Billing Event.
Send the billing event details in the method parameters:
The response contains the app and instance IDs extracted from the access token. It also echoes any parameters that you passed in the method call:
Whether or not you have the app instance ID, you might find yourself in a scenario where you can't generate an access token. This can happen, for example, if a user has already uninstalled your app.
In this case, you can use an API key to report billing events for your app.
wix-account-id
.