API Reference
Log In
API Reference

Turn usage-based billing on or off for your account

Enable or disable usage-based billing for your account. When disabled, the Revenium app hides your account's billing screens (invoices, payment methods, plan and subscription screens) and your account's usage stops being rated: AI product usage, its platform usage and /v2/events produce no usage line items. Usage that arrives while it is disabled is never rated, including after it is enabled again. AI metrics are still recorded, and subscription charges are unaffected. Defaults to disabled.

The same value is exposed on the account summary returned by GET /v2/api/users/me, which is where the Revenium app reads it before first paint.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Your account ID (not a team ID).

Body Params

Request to turn usage-based billing on or off for your account

boolean | null
required

Whether usage-based billing is on for your account. When false, the billing screens in the Revenium app (invoices, payment methods, plans and subscriptions) are hidden and your usage stops being rated; usage that arrives while it is false is never rated, including after it is set back to true. Required: omitting it or sending null is rejected with a 400.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
*/*