Duplicate contact created through RESTful API (PUT)

It seems I sometimes get duplicate contacts created from the API when I call the the Create or Update a Contact endpoint (PUT)

I’m using "duplicate_option": "Email" to check for duplicates. The duplicates I’m seeing have the EXACT same information and it shows the contacts being created at the EXACT same time.

Has anyone else had this issue? Admittedly, this may not be an Infusionsoft issue and rather something somewhere else that I could be doing wrong - but the fact that the contact creation timestamps are the exact same indicates to me that it could be from the same API call?

Any help would be much appreciated.

Hey @Jason_Lee,
This is most likely due to how soon the request is sent/received. On our side, if a second incoming request comes in prior to the first finishing, it may look like the contact doesn’t exist. How are you calling this endpoint from your code? If it is asynchronously, that may cause this to happen because on our side, the two requests could potentially run in parallel if they are received close enough together.