POST /account/billing/checkout
Buy prepaid credit through Stripe's hosted checkout.
TypeScript SDKThe npm client, generated from the API spec.Python SDKThe PyPI client, sync and async.
| Method | Path |
|---|---|
| POST | /v1/account/billing/checkout |
Requires a human account administrator. Open the returned URL to complete payment. Credit is granted only after payment succeeds; the platform fee is charged in addition to amount_cents. Returning to Billing carries the checkout session ID for receipt lookup.
curl -X POST "https://api.ellipsis.dev/v1/account/billing/checkout" \
-H "Authorization: Bearer $ELLIPSIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"amount_cents":0}'import os
from ellipsis import Ellipsis
client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])
result = client.account.billing.checkout(
0,
)
print(result)import { Ellipsis } from '@ellipsis-dev/sdk';
const client = new Ellipsis({
apiKey: process.env.ELLIPSIS_API_TOKEN!,
});
const result = await client.account.billing.checkout({ amount_cents: 0 });
console.log(result);Request
Example request body
{
"amount_cents": 0
}
Body parameters
amount_centsintegerrequired
Credit to buy. The platform fee is added at checkout.
Response
Example response · 201
{
"url": "string"
}