Cancel Booking
DELETE/bookings/:booking_uid
Cancel a users booking by unique id uid
. A booking can only be cancelled once, and if successful, further cancellations return 200 OK
with a cancellation_date
as of the first attempt.
Request
Path Parameters
Unique id for this booking
Header Parameters
Authentication header obtained from POST /authenticate
that identifies the user making this call.
Authentication header obtained from LMP Team that identifies the client making this call.
Authentication header obtained from LMP Team that identifies the user making this call.
Responses
- 200
- 400
- 401
- 403
- 404
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
A unique identifier for this booking in LetMePark database
Date and time when the booking was made and billed for
The name of the parking
Possible values: >= -90
and <= 90
The geo latitude of the parking
Possible values: >= -180
and <= 180
The geo longitude of the parking
The address of the parking
Unique id for a user (with payment method).
The identifier for a parking offer
Starting time for this booking (defaults to now)
Possible values: >= 15
and <= 14400
The duration of this booking in minutes (minimum 15, maximum 10 days)
Number plate without spaces (if different to normal vehicle for this user)
The brand of the vehicle for this booking (if different to normal vehicle for this user)
The model of the vehicle for this booking (if different to normal vehicle for this user)
The actual price charged to customer for this booking (in EUR. Ie, actual_price
= lmp_price
+ commission_price
).
The % percentage of commission charged to customer (0.1 = 10%).
The commission amount charged to customer (in EUR).
The price LetMePark paid for this booking (in EUR).
The booking reference from the parking provider
A phone number for support if there are any problems (phone + whatsapp)
An email address for support if there are any problems.
Minimum time necessary, in minutes, to cancel this booking (from the start time). If null
or undefined
then the booking cannot be cancelled.
Wether a booking has been cancelled
Date and time when the booking was cancelled
Some parking providers send us a voucher with indications. Is an url that will download a pdf file
Some parking providers send us an access code to enter the parking.
{
"uid": "4d0ed96e8a6d2814",
"timestamp": "2024-06-01T12:00:00.000Z",
"parking_name": "Parking Biblioteca Nacional",
"lat": 40.4235049,
"long": -3.6894324,
"address": "Paseo de Recoletos, 20-22, 28001 Madrid",
"user_uid": "6e5f243a26fe",
"lmppid": "parkweb-17891",
"start": "2024-06-01T12:00:00.000Z",
"duration": 60,
"number_plate": "0388VCP",
"car_brand": "Seat",
"car_model": "Ibiza",
"actual_price": 2.65,
"commission_percent": 0.1,
"commission_price": 0.24,
"lmp_price": 2.41,
"booking_ref": "PARKWEB-904358093",
"support_phone": "+34658206038",
"support_email": "parker@letmepark.app",
"cancel_mn": 120,
"cancelled": false,
"cancelled_date": "2024-06-01T12:00:00.000Z",
"voucher": "{protocol}://${domain}/voucher",
"access_code": "12345FGH12"
}
Bad request (ie. Missing or invalid details)
Unauthorized (ie. Incorrect or missing x-access-token
)
Forbidden (ie. Too late to cancel)
Not found (ie. No such booking)
Internal server Error (ie. Database down)