#ironbeard_api
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/1471904098411610304
๐ 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.
- ironbeard_bug-report-followup, 22 hours ago, 12 messages
- ironbeard_api, 23 hours ago, 38 messages
Hello, I believe that is expected with one-time coupons. The coupon is applied to the subscription's first invoice and that completely uses it up so we don't store the coupon on the subscription
I do see the discount on the invoice that that request created, so that lines up with what I know in_1T0OicE3d1saT86kHWNsxsx0
oh, interesting
Okay, that's good to know. I appreciate it! ๐
btw, I've been trying to track down the status of a possible bug I noticed about a year ago that you helped me with: https://discord.com/channels/841573134531821608/1324817116561670194
Basically, it appeared that promotion_code.updated webhook was not fired (with active=False) when expires_at is reached. I think I initially noticed that it also didn't fire when times_redeemed = max_redemptions, but you confirmed that part had been fixed last year.
Looking in to this and will test again. For this specific promo code it looks like it didn't have max redemptions.
https://dashboard.stripe.com/acct_1Rb39DE3d1saT86k/test/events/evt_1T0OieE3d1saT86kOEnZELZK
Do you have a recent ID on hand from this update not firing?
sorry, I don't actually have a reproducible example, I was just following up. I tried doing it with test clocks yesterday, and I don't think it worked, but I wasn't sure if I tested it correctly
Testing myself I did get an update that shows active going from true to false when this happens for times redeemed at least
"id": "evt_1T0PPvJmquaq3Lbp8Owz6uYX",
"object": "event",
"api_version": "2025-05-28.basil",
"created": 1771000830,
"data": {
"object": {
"id": "promo_1T0POAJmquaq3LbpAHW7gyK0",
"object": "promotion_code",
"active": false,
"code": "MDQAXGW7",
"coupon": {
"id": "hIcNlLV3",
...
"times_redeemed": 5,
"valid": true
},
...
"max_redemptions": 5,
...
"times_redeemed": 5
},
"previous_attributes": {
"active": true,
"times_redeemed": 4
}
},
"...
"type": "promotion_code.updated"
}```
clock_1T05PME3d1saT86kwVtuoJcN was the clock where I tried to apply a promotion code that would expire and then move the clock forward.
Oh I misread what you said there. I thought you were saying that times redeemed wasn't working either. Will try to track down that bug report
yeah, I think 2-3 years ago the max_redemptions didn't work, but you tested it a year ago in https://discord.com/channels/841573134531821608/1324817116561670194 and it had been fixed. But a year ago the expires_at didn't fire the webhook. and looking at the time clock I just linked it didn't appear to fire yesterday
Gotcha, yep confirmed we're still in the same place. I just created a promo code that expired in 60 seconds, it did go inactive but no event was fired.
I pinged on the bug report, but can't promise this time will have better results. Apologies this one hasn't been prioritized.
It's okay, I handle it on my side but just didn't know if the code is now stale. Thanks for your time ๐
Is it possible for me to have a reference to the bug report so I can track it in the future? if that's all internal stuff, no worries ๐
Can't give out that detail unfortunately. As long as you mention expires_at and promotion_code.updated we should be able to find it though.
Understandable ๐ Have a great day!