Submit a dine-in or takeaway order

Creates a PENDING order from the published menu. Restaurant facades only; requires orderEnabled on the facade. Kitchen is notified via in-app, WhatsApp, or webhook when configured.

post/api/v1/b/{handle}/orders

Request

  • Base URL: https://www.trusgent.com
  • URL: https://www.trusgent.com/api/v1/b/{handle}/orders
  • Auth: one of:
    • none
    • HTTP bearer

Path parameters

handlestring required
Example:TG-S-839201

Public facade handle — same as AgentID (agentId).

Request body

tablestring required

Table code from facade.tables or scan QR

fulfillmentMode'DINE_IN' | 'TAKEAWAY' | 'PICKUP'
guestNamestring
guestPhonestring
notestring

Example request

{
  "items": [
    {
      "currency": "HKD"
    }
  ]
}

Response

Order created (pending merchant acceptance)

kindstring
idstring

Order ID

statusstring
handlestring
opsHintstring

Example response

{
  "kind": "BusinessOrder",
  "status": "PENDING"
}

Changes

No recorded changes to this operation across all 1 revision of this API.