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": 47698,
"name": "Rice, Crooks and Ortiz",
"number_of_spaces": 309,
"zone_number": 9073,
"max_time": 423,
"parking_lot_fee": [
{
"id": 88832,
"cost_per_unit": 4076,
"unit": 2,
"start_time": "15:28:05",
"end_time": "08:14:00",
"type_of_day": 2,
"round": false
}
],
"variable_fees": [],
"parking_lot_open": [],
"parking_lot_location": [],
"active": false,
"max_fee": 626
}
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": 89049,
"name": "Braun LLC",
"number_of_spaces": 579,
"zone_number": 2496,
"max_time": 239,
"parking_lot_fee": [
{
"id": 95527,
"cost_per_unit": 4898,
"unit": 4,
"start_time": "02:30:49",
"end_time": "09:41:13",
"type_of_day": 3,
"round": false
}
],
"variable_fees": [],
"parking_lot_open": [],
"parking_lot_location": [],
"active": false,
"max_fee": 4305
}
}