What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Shopify admin complete draft order API error

Shopify admin complete draft order API error

eragon
Shopify Partner
1 0 0

Hi,

 

When calling the shopify admin complete draft order api e.g (PUT "admin/api/2022-04/draft_orders/23423424/complete.json"), we are the following error "422 unprocessable entity, error : another staff member is processing this draft order. Check back in a minute ".

May i know how to resolve this error?

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1453 238 525

Hey @eragon - generally that error message reflects that either another staff member or app is currently processing the draft order as it indicates. Another reason for this could be that the app is somehow sending multiple requests and causing the system to think the draft order is already being worked on. If this issue is still occurring regularly, and you are sure that your app isn't concurrently trying to access the order multiple times or that it isn't being processed by a staff member of the store/another order management app, can you reach back out here? 

If you do reach out - could you also share an X-Request-ID that should be present in the response headers for the error message? This will help us track down if this is an issue on our end and we can look into this further. 

 

Hope this helps - please get back in touch if the error persists if you can confirm the issue isn't just that other user or app is dealing with draft orders concurrently with your app. 

Al | Shopify Developer Support

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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