#tammy-hepps_orders-coupon-redemption

1 messages ยท Page 1 of 1 (latest)

dire mothBOT
#

๐Ÿ‘‹ 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/1294316555890331659

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

barren breachBOT
flint sinew
#

Hi ๐Ÿ‘‹ can you tell me more about the Events that you're referring to? Which ones do you see for the first request, and which of those is missing from the second?

#

Can you also help me understand what you're referring to when you mention these requests have two logs?

ruby umbra
#

Each log reflects a call we make to Stripe. Previously each log generated one event.

So, for the coupon from before the problem, we have: (1) POST /v1/coupons => A new coupon with the ID 2ABJvrvJ was created, and (2)
POST /v1/orders/or_0Q5rcStpTGd6T1QOrVBXjGJF => The coupon with the ID 2ABJvrvJ was updated.

However, for the coupon affected by the error, we have: (1) POST /v1/coupons => A new coupon with the ID RlMiAdu7 was created, but (2) POST /v1/orders/or_0Q6ysNtpTGd6T1QOgirMAOF0 => NO EVENT and therefore coupon not updated to indicate that it was redeemed.

flint sinew
ruby umbra
#

When we post { "coupon": "2ABJvrvJ" } to /v1/orders/or_0Q5rcStpTGd6T1QOrVBXjGJF, we expect that Stripe will update the coupon. When it was working, your dashboard showed a coupon.updated event to confirm (evt_0Q5rcTtpTGd6T1QOmYVwENep in this case).

flint sinew
#

Gotcha, thank you for that clarification. Taking a closer look

dire mothBOT
#

tammy-hepps_missing-copuonupdated

analog aurora
#

Hi ๐Ÿ‘‹

My colleague needed to step away so I am continuing to investigate. I'm attempting to compare the logs between the request that created the coupon.updated event and the one that didn't.

analog aurora
#

Okay this does appear to be a bug in our deprecated Orders API. I'm going to have to ask you to write in to Support here https://support.stripe.com/contact

I will also raise this issue internally so our engineers are aware of it before you write in.

dire mothBOT
#

tammy-hepps_orders-coupon-redemption