{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xavio-in/json-schema/xavio-in-booking-listing-schema.json",
  "title": "BookingListing",
  "description": "A bookable service you own.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/xavio-in-bookings-api-openapi.yml#/components/schemas/BookingListing",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "booking_listing"
      ]
    },
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "drawer_host_id": {
      "type": "string",
      "format": "uuid"
    },
    "title": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "duration_min": {
      "type": "integer"
    },
    "fee_cents": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Minor units (requests send fee_rupees)."
    },
    "currency": {
      "type": "string"
    },
    "payment_mode": {
      "type": [
        "string",
        "null"
      ],
      "description": "Derived from collect_payment / deposit_pct."
    },
    "deposit_pct": {
      "type": [
        "integer",
        "null"
      ]
    },
    "mode": {
      "type": [
        "string",
        "null"
      ]
    },
    "provider_kind": {
      "type": [
        "string",
        "null"
      ]
    },
    "timezone": {
      "type": "string",
      "description": "IANA zone, e.g. Asia/Kolkata."
    },
    "hours_from": {
      "type": "string",
      "description": "HH:MM"
    },
    "hours_to": {
      "type": "string",
      "description": "HH:MM"
    },
    "weekdays": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 6
      }
    },
    "lead_time_hours": {
      "type": "integer"
    },
    "instant_book": {
      "type": "boolean"
    },
    "button_label": {
      "type": "string"
    },
    "is_active": {
      "type": "boolean"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}