post https://sandbox.xola.com/api/orders
To create a confirmed order, you need to be logged in and be authorized with the reservation role (ROLE_RESERVATION
or ROLE_RESERVATION_LITE
) for the seller you are creating the order for.
Possibly the most complicated piece about orders are it's adjustments
. Adjustments serve two purposes:
- Redundancy check: This formula should always be true
baseAmount + addOns + adjustments = amount
- Audit trail: All changes to an order must be done via adjustments
You can use the /api/orders/prepare endpoint to have the adjustments generated for you.