Vehicles (Protected)
Close Vehicle
Close a vehicle.
Business rules:
- Checks for unpaid movements before closing
- If unpaid movements exist and force=False, returns warning with details
- If force=True, closes despite unpaid movements
Sets:
- fechado = True
- datafecho = now
Returns:
- If unpaid movements exist (and force=False): Warning response with unpaid details
- If successful: Vehicle data with success message
post/api/vehicles/{vehicle_id}/close
Path parameters
vehicle_idinteger required
Query parameters
forceboolean
Force close despite unpaid movements
Force close despite unpaid movements
Headers
x-api-tokenstring nullable
Response
Successful Response
{"stackTrail":"paths:/api/vehicles/{vehicle_id}/close:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}
Changes
No recorded changes to this endpoint across all 1 revision of this API.