Change subscription
Changed onCloses a running subscription and starts a new one according to the specification. Can be used for upgrades, downgrades, and plan changes.
Request
- Base URL: https://global.api.konghq.com
- URL: https://global.api.konghq.com/v3/openmeter/subscriptions/{subscriptionId}/change
- Auth: one of:
- HTTP bearer
- HTTP bearer
- HTTP bearer
- HTTP bearer
Path parameters
ULID (Universally Unique Lexicographically Sortable Identifier).
Request body
Example request
{
"labels": {
"env": "test"
},
"customer": {
"id": "01G65Z755AFWAKHE12NY0CQ9FH",
"key": "019ae40f-4258-7f15-9491-842f42a7d6ac"
},
"plan": {
"id": "01G65Z755AFWAKHE12NY0CQ9FH",
"key": "resource_key"
},
"custom_plan": {
"labels": {
"env": "test"
},
"currency": "USD",
"billing_cadence": "P1Y",
"phases": [
{
"labels": {
"env": "test"
},
"key": "resource_key",
"duration": "P1Y",
"rate_cards": [
{
"labels": {
"env": "test"
},
"key": "resource_key",
"feature": {
"id": "01G65Z755AFWAKHE12NY0CQ9FH"
},
"currency": "USD",
"billing_cadence": "P1Y",
"tax_config": {
"code": {
"id": "01G65Z755AFWAKHE12NY0CQ9FH"
}
},
"entitlement": {
"usage_period": "P1Y"
}
}
]
}
]
},
"billing_anchor": "2023-01-01T01:01:01.001Z",
"timing": "2023-01-01T01:01:01.001Z"
}Response
The request has succeeded.
Changes
- breaking
added to the
/response propertyoneOflist for the response status - warning
added the new
key_invalidenum value to the//////response property for the response status - warning
added the new
uniqueenum value to the//////response property for the response status
- breaking
- breaking
the response property
///////became optional for the status - breaking
the response property
///////became optional for the status - warning
added the new
400.00enum value to theresponse property for the response status - warning
added the new
403.00enum value to theresponse property for the response status - warning
added the new
404.00enum value to theresponse property for the response status - warning
added the new
409.00enum value to theresponse property for the response status - info
added the new optional request property
- info
the request property
//////became optional
- breaking