Parking Lots
This is the main endpoint for parking lots. It allows you to retrieve a list of all parking lots and the related data for each parking lot.
The ParkingLot model
Properties
-
- Name
id
- Type
- int
- Description
-
The unique identifier of the parking lot.
-
- Name
name
- Type
- string
- Description
-
The name of the parking lot.
-
- Name
number_of_spaces
- Type
- int
- Description
-
Number of spaces. Defaults to 0 = infinite.
-
- Name
zone_number
- Type
- int
- Description
-
The zone number.
-
- Name
max_time
- Type
- int
- Description
-
The maximum allowed time for a ticket, in seconds. Defaults to 0 = infinite.
-
- Name
parking_lot_fee
- Type
- ParkingLotFee[]
- Description
-
Array of fees for the parking lot. See ParkingLotFee resource.
-
- Name
variable_fees
- Type
- VariableFee[]
- Description
-
Array of variable fees for the parking lot. See VariableFee resource.
-
- Name
parking_lot_open
- Type
- ParkingLotOpen[]
- Description
-
Array of opening hours for the parking lot. See ParkingLotOpen resource.
-
- Name
parking_lot_location
- Type
- ParkingLotLocation[]
- Description
-
Array of locations of the parking lot. See ParkingLotLocation resource.
-
- Name
active
- Type
- boolean
- Description
-
Weather the parking lot is active or not.
-
- Name
max_fee
- Type
- int
- Description
-
The maximum fee for a ticket created on this parking lot. Defaults to 0 = infinite.
JSON Resource
{
"id": 77099,
"name": "Monahan LLC",
"number_of_spaces": 628,
"zone_number": 3340,
"max_time": 404,
"parking_lot_fee": [
{
"id": 5197,
"cost_per_unit": 2092,
"unit": 1,
"start_time": "13:44:02",
"end_time": "08:37:00",
"type_of_day": 2,
"round": false
}
],
"variable_fees": [],
"parking_lot_open": [],
"parking_lot_location": [],
"active": false,
"max_fee": 1786
}
List all parking lots
This endpoint allows you to retrieve a list of all parking lots and the related data for each parking lot.
Request example
curl --request GET \
--url https://api.{tenant}.parkeraisverige.com/api/v1/parkings \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
Response
{
"data": {
"id": 56846,
"name": "McCullough-Okuneva",
"number_of_spaces": 723,
"zone_number": 2395,
"max_time": 185,
"parking_lot_fee": [
{
"id": 64304,
"cost_per_unit": 2696,
"unit": 3,
"start_time": "04:49:02",
"end_time": "22:14:18",
"type_of_day": 1,
"round": true
}
],
"variable_fees": [],
"parking_lot_open": [],
"parking_lot_location": [],
"active": false,
"max_fee": 1407
}
}