Buy Prepaid Usage Credit
Buy a pack or 500 through 100000 USD cents with HOSTED_CHECKOUT or ATTACHED_CARD. Delegated callers need assistant purchasing permission, the user’s exact authorization quote, and an explicit monthly usage cap decision. Retrying the same Idempotency-Key and exact terms resumes the same payment, including bank authentication; an unknown provider outcome never authorizes another charge. No subscription is required; payment does not change plan entitlements.
Authentication
Your aVenture API key (https://aventure.vc/settings/api-keys) or OAuth access token
Headers
Caller-chosen key, 1 to 255 characters, that makes a retry return the same Checkout Session instead of a second purchase.
Request
USD integer cents, 500 through 100000; supply exactly one of pack or amountCents.
Displayed default card revision when a first-party session changes an active automatic top-up limit with SET_CAP.
Explicit monthly usage cap decision; not a purchase budget. Required for delegated purchases.
Credit pack to buy; its amount becomes prepaid credit.
HOSTED_CHECKOUT opens an explicit-pay page; ATTACHED_CARD charges the existing default saved card.
Explicitly save this hosted payment’s card for future payments you authorize. Choose the billing default separately in payment settings. Defaults to false; available only for hosted Checkout and never enables assistant purchasing.
Positive monthly usage cap in USD cents; supply only with SET_CAP. One-time purchases are outside this limit.
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
The current state of a custom-amount or attached-card purchase.
Current purchase payment state; grant confirmation remains grantedAt.