Update subscription details
Use a valid access token and make a PUT call to the/v1/commerce/billing/subscriptions/{external_subscription_id} endpoint with the modified request parameters such as external customer ID, plan code, billing time, auto-renew setting, and metadata.
Path parameter: external_subscription_id is the external_id you provided when you created the subscription.
On successful request processing, PayPal returns the updated subscription details.
For the exhaustive list of request and response parameter descriptions, see API reference.
Cancel a subscription
Subscription cancellation provides flexible options for ending billing relationships. You can cancel:- Active subscriptions: Subscriptions currently in effect. Can be cancelled immediately or scheduled for the end of the current billing period.
- Pending subscriptions: Subscriptions scheduled to start in the future or new plans from downgrades waiting to take effect at the end of the billing period. Can only be cancelled immediately.
Cancel immediately
Use a valid access token and make a POST call to the/v1/commerce/billing/subscriptions/{external_subscription_id}/cancel endpoint with cancel_option set to IMMEDIATE.
Path parameter: external_subscription_id is the external_id you provided when you created the subscription.
On successful request processing, PayPal returns the subscription details with status changed to CANCELED.
For the exhaustive list of request and response parameter descriptions, see API reference.
Cancel at period end
Use a valid access token and make a POST call to the/v1/commerce/billing/subscriptions/{external_subscription_id}/cancel endpoint with cancel_option set to END_OF_PERIOD.
Path parameter: external_subscription_id is the external_id you provided when you created the subscription.
On successful request processing, PayPal returns the subscription details. The status remains ACTIVE until cancellation date. The response includes cancel_at_period_end set to true and cancellation_date showing when the subscription ends.
For the exhaustive list of request and response parameter descriptions, see API reference.
Manage subscription entitlements
Subscription entitlements allow you to customize feature access and capabilities for individual subscriptions, overriding the default plan entitlements. This provides flexibility to offer tailored features, limits, and permissions to specific customers based on their needs or negotiated agreements.Update subscription entitlements
Use a valid access token and make a PATCH call to the/v1/commerce/billing/subscriptions/{external_subscription_id}/entitlements endpoint with the entitlements to update.
Path parameter: external_subscription_id is the external_id you provided when you created the subscription.
On successful request processing, PayPal updates privilege 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. These updates override the default plan entitlements for this specific subscription.
For the exhaustive list of request and response parameter descriptions, see API reference.
List subscription entitlements
Use a valid access token and make a GET call to the/v1/commerce/billing/subscriptions/{external_subscription_id}/entitlements endpoint to retrieve all entitlements for a specific subscription.
Path parameter: external_subscription_id is the external_id you provided when you created the subscription.
On successful request processing, PayPal returns the subscription’s entitlements, showing both plan defaults and any subscription-specific overrides.
For the exhaustive list of response parameter descriptions, see API reference.
Remove privilege overrides
Use a valid access token and make a DELETE call to the/v1/commerce/billing/subscriptions/{external_subscription_id}/entitlements/{feature_code}/privileges/{privilege_code} endpoint to remove a privilege override for a subscription and revert to the plan default.
Path parameters:
external_subscription_idis theexternal_idyou provided when you created the subscription.feature_codeis thecodeyou provided when you created the feature.privilege_codeis thecodeyou provided when you created the privilege.
For the exhaustive list of response parameter descriptions, see API reference.
Remove subscription entitlement overrides
Use a valid access token and make a DELETE call to the/v1/commerce/billing/subscriptions/{external_subscription_id}/entitlements/{feature_code} endpoint to remove all overrides for a specific subscription and revert to plan defaults.
Path parameters:
external_idis theexternal_idyou provided when you created the subscription.feature_codeis thecodeyou provided when you created the feature.
For the exhaustive list of response parameter descriptions, see API reference.