Organization settings

Get billing

The plan, how it is paid for, the subscription state, the ten most recent invoices, and the usage statements of the twelve most recent statemented billing periods (closing, closed or uncollectible), and a preview of the open billing period's usage so far, priced as its statement will be (amounts in micros or cents as decimal strings; zero lines for features the organization cannot use, and for retired usage kinds, are left out). A part that could not be read just now is empty and its error field (invoices_error, usage_statements_error, usage_error) says so; the rest still answers. Changing the plan or the payment method stays in the dashboard.

Person only: a dashboard session. The person's role must hold billing:read. API keys, agent connection keys and agents are refused.

get/billing

Request

  • Base URL
    https://api.primitive.dev/v1
  • URL
    https://api.primitive.dev/v1/billing
  • Auth
    HTTP bearer

Response

Success

successtrue required

Changes

No operation changes recorded.