# Start rental

## Create a new rental

<mark style="color:green;">`POST`</mark> `https://api.airgarage.com/rentals`

#### Headers

| Name      | Type   | Description          |
| --------- | ------ | -------------------- |
| X-Api-Key | String | Authentication token |

### Rental types

* **Monthly:** will charge a customer every month for the monthly rate. This type of rental does not require an end date. If no end date is specified, renters will be billed every month but can cancel any time.
* **Daily:** will charge a customer upfront the total amount for their multi-day parking by specifying the start and end dates.
* **Hourly** will charge a customer up front for the specified time.

### Example request

```
args = {username: 'scott@airgara.ge',
        start_date: 1625167463,
        end_date: null,
        plates: ['XY3BAC', 'MR09E3'],
        token: '',
        rental_type: 'monthly', 
        spot_uuid: '',
        source: 'AirportParkingReservations'
        }

 const result = APIClient.POST("/rentals/", args, format="json") 
```
