AirGarage API Docs
  • AirGarage API Overview
  • Spots API
  • Rentals API
    • List rentals
    • Start rental
    • Get rental
    • End rental
Powered by GitBook
On this page
  • Create a new rental
  • Rental types
  • Example request

Was this helpful?

  1. Rentals API

Start rental

Create a new rental

POST 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") 
PreviousList rentalsNextGet rental

Last updated 3 years ago

Was this helpful?