Skip to content

End an organization's invoiced plan today

POST
/api/platform/organizations/{id}/plan/end
curl --request POST \
--url https://forge.example.com/api/platform/organizations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/plan/end \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "reason": "example", "version": 1 }'

For a contract that was not renewed, or a plan set by mistake. Nothing of the organization is deleted. What follows is the instance’s days of grace and then what Billing:ReadOnlyAfterGrace says: by default, a notice only.

id
required
string format: uuid
Media typeapplication/json
object
reason
required
string
version
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/

Example generated

{
"reason": "example",
"version": 1
}

OK

Media typeapplication/json
object
organizationId
required
string format: uuid
organizationPlan
required
string
plan
required
One of:
null
baseLimits
required
One of:
null
limits
required
One of:
null
note
required
null | string
packs
required
Array<object>
object
code
required
string
name
required
string
kind
required
string
size
required
integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
quantity
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*)$/
readers
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
version
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
ai
One of:
null

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