Adjust order prices
For use cases where you need to adjust prices on an existing order before it is being processed, it is possible to create an order with the 'optional' request parameter 'completed' set to 'false' (Default 'true').
Orders with completed set to false, can still be updated with the following endpoints:
| Endpoint | Remarks |
|---|---|
| Orders_PatchOrder | Update the price, shippingCosts and discount per orderline |
| Orders_UpdateDiscountData | Update the discount property on orderlines and the discount description and amount on order level |
| Orders_UpdateShippingCosts | Update the shipping costs for an order |
When a patch call has been done, the order totals and VAT are recalculated (using the existing VAT rates on the order) and saved to the database.
To complete an order, the Orders_Complete endpoint can be used. After completion, the order can not be changed any longer.
Updated 6 months ago