Skip to content
llms.txt

Rental Start, Status & End

The communication between server and vehicle is asynchronous. We handle this asynchrony with a dedicated status endpoint.

When you start a rental via rental/start, you receive a synchronous response that acknowledges the incoming command. A successful response to rental/start does not mean the rental has already started — it means the customer is allowed to start a rental, the vehicle is free to be rented, and we are unlocking the vehicle.

Once the start has been triggered, poll the customer rental status endpoint to verify that the rental has started.

Until the vehicle confirms it has unlocked, the customer status is IN_RENTAL and the rental status is STARTING. Once confirmation arrives, the rental status transitions to RUNNING, meaning the rental has started successfully and the customer can enter the vehicle. If the rental fails to start, the customer status transitions back to its previous status (IDLE or IN_RESERVATION).

Rental Status Flow

Similar to starting a rental, the rental/end command synchronously acknowledges the request to end the rental. The status transitions to ENDING. Once the end rental completes, the status returns to IDLE (or 404 when no active rental exists).

We apply a maximum timeout of 45 seconds to rental/start and rental/end. If a vehicle communication error occurs earlier than the timeout, the status updates immediately — for example:

  • Vehicle reports that doors could not be unlocked
  • A door is opened right after triggering end rental