Update plan pricing

Update pricing for the subscription plan

DocsCurrentLast updated: February 13th 2024, @ 1:02:18 pm


You can modify subscription pricing for all subscribers at once by changing the pricing at the plan level, without needing to migrate subscriptions individually.

For example, if you provide a video streaming service and offer a subscription plan at $5 per month, you can update the price for future cycles to $7 for all existing subscribers.

How it works

When you update the plan price:

  • New subscribers see the new price.
  • Existing subscribers are notified by email about the price change, and given 10 days to modify their subscription.
  • If the next billing cycle is within 10 days of the price change, subscribers are not changed the new price until the next billing cycle.

For example, you update the plan price from $20 to $25 on the 10th of the month. An existing subscriber is enrolled on this plan with the next billing cycle starting on the 15th of the month. This subscriber pays $20 for their subscription on the 15th of the month, and on the following month pays $25.

Update pricing

API endpoint used: Update pricing schemes endpoint

Sample request

1curl -v -X POST https://api-m.sandbox.paypal.com/v1/billing/plans/P-7GL4271244454362WXNWU5NQ/update-pricing-schemes
2-H "Content-Type: application/json"
3-H "Authorization: Bearer ACCESS-TOKEN"
4-d '{
5"pricing_schemes": [{
6 "billing_cycle_sequence": 1,
7 "pricing_scheme": {
8 "fixed_price": {
9 "value": "50",
10 "currency_code": "USD"
11 }
12 }
13}, {
14 "billing_cycle_sequence": 2,
15 "pricing_scheme": {
16 "fixed_price": {
17 "value": "100",
18 "currency_code": "USD"
19 },
20 "pricing_model": "VOLUME",
21 "tiers": [{
22 "starting_quantity": "1",
23 "ending_quantity": "1000",
24 "amount": {
25 "value": "150",
26 "currency_code": "USD"
27 }
28 }, {
29 "starting_quantity": "1001",
30 "amount": {
31 "value": "250",
32 "currency_code": "USD"
33 }
34 }]
35 }
36}]
37}'

Modify the code

  • Replace ACCESS-TOKEN with your access token.
  • In the URI for the API call, replace the sample subscription ID with the ID for the subscription you want to update. In this example, the subscription ID is P-7GL4271244454362WXNWU5NQ.