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 plan name, description, fixed recurring fee, and usage-based charges.
Path parameter: plan_code is the code you provided when you created the plan.
On successful request processing, PayPal returns the updated plan configuration and the plan id. Use this ID for future plan-related operations.
For the exhaustive list of request and response parameter descriptions, see API reference.
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.
For the exhaustive list of request and response parameter descriptions, see API reference.
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.
On successful request processing, PayPal updates values for the specified entitlements. New privileges or features are added, existing values are overwritten if duplicates are found, and items not included remain unchanged.
For the exhaustive list of request and response parameter descriptions, see API reference.
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.
For the exhaustive list of request and response parameter descriptions, see API reference.
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.
For the exhaustive list of request and response parameter descriptions, see API reference.