Booking Submit

Booking Submit

post a booking request

Header

Content-Type: application/x-www-form-urlencoded

POST

/booking_submit

Request

    {
        "checkin_date":"2018-11-01",
        "checkout_date":"2018-11-02",
        "hotel_id":"899",
        "reference_id":"12345678",
        "partner_data":{
            "hotelID":"899",
            "roomType":"3022",
            "ratetype":"1822",
            "rateDetail":"6093",
            "price":"183",
            "discount":"4812",
            "discount2":"0"
        },
        "payment":{
            "parameters":{
                "card_type":"MasterCard",
                "card_number":"54307xxxxxxxx9993",
                "cardholder_name":"Stelios Kalogeropoulos",
                "expiration_month":"09",
                "expiration_year":"2025",
                "cvv":"507"
            },
            "billing_address":{
                "address1":"124 Alimou",
                "city":"Athens",
                "state":"Attiki",
                "postal_code":"18345",
                "country":"GR"
            }
        },
        "customer":{
            "first_name":"stelios",
            "last_name":"kalogeropoulos",
            "phone_number":"6947275998",
            "email":"[email protected]",
            "country":"GR"
        },
        "rooms":[
        {
            "party":{
                "adults":2,
                "children":[
                    4
                ]
                },
            "traveler_first_name":"stelios",
            "traveler_last_name":"kalogeropoulos"
        }
        ],
        "final_price_at_booking":{
            "amount":183,
            "currency":"EUR"
        }
    }

Parameter

FieldTypeDescriptionMandatory
checkin_datestringThe user's check-in date in YYYY-MM-DDtrue
checkout_dateStringThe user's check-out date in YYYY-MM-DDtrue
hotel_idstringthe hotel_idtrue
reference_idStringpartner identifier for the bookingtrue
customerCustomerThe user booking the reservationtrue
roomsRoomStay arrayAn array of rooms to be booked..true
paymentPayment objectDefines the payment method of the usertrue
final_price_at_bookingPriceContains the full price to be paid at time of booking, including taxes and fees.true
partner_dataobjectEchoed partner_data from the booking availability requesttrue

Customer

FieldTypeDescriptionMandatory
partyPartyContains the number of adults and children staying in this roomtrue
traveler_first_nameStringFirst name of the primary user staying in this room.true
traveler_last_namestringLast name of the primary user staying in this roomtrue

RoomStay

FieldTypeDescriptionMandatory
first_namestringFirst name of the user submitting the bookingtrue
last_nameStringLast name of the user submitting the booking.true
phone_numberstringPhone number of the user submitting the bookingtrue
emailStringE-mail address of the user submitting the bookingtrue
countryCustomerISO 3166 country code of the user submitting the bookingtrue

Payment

You can send "-" for all Fields if cc details are not available Fields are still mandatory part of the request

FieldTypeDescriptionMandatory
card_typestringDiners Club MasterCard Discover AURA ELO American Express VISA JBCtrue
card_numberStringCredit card number used for the booking.true
cardholder_namestringName on the credit card holder.true
expiration_monthStringExpiration month as a two-digit string (e.g. 01, 02, .. 12)true
expiration_yearstringExpiration year as four digit string.true
cvvstringThe cvv number of the credit card used for the booking.true

Response


    {
      "reference_id": "12345678",
      "status": "success",
      "reservation": {
        "reservation_id": "RES1221151018R899",
        "hotel_id": "899",
        "status": "Booked",
        "confirmation_url": "https://demov3.book-onlinenow.net/index.aspx?Page=18&member=res899h511&pass=812486",
        "checkin_date": "2018-11-01",
        "checkout_date": "2018-11-02",
        "customer": {
          "first_name": "stelios",
          "last_name": "kalogeropoulos",
          "phone_number": "3-(292)055-6386",
          "email": "[email protected]",
          "country": "GR"
        },
        "rooms": [
          {
            "party": {
              "adults": 2,
              "children": [
                4
              ]
            },
            "traveler_first_name": "stelios",
            "traveler_last_name": "kalogeropoulos"
          }
        ],
        "receipt": {
          "line_items": [
            {
              "price": {
                "amount": 166,
                "currency": "EUR"
              },
              "type": "net_rate",
              "paid_at_checkout": false,
              "description": "Total amount at check-in"
            },
            {
              "price": {
                "amount": 16.6,
                "currency": "EUR"
              },
              "type": "vat",
              "paid_at_checkout": false,
              "description": "Total tax at check-in"
            }
          ],
          "final_price_at_booking": {
            "amount": 182.6,
            "currency": "EUR"
          },
        }
      }
    }

Parameters

FieldTypeDescriptionMandatory
problemsProblem arrayAn array containing issues that occurredtrue, only if 'status' is "Failure"
reference_idStringEcho the reference_idtrue
statusstringSuccess Failuretrue
reservationReservationContains details associated with the reservation ( e.g. receipt, date of stay, guests, etc.).true, only if 'status' is "Success"

Problem

FieldTypeDescriptionMandatory
problemstringsupported problem typetrue
explanationStringdetails of the problem that could be displayed to an end usertrue
detailstringtechical details of the problemtrue

Receipt

FieldTypeDescriptionMandatory
line_itemsLineItem arrayAn array of LineItem objects containing a separate LineItem for each of rate, tax, and fee types.true
final_price_at_bookingPriceObject containing the entire price to be paid at time of booking, including taxes and fees. This will be used to validate the line items.true

Reservation

FieldTypeDescriptionMandatory
reservation_idstringunique id for this reservationtrue
statusstringBooked Cancelledtrue
statusstringBooked Cancelledtrue
confirmation_urlstringDeep link to the reservation confirmation page.true
checkin_datestringThe check-in date of the user in YYYY-MM-DD.true
checkout_datestringThe check-out date of the user in YYYY-MM-DD.true
Hotel_idstringUnique identifier for this hoteltrue
customerCustomerContains the customer booking the reservationtrue
roomsRoomStay arrayAn array of RoomStay objects.true
receiptReceiptInformation about the pricing on the reservation.true