Partial update of an order/quote by ID
PATCH/v1/orders/:id
This endpoint is designed to update some properties of an order or quote.
Orders in the following statuses: "Delivered", "Cancelled" cannot be changed.
Quotes in the following statuses: "Cancelled" cannot be changed.
Only the following order or quote properties can be changed if less than 12 hours remain before the delivery date:
- paymentMethod
Items
Please indicate meal type (crew or passenger) in "label" property of each item.
To remove an item from the order, it must be removed from "items" array.
If some property of an item is not passed, it will remain unchanged.
To change the list of items, it is necessary to pass the complete list of all items (except fees), we can consider that for items it works as PUT.
But not for item properties, if you want to update one item property, you only need to pass it and its id.
"type" of existing items can't be changed.
An item with type = "fee" can neither be added nor deleted nor edited, it is fully controlled by the Formation side.
Request
Responses
- 200
- 400
- 401
- 404
- 422
- 500