Skip to main content

OptionSearch

OptionSearch groups rooms, pricing and policy data for a single offer.

idid (string)

Aggregator unique identifier for the option.

accessIdaccessId (string)

Access identifier that supplied the option.

hotelCodehotelCode (string)

Provider hotel identifier.

hotelNamehotelName (string)

Hotel name provided by the supplier.

boardCodeboardCode (string)

Provider board code associated with the option.

boardNameboardName (string)

Descriptive board name.

rateRules object[]

Commercial rules that apply to the option rate.

  • Array [
  • typetype (string)

    Type categorising the rule.

    Possible values: [RATE_RULES_UNSPECIFIED, RATE_RULES_BALEARIC_RESIDENT, RATE_RULES_CANARY_RESIDENT, RATE_RULES_CUSTOM, RATE_RULES_ESSENTIAL_WORKER, RATE_RULES_HONEYMOON, RATE_RULES_LARGE_FAMILY, RATE_RULES_MOBILE, RATE_RULES_NEGOTIATED, RATE_RULES_CORPORATE, RATE_RULES_OLDER55, RATE_RULES_OLDER60, RATE_RULES_OLDER65, RATE_RULES_PACKAGE, RATE_RULES_PUBLIC_SERVANT, RATE_RULES_UNEMPLOYED, RATE_RULES_WARRANTY]

    descriptiondescription (string)

    Free text description supplied by the provider.

  • ]
  • rooms object[]

    Rooms included in the option.

  • Array [
  • occupancyRefIdinteger<int32>

    Identifier that links the room to the requested occupancy.

    codecode (string)

    Provider room identifier.

    descriptiondescription (string)

    Room name or description.

    roomPrice object

    Room total price including taxes or fees.

    bindingbinding (boolean)

    Indicates whether the price is binding or subject to change.

    suggestednumber<double>

    Recommended selling price.

    netnumber<double>

    Net cost injected by the provider.

    currencycurrency (string)

    ISO 4217 currency code for the price amounts.

    ratePlan object

    Rate plan that governs booking conditions.

    codecode (string)

    Provider rate plan code.

    namename (string)

    Display name for the rate plan.

    promotions object[]

    Promotions applied to the room.

  • Array [
  • codecode (string)

    Promotion identifier.

    namename (string)

    Human readable promotion name.

    amountamount (string)

    Promotion amount or percentage as provided by the supplier.

    effectiveDatestring<date-time>

    Start date for the promotion validity window.

    expireDatestring<date-time>

    End date for the promotion validity window.

  • ]
  • unitsinteger<int32>deprecated

    Deprecated: number of units allocated for this room.

  • ]
  • price object

    Total price for the stay.

    bindingbinding (boolean)

    Indicates whether the price is binding or subject to change.

    suggestednumber<double>

    Recommended selling price.

    netnumber<double>

    Net cost injected by the provider.

    currencycurrency (string)

    ISO 4217 currency code for the price amounts.

    paymentTypepaymentType (string)

    Payment type that dictates collection mechanics.

    Possible values: [MERCHANT, DIRECT, CARD_BOOKING, CARD_CHECK_IN]

    surcharges object[]

    Optional surcharges applied to the booking.

  • Array [
  • typetype (string)

    Surcharge type identifier.

    descriptiondescription (string)

    Human readable description of the surcharge.

    mandatorymandatory (boolean)

    Indicates whether the surcharge is mandatory.

    includedincluded (boolean)

    Indicates whether the surcharge is included in the displayed price.

    price object

    Price associated with the surcharge.

    bindingbinding (boolean)

    Indicates whether the price is binding or subject to change.

    suggestednumber<double>

    Recommended selling price.

    netnumber<double>

    Net cost injected by the provider.

    currencycurrency (string)

    ISO 4217 currency code for the price amounts.

  • ]
  • cancelPolicy object

    Cancellation policy describing penalties and windows.

    cancelPenalties object[]

    Penalties applicable when cancelling.

  • Array [
  • currencycurrency (string)

    Currency used for the penalty value.

    deadlinestring<date-time>

    Deadline timestamp after which the penalty applies.

    hoursBeforeinteger<int32>

    Hours before arrival when the penalty becomes effective.

    penaltyTypepenaltyType (string)

    Type of penalty value.

    Possible values: [IMPORT, NIGHTS, PERCENT]

    valuenumber<double>

    Penalty value interpreted according to penaltyType.

  • ]
  • refundablerefundable (boolean)

    Indicates whether the booking is refundable.

    remarks object[]

    Additional remarks or notes.

  • Array [
  • typetype (string)

    Type identifier that categorises the value.

    valuevalue (string)

    Associated value.

  • ]
  • fromCachefromCache (boolean)

    Indicates whether the option originated from cache instead of a live call.

    OptionSearch
    {
    "id": "string",
    "accessId": "string",
    "hotelCode": "string",
    "hotelName": "string",
    "boardCode": "string",
    "boardName": "string",
    "rateRules": [
    {
    "type": "RATE_RULES_UNSPECIFIED",
    "description": "string"
    }
    ],
    "rooms": [
    {
    "occupancyRefId": 0,
    "code": "string",
    "description": "string",
    "roomPrice": {
    "binding": true,
    "suggested": 0,
    "net": 0,
    "currency": "string"
    },
    "ratePlan": {
    "code": "string",
    "name": "string"
    },
    "promotions": [
    {
    "code": "string",
    "name": "string",
    "amount": "string",
    "effectiveDate": "2024-07-29T15:51:28.071Z",
    "expireDate": "2024-07-29T15:51:28.071Z"
    }
    ]
    }
    ],
    "price": {
    "binding": true,
    "suggested": 0,
    "net": 0,
    "currency": "string"
    },
    "paymentType": "MERCHANT",
    "surcharges": [
    {
    "type": "string",
    "description": "string",
    "mandatory": true,
    "included": true,
    "price": {
    "binding": true,
    "suggested": 0,
    "net": 0,
    "currency": "string"
    }
    }
    ],
    "cancelPolicy": {
    "cancelPenalties": [
    {
    "currency": "string",
    "deadline": "2024-07-29T15:51:28.071Z",
    "hoursBefore": 0,
    "penaltyType": "IMPORT",
    "value": 0
    }
    ],
    "refundable": true
    },
    "remarks": [
    {
    "type": "string",
    "value": "string"
    }
    ],
    "fromCache": true
    }