DorkOS
ApiCloudBillingPage

Start a billing session and get its web address to open in the browser

POST
/api/cloud/billing/{page}

portal is where a plan is changed or ended and invoices live, checkout starts one offer (body { skuId } from GET /api/cloud/offers), and topup buys credits. Only an address is returned; nothing is paid in the app. A refusal answers 200 with the services own problem envelope, or one plain sentence when the service could not be asked or does not offer the page to this account. Sent no-store`.

Path Parameters

page*string

Value in

  • "portal"
  • "checkout"
  • "topup"

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/cloud/billing/portal" \  -H "Content-Type: application/json" \  -d '{}'
{  "ok": true,  "url": "string"}