Limited Release
Plan management helps you update existing pricing plans when your business requirements change. You can modify plan details, pricing models, and usage charges while keeping existing customer subscriptions active. This ensures new customers get appropriate pricing and existing customers keep their current billing.
Update plan details
Use a valid access token and make a PUT call to the/v1/commerce/billing/plans/{plan_code} endpoint with the modified request parameters such as name, description, fixed recurring fee, and usage-based charges.
Path parameter: plan_code is the code you provided when you created the plan.
For information on all parameters, see API reference.
200 OK response with the updated plan configuration.
Manage plan entitlements
Plan entitlements define which features and capabilities customers can access based on their pricing plan. You can list existing entitlements, update entitlement configurations, and remove entitlements.List plan entitlements
Use a valid access token and make a GET call to the/v1/commerce/billing/plans/{plan_code}/entitlements endpoint to retrieve all entitlements assigned to a specific plan.
Path parameter: plan_code is the code you provided when you created the plan.
200 OK response with the plan entitlements.
Update plan entitlements
Use a valid access token and make a PATCH call to the/v1/commerce/billing/plans/{plan_code}/entitlements endpoint with the entitlements to update.
Path parameter: plan_code is the code you provided when you created the plan.
For information on all parameters, see API reference.
200 OK response with the updated plan entitlements.
Remove privilege from feature entitlement
Use a valid access token and make a DELETE call to the/v1/commerce/billing/plans/{plan_code}/entitlements/{feature_code}/privileges/{privilege_code} endpoint to remove a specific privilege from a feature entitlement.
Path parameters:
plan_codeis thecodeyou provided when you created the plan.feature_codeis thecodeyou provided when you created the feature.privilege_codeis thecodeyou provided when you created the privilege.
204 No Content response.
Remove feature entitlement from plan
Use a valid access token and make a DELETE call to the/v1/commerce/billing/plans/{plan_code}/entitlements/{feature_code} endpoint to remove a specific feature entitlement from a plan.
Path parameters:
plan_codeis thecodeyou provided when you created the plan.feature_codeis thecodeyou provided when you created the feature.
204 No Content response.