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

Trip

Core trip information for the booking including destination, dates, and main product reference (hotel, hotel+flight package, or trip). This is the base product of the booking.

{
    "ProductID": 12345,
    "Name": "Hotel Arts Barcelona - 7 Nights",
    "Description": "Luxury beachfront hotel package with flights",
    "Images": [
        {
            "URL": "https://cdn.ygo.ai/trips/12345/main.jpg",
            "Width": 1920,
            "Height": 1080,
            "Type": "main"
        }
    ],
    "StartDate": "2025-11-15",
    "EndDate": "2025-11-22",
    "Latitude": 41.3851,
    "Longitude": 2.1734,
    "City": "Barcelona",
    "Country": "Spain",
    "CountryCode": "ES"
}
Built with