{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/olaclick/json-schema/olaclick-post-v1-orders-request-schema.json",
  "title": "PostV1OrdersRequest",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/olaclick-openapi-generated.yml#/components/schemas/PostV1OrdersRequest",
  "type": "object",
  "properties": {
    "service_type": {
      "type": "string",
      "description": "ONSITE, TABLE, DELIVERY, or TAKEAWAY"
    },
    "client_id": {
      "type": "string",
      "description": "An existing client of your company"
    },
    "table_id": {
      "type": "string",
      "description": "Only for TABLE orders"
    },
    "address_id": {
      "type": "string",
      "description": "Only for DELIVERY orders"
    },
    "delivery_price": {
      "type": "number",
      "description": "Only for DELIVERY orders"
    },
    "status": {
      "type": "string",
      "description": "Send PENDING to skip the INITIATED draft"
    },
    "comment": {
      "type": "string"
    },
    "order_title": {
      "type": "string"
    },
    "packaging_price": {
      "type": "number"
    },
    "scheduled_delivery_date": {
      "type": "string"
    }
  },
  "required": [
    "service_type"
  ]
}