#samip_best-practices

1 messages · Page 1 of 1 (latest)

short ospreyBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1295214396921876531

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

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.

lament pike
#

Could you share an example subscription ID (sub_xxx), so that I can take a look how your current integration works?

spring quiver
#

Request ID : req_ltUjTZPJePT8O1
Promo Code ID : promo_1Q9dxyGei7MrDZaxEZLrgRpR
Customer ID : cus_R1hOMyGpm7qzCJ
Subscription ID : sub_1Q9e04Gei7MrDZaxf59Bj1C8

#

Last successful request (StatusCode : 200) -> req_p2ea2sHRJ53KBN

lament pike
#

Thanks for sharing! These information are very helpful. I'm checking whether it's possible to unset coupon using customer portal

spring quiver
#

Thank you

#

Hi there, any updates ?

lament pike
#

Thanks for waiting! I'm checking if there is any way to unset the coupon in Customer Portal. Unfortunately, this will not be possible.

The only way is create another product for yearly price that the coupon can't be applied to. Upon the upgrade, the coupon will be removed automatically

spring quiver
#

Even if I expire the coupon is there no way to unset the discount ?

lament pike
#

Once the coupon has been applied to a subscription, it will always be there regardless if the coupon is deleted / expired.

This is mentioned in https://docs.stripe.com/api/coupons/delete:

deleting a coupon does not affect any customers who have already applied the coupon; it means that new customers can’t redeem the coupon

#

I'd recommend creating a different product for yearly price, so that the coupon can't be applied upon upgrade

spring quiver
#

Unfortunately, due to constraints of the business I cannot create a new product.

#

Do I have any alternatives ?

lament pike
#

I'm afraid there is no other workaround in Customer Portal other than the one I suggested earlier.

Other alternative will be using direct Subscription API to upgrade the price.

spring quiver
#

Thank you