latestOpenAPI 3.0.32026-08-23410223.0 KB

c93447ba6b9d

billing

Buy credits

Creates a Stripe Checkout link the account owner opens in a browser to buy credits (quantity between 1000 and 10000). Creating a link never charges anything; payment happens only when a human completes checkout in the browser, and the purchased credits always land on this account.

post/v2/credits

Request body

quantityinteger required
referralstring nullable

Response

A Stripe Checkout link to buy credits.

checkoutUrlstring required

Stripe Checkout URL. The account owner opens this in a browser to complete payment. No charge occurs until checkout is completed.

Example response

{
  "checkoutUrl": "https://checkout.stripe.com/c/pay/cs_test_123"
}