Skip to content

Oyo Book hotel Provisional

Aashiq edited this page Dec 8, 2017 · 1 revision

1.3 Book hotel Provisional

Intent

book_hotel_provisional

Request Params Description

KEYWORD DESCRIPTION
firstName First Name of guest
lastName Last Name of guest
email Email of guest
countryCode Country code for guest phone
phone Phone of guest
single No of single rooms
double No of double rooms
extra No of extra beds
checkInDate Check In Date
checkOutDate Check Out Date
HotelID Oyo ID for a hotel
is_provisional If it's provisional
external_reference_id No of Rooms

Payload

{
  "firstName": "$firstName",
  "lastName": "$lastName",
  "email": "$email",
  "countryCode": "$countryCode",
  "phone": "$phone",
  "single": $single,
  "double": $double,
  "extra": $extra,
  "checkInDate": "$checkInDate",
  "checkOutDate": "$checkOutDate",
  "HotelID": "$HotelID",
  "is_provisional":"$is_provisional",
  "external_reference_id": "$external_reference_id"
}

Response Params Description

Response Key Description
id Unique Booking Id
checkin Checkin Date format (yyyy-mm-dd)
checkout Checkout Date format (yyyy-mm-dd)
invoice Unique Booking String, Communication voucher has this booking reference id.
no_of_guest No Of Guest
roomCount Count Of rooms
final_amount Final Amount for the booking that will be collected by OYO from affiliate.In case of pay at hotel booking this amount will be paid by guest at Hotel
status Status of booking. "Saved" - For provisional booking. "Confirm Booking" - For confirmed booking.
guest_name Name of Guest
guest_phone Phone Number of Guest
guest_email Email of Guest
country_name Category of hotel ( Static Text )
currency_symbol Currency Symbol
external_reference_id Unique reference id for booking passed via affiliate.

Response Body

{
    "id": $id,
    "checkin": "$checkin",
    "checkout": "$checkout",
    "invoice": "$invoice",
    "no_of_guest": $no_of_guest,
    "roomCount": $roomCount,
    "final_amount":$final_amount,
    "status": "$status",
    "guest_name": "$guest_name",
    "guest_phone": "$guest_phone",
    "guest_email": "$guest_email",
    "country_name": "$country_name",
    "currency_symbol": "$currency_symbol",
    "external_reference_id": "$external_reference_id"
}
Clone this wiki locally