{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tiquo/json-schema/tiquo-post-orders-request-schema.json",
  "title": "PostOrdersRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/tiquo-openapi-generated.yml#/components/schemas/PostOrdersRequest",
  "type": "object",
  "properties": {
    "sublocationId": {
      "type": "string"
    },
    "customerId": {
      "type": "string"
    },
    "companyId": {
      "type": "string"
    },
    "parentBookingId": {
      "type": "string"
    },
    "enquiryId": {
      "type": "string"
    },
    "source": {
      "type": "string",
      "description": "Default \"admin\". Value in \"pos\" | \"online\" | \"admin\""
    },
    "channel": {
      "type": "string",
      "description": "Default \"zapier\""
    },
    "orderType": {
      "type": "string",
      "description": "Value in \"eat_in\" | \"take_away\""
    },
    "status": {
      "type": "string",
      "description": "Default \"draft\". Value in \"draft\" | \"pending\" | \"processing\" | \"completed\" | \"cancelled\" | \"refunded\" | \"open_tab\" | \"lost_cart\""
    },
    "notes": {
      "type": "string"
    },
    "idempotencyKey": {
      "type": "string"
    },
    "items": {
      "type": "array",
      "description": "Items 1 <= items"
    }
  },
  "required": [
    "sublocationId",
    "items"
  ]
}