Skip to content
Navigation

Mint a billing-portal token

Mints the 15-minute company-scoped token the embedded billing portal renders with. Authorization: a human org admin — an org API key carries role: admin but must not be able to change the plan or the card.

POST
https://api.cloudraker.com/billing/portal-token
Try it
Live API request

This request can change data or incur charges for the selected organization.

Authorization

  • bearerAuth
    HTTP
    required

Returns

200

A billing-portal token and its component id.

JSON
  • token
    string
    required
  • componentId
    string
    required

503

not_configured — billing is not wired in this environment; metering_unavailable — the billing service did not answer.
JSON
  • error
    not_configured
    or
    metering_unavailable
    required

Type to search…

↑↓ navigate↵ selectEsc close