Update Pay as You Go Usage Settings
Turn metered usage past the monthly allowances on or off and choose how it is paid. PREPAID_CREDIT uses retained credit without a subscription; USAGE_INVOICE requires an eligible paid Stripe plan. Send {“enabled”:false} to stop recording it. Returns the settings with this UTC month’s priced usage. Only a verified first-party user session may grant or revoke assistantPurchaseEnabled; that permission alone provisions nothing and enables no usage. Delegated OAuth/API-key mutations require the stored permission and an exact user authorizationQuote before enabling usage or changing funding or limits. Ask the user about funding and whether to keep, set, or clear the monthly cap before calling. Only a first-party session may authorize or revise automatic card top-ups. Quotes are approval evidence, not independently verified conversation transcripts.
Authentication
Your aVenture API key (https://aventure.vc/settings/api-keys) or OAuth access token
Request
Allow assistant billing changes. Only a verified first-party user session may set or clear this permission; null revokes it. Omission preserves it.
Full amount of each automatic purchase, selected from the credit-pack catalog. No amount is preselected.
The displayed default card’s current revision. Send it when accepting or revising standing top-up terms; omission never renews consent.
Authorize automatic purchases only on the approved card. If the default card differs at the pre-charge check, top-up pauses. A later default change cannot stop an admitted charge. Null turns top-up off; omission keeps the current choice.
The termsRevision the user reviewed, sent with expectedPriceRevision; sending only one is rejected. When either is no longer current, nothing is saved and the request fails with 409 billing_additional_usage_terms_changed. Omitting both skips the check.
PREPAID_CREDIT spends purchased credit packs and stops when they run out. USAGE_INVOICE bills an invoice each time unbilled usage reaches invoiceIncrementCents, subject to an optional monthly spendCapCents.
Unbilled cents that trigger a USAGE_INVOICE invoice; one of the plan catalog’s invoiceIncrementCents.
Optional monthly usage spend cap in cents; null clears it for either funding type.
Response headers
Requests allowed per client IP in the current rate-limit window.
Requests left before the tightest applicable rate-limit bucket rejects.
Seconds until the exhausted rate-limit bucket admits another request; 0 when none is exhausted.
Response
Spendable prepaid credit after pending usage and invoice-line rounding reserves, in cents.
True while a failed threshold invoice blocks Pay as You Go Usage; paying it in Billing Portal clears the block.
When spentCents returns to zero: the next UTC month.
Priced usage not yet paid by credit or placed on an invoice, in cents; the next threshold or period invoice bills it.
Whether assistants may request billing changes with an exact user authorization quote. Defaults to false; only a verified first-party user session may change it. This permission neither enables usage nor buys credit.
Whether the account has a current automatic top-up authorization.
Spendable balance below which a debit can trigger a top-up, in USD cents.
PREPAID_CREDIT spends purchased credit packs and stops when they run out. USAGE_INVOICE bills an invoice each time unbilled usage reaches invoiceIncrementCents, subject to an optional monthly spendCapCents.
USAGE_INVOICE bills an invoice once unbilled usage reaches this many cents; the invoice can exceed it by the usage recorded while it was being created.
Optional monthly usage spend cap in cents for either funding type. Null means no configured monthly cap. One-time purchases are outside the limit; automatic purchases count toward it.
Opaque revision of the terms a user reviews: these settings, the standing automatic top-up approval, and the Pay as You Go Usage prices. Send it as expectedTermsRevision, with the plan catalog’s additionalUsagePriceRevision as expectedPriceRevision, when saving reviewed terms. Spend, balance, status, and reset time never change it. Always present; optional so older readers accept responses without it.