Product Catalog
Get add-on assignment for plan
Get add-on assignment for plan by id.
get/api/v1/plans/{planId}/addons/{planAddonId}
Path parameters
planIdstring required
planAddonIdstring required
Response
The request has succeeded.
Example response
{
"createdAt": "2024-01-01T01:01:01.001Z",
"updatedAt": "2024-01-01T01:01:01.001Z",
"deletedAt": "2024-01-01T01:01:01.001Z",
"annotations": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"metadata": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"addon": {
"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",
"annotations": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
},
"currency": "USD",
"effectiveFrom": "2023-01-01T01:01:01.001Z",
"effectiveTo": "2023-01-01T01:01:01.001Z",
"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"
}
}
]
},
"validationErrors": [
{
"field": "addons/pro/ratecards/token/featureKey",
"code": "invalid_feature_key",
"message": "not found feature by key",
"attributes": {
"externalId": "019142cc-a016-796a-8113-1a942fecd26d"
}
}
]
}