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.

Failed to complete draft order by Admin API

Failed to complete draft order by Admin API

tcmleung
Shopify Partner
16 2 10

I created some draft order on Shopify portal.

Then when I use Admin REST API call to complete the draft order

curl --location --request PUT 'https://xxx.myshopify.com/admin/api/2023-01/draft_orders/{{draft order ID}}/complete.json' 

, it throws the following error:

 

Click to expand...

{"errors":"Some delivery details may have changed. Verify your shipping method and try again., Your cart has been updated and the items you added can’t be shipped to your address. Remove the items to complete your order., and Your payment couldn’t be processed because your order total has changed. Check your order total and try again."} 

But if I open the draft order in Shopify and click "Collect payment" and then Mark as paid, and click "Create order", the order can be created successfully.

 

I could complete the draft order in the past but don't know why I cannot now.

 

 

 

Replies 0 (0)