Cancel 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/cancel
Example Request url:
https://admin.parking4you.co.uk/api/v1.0/bookings/cancel?key=APIKEY&reference_no=GCP-1-123***&refunded_amount=80.99
This endpoint is used to cancel a booking by sending an HTTP POST request to the specified URL. The request requires the 'key' parameter for authentication and the 'reference_no' parameter to identify the booking to be cancelled. Additionally, the 'refunded_amount' parameter is included in the request.
Query Params Description:
- key (string): The API key for authentication.
- reference_no (string): The reference number of the booking to be cancelled.
- refunded_amount (number_format): The amount to be refunded for the cancelled booking.
| Parameter | Type | Position | Required | Value |
|---|---|---|---|---|
| key | string |
Params |
Required |
gcp************* |
| reference_no | string |
Params |
Required |
GCP-123456*** |
| refunded_amount | number_format |
Params |
not Required |
80.99 |
Request Template:
{
"key":"string",
"reference_no":"string",
"refunded_amount":"number_format",
}
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 the reference number and third party reference related to the cancellation.
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":[
{
"reference_no":"GCP-123456***",
"third_party_reference":"",
}
]
}