POST /api/public/v1/orders/setDelivery

Changed on

Refused with CONFLICT orderPartPaid when the write would move a part-paid order to another table, off its table or onto one, and guestPaymentUnderWay when guests hold shares of its table's bill from the QR menu. On an own-rider delivery whose order names no customer, saving also makes the recipient the order's customer: the customer already holding the number, else a new one, when the number reads in the organization's region; The response's createdCustomer is the new one's name and phone, null when none was made. A saved address also joins that customer's addresses when the recipient is the customer. A member attached to an order already paid earns its loyalty points, unless the business takes no new Loyalty work (its own switch is off, or its plan restricts or lacks Loyalty). 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 URL
    https://app.fortuneos.ai
  • Auth
    none declared

Request body

object required
orderId, string required
deliveryChannel, union
deliveryOrderNo, string nullable
deliveryName, string nullable
deliveryPhone, string nullable
deliveryAddress, string nullable
deliveryArea, string nullable
deliveryCity, string nullable
deliveryNotes, string nullable

Response

OK

unknown required

Changes

    • breaking

      removed the enum value careem of the request property deliveryChannel/anyOf[subschema #1]

    • breaking

      removed the enum value deliveroo of the request property deliveryChannel/anyOf[subschema #1]

    • breaking

      removed the enum value delivery_club of the request property deliveryChannel/anyOf[subschema #1]

    12 more changes in this revision