Create an edit on a draft order. This will allow you to make changes to the draft order's items, shipping methods, or promotions. Once you've made the necessar changes, you can later either request the edit (which requires a confirmation from the customer), or force-confirm the edit.
Request
Authorization
or
or
or
Path Params
Responses
🟢200OK
OK
This response does not have a body.
🟠400Bad Request
🟠401Unauthorized
🟠404Record Not Found
🟠409409
🟠422Parameter Error
🔴500Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl-X POST '{backend_url}/admin/draft-orders/{id}/edit' \
-H'Authorization: Bearer {access_token}'
Response Response Example
400 - Not Allowed Error
{"message":"Discount must be set to dynamic","type":"not_allowed"}