{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/sj-se/main/json-schema/sj-se-post-booking-request-schema.json",
  "title": "PostBookingRequest",
  "x-generated": "2026-10-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/sj-se-openapi-generated.yml#/components/schemas/PostBookingRequest",
  "type": "object",
  "properties": {
    "externalRef": {
      "type": "string",
      "description": "Client‑side booking reference"
    },
    "purchaser": {
      "type": "object",
      "description": "Purchaser details"
    },
    "offers": {
      "type": "array",
      "description": "Selected offer IDs and passenger references"
    },
    "passengerSpecifications": {
      "type": "array",
      "description": "Passenger data for the booking"
    },
    "embed": {
      "type": "array",
      "description": "Embedding options, e.g., \"ALL\""
    }
  },
  "required": [
    "externalRef",
    "purchaser",
    "offers",
    "passengerSpecifications"
  ]
}