Initialise


Initialise

Endpoint

GET https://yourdomain.com/bookyflow/api/booking/initialise/1/en-GB

Request Headers

Header Value Required Description
X-BOOKYFLOW-BOOKING-SESSION-ID YOUR_SESSION_ID Yes

Response Example

Status: OK (200)

{
  "data": {
    "initialise": {
      "response": {
        "data": {
          "booking_model": "SRP",
          "language": "en-GB",
          "property_name": "Villa Antonella",
          "confirmation_url": "http://localhost/wordpress-5.9.3/index.php?option=com_bookyflow&page_id=7&task=confirmbooking&selectedProperty=20",
          "property_details_url": "http://localhost/wordpress-5.9.3/index.php?option=com_bookyflow&page_id=7&task=viewproperty&property_uid=20",
          "bypass_confirmation": true,
          "min_days": "1",
          "fixedPeriodBookings": 0,
          "fixedPeriodBookingsNumberOfDays": 0,
          "fixedArrivalDateYesNo": 0,
          "fixedArrivalDay": 7,
          "capacity": {
            "adults": "4",
            "children": "4"
          },
          "labels": {
            "HARRIVALDATE": "Check-in",
            "HDEPARTUREDATE": "Check-out",
            "BOOKINGHEADER": "Quick reservation",
            "ADDRESSHEADER": "Address",
            "HEXTITLE": "Optional extras.",
            "REQUIREDTEXT": "Items marked with a red star are required.",
            "BILLING_ROOM": "Per night:",
            "BILLING_ROOMTOTAL": "Accommodation",
            "BILLING_EXTRAS": "Extras:",
            "BILLING_TAX": "Tax:",
            "BILLING_DISCOUNT": "Discount:",
            "BILLING_TOTAL": "Grand Total (inc tax):",
            "DEPOSIT": "Deposit",
            "BILLING_TOTALINPARTY": "Guests",
            "AJAXFORM_PARTICULARS": "Booking particulars",
            "AJAXFORM_PARTICULARS_DESC": "When do you want to go?",
            "AJAXFORM_AVAILABLE": "Availability ",
            "AJAXFORM_ADDRESS": "Your Details",
            "AJAXFORM_ADDRESS_DESC": "Please enter your details. Note that all fields with a red star are required.",
  ...
  (Response truncated for brevity)
}