POST PreBooking

Overview

Get Pre Booking details

Request

POST /PreBooking

Request Information

Request Parameters

Name
Type
Requirement
Description
currency
String
Mandatory
Currency
preBookingTripList
List<PreBookingTrip>
Mandatory
preBookingTripList
preBookingTransfersList
List<PreBookingTransfer>
Mandatory
preBookingTransfersList
preBookingAccommodationList
List<PreBookingAccommodation>
Mandatory
preBookingAccommodationList

Prebookingtriplist

Name
Type
Requirement
Description
numberOfAdults
Integer
Mandatory
Number of adults
numberOfChildren
Integer
Mandatory
Number of children (This is valid only for Intrepid Family theme trips)
departureCode
String
Mandatory
The Intrepid alphanumeric code for the departure
promotionCode
String
Optional
The Intrepid alphanumeric code for the promotion
numberOfPaxOnSingleSupplements
Integer
Optional
Number of pax on single supplements

Prebookingtransferslist

Name
Type
Requirement
Description
transferProductID
Integer
Mandatory
Transfer Product ID
transferDate
String
Mandatory
Transfer Date
numberOfPax
Integer
Mandatory
Number Of Pax For the Transfer

Prebookingaccommodationlist

Name
Type
Requirement
Description
accommodationProductID
Integer
Mandatory
Accommodation Product ID
checkInDate
String
Mandatory
CheckIn Date Of Accommodation
numberOfNights
Integer
Mandatory
Number of nights for accommodate
numberOfPax
Integer
Mandatory
Accommodation Pax Count

Request Example

{
  "currency": "gbp",
  "preBookingTripList": [
    {
      "numberOfAdults": "3",
      "numberOfChildren": "2",
      "departureCode": "TTSN180408",
      "promotionCode": "12323",
      "numberOfPaxOnSingleSupplements": "2"
    },
    {
      "numberOfAdults": "3",
      "numberOfChildren": "2",
      "departureCode": "TTSN180408",
      "promotionCode": "12323",
      "numberOfPaxOnSingleSupplements": "2"
    }
  ],
  "preBookingTransfersList": [
    {
      "transferProductID": "12345",
      "transferDate": "2023-01-25",
      "numberOfPax": "1"
    },
    {
      "transferProductID": "12345",
      "transferDate": "2023-01-25",
      "numberOfPax": "1"
    }
  ],
  "preBookingAccommodationList": [
    {
      "accommodationProductID": 12345,
      "checkInDate": "2023-01-01",
      "numberOfNights": 1,
      "numberOfPax": 1
    },
    {
      "accommodationProductID": 12345,
      "checkInDate": "2023-01-01",
      "numberOfNights": 1,
      "numberOfPax": 1
    }
  ]
}

Response Information

Response Properties

Name
Type
Description
currency
String
Currency
depositAmount
Decimal
Deposit amount
depositDueDate
String
Deposit due date (if this exceeds the outstanding balance due date, then outstanding balance due date will be returned)
commission
Decimal
Commission amount paid by Intrepid to buying agent
totalGrossAmount
Decimal
Total amount paid by purchaser for booking
totalGrossAmountBeforeDiscount
Decimal
Total cost of booking before discount
totalNetAmount
Decimal
Total gross amount minus commission paid to the buying agent
discountAmount
Decimal
Total given discount amount
outstandingBalance
Decimal
Outstanding net balance amount
grossOutstandingBalance
Decimal
Outstanding gross balance amount
netOutstandingBalance
Decimal
Outstanding net balance amount
amountPaid
Decimal
Amount paid
outstandingBalanceDueDate
String
Outstanding balance due date
prices
List<TripPrices>
Prices
transferPrices
List<TransferPrice>
TransferPrices
accommodationPrices
List<AccommodationPrice>
AccommodationPrices
errors
List<DepartureError>
Departure errors in the request
transferErrors
List<TransferError>
Transfer errors in the request
accommodationErrors
List<AccommodationError>
Accommodation errors in the request

Prices

Name
Type
Description
departureCode
String
departureCode
pricePerAdult
Decimal
Gross Price Per Adult
pricePerChild
Decimal
Gross Price Per Child
discountedPricePerAdult
Decimal
Discounted Gross Price Per Adult
discountedPricePerChild
Decimal
Discounted Gross Price Per Child
supportsSingleSupplement
Boolean
•	 true
	 Product supports single supplements 

•	 false
	 Product doesn't support single supplements
pricePerPersonSingleSupplement
Decimal
Per Person Price for Single Supplement

Transferprices

Name
Type
Description
transferID
Integer
TransferID
pricePerAdult
Decimal
Gross Price Per Adult
totalPrice
Decimal
Total Price for all the participants.
transferDate
String
The Date Of the Transfer rquested.
numberOfPax
Integer
Number Of pax in the Transfer rquested.

Accommodationprices

Name
Type
Description
accommodationID
Integer
Accommodation Id for retrieval in pre booking
pricePerAdult
Decimal
pricePerAdult
totalPrice
Decimal
Total Price for all the participants.
numberOfPax
Integer
Number of pax in the accommodation rquested.
checkInDate
String
Accommodation Start Date.
checkOutDate
String
check Out Date.

Errors

Name
Type
Description
message
String
Error message
code
String
Error code
departureCode
String
Departure Code with errors

Transfererrors

Name
Type
Description
transferProductId
Integer
Error code
message
String
Error message
code
String
Error code
transferDate
String
Error date
numberOfPax
Integer
Error Pax Count

Accommodationerrors

Name
Type
Description
accommodationProductId
Integer
Error in Product ID
message
String
Error message
code
String
Error code
checkInDate
String
Error in Check In Date
numberOfPax
Integer
Error inPax Count
numberOfNights
Integer
Error in Number Of nights

Response Codes

HTTP status code
Description
200 OK
The resource was updated successfully
201 Created
The resource was created
400 Bad Request
The resource was malformed
401 Unauthorized
Missing or invalid API key
500 Internal Server Error
An unexpected error occurred on the API server
202 Accepted
The request was accepted
404 Not Found
The specified resource was not found
403 Forbidden
One or more parameters has already been set on the resource record and cannot be updated

Response Example

{
  "currency": "aud",
  "depositAmount": 12.5,
  "depositDueDate": "2017-08-25",
  "commission": 10,
  "totalGrossAmount": 2400.5,
  "totalGrossAmountBeforeDiscount": 2600.5,
  "totalNetAmount": 200.0,
  "discountAmount": 0.0,
  "outstandingBalance": 200.0,
  "grossOutstandingBalance": 10,
  "netOutstandingBalance": 10,
  "amountPaid": 3,
  "outstandingBalanceDueDate": "2018-07-12",
  "prices": [
    {
      "departureCode": "TTSN181226",
      "pricePerAdult": 200.0,
      "pricePerChild": 100.0,
      "discountedPricePerAdult": 200.0,
      "discountedPricePerChild": 100.0,
      "supportsSingleSupplement": true,
      "pricePerPersonSingleSupplement": 50.0
    },
    {
      "departureCode": "TTSN181226",
      "pricePerAdult": 200.0,
      "pricePerChild": 100.0,
      "discountedPricePerAdult": 200.0,
      "discountedPricePerChild": 100.0,
      "supportsSingleSupplement": true,
      "pricePerPersonSingleSupplement": 50.0
    }
  ],
  "transferPrices": [
    {
      "transferID": 12345,
      "pricePerAdult": 200.0,
      "totalPrice": 200.0,
      "transferDate": "2023-01-01",
      "numberOfPax": "2"
    },
    {
      "transferID": 12345,
      "pricePerAdult": 200.0,
      "totalPrice": 200.0,
      "transferDate": "2023-01-01",
      "numberOfPax": "2"
    }
  ],
  "accommodationPrices": [
    {
      "accommodationID": 12345,
      "pricePerAdult": 12345,
      "totalPrice": 200.0,
      "numberOfPax": "2",
      "checkInDate": "2023-01-01",
      "checkOutDate": "2023-01-02"
    },
    {
      "accommodationID": 12345,
      "pricePerAdult": 12345,
      "totalPrice": 200.0,
      "numberOfPax": "2",
      "checkInDate": "2023-01-01",
      "checkOutDate": "2023-01-02"
    }
  ],
  "errors": [
    {
      "message": "Departure is invalid",
      "code": "INVALID_DEPARTURE_CODE",
      "departureCode": "TESRS200705"
    },
    {
      "message": "Departure is invalid",
      "code": "INVALID_DEPARTURE_CODE",
      "departureCode": "TESRS200705"
    }
  ],
  "transferErrors": [
    {
      "transferProductId": "INVALID_TRANSFER_PRODUCT_ID",
      "message": "Tansfer is invalid",
      "code": "INVALID_TRANSFER_PRODUCT_ID",
      "transferDate": "INVALID_TRANSFER_DATE",
      "numberOfPax": "INVALID_TRANSFER_PAX_COUNT"
    },
    {
      "transferProductId": "INVALID_TRANSFER_PRODUCT_ID",
      "message": "Tansfer is invalid",
      "code": "INVALID_TRANSFER_PRODUCT_ID",
      "transferDate": "INVALID_TRANSFER_DATE",
      "numberOfPax": "INVALID_TRANSFER_PAX_COUNT"
    }
  ],
  "accommodationErrors": [
    {
      "accommodationProductId": "INVALID_ACCOMMODATION_PRODUCT_ID",
      "message": "Accommodation is invalid",
      "code": "INVALID_ACCOMMODATION",
      "checkInDate": "INVALID_ACCOMMODATION_CHECKIN_DATE",
      "numberOfPax": "INVALID_ACCOMMODATION_PAX_COUNT",
      "numberOfNights": "INVALID_ACCOMMODATION_NIGHTS"
    },
    {
      "accommodationProductId": "INVALID_ACCOMMODATION_PRODUCT_ID",
      "message": "Accommodation is invalid",
      "code": "INVALID_ACCOMMODATION",
      "checkInDate": "INVALID_ACCOMMODATION_CHECKIN_DATE",
      "numberOfPax": "INVALID_ACCOMMODATION_PAX_COUNT",
      "numberOfNights": "INVALID_ACCOMMODATION_NIGHTS"
    }
  ]
}