OpenMeter Subscriptions
Restore subscription
Changed onPre-release Endpoint This endpoint is currently in beta and is subject to change.
Restores the subscription by deleting any later-scheduled successor subscriptions and continuing this one indefinitely. This is the inverse of a future-dated change, which schedules a successor. Restore is not available when multi-subscription is enabled.
post/v3/openmeter/subscriptions/{subscriptionId}/restore
Request
- Base URL: https://global.api.konghq.com
- URL: https://global.api.konghq.com/v3/openmeter/subscriptions/{subscriptionId}/restore
- Auth: one of:
- HTTP bearer
- HTTP bearer
- HTTP bearer
- HTTP bearer
Path parameters
subscriptionIdstring required
ULID (Universally Unique Lexicographically Sortable Identifier).
Example:01G65Z755AFWAKHE12NY0CQ9FH
Response
Subscription updated response.
Example response
{
"id": "01G65Z755AFWAKHE12NY0CQ9FH",
"labels": {
"env": "test"
},
"created_at": "2023-01-01T01:01:01.001Z",
"updated_at": "2023-01-01T01:01:01.001Z",
"deleted_at": "2023-01-01T01:01:01.001Z",
"active_from": "2023-01-01T01:01:01.001Z",
"active_to": "2023-01-01T01:01:01.001Z",
"customer_id": "01G65Z755AFWAKHE12NY0CQ9FH",
"plan_id": "01G65Z755AFWAKHE12NY0CQ9FH",
"plan": {
"id": "01G65Z755AFWAKHE12NY0CQ9FH",
"key": "resource_key"
},
"invoice_currency": "USD",
"cost_basis_pins": [
{
"custom_currency_id": "01G65Z755AFWAKHE12NY0CQ9FH",
"invoice_currency": "USD",
"cost_basis_id": "01G65Z755AFWAKHE12NY0CQ9FH"
}
],
"billing_cadence": "P1Y",
"billing_anchor": "2023-01-01T01:01:01.001Z",
"current_period": {
"from": "2023-01-01T01:01:01.001Z",
"to": "2023-01-01T01:01:01.001Z"
},
"phases": [
{
"id": "01G65Z755AFWAKHE12NY0CQ9FH",
"labels": {
"env": "test"
},
"created_at": "2023-01-01T01:01:01.001Z",
"updated_at": "2023-01-01T01:01:01.001Z",
"deleted_at": "2023-01-01T01:01:01.001Z",
"key": "resource_key",
"active_from": "2023-01-01T01:01:01.001Z",
"active_to": "2023-01-01T01:01:01.001Z",
"items": [
{
"id": "01G65Z755AFWAKHE12NY0CQ9FH",
"active_from": "2023-01-01T01:01:01.001Z",
"active_to": "2023-01-01T01:01:01.001Z",
"rate_card": {
"labels": {
"env": "test"
},
"key": "resource_key",
"feature": {
"id": "01G65Z755AFWAKHE12NY0CQ9FH"
},
"currency": "USD",
"billing_cadence": "P1Y",
"tax_config": {
"code": {
"id": "01G65Z755AFWAKHE12NY0CQ9FH"
}
},
"entitlement": {
"usage_period": "P1Y"
}
}
}
]
}
]
}Changes
- ○
endpoint added
- ○