Vehicles (Protected)

Get Vehicle Contracts

Get all contracts for a vehicle.

Returns contracts with:

  • Client name
  • Dates (contract, close)
  • Values (reserve, sale)
  • Calculated commission

By default, suspended contracts (IDestado=3) are hidden. Pass ?include_suspended=true to include them — the frontend toggle drives this.

get/api/vehicles/{vehicle_id}/contracts

Path parameters

vehicle_idinteger required

Query parameters

include_suspendedboolean

Include IDestado=3 (Suspenso) rows

Include IDestado=3 (Suspenso) rows

Headers

x-api-tokenstring nullable

Response

Successful Response

IDinteger required
Viaturainteger required
Clienteinteger nullable
Nomestring nullable
ClienteContactostring nullable
Datastring date-time nullable
Dataentregastring date-time nullable
Datafechostring date-time nullable
Reservaatestring date nullable
ValorReservanumber nullable
ValorVendanumber nullable
ValoremFaltanumber nullable
Ivanumber nullable
IDestadointeger nullable
EstadoNomestring nullable
Fechadoboolean nullable
financiadoboolean nullable
temretomaboolean nullable
garantiainteger nullable
meses_garantiainteger nullable
Oferta1string nullable
Oferta2string nullable
Oferta3string nullable
Oferta4string nullable
Oferta5string nullable
Oferta6string nullable
transporteparastring nullable
Comercialinteger nullable
ComercialNomestring nullable
idresponsavelinteger nullable
ResponsavelNomestring nullable
FaturaIDinteger nullable
IDpontodevendainteger nullable
PontoDeVendaNomestring nullable
bucketurlstring nullable
ViaturaMatriculastring nullable
ViaturaMarcastring nullable
ViaturaModelostring nullable

Changes

No recorded changes to this endpoint across all 1 revision of this API.