#alexxiv_code

1 messages · Page 1 of 1 (latest)

stuck cedarBOT
#

👋 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.

wintry jay
stuck cedarBOT
brittle delta
#

req_8ZaRlFzqfSMwGl

#

The provided id is from another request which has 99% off but the underlying problem is the same

glossy harness
#

I think you need to pass the coupon ID explicitly for the discount to work.

brittle delta
#

Two questions here:

  1. 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.
  2. 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
glossy harness
#

If you want to only apply it to a single unit of an item, you need a coupon for a fixed amount.

brittle delta
#

So basicly I need to apply new coupon with fixed amount which I have calculated?

glossy harness
#

Correct.

brittle delta
#

Thank you