API referenceAccount and billing
Start a checkout
Buy credits (amount_usd, the 5.5% top-up fee is added) or upgrade to a paid plan. Returns a URL: Stripe Checkout, or the test purchase page when billing is simulated.
Authorization
bearer AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/v1/billing/checkout" \ -H "Content-Type: application/json" \ -d '{ "kind": "credits" }'{ "object": "checkout", "id": "string", "kind": "credits", "status": "open", "source": "none", "url": "string", "amount_micro": 0, "fee_micro": 0, "total_micro": 0, "plan": "free", "created_at": "2019-08-24T14:15:22Z", "completed_at": "2019-08-24T14:15:22Z"}