{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentbookable-com/json-schema/agentbookable-com-booking-schema.json",
  "title": "Booking",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentbookable-com-openapi.json#/components/schemas/Booking",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "businessId": {
      "type": "string"
    },
    "serviceId": {
      "type": "string"
    },
    "staffId": {
      "type": [
        "string",
        "null"
      ]
    },
    "start": {
      "type": "string"
    },
    "end": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "confirmed",
        "pending",
        "cancelled",
        "completed"
      ]
    },
    "customer": {
      "type": "object",
      "description": "Personal data partially masked",
      "properties": {
        "name": {
          "type": "string"
        },
        "email": {
          "type": [
            "string",
            "null"
          ]
        },
        "phone": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "createdVia": {
      "type": "string",
      "enum": [
        "agent"
      ]
    },
    "mandateRef": {
      "type": "string"
    },
    "createdAt": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    }
  }
}