Skip to content

List the organizations with a plan, and where each stands

GET
/api/platform/billing/organizations
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.

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
/^-?(?:0|[1-9]\d*)$/
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
/^-?(?:0|[1-9]\d*)$/
meters
required
Array<object>
object
key
required
string
label
required
string
used
required
integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
limit
required
null | integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
percent
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
state
required
string
hard
required
boolean
waiting
integer | string format: int64
0 /^-?(?:0|[1-9]\d*)$/
over
required
boolean
near
required
boolean

Example

[
{
"meters": [
{
"waiting": 0
}
]
}
]

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"
}