502 Bad Gateway Error in Draft Orders api

3 0 0


We're getting intermittent 502 Bad Gateway error when calling draft_orders/{id}/complete.json using Shopify Sharp. Currently we are using API version 2021-07. Will updating fix this issue. An example of this is RequestId: 8599b24d-9aef-4387-9cb6-d9432bb4984f.

Replies 2 (2)

Shopify Staff
2731 301 779

Hi SimplyCoffee,


The API version 2021-07 is outdated and no longer supported, so what is happening now is that for these API calls, Shopify falls forward and responds to your request with the same behaviour as the oldest supported stable version. That being said you should update the version and see if this is causing the error, as it's not recommended to rely on Shopify's fallback behaviour. 


Hope this helps,

Liam | Developer Advocate @ 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

Shopify Partner
2 0 0

I am using version 2023-10 which is the stable version of the api and it is giving me the same 502 error, is there any other way to solve this?