Order API running into a 500 error but still creating order on Shopify end

Hi,

We are running into an issue where we are getting a 500 error from Shopify’s Order API but it turns out irrespective of that the order is actually getting created successfully on Shopify’s end. On our end, due to the error, we retry creating that order and if the second time around it goes through successfully (which seems to happen most of the time) - we end up with duplicate orders. We could probably add some checks and balances in our integration for this which seems to be just unnecessary work given that I am. not sure why we get 500 in the first place if the orders is getting created anyways. Has someone ran into this? if so, how did you resolve it?

Thanks.

Hey @Hello_pet ,

Can you provide an x-request-id from the response headers? and we can look into this further.

Hi,

I’m facing the same issue several times.

I’m making the request for order creation, I get back an HTTP 500 server internal error but the order is actually created. Since this returns an error, after some minutes I try to recreate the order.

Sometimes this new request behaves correctly sometimes it doesn’t and the merchant ends up with a lot of duplicate orders (double, triple or more).

Is there any reported issue that is being pursued that I can monitor or any workaround solution. this is creating a lot of stock accuracy issues since each order allocates stock and puts these units offline until the duplicates are properly treated.

Thanks in advance.

Best Regards,

José Carlos Santos

Hi,

Sam from Philip Browne Menswear here

Just stepping in to see if Shopify can help rectify the situation that our partners have mentioned above.

The situation is extremely difficult to manage our end. Multiple sales creating minus stock holdings, creating fewer sales and no availability on many items daily. This must be resolved quickly.

Please can you work with our partners @jcsantos to help rectify the problem as quickly as possible please.

I hope you can understand the seriousness of this matter and is resolved ASAP

Many thanks in advance,

Sam

Hey @jcsantos ,

Can you provide an x-request-id from the response headers (from within the last 10 days)? and we can look into this further.

Hi @CalD

Thank you for getting back to us. @jcsantos if you could get back to @CalD as quickly as possible so we can try and rectify this situation.

Many Thanks,

Sam

Hi,

Just jumping in again here to show what we are dealing with in regards to the duplication of orders

These duplicate orders are just from this morning.

Thanks,

Sam

Hi,

We will raise our log levels and as soon as we have some samples we will share with you, thanks

Best Regards,

José Carlos Santos

Hi, here are some samples:

orders:

PHB127767574 (FF-127767574)
X-Request-Id = 0faa67d1-8515-40c3-9ed6-c9b4455f8c8f

PHB127767374 (FF-127767374)
X-Request-Id = 830b001d-83a4-435f-9023-1cc3571ff4c0

Best Regards,

José Carlos Santos

Hi @CalD ,

Are you able to help us at all within this thread:

https://community.shopify.com/c/Shopify-APIs-and-SDKs/Shopify-Confusing-a-decimal-for-a-thousand-separator-affecting/m-p/1300184#M71628