#Yann - search
1 messages ยท Page 1 of 1 (latest)
๐ Hi there, Happy to help!
It seems like you have concurrency issue in your integration, what makes your integration searching for the same customer twice in a very short period ?
In fact we have two situations where several customers are created.
The first is that we have two pages that retrieve a customer's information from stripe to display their subscriptions (the two pages display different information but we therefore have two requests).
The second is in the situation where we want to retrieve subscriptions from a customer and then retrieve their invoices based on the subscriptions returned by the customer's subscriptions.
When creating the customer you can specify idempotent_requests in order to create only one customer
https://stripe.com/docs/api/idempotent_requests
How are you searching for customers ? what query are you sending ?
OK so as I mentioned at the beginning, it's a concurrency issue on your integration, so even you redesign your integration so that you send the second search request after you make sure that the first one (with the creation of the customer if not exists) finishes or use idempotent_requests while creating the customer
ok thank you very much for your reply! great support!
Have a good day ๐