Thanks for raising this! We had the documentation errors raised to us prior and are working through fixing the documentation, apologies for the inconvenience.
Here’s the calls that can be used to complete a Draft order via the REST API - hope this helps!
Complete and mark as paid PUT /admin/api/{api_version}/draft_orders/{draft_order_id}/complete.json
Complete and mark as pending PUT /admin/api/{api_version}/draft_orders/{draft_order_id}/complete.json?payment_pending=tru
I am glad that documentation getting better and better day by day!
Also, thanks for putting up quick example about that API call here. It really helps to move forward while I understand that documentation update should go by process and may time bit time to go live.
@Luke_K It looks like documentation is now updated. Thank you for that. However, this endpoint is not working. I am simply adding draft order ID in URL and just making HTTP PUT call. I get only response :
{"errors": "Not Found"}
I am tryin on 2021-07 API version which is latest. I can see the draft order with same ID in my shopify account as a double check measure that order must exist.
Apologies for the delay, I have been out of office - if you’re still receiving this issue would you mind sharing the full call you are making here and the request_id from it? I can take a look. Thanks!
@Luke_K Thank you for your response. I figured it out. I was unsure about what to send as payload in the PUT request. But apparently there is no payload here.