Vehicles
This page includes all endpoints available for the vehicles' module.
List all vehicles
GET
https://app.gem-books.com/api/vehicles
This endpoint allows you to get the list of your vehicles.
Heade
{
"id": 73,
"client": 3396,
"serial_number": "sslapqkqpewkapakspqkapakspaksp",
"type": 1,
"year": 2020,
"brand": 3,
"model": 87,
"doors": 0,
"color": "",
"transmission": 1,
"transmission_type": 1,
"gas_type": 1,
"cam": 0,
"year_production": null,
"date_buy": null,
"inactive": 0,
"date_service": null,
"car_number": "123aasqw",
"plaque": "",
"serial_number_province": 9,
"last_visit": "2024-04-25",
"odometer": 11,
"odometer_type": 1,
"hours": 0,
"motor": "",
"motor_card": "",
"cylinder": "",
"pnbv": "",
"truck_divers": "",
"truck_legs": "",
"truck_weight": "",
"truck_front": "",
"truck_rear": "",
"truck_ratio": "",
"truck_serial_number": "",
"truck_brand": "",
"truck_trans_serial": "",
"truck_trans_brand": "",
"truck_motor_serial": "",
"truck_motor_brand": "",
"truck_hydrom_serial": "",
"truck_hydrom_brand": "",
"truck_hydrop_serial": "",
"truck_hydrop_brand": "",
"tire_size": "",
"tire_size_back": "",
"tire_azote": 0,
"tire_sensor": 0,
"anti_theft": 0,
"tire_size_winter": "",
"tire_size_back_winter": "",
"tire_winter": 0,
"wheel_lock_nut": 0,
"locnut": "",
"passcode": "",
"valet": "",
"separator3": 0,
"truck_usages": "0",
"brakes_usages": "0",
"state": 0,
"finish": "",
"seats": 0,
"steering": "",
"power": 0,
"carosserie": "",
"seat_type": "",
"interior_color": "",
"trunk": "",
"tank_capacity": "",
"wheel_count": "",
"photo": "",
"notes": "",
"date_creation": "2024-04-18",
"product_id": 0,
"vin_validated": 0,
"options": [],
"inspections": [],
"ac_vehicule_maintenance_history": [],
"ac_vehicule_maintenance_schedules": [],
"documents": []
},
{
"id": 72,
"client": 3494,
"serial_number": "",
"type": 1,
"year": 2024,
"brand": 10,
"model": 85,
"doors": 4,
"color": "",
"transmission": 1,
"transmission_type": 1,
"gas_type": 1,
"cam": 0,
"year_production": "0000-00-00",
"date_buy": "0000-00-00",
"inactive": 0,
"date_service": "0000-00-00",
"car_number": "aaaa",
"plaque": "",
"serial_number_province": 9,
"last_visit": "0000-00-00",
"odometer": 0,
"odometer_type": 1,
"hours": 0,
"motor": "",
"motor_card": "",
"cylinder": "",
"pnbv": "",
"truck_divers": "",
"truck_legs": "",
"truck_weight": "",
"truck_front": "",
"truck_rear": "",
"truck_ratio": "",
"truck_serial_number": "",
"truck_brand": "",
"truck_trans_serial": "",
"truck_trans_brand": "",
"truck_motor_serial": "",
"truck_motor_brand": "",
"truck_hydrom_serial": "",
"truck_hydrom_brand": "",
"truck_hydrop_serial": "",
"truck_hydrop_brand": "",
"tire_size": "",
"tire_size_back": "",
"tire_azote": 0,
"tire_sensor": 0,
"anti_theft": 0,
"tire_size_winter": "",
"tire_size_back_winter": "",
"tire_winter": 0,
"wheel_lock_nut": 0,
"locnut": "",
"passcode": "",
"valet": "",
"separator3": 0,
"truck_usages": "0",
"brakes_usages": "0",
"state": 0,
"finish": "",
"seats": 0,
"steering": "",
"power": 0,
"carosserie": "",
"seat_type": "",
"interior_color": "",
"trunk": "",
"tank_capacity": "",
"wheel_count": "",
"photo": "",
"notes": "",
"date_creation": "2024-02-22",
"product_id": 0,
"vin_validated": 0,
"options": [],
"inspections": [],
"ac_vehicule_maintenance_history": [
{
"id": 102,
"vehicule_id": 72,
"service_id": 7,
"km": 1788,
"hours": "0.00",
"date_time": "0000-00-00 00:00:00",
"notes": ""
}
],
"ac_vehicule_maintenance_schedules": [
{
"id": 61,
"vehicule_id": 72,
"service_id": 0,
"km": 2,
"date_time": "2024-03-26 13:40:00",
"declined": 0,
"force_date": 0,
"next_occurence": null,
"next_km": 0,
"description": null
}
],
"documents": []
}
List a specific vehicle
GET
https://app.gem-books.com/api/vehicles/:id
This endpoint allows you to get one specific vehicle.
"id": 73,
"client": 3396,
"serial_number": "sslapqkqpewkapakspqkapakspaksp",
"type": 1,
"year": 2020,
"brand": 3,
"model": 87,
"doors": 0,
"color": "",
"transmission": 1,
"transmission_type": 1,
"gas_type": 1,
"cam": 0,
"year_production": null,
"date_buy": null,
"inactive": 0,
"date_service": null,
"car_number": "123aasqw",
"plaque": "",
"serial_number_province": 9,
"last_visit": "2024-04-25",
"odometer": 11,
"odometer_type": 1,
"hours": 0,
"motor": "",
"motor_card": "",
"cylinder": "",
"pnbv": "",
"truck_divers": "",
"truck_legs": "",
"truck_weight": "",
"truck_front": "",
"truck_rear": "",
"truck_ratio": "",
"truck_serial_number": "",
"truck_brand": "",
"truck_trans_serial": "",
"truck_trans_brand": "",
"truck_motor_serial": "",
"truck_motor_brand": "",
"truck_hydrom_serial": "",
"truck_hydrom_brand": "",
"truck_hydrop_serial": "",
"truck_hydrop_brand": "",
"tire_size": "",
"tire_size_back": "",
"tire_azote": 0,
"tire_sensor": 0,
"anti_theft": 0,
"tire_size_winter": "",
"tire_size_back_winter": "",
"tire_winter": 0,
"wheel_lock_nut": 0,
"locnut": "",
"passcode": "",
"valet": "",
"separator3": 0,
"truck_usages": "0",
"brakes_usages": "0",
"state": 0,
"finish": "",
"seats": 0,
"steering": "",
"power": 0,
"carosserie": "",
"seat_type": "",
"interior_color": "",
"trunk": "",
"tank_capacity": "",
"wheel_count": "",
"photo": "",
"notes": "",
"date_creation": "2024-04-18",
"product_id": 0,
"vin_validated": 0,
"options": [],
"inspections": [],
"ac_vehicule_maintenance_history": [],
"ac_vehicule_maintenance_schedules": [],
"documents": []
}
Create a vehicle
POST
https://app.gem-books.com/api/vehicles
Headers
Name
Type
Description
Authentification
string
Bearer Token
Accept
string
Should be application/json
{
// Response
}
Body Example
{
}
Update a sale
PUT
https://app.gem-books.com/api/vehicles/:id
Headers
Name
Type
Description
Authentification
string
Bearer Token
Accept
string
Should be application/json
{
// Response
}
Body Example
Last updated