{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dispatchtickets-com/json-schema/dispatchtickets-com-post-v1-workspaces-ws-xxx-tickets-request-schema.json",
  "title": "PostV1WorkspacesWsXxxTicketsRequest",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/dispatchtickets-com-openapi-generated.yml#/components/schemas/PostV1WorkspacesWsXxxTicketsRequest",
  "type": "object",
  "properties": {
    "subject": {
      "type": "string"
    },
    "customer_email": {
      "type": "string"
    },
    "custom_fields": {
      "type": "object",
      "description": "Order related custom fields"
    },
    "custom_fields.order_id": {
      "type": "string"
    },
    "custom_fields.order_total": {
      "type": "number"
    },
    "custom_fields.order_status": {
      "type": "string"
    },
    "custom_fields.tracking_number": {
      "type": "string"
    },
    "custom_fields.items": {
      "type": "array",
      "description": "List of ordered items"
    },
    "custom_fields.items[].name": {
      "type": "string"
    },
    "custom_fields.items[].qty": {
      "type": "integer"
    },
    "custom_fields.items[].price": {
      "type": "number"
    }
  },
  "required": [
    "subject",
    "customer_email",
    "custom_fields",
    "custom_fields.order_id",
    "custom_fields.order_total",
    "custom_fields.order_status",
    "custom_fields.tracking_number",
    "custom_fields.items",
    "custom_fields.items[].name",
    "custom_fields.items[].qty",
    "custom_fields.items[].price"
  ]
}