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

Request

  • Base URL
    https://api.multigest.pt (the document declares no server; this is the origin it was published from)
  • URL
    https://api.multigest.pt/api/vehicles/{vehicle_id}/close
  • Auth
    API key in header x-api-token and API key in header x-origin-verify

Path parameters

vehicle_idinteger required

Query parameters

forceboolean

Force close despite unpaid movements

Headers

x-api-tokenstring nullable

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 21 revisions of this API.