#alexxiv_code
1 messages · Page 1 of 1 (latest)
👋 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/1293841977275584523
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Can you share the request ID (req_xxx) of your preview request? Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
req_8ZaRlFzqfSMwGl
The provided id is from another request which has 99% off but the underlying problem is the same
I think you need to pass the coupon ID explicitly for the discount to work.
Two questions here:
- How to get the coupon id, yesterday while I was researching I came across couple topics that one time coupons are destroyed after apply. The subscription item does not have any discounts or etc.
- If I somehow manage to find the coupon id (Store it from the invoice webhook) applying it here will result in 100% off for price with quantity 2 which is not the desired outcome
- You should be able to get the discounts by expanding this property: https://docs.stripe.com/api/subscriptions/object#subscription_object-discounts
- This is expected. The 100% coupon applies to all the eligible items in the current Subscription configuration.
If you want to only apply it to a single unit of an item, you need a coupon for a fixed amount.
So basicly I need to apply new coupon with fixed amount which I have calculated?
Correct.
Thank you