Update plan details
Use a valid access token and send a PUT request to/v1/commerce/billing/plans/{plan_code} 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.
When updating a plan, you can use the
cascading_updates parameter in your update request to apply changes to subscriptions that have overridden plan values. This ensures that updates to the original plan are reflected in all associated subscriptions, if necessary.If a subscription’s plan override specifically modified the base plan fee (
amount{}) or usage-based charges (usage_based_charges[]), those customized values won’t be updated even with cascading_updates set to true. For these two parameters, only the unmodified values from the original plan will receive updates.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 send a GET request to/v1/commerce/billing/plans/{plan_code}/entitlements 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 send a PATCH request to/v1/commerce/billing/plans/{plan_code}/entitlements 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
To remove a specific privilege from a feature entitlement, send a DELETE request to/v1/commerce/billing/plans/{plan_code}/entitlements/{feature_code}/privileges/{privilege_code}.
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
To remove a specific feature entitlement from a plan, use a valid access token and send a DELETE request to/v1/commerce/billing/plans/{plan_code}/entitlements/{feature_code}.
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.