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

Hello_pet
New Member
1 0 0

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.

 

0 Likes
CalD
Shopify Staff
Shopify Staff
129 15 19

Hey @Hello_pet,

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

CalD | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes