Rentals API
List rentals
Retrieves all the rentals associated with your organization, most recent first.
GET
https://api.airgarage.com/rentalsQuery parameters
| Name | Type | Description |
|---|---|---|
spot(optional) | string | Filter to rentals at a spot, by spot UUID. |
renter(optional) | string | Filter to rentals created by a renter. |
start_date__gte(optional) | number | Only rentals starting at or after this Unix timestamp. |
start_date__lt(optional) | number | Only rentals starting before this Unix timestamp. |
Headers
| Name | Type | Description |
|---|---|---|
X-Api-KeyRequired | string | Your access token. |
curl "https://api.airgarage.com/rentals?spot=dB2YV5Ngco4f7uKjdnGqgQ" \
-H "X-Api-Key: YOUR_API_KEY"{
"count": 2,
"next": null,
"previous": null,
"results": [
{
"uuid": "hT4kQnW2xLmZ8vRbYc3dFa",
"spot_uuid": "dB2YV5Ngco4f7uKjdnGqgQ",
"spot_name": "Church of All Saints",
"renter_email": "driver@example.com",
"rental_type": "monthly",
"start_date": 1625167463,
"end_date": null,
"cancelled_date": null,
"source": "YourIntegration",
"cars_detail": [
{ "pk": 812, "plate": "XY3BAC", "state": "CA", "country": "US" },
{ "pk": 813, "plate": "MR09E3", "state": "CA", "country": "US" }
],
...
}
]
}