Update plan details
Use a valid access token and send a PUT request to/v1/commerce/billing/plans/{id}
with the modified request parameters such as plan name, description, fixed recurring fee, and usage-based charges.
Path parameter: id
is the plan ID or plan code returned when you created the plan.
Tip: 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.
Important: If a subscription’s plan override specifically modified the base plan fee (On successful request processing, PayPal returns the updated plan configuration and the planamount{}
) or usage-based charges (usage_based_charges[]
), those customized values won’t be updated even withcascading_updates
set totrue
. For these two parameters, only the unmodified values from the original plan will receive updates.
id
. Use this ID for future plan-related operations.
Note: 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/{code}/entitlements
to retrieve all entitlements assigned to a specific plan.
Path parameter: code
is the plan code you provided when you created the plan.
Note: 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/{code}/entitlements
with the entitlements to update.
Path parameter: code
is the plan 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.
Note: 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/{code}/entitlements/{feature_code}/privileges/{privilege_code}
.
Path parameters:
code
: The plan code you provided when you created the plan.feature_code
: The unique code you provided when you created the feature.privilege_code
: The unique code you provided when you created the privilege.
Note: 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/{code}/entitlements/{feature_code}
.
Path parameters:
code
: The plan code you provided when you created the plan.feature_code
: The unique code you provided when you created the feature.
Note: For the exhaustive list of request and response parameter descriptions, see API reference.