Create checkout
Creates or reuses the customer in this environment and on Stripe; no subscription is required to buy or spend credits. Purchased credits can fund any deployed feature by default, including features added later. Set featureKeys to restrict access to distinct keys from the active deployment. An empty list grants no feature access. Stripe Checkout records the feature scope and expiry in metadata. Features need not belong to a plan. One displayed credit costs $1 USD. credits uses integer ledger units, where one credit is 1000000000 units. Amounts must be exact cents, between $0.50 and $999999.99. Optional expiresAt is an absolute Unix timestamp in milliseconds, in the future when checkout is created; omitted means no expiry. The same expiry applies even if payment confirmation arrives later. Each call creates a new Stripe Checkout session, where customers can save eligible cards for future purchases. Successful payments grant credits through Stripe webhooks. Stripe creates paid invoices by default unless the environment disables them.
bearerAuthAuthorizationBearer <token>Environment API key or OAuth access token. OAuth requests select context with X-Orbyte-Environment or X-Orbyte-Organization when required by the operation.
X-Orbyte-Environment?stringRequired for environment-scoped OAuth operations. API keys remain bound to their own environment.
1 <= lengthapplication/json- body
identity*string1 <= length <= 128successUrl*stringurilength <= 2048cancelUrl*stringurilength <= 2048credits*string^-?(0|[1-9][0-9]*)$length <= 20featureKeys?array<>expiresAt?integerOptional credit expiration as a Unix timestamp in milliseconds. Must be in the future when checkout is created.
0 < value <= 9007199254740991Checkout session awaiting payment
application/json- response
id*string^cs_.*url*stringuricurl -X POST 'https://api.orbytelabs.com/v1/topups/checkout' \ -H 'Content-Type: application/json' \ -d '{ "identity": "string", "successUrl": "http://example.com", "cancelUrl": "http://example.com", "credits": "string"}'{ "id": "string", "url": "http://example.com"}