POST Start Order Edit
Starts editing a placed order. The order's items are loaded into a new Cart 2.0 cart, which is returned here, and from that point you use the ordinary cart endpoints: PUT /cart/{cart_id} to change it, POST /cart/{cart_id}/checkout, then POST /cart/{cart_id}/order to commit.
There is no separate "save the edit" call. POST /cart/{cart_id}/order recognises an edit cart — metadata.is_order_edit is true and metadata.original_order_id names the order — and revises the original instead of placing a new one. Any extra amount due is taken then; a lower total is refunded.
Unlike edit/validate, this endpoint refuses outright with 400 when the order is no longer editable, so call edit/validate first if you want to offer the option conditionally. Editability is re-checked at checkout as well, so an edit can still fail if the time limit passes while the customer is working.
This replaces the customer's current cart. The edit cart is written to the customer's default cart slot, so anything already in their basket is lost. To abandon an edit, call POST /cart/{cart_id}/reset.
Send Content-Type: application/json even with an empty body.
Path Parameters
- Type: stringFormat: uuidorder
_uuid requiredUUID of the order to edit
Headers
- Type: stringAcceptrequired
Type of content accepted by the API (application/json in most cases)
- Type: stringApplicationrequired
Application key for specific client app
- Type: stringContent
- Type requiredContent-Type header
- Type: stringA
P I - V E R S I O N requiredVersion of the API to be used
- Type: stringAuthorization
Authorization header
- Type: stringX
- Request - I D requiredUnique request identifier
Body
- Type: string | nullFormat: uuidvenue
_id Move the order to a different store as part of the edit. Defaults to the order's own venue.
Responses
- application/json
- 400
The order can no longer be edited — the brand has editing switched off, the status has moved on, the time limit has passed, or an approval is no longer pending.
- 401
Missing or invalid customer token.
- 403
The brand is not on the NMG product structure.
- 404
No such order for this customer, or it has already been superseded by a revision.
curl https://api-public-demo.menu.app/api/orders/9f1c0f3a-2b7c-4a66-9f1e-2c9a1c9a1c9a/edit \
--request POST \
--header 'Accept: application/json' \
--header 'Application: application-key' \
--header 'Content-Type: application/json' \
--header 'API-VERSION: ' \
--header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937' \
--data '{}'
{
"status": "OK",
"code": 200,
"data": {
"cart": {
"id": "b1946ac92492d2347c6235b4d2611184f1f3f4b4a1c0a7c5d9e8f7a6b5c4d3e2",
"products": [],
"summary": {},
"order_edit_status": {
"has_changes": false
},
"metadata": {
"venue_id": "6f1f0f3a-2b7c-4a66-9f1e-2c9a1c9a1c9a",
"order_type_id": 6,
"is_order_edit": true,
"original_order_id": "9f1c0f3a-2b7c-4a66-9f1e-2c9a1c9a1c9a"
}
}
}
}