Find Offers by lmppid
GET/offers/:lmppid
Finds an offer for a lmppid
Request
Path Parameters
The identifier for a parking offer. (ie empark-3,parclick-2471,parclick-1803
)
Query Parameters
Default value: now
ISO8601 timestamp when parking starts (Defaults to now
)
Possible values: >= 15
and <= 14400
Default value: 60
Parking duration in minutes (Defaults to 60
, minimum 15
, maximum 14400
)
Default value: es
Translates offer's messages (like access) to the selected language in ISO2 code.
Header Parameters
Authentication header obtained from POST /authenticate
that identifies the user making this call.
Authentication header obtained from POST /authenticate
that identifies the client making this call.
Authentication header obtained from POST /authenticate
that identifies the user making this call.
Responses
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- ]
- ]
The identifier for this offer
The name of the parking
Type of parking
Provider od the offer
Id of the parking from the provider
The address 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 expected price for this offer
True if a booking can be made online
Reason if aviable is false
True if offer supports automated entry and billing
Unique code for the parking
How to access the parking, any special instructions the user needs to know
Minimum time necessary, in minutes, to cancel this booking (from the start time). If null
or undefined
then the booking cannot be cancelled.
Url with the parking details from the provider of the offer
rates object[]
List with different prices according to the time of reservation ordered from lowest to highest price
Magnitude of the time unit
The unit of time. It can be day or hour
Amount corresponding to the offer time (including 10% LMP commission)
Price currency
Formatted time and time unit
[
{
"lmppid": "parkweb-17891",
"name": "Parking Biblioteca Nacional",
"type": "parking",
"provider": "Elparking",
"PID": 234,
"address": "Paseo de Recoletos, 20-22, 28001 Madrid",
"lat": 40.4235049,
"long": -3.6894324,
"customer_price": 2.65,
"available": true,
"reason": "SIN VERIFICAR (NO API)",
"automated": true,
"pluscode": "8CGRC79V+3PX",
"access_msg": "string",
"cancel_mn": 120,
"booking_url": "parking.com",
"rates": [
{
"time": 1,
"unit": "hour",
"price": 2.65,
"currency": "EUR",
"friendly_name": "1 hour"
}
]
}
]
Bad request
Unauthorized (ie. Incorrect or missing x-access-token
)