{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/42min-us/json-schema/42min-us-booking-schema.json",
  "title": "Booking",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/42min-us-api-openapi.yml#/components/schemas/Booking",
  "type": "object",
  "required": [
    "uid",
    "version",
    "event_type_id",
    "status",
    "start_at",
    "end_at",
    "timezone",
    "attendees",
    "guests",
    "calendar_sync_status",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "uid": {
      "type": "string"
    },
    "version": {
      "type": "integer",
      "description": "Incremented on every write. Surfaced as the ETag."
    },
    "event_type_id": {
      "type": "string",
      "format": "uuid"
    },
    "event_type_slug": {
      "type": [
        "string",
        "null"
      ]
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string"
    },
    "start_at": {
      "type": "string",
      "format": "date-time"
    },
    "end_at": {
      "type": "string",
      "format": "date-time"
    },
    "timezone": {
      "type": "string"
    },
    "host": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "user_id": {
          "type": "string",
          "format": "uuid"
        },
        "username": {
          "type": [
            "string",
            "null"
          ]
        },
        "email": {
          "type": [
            "string",
            "null"
          ],
          "description": "The address can change; use the id to identify a user."
        }
      }
    },
    "attendees": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email"
          },
          "name": {
            "type": "string"
          },
          "timezone": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    },
    "guests": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email"
          },
          "name": {
            "type": "string"
          }
        }
      }
    },
    "location": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "type": {
          "type": [
            "string",
            "null"
          ]
        },
        "url": {
          "type": [
            "string",
            "null"
          ],
          "description": "Conferencing link, when one was generated."
        },
        "value": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "metadata": {
      "type": [
        "object",
        "null"
      ],
      "description": "Your own key-value data, echoed back unchanged.",
      "additionalProperties": true
    },
    "responses": {
      "type": [
        "object",
        "null"
      ],
      "description": "Answers to the invitee form. Populated on single-booking reads; null in list\nresponses, so fetch the booking directly when you need them.\n",
      "additionalProperties": true
    },
    "calendar_sync_status": {
      "type": "string",
      "enum": [
        "synced",
        "pending",
        "failed",
        "not_applicable"
      ]
    },
    "calendar_event_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "rescheduled_from_uid": {
      "type": [
        "string",
        "null"
      ],
      "description": "The booking this one replaced, if it came from a reschedule."
    },
    "cancelled_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Note the British spelling of this field name, which is fixed by the contract."
    },
    "cancellation_reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "no_show_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "no_show_reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "series_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "The recurring series this booking belongs to, or null."
    },
    "series_index": {
      "type": [
        "integer",
        "null"
      ],
      "description": "0-based position of this booking in its series, or null."
    },
    "payment": {
      "oneOf": [
        {
          "$ref": "#/$defs/PaymentSummary"
        },
        {
          "type": "null"
        }
      ],
      "description": "The payment collected for this booking on the public booking page, or null for\nan unpaid booking. Bookings created through this API or MCP are never paid.\n"
    }
  },
  "$defs": {
    "PaymentSummary": {
      "type": "object",
      "required": [
        "provider",
        "status",
        "amount",
        "currency",
        "amount_refunded",
        "paid_at",
        "receipt_url"
      ],
      "properties": {
        "provider": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "paid",
            "partially_refunded",
            "refunded"
          ],
          "description": "Derived from the amount refunded; a disputed payment keeps its status."
        },
        "amount": {
          "type": "integer",
          "description": "ISO 4217 minor units."
        },
        "currency": {
          "type": "string",
          "description": "Lowercase ISO 4217 code."
        },
        "amount_refunded": {
          "type": "integer",
          "description": "ISO 4217 minor units; the provider's absolute figure."
        },
        "paid_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "receipt_url": {
          "type": [
            "string",
            "null"
          ],
          "description": "The provider's receipt page; Stripe's expires after 30 days."
        }
      }
    }
  }
}