Skip to main content
Credits are prepaid balances. A credit type defines what the credits are for. Each customer has a wallet for each credit type. For how credits fit together, see Prepaid credits.

Credit types

A credit type’s overage setting decides what happens at zero: block stops usage, and allow lets it continue and bills the overage.

Wallets

Each path is per customer and credit type.

Grant body

Purchase body

A purchase starts as pending_payment. It becomes active when paid.

Auto top-up body

Check a balance

Returns whether the balance covers the request, and the balance itself. The Node and Python SDKs wrap this call as checkCredits and check_credits.