Remove a same-day draft order
Archives a draft order created on the current UTC date and still in new status, freeing any booking it held, and returns its id. The order disappears from lists but keeps its lines, payments and history and stays readable through orders.get; use orders.cancel for any other order. Refused with BAD_REQUEST for an order that is not a same-day draft or was already removed, with CONFLICT while it holds a pager that has not been returned, and with CONFLICT and refusal terminalPaymentLive while a terminal payment on it has not resolved. Refused with CONFLICT and the refusal orderShipped once a supplier's shipment order has shipped: what shipped is never changed. Refused with shiftClosed once the order's shift has closed (FORBIDDEN; BAD_REQUEST when creating under it) and with FORBIDDEN notShiftParticipant for a caller not taking part in the shift. Refused with FORBIDDEN as paywallLocked when the caller is an Owner or Manager of a business the merchant Paywall locks: one with no verified subscription that has taken 5 orders while the Paywall's rollout reaches it, an order counting from its first saved line, whether or not it is paid or completed, until it is archived or cancelled before activation. Nothing is read or written; a verified subscription lifts the lock.
Request
- Base URLhttps://app.fortuneos.ai
- Authnone declared
Request body
Response
OK
Changes
No recorded changes to this operation across all 243 revisions of this API.