Make New Booking

We will discuss possible request and response parameters for all products search.

POST Request

Request url:

https://admin.parking4you.co.uk/api/v1.0/bookings/store

Example Request url:

https://admin.parking4you.co.uk/api/v1.0/bookings/store?key=APIKEY&departure=02-08-2024%2012:00&arrival=09-08-2024%2012:00&discount_code=&airport=BRS&return_response=full&sku=P4U147&title=Mr&first_name=Amir&last_name=Khan&email=amir.adbrains@gmail.com&contact_no=8866008738&departure_terminal=6&departure_flight_no=IGX9876&arrival_terminal=3&arrival_flight_no=IGX9883&amount=80.99&discount_amount=0&discount_code='NEWYEAR2024'&cancellation_status=true&sms_confirmation=false&valet_type=valet type&instruction='lorem ipsum'&no_of_peoples=3&vehicles[0][make]=Toyota&vehicles[0][model]=Camry&vehicles[0][color]=Blue&vehicles[0][reg_no]=ABC123

This API endpoint allows you to make an HTTP POST request to store a new booking for parking. The request should include parameters such as departure date and time, arrival date and time, airport code, customer details, vehicle details, and booking amount. The response will include a success status, response code, message, and additional data related to the booking.

Query Params Description:

  • Key: The API key for authentication.
  • SKU: The SKU code for the booking.
  • Airport: The airport code.
  • Departure: The departure date and time.
  • Arrival: The arrival date and time.
  • Departure Terminal: The departure terminal number.
  • Departure Flight No: The departure flight number.
  • Arrival Terminal: The arrival terminal number.
  • Arrival Flight No: The arrival flight number.
  • Title: The title of the customer.
  • First Name: The first name of the customer.
  • Last Name: The last name of the customer.
  • Email: The email address of the customer.
  • Contact No: The contact number of the customer.
  • Amount: The booking amount.
  • Discount Amount: The discount amount, if applicable.
  • Discount Code: The discount code, if applicable.
  • Cancellation Status: The cancellation status.
  • SMS Confirmation: Indicates whether SMS confirmation is required.
  • Valet Type: The type of valet service required.
  • Instruction: Any special instructions for the booking.
  • No of Peoples: The number of people associated with the booking.
  • Vehicles
    • Make: The make of the vehicle.
    • Model: The model of the vehicle.
    • Color: The color of the vehicle.
    • Reg No: The registration number of the vehicle.

Query Params:

Parameter Type Position Required Value
key String Params Required p4u*************
sku String Params Required P4U***
airport String Params Required BRS
departure String Params Required 25-07-2024 12:00
arrival String Params Required 30-07-2024 12:00
departure_terminal decimal Params Optional 6
arrival_terminal decimal Params Optional 3
departure_flight_no decimal Params Optional 854589
arrival_flight_no decimal Params Optional 525895
title String Params Required Mr.
first_name String Params Required John
last_name String Params Required Doe
email String Params Required [email protected]
contact_no String Params Required +1 555 555 5555
amount decimal Params Required 80.65
discount_amount decimal Params Optional 10.00
discount_code string Params Required NEWYEWAR2024
cancellation_status boolean Params Optional true
sms_confirmation boolean Params Optional false
valet_type string Params Optional valet type
instruction string Params Optional lorem ipsum
no_of_peoples integer Params Optional 3
vehicles[0][make] decimal Params Required Toyota
vehicles[0][model] decimal Params Required Camry
vehicles[0][color] decimal Params Required Blue
vehicles[0][reg_no] decimal Params Required ABC123

Request Template:

{
    "key": "string",
    "sku": "string",
    "airport": "string",
    "departure": "timestamp",
    "arrival": "timestamp",
    "departure_terminal": "decimal",
    "departure_flight_no": "decimal",
    "arrival_terminal": "decimal",
    "arrival_flight_no": "decimal",
    "amount": "decimal",
    "discount_amount": "decimal",
    "discount_code": "string",
    "cancellation_status": "boolean",
    "sms_confirmation": "boolean",
    "valet_type": "string",
    "instruction": "string",
    "no_of_peoples": "integer",
    "vehicles": [
        {
            "make": "string",
            "model": "string",
            "color": "string",
            "reg_no": "string"
        }
    ]
}

Response

Response Body:

  • success (boolean): Indicates if the request was successful.
  • response_code (integer): The code indicating the status of the response.
  • message (string): Any additional message related to the response.
  • data (array): Additional data related to the booking, such as multi-mode reference number and reference number.

Please note that the actual values for the product information will be returned in the response, but have been omitted for privacy and security reasons.

{
    "success": true,
    "response_code": 200,
    "message": "successful",
    "data": {
        "multi_mode_reference_no": "MM-GCP-1-564***",
        "reference_no": [
            "GCP-1-564***"
        ]
    }
}