create_rental
Create a rental reservation or start an active trip for a signed-in user. Use a vehicle ID from the map or a vehicle code from a QR scan, with optional add-ons and business billing.
Instructions
Create a rental for the signed-in user, as a reservation or an active rental.
Provide exactly one of vehicle_id (from the map/list) or vehicle_code (from a
QR scan). start_rental_state is RESERVATION (hold the vehicle, default) or
ACTIVE (start the trip immediately, begins billing).
Optional: additions (selected add-on codes, e.g. ["INSURANCE", "HELMET"]),
user_group_code + rental_type="BUSINESS" for business-account billing.
Returns the created rental, including its id and state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vehicle_id | No | ||
| vehicle_code | No | ||
| start_rental_state | No | RESERVATION | |
| additions | No | ||
| user_group_code | No | ||
| rental_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||