setE-Reservation
Doc : https://ws4you.webapp4you.eu/api4you/index.php?rubrique=8&methode=setEReservation
Route : https://ws4you.webapp4you.eu/application/s-34/set-e-reservation
Appel :
{
"Authentification": {
[...]
},
"s_veh_numero_chassis": "ddddff", /* optional - string - Chassis number (used to identify a vehicule. either use this or a vehicle ID) */
"s_con_firstname": "John", /* optional - string - Contact firstname (used to create a contact if i_con_id is not specified) */
"s_con_name": "WEAK", /* optional - string - Contact name (used to create a contact if i_con_id is not specified) */
"s_con_civility": "Monsieur", /* optional - string - Contact civility (used to create a contact if i_con_id is not specified) */
"i_ere_duree": 48, /* optional - integer - e-Reservation duration, in hours (if not specified, equal to the CarShop parameter) */
"i_con_id": 4595, /* optional - integer - Contact ID */
"s_con_type": "Particulier", /* optional - string - Contact type (used to create a contact if i_con_id is not specified) */
"s_con_address": "Rue de l'auto", /* optional - string - Contact address (used to create a contact if i_con_id is not specified) */
"s_con_zipcode": "74520", /* optional - string - Contact zipcode (used to create a contact if i_con_id is not specified) */
"s_con_city": "Villetown", /* optional - string - Contact city (used to create a contact if i_con_id is not specified) */
"s_con_mobile": "0606060606", /* optional - string - Contact mobile number (used to create a contact if i_con_id is not specified) */
"s_con_email": "john@weak.com", /* optional - string - Contact email address (used to create a contact if i_con_id is not specified) */
"i_veh_id": 45621, /* optional - integer - Vehicle ID (used to identify a vehicule. either use this or a chassis number) */
"s_ere_source": "ddddff", /* optional - string - e-Reservation source */
}
Réponse :
{
"i_veh_id": 20578, /* integer - Vehicle ID */
"i_con_id": 376658, /* integer - Contact ID */
"i_ere_id": 7, /* integer - e-Reservation ID */
"i_ere_duree": 2, /* integer - e-Reservation duration, in hours */
}