Search All Products
We will discuss possible request and response parameters for all products search.
GET Request
Request url:
https://admin.parking4you.co.uk/api/v1.0/products/
This endpoint makes an HTTP GET request to retrieve information about products related to parking services. The request includes parameters such as the API key, departure and arrival dates, discount code, airport code, and return response type. The response will be in JSON format and will include a success status, response code, message, and data related to the products, including their ID, name, image, quote, token, price, discount, cancellation policy, airport details, terminals, status, SKU, features, type, offer, services, and reviews.
Query Params Description:
- key (string): The API key for authentication.
- departure (time stamp): The departure date and time for the parking service.
- arrival (time stamp): The arrival date and time for the parking service.
- discount_code (string): The discount code, if applicable.
- airport (string): The airport code for the parking location.
- return_response (string): The type of response expected, e.g., "full".
| Parameter | Type | Position | Required | Value |
|---|---|---|---|---|
| key | string |
Params |
Required |
p4u************* |
| departure | dd-mm-YYYY hh:mm |
Params |
Required |
25-07-2024 12:00 |
| arrival | dd-mm-YYYY hh:mm |
Params |
Required |
30-07-2024 12:00 |
| discount_code | string |
Params |
not-mandatory |
NEWYEAR2024 |
| airport | string |
Params |
Required |
BRS |
| return_response | string |
Params |
Required |
full |
Request Template:
{
"key":"string",
"airport":"string",
"departure":"dd-mm-YYYY hh:mm",
"arrival":"dd-mm-YYYY hh:mm",
"discount_code":"string",
"return_response":"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): Contains information about the products, including their ID, name, image, quote, token, price, discount, cancellation policy, airport details, terminals, status, SKU, features, type, offer, services, and reviews.
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":[
/* ======= Products List ======= */
{
"id":"integer",
"name":"string",
"image":"text",
"price":"decimal",
"price_before_discount":"decimal",
"discount":"decimal",
"cancellation":"boolean",
"airport_code":"string",
"airport_name":"string",
"terminals":[array],
"status":"string",
"sku":"string",
"features":"text",
"type":"string",
"offer":"string",
"services":[],
"show_extra_amount":"decimal",
"show_levy_charge":"decimal",
"admin_charges":"decimal",
"cancellation_charges":"decimal",
"sms_charges":"decimal",
"average_rating":"decimal",
"reviews":[],
}
....
]
}