POST

Get Balance


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Retrieves an account's current AI credit balance.

The balance includes recurring (periodic) credits, one-time top-up credits, and a per-source breakdown of the same credits. Use it to check an account's available credits before running an AI action, or to display the balance to an account.

The data returned depends on the caller's access. With account-level access, the response covers all of the account's credits. With site-level access, the response is scoped to the credits and subscription of the site in context. When the caller has both, the account-level balance is returned.

Endpoint
POST
https://www.wixapis.com/appmarket/credittransactions/v1/credit-transactions/balance

Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?