setAffaire
Doc : https://ws4you.webapp4you.eu/api4you/index.php?rubrique=7&methode=setAffaire
Route : https://ws4you.webapp4you.eu/application/s-36/set-affaire
Appel :
{
"Authentification": {
[...]
},
"i_pve_id": 11, /* integer - Sales point ID */
"i_aff_id": null, /* optional - integer - Business ID from Car Sell (if the business already exists) */
"s_aff_origine": "ddd", /* optional - string - Business origin */
"i_con_id": null, /* optional - integer - Contact (if contact already exists) */
"i_con_id_cotitulaire": null, /* optional - integer - Co-owner contact ID (if contact already exists) */
"i_com_id": null, /* optional - integer - Account ID from B4Y */
"Contact": { /* optional - object - Contact */
"s_contact_type": "Société", /* optional - string - Individual pr Society */
"s_contact_civilite": "Monsieur", /* optional - string - Civility */
"s_contact_nom": "CORBIER", /* optional - string - Surname */
"s_contact_prenom": "Philippe", /* optional - string - Firstname */
"s_contact_raison_sociale": "Entreprise 2.0", /* optional - string - Company name */
"s_contact_siret": "1234567891234", /* optional - string - Siret */
"s_contact_email": "contact@bee2link.fr", /* optional - string - Email */
"s_contact_telephone": "0303030303", /* optional - string - Phone number */
"s_contact_cp": "71400", /* optional - string - Postcode */
"s_contact_ville": "Autun", /* optional - string - City */
"s_contact_num_tva_intra": "FR136598745210" /* optional - string - International VAT identifier */
},
"i_lea_id": 2, /* optional - integer - Lead ID from B4Y (only for new business, without contact information) */
}
Réponse :
{
"i_aff_id": 469, /* integer - Business ID */
"i_con_id": 28178, /* integer - Contact ID */
"sIDAffaireCrypte": "sdqffdqsfqsdfdc", /* string - Business ID crypted for URL. */
}