List the organizations with a plan, and where each stands
GET
/api/platform/billing/organizations
const url = 'https://forge.example.com/api/platform/billing/organizations';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://forge.example.com/api/platform/billing/organizations \ --header 'Authorization: Bearer <token>'Each with its plan, term and meters; the ones past a limit first, then the ones near one, then by the day the term ends. A limit that is passed blocks nothing: this is what is to settle at renewal.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
Array<object>
object
organizationId
required
string format: uuid
name
required
string
plan
required
object
code
required
string
name
required
string
quantity
required
integer | string format: int32
period
required
string
source
required
string
status
required
string
termState
required
string
termStartsAt
required
string format: date-time
termEndsAt
required
string format: date-time
cancelAtTermEnd
required
boolean
endedAt
required
null | string format: date-time
purchaseReference
required
null | string
invoicedOn
required
null | string format: date
paidBy
required
null | string
version
required
integer | string format: int32
meters
required
Array<object>
object
key
required
string
label
required
string
used
required
integer | string format: int64
limit
required
null | integer | string format: int64
percent
required
null | integer | string format: int32
state
required
string
hard
required
boolean
waiting
integer | string format: int64
over
required
boolean
near
required
boolean
Example
[ { "meters": [ { "waiting": 0 } ] }]default
Section titled “default”A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.
Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}