Skip to content
Peritus
API reference · Account

Start checkout

POST/v1/account/billing/checkout

Starts a top-up of a whole number of dollars from 10 to 2,000 and returns the Stripe Checkout page to send the user to. The credit appears once Stripe reports the payment. Needs the account scope as an owner or admin.

scope
account
auth
Bearer key
operationId
StartCheckout

Request body

application/json · CheckoutRequest · no other fields

Request body fields
FieldTypeRequiredLimits
amount_usdintegeryes10 to 2000

Response

201 · Checkout. The Checkout page and when it expires.

Response fields
FieldType
checkout_urlstring
expires_atstring · date-time

Problems

RFC 9457 application/problem+json. An abstention is not one of these: it is a 200.

Problems
HTTPCodeWhen
400INVALID_REQUESTMalformed JSON, unknown fields, bad filter, limit exceeded
401UNAUTHENTICATEDMissing, malformed, or revoked key
403FORBIDDEN_SCOPEThe key lacks the required scope
404NOT_FOUNDUnknown response, job, document, or reserved route
429RATE_LIMITEDRate limit or per-tenant model cap
500INTERNAL, POLICY_ASSERT_FAILED, RESPONSE_UNREPLAYABLEServer fault. The last two also alert
503STORE_UNAVAILABLE, LLM_UNAVAILABLE, LOG_UNAVAILABLEA dependency is down or a budget tripped