Create Booking
POST/bookings
Creates a parking booking for a user, with optional car details (number plate, car brand and model) if different from their own default vehicle. This process takes 10-20 seconds most of the time, but can take up to 45 seconds in some extreme cases.
Additionally, and for information purposes, you can send a personalised name and telephone number.
Request
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.
- application/json
Body
required
Booking details
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)
An email address where to CC the booking details, once the booking is confirmed.
The expected price for this booking (when available, booking fails if actual price > 50%)
Name of the person who will use this booking.
Telephone number of the person who will use this booking in case the car park needs to contact him/her.
Responses
- 201
- 400
- 401
- 403
- 500
Created
- 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 lmppid
)
Unauthorized (ie. Incorrect or missing x-access-token
)
Forbidden (ie. No payment details)
Internal server Error (ie. Database down)