API referenceAccount and billing
Get a checkout
One checkout session and its status (open, completed, declined, requires_action).
Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
id*string
Match
^(sim_cs|cs)_[A-Za-z0-9_]{8,200}$Response Body
application/json
application/json
curl -X GET "https://example.com/v1/billing/checkout/string"{ "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"}Start a checkout POST
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.
Get billing overview GET
Billing mode, plan and subscription status, balance (with any simulated test credit), auto-recharge and receipts.