#baneet

1 messages · Page 1 of 1 (latest)

spring sapphireBOT
gusty finch
#

Can you share a sub_xxx or evt_xxx ID?

unique sundial
#

Sure, here is the event id : evt_1MbksFCouZlpUmlStaKGN4Pn
sub_id : sub_1MbksBCouZlpUmlSdjSkHS39

gusty finch
#

Looks like promo_1MbjMuCouZlpUmlS0IzOmOl2 has been used up (reached max redemptions)

#

Subscription creation doesn't fail in those instances, it just won't generate a discount

unique sundial
#

yes, it reached max redemption when I used this promo code for creating the current subscription.
If you check the invoice.payment_succeeded event having id "evt_1MbkxyCouZlpUmlS7xWrpEEj" you will see that this have been used in the same subscription

#

and this event is actually returning me data in discount array

#

So it should have returned same when the subscription.created event also

gusty finch
#

Hmmm, let me see if that is expected

unique sundial
#

okay

gusty finch
#

Is this the first time you've noticed this? Or has it happened with other customer.subscription.created events?

unique sundial
#

This has happened with previous events also

#

I can get you another event id if you need it

gusty finch
#

I can't recreate this. In my tests the discount hash is populated relative to the promo_xxx

#

Suspect its some kind of race condition

gusty finch
unique sundial
#

I started noticing this today only since I tried discount synchronization today only.

here is another subscription which had same issue sub_1MbjQLCouZlpUmlSwnSYqAdu",

#

I can check on old subscription events also

gusty finch
#

Hmm, weird. I can certainly raise this internally with the team. As stated, I can't reproduce the problem

unique sundial
#

okay, Please do

Also, I checked webhooks and this has happened yesterday also

Sub id : sub_1MbMdOCouZlpUmlS5M7n8OVm
Sub create event Id : evt_1MbMdSCouZlpUmlS5cVYpXYz",