orders

Complete an order

Moves an order to done, activating it first when it is still a draft, and returns its id; an order already done is left unchanged, so a retry is safe. It does not require payment: completing an unpaid order finishes its booking and settles its table's shared invoice. It is the manual completion for takeaway and aggregator-delivery orders; dine-in orders complete through payment and own-rider deliveries through orders.markDelivered. Refused with BAD_REQUEST for a cancelled order. Refused with CONFLICT and the refusal orderNotShipped for a supplier's shipment order that has not shipped yet: Ship it first. An unpaid order with a line a pass redeems is refused with BAD_REQUEST as passRedemptionUnpaid: take its payment, at AED 0 when the pass covers all of it, so the guest's code is asked and the use is counted. 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.

post/api/public/v1/orders/{id}/complete

Request

  • Base URL
    https://app.fortuneos.ai
  • Auth
    none declared

Path parameters

id, string required

Response

OK

unknown required

Changes

No recorded changes to this operation across all 243 revisions of this API.