Product Catalog
Archive plan version
Archive a plan version.
post/api/v1/plans/{planId}/archive
Path parameters
planIdstring required
Example:01G65Z755AFWAKHE12NY0CQ9FH
Response
The request has succeeded.
Example response
{
"id": "01G65Z755AFWAKHE12NY0CQ9FH",
"metadata": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"createdAt": "2024-01-01T01:01:01.001Z",
"updatedAt": "2024-01-01T01:01:01.001Z",
"deletedAt": "2024-01-01T01:01:01.001Z",
"currency": "USD",
"billingCadence": "P1M",
"effectiveFrom": "2023-01-01T01:01:01.001Z",
"effectiveTo": "2023-01-01T01:01:01.001Z",
"phases": [
{
"metadata": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"duration": "P1Y",
"rateCards": [
{
"metadata": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"entitlementTemplate": {
"metadata": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
}
},
"taxConfig": {
"stripe": {
"code": "txcd_10000000"
},
"taxCodeId": "01G65Z755AFWAKHE12NY0CQ9FH"
},
"discounts": {
"percentage": {
"percentage": 50
}
}
}
]
}
],
"validationErrors": [
{
"field": "addons/pro/ratecards/token/featureKey",
"code": "invalid_feature_key",
"message": "not found feature by key",
"attributes": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
}
}
]
}