#idealfull_docs

1 messages · Page 1 of 1 (latest)

marble quailBOT
#

👋 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/1435477964551622719

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

#

⛔️ Stripe developers have stepped away for a short while

Please leave your questions here, and we’ll respond as soon as we're back! If you need help urgently, you can contact Stripe support for help.

marble quailBOT
dusty violet
#

Hi! Looking into your question!

#

Can I have the object ID of the subscription you created? It starts with sub_

whole quest
#

this one sub_1SN2dSPPjTFS9ll0CnmtrEGZ

#

Actually, I just want to confirm whether my coupon will automatically stop after 2 months when using Duration=repeating along with DurationInMonths=2, and then revert to the original price.

dusty violet
#

Looking into that now.

whole quest
#

Maybe like this:
To give you a pointer though, DurationInMonths configures how many months the Discount that will be created when that Coupon is redeemed will be valid for. If you have a Subscription with a billing period every day then this Discount would be valid for the first two full months of that Subscription and every single Invoice for the first 2 months will be discounted.

dusty violet
#

Can I check why are you using duration: repeating and duration_in_months: 2 because these are deprecated parameters?

whole quest
#

For example, if a subscription originally costs $10, I want to use a coupon to make the first two periods $8 each, allowing the subscriber to enjoy some discounts at the beginning.

#

Like this Note in SDK codes:
// Specifies how long the discount will be in effect if used on a subscription. Defaults to once.
Duration *string form:"duration"
// Required only if duration is repeating, in which case it must be a positive integer that specifies the number of months the discount will be in effect.
DurationInMonths *int64 form:"duration_in_months"

dusty violet
#

Can I confirm what you wish to achieve is:

  • Monthly subscription
  • Apply a discount for the first 2 months?
whole quest
#

YES,but maybe three months also

dusty violet
#

Looking into this for you. Give me a moment.