#tiger-subscription-pricechange

1 messages · Page 1 of 1 (latest)

onyx terraceBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

wraith mason
#

tiger-subscription-pricechange

dense valve
#

Yes

#

My idea is to send an email before updating the price and after next month (for example) the new price will be 10$.

wraith mason
#

yep makes sense so what I outlined is the best approach

dense valve
#

Ok, but I need to do it transparently for the user.

#

I can't find my user case in this resource

#

My use case is to update the price of the product and immediately update all subscriptions related to this price.

wraith mason
#

yes sorry that is exactly what I explained above with the exact steps. There's no "button to press" here. As a developer you write code to migrate every Subscription one by one using a SubscriptionSchedule exactly as documented in the link I sahred

dense valve
#

ok, but my subscriptions are created for the Checkout session Page, I also calculate the shipping cost and taxes.

wraith mason
#

yes that works

dense valve
#

ok

#

SubscriptionScheduleUpdateParams paramsUpdate =
SubscriptionScheduleUpdateParams.builder()
.addPhase(
SubscriptionScheduleUpdateParams.Phase.builder()
.addItem(
SubscriptionScheduleUpdateParams.Phase.Item.builder()
.setPrice(schedule.getPhases().get(0).getItems().get(0).getPrice())
.setQuantity(schedule.getPhases().get(0).getItems().get(0).getQuantity())
.build()
)
.setStartDate(schedule.getPhases().get(0).getStartDate())
.setEndDate(schedule.getPhases().get(0).getEndDate())
.build()
)
.addPhase(
SubscriptionScheduleUpdateParams.Phase.builder()
.addItem(
SubscriptionScheduleUpdateParams.Phase.Item.builder()
.setPrice("{{PRICE_PRINT_BASIC}}")
.setQuantity(1L)
.build()
)
.setIterations(1L)
.build()
)
.build();

#

In this example, would Price_print_basic be the new price?

wraith mason
#

yes

dense valve
#

And what about other old prices?

wraith mason
#

I don't understand what you mean I'm sorry

onyx terraceBOT
dense valve
#

Yes, I meant what about the old subscription price?