List User Bookings
GET/bookings
Lists all bookings (including automated admissions) for a user, sorted by date created (timestamp) and filtered by number plate if desired.
The response header `x-total-records` will return the total number of bookings in this query, this might be useful when paginating over a lot of results.
Request
Query Parameters
An optional list of number plates to filter the bookings (ie 0388VCP,8023GLV
).
A start date (ISO 8601) to filter the bookings from.
An end date (ISO 8601) to filter the bookings up to.
An end date (ISO 8601) to filter cancellations made from a certain date.
An end date (ISO 8601) to filter cancellations made up to a certain date.
Default value: 100
Number of records to return (defaults to 100
, 0
for everything)
Number of records to skip/offset (for pagination, defaults to 0
)
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
- 401
- 500
OK
Response Headers
x-total-records integer
Total number of bookings for this query
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
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"
}
]
Unauthorized (ie. Incorrect or missing x-access-token
)
Internal server Error (ie. Database down)