Skip to main content
GET
/
prebooks
/
{prebookId}
Retrieve a prebook by ID
curl --request GET \
  --url https://book.liteapi.travel/v3.0/prebooks/{prebookId} \
  --header 'X-API-Key: <api-key>'
{
  "data": {
    "prebookId": "<string>",
    "offerId": "<string>",
    "hotelId": "<string>",
    "checkin": "<string>",
    "checkout": "<string>",
    "currency": "<string>",
    "termsAndConditions": "<string>",
    "roomTypes": [
      {
        "rates": [
          {
            "rateId": "<string>",
            "occupancyNumber": 123,
            "name": "<string>",
            "maxOccupancy": 123,
            "adultCount": 123,
            "childCount": 123,
            "childrenAges": [
              123
            ],
            "boardType": "<string>",
            "boardName": "<string>",
            "remarks": "<string>",
            "priceType": "<string>",
            "commission": [
              {
                "amount": 123,
                "currency": "<string>"
              }
            ],
            "retailRate": {
              "total": [
                {
                  "amount": 123,
                  "currency": "<string>"
                }
              ],
              "suggestedSellingPrice": [
                {
                  "amount": 123,
                  "currency": "<string>",
                  "source": "<string>"
                }
              ],
              "initialPrice": [
                {
                  "amount": 123,
                  "currency": "<string>"
                }
              ],
              "taxesAndFees": [
                {
                  "included": true,
                  "description": "<string>",
                  "amount": 123,
                  "currency": "<string>"
                }
              ]
            },
            "cancellationPolicies": {
              "cancelPolicyInfos": [
                {
                  "cancelTime": "<string>",
                  "amount": 123,
                  "currency": "<string>",
                  "type": "<string>",
                  "timezone": "<string>"
                }
              ],
              "hotelRemarks": [
                {}
              ],
              "refundableTag": "<string>"
            },
            "paymentTypes": [
              "<string>"
            ]
          }
        ]
      }
    ],
    "suggestedSellingPrice": {
      "amount": 123,
      "currency": "<string>",
      "source": "<string>"
    },
    "commission": 123,
    "addonsTotalAmount": 123,
    "price": 123,
    "priceType": "<string>",
    "priceDifferencePercent": 123,
    "cancellationChanged": true,
    "boardChanged": true,
    "supplier": "<string>",
    "supplierId": 123,
    "transactionId": "<string>",
    "paymentTypes": [
      "<string>"
    ],
    "mappedRoomId": 123,
    "secretKey": "<string>",
    "voucherCode": "<string>",
    "voucherTotalAmount": "<string>",
    "addonsRequest": [
      {
        "addon": "<string>",
        "value": 123,
        "currency": "<string>",
        "addonDetails": {
          "package_id": 123,
          "destination_code": "<string>",
          "start_date": "<string>",
          "end_date": "<string>"
        }
      }
    ],
    "creditLine": {
      "remainingCredit": 123,
      "currency": "<string>"
    }
  },
  "guestLevel": 123,
  "sandbox": true
}

Authorizations

X-API-Key
string
header
required

Path Parameters

prebookId
string
required

(Required) The unique identifier of the prebook session.

Query Parameters

includeCreditBalance
string

Whether to include updated credit balance information with the prebook.

Response

OK

data
object
guestLevel
integer

Used with loyalty programs to determine the guests level of cost reduction.

sandbox
boolean

Indicates whether this response is in a test/sandbox environment (true/false).