YGO API
  1. Schemas
YGO API
  • Overview
  • Core Concepts
  • Authentication
  • Quickstart Guide
  • AI Search & Trip Planning
  • Booking Flow
  • Environments
  • General
    • Check API health status
    • Get current API key context
  • AI Search & Trip Planning
    • Send message to YGO AI
  • Product Search (Classic)
    • Search for hotel & package offers
    • Get transfers for booking
    • Get package price calendar
  • Bookings
    • Get or create open booking
    • Update open booking
    • Update booking status and trigger workflows
    • List bookings
    • Get booking
  • Schemas
    • Schemas
      • PackageSearchRequest
      • GetTransfersRequest
      • GetOpenBookingRequest
      • SaveOpenBookingRequest
      • SaveBookingStatusRequest
      • ListBookingsRequest
      • GetBookingRequest
      • GetPackageCalendarRequest
      • Product
      • TransferOptionsResponse
      • Booking
      • ProductTexts
      • TransferOption
      • BookingDetails
      • TripReference
      • PackageCalendarResponse
      • LocaleContent
      • Trip
      • BookingItemInput
      • PackageCalendarDate
      • ProductImage
      • TransferImage
      • BookingItem
      • ProductDetails
      • PickupInformation
      • Traveller
      • PackageOffer
      • PickupLocation
      • TourOperator
      • Pickup
      • Image
      • Accommodation
      • CheckPickup
      • Room
      • TransferRemark
      • Transport
      • CancellationPolicy
      • Flight
      • Airport
      • Price
      • PriceByPax
      • SuccessResponse
      • ErrorResponse
      • Hotel
      • HotelFeatures
      • FeatureState
      • RoomFeatures
      • RoomContent
      • Facility
    • Response
      • Unauthorized
  1. Schemas

SaveOpenBookingRequest

Complete booking object to save. Must include the booking ID, UserID, and all details to be updated. The endpoint will validate ownership, ensure ProductID hasn't changed, clean invalid items (quantity < 1, price <= 0, or type 'trip'), and process voucher validation.

{
    "ID": "A1B2C3D4",
    "UserID": "user_abc123xyz",
    "ProductID": 12345,
    "Status": "open",
    "Details": {
        "Trip": {
            "ProductID": 12345
        },
        "Items": [],
        "Travellers": [],
        "FirstName": "John",
        "LastName": "Smith",
        "Email": "john.smith@example.com",
        "Phone": "+44 7700 900123",
        "Street": "123 Main Street",
        "ZipCode": "10001",
        "City": "New York",
        "CountryCode": "US",
        "Voucher": {
            "Code": "SUMMER2025"
        },
        "TotalPrice": {
            "Amount": 850,
            "Currency": "EUR"
        },
        "Locale": "en"
    }
}
Built with