#LBrito-duplicate subscriptions

1 messages · Page 1 of 1 (latest)

tame moon
#

👋 happy to help

#

could you please send some ids so we could take a look?

wispy yoke
#

Hey, thanks! cus_LqpwXwU0iYUsfj, cus_LqpwOiPqwOR2aV, cus_M0E8zufvm9Ahp5, cus_M0E8Jk8iIP8ZqD

tame moon
#

could you please send the subscription ids for the first customer

wispy yoke
#

Just a sec

tame moon
#

for the first customer I only see one canceled subscription

wispy yoke
#

sub_1L98GELmu5QiBx4BYwE1ioP2, sub_1L98GGLmu5QiBx4BtVLkJ9Tg

#

Well there are two customer ids for the same person: cus_LqpwOiPqwOR2aV and cus_LqpwXwU0iYUsfj

tame moon
#

the idempotency key is different and the customer id is different

#

how are you creating the subscriptions?

wispy yoke
#

"the idempotency key is different" that suggests we are sending two requests to you services?

tame moon
#

yes with two different idempotency keys

wispy yoke
#

Is there any way on your side that can be blocked?

tame moon
#

what do you mean?

wispy yoke
#

Haven't been able to reproduce it at all, so not sure how to avoid us creating two requests.

#

We check if the email is already in use

#

Before creating a customer

tame moon
#

I think it's more an issue of your API being called twice and the idempotency key being generated on the API level

#

I can't really tell since I don't have all the context/code in front of me

wispy yoke
#

Ok, thanks for the extra perspective, going to have a think about this.

tame moon
#

let me know if you need any more help

wispy yoke
#

Will do, thanks for your time

fiery barn
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

wispy yoke
#

Thanks