Product Catalog
Get plan
Get a plan by id or key. The latest published version is returned if latter is used.
get/api/v1/plans/{planId}
Path parameters
planIdstring required
Query parameters
includeLatestboolean
Include latest version of the Plan instead of the version in active state.
Usage: ?includeLatest=true
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"
}
}
]
}