Search Single Product
We will discuss possible request and response parameters for single product search.
GET Request
Request url:
https://admin.parking4you.co.uk/api/v1.0/product/
The endpoint retrieves product information related to parking services at a specific airport, using the provided key, departure and arrival dates, airport code, and product SKU.
Query Params Description:
- key (string): The API key for authentication.
- sku (string): Product unique id with respect to your database
- 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************* |
| sku | 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",
"sku":"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":[],
}
....
]
}