Product Catalog
Update add-on assignment for plan
Update add-on assignment for plan.
put/api/v1/plans/{planId}/addons/{planAddonId}
Path parameters
planIdstring required
Example:01G65Z755AFWAKHE12NY0CQ9FH
planAddonIdstring required
Example:01G65Z755AFWAKHE12NY0CQ9FH
Request body
Example request
{
"metadata": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
}
}Response
The request has succeeded.
Example response
{
"addon": {
"annotations": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"createdAt": "2024-01-01T01:01:01.001Z",
"currency": "USD",
"deletedAt": "2024-01-01T01:01:01.001Z",
"effectiveFrom": "2023-01-01T01:01:01.001Z",
"effectiveTo": "2023-01-01T01:01:01.001Z",
"id": "01G65Z755AFWAKHE12NY0CQ9FH",
"metadata": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"rateCards": [
{
"discounts": {
"percentage": {
"percentage": 50
}
},
"entitlementTemplate": {
"metadata": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
}
},
"metadata": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"taxConfig": {
"stripe": {
"code": "txcd_10000000"
},
"taxCodeId": "01G65Z755AFWAKHE12NY0CQ9FH"
}
}
],
"updatedAt": "2024-01-01T01:01:01.001Z",
"validationErrors": [
{
"attributes": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"code": "invalid_feature_key",
"field": "addons/pro/ratecards/token/featureKey",
"message": "not found feature by key"
}
]
},
"annotations": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"createdAt": "2024-01-01T01:01:01.001Z",
"deletedAt": "2024-01-01T01:01:01.001Z",
"metadata": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"updatedAt": "2024-01-01T01:01:01.001Z",
"validationErrors": [
{
"attributes": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"code": "invalid_feature_key",
"field": "addons/pro/ratecards/token/featureKey",
"message": "not found feature by key"
}
]
}Changes
No recorded changes to this endpoint across all 1 revision of this API.