rental), for example after a breakdown. The current vehicle assignment is closed and a new one is opened with replacement_vehicle_id until the return date.rental status.replacement_vehicle_id must belong to new_vehicle_class_id, be in a status that can be rented out, and be different from the current vehicle.new_vehicle_fuel_level, new_vehicle_odometer and replacement_comments are required when fuel tracking, odometer tracking or mandatory replacement comments are enabled in your settings (422 otherwise).free_change false and a different class, the rest of the rental is repriced at the new class. With free_change true (default), the price does not change.vehicle_replaced revision of the rental agreement.errors.message, keyed by field. Send the numeric reservation ID: the UUID is not accepted here.{
"new_vehicle_class_id": 3,
"replacement_vehicle_id": 52,
"new_vehicle_fuel_level": 8,
"new_vehicle_odometer": 20410,
"replacement_comments": "Flat tire",
"free_change": true,
"include_commission": false
}data), or a business error. HTTP 200 is also used for failures: always check success. When it is false, the body is an ErrorBusinessRule (status_code 410) or an ErrorUnauthorized (status_code 401 or 403).{
"success": false,
"status_code": 410,
"errors": {
"message": {
"status": [
"Replacement not allowed for this booking status"
]
},
"error_message": ""
},
"data": []
}