Résumé
Manipulation de l'entité ThirdParty (Tiers) en lecture via un objet métier depuis une application externe.
Info |
---|
Ce webhook ne traite que les modes DEFINITION, GET et LIST. Il permet donc d’interroger par exemple une liste de tiers (client, prospect, suspect, sous-traitant, …) sans passer par le webhook particulier à chaque type de tiers. Pour les modes PUT et DELETE, il faudra passer par le webhook particulier à chaque type de tiers (WHK_Customer, WHK_Prospect, WHK_Suspect, WHK_Subcontractor, …). |
Tables
Les tables utilisées sont :
...
sw_data_customerextension : Table des indicateurs tiers
Critères d'activation
WHK_ThirdParty est défini dans la gestion des webhooks du studio.
Fonctionnement
settings parameters
Bloc de code |
---|
"settings": { "getIndicators": "1" // pour le verb GET et LIST permet de retourner les informations des indicateurs tiers } |
...
Bloc de code | ||
---|---|---|
| ||
"thirdparty":{ "codethirdparty":"C0000001", "name":"ENTREPRISE DIJON GUICHARD", "baseuser_ID":"TENARDIER", "address1":"33 Avenue du Drapeau", "address2":"", "address3":"", "postalCode":"21000", "city":"DIJON", "phoneNumber":"03 90 11 22 33", "faxNumber":"03 90 11 22 44", "mobilePhoneNumber":"06 90 11 22 33", "email":"contact@guichard.com", "generictype_ID_thirdpartyType":"CTC", "generictype_ID_country":"FR", "generictype_ID_province":"", "generictype_ID_civility":"", "baseculture_ID":"FR-FR", "branchoffice_ID":"SXB", "deliveryDays":"1A;1B;2A;2B;3A;3B;4A;4B;5A;5B", "openingDays":"1A;1B;2A;2B;3A;3B;4A;4B;5A;5B", "siretNumber":"", "vatIntra":"", "apeCode":"516K", "comment":"", "blocked":"0", "blockedComment":"", "message":"", "vacationStart":"", "vacationEnd":"", "gpsLongitude":"5.04372", "gpsLatitude":"47.33222", "accountNumber":"C0000001", "contactName":"", "currency_ID":"", "authorizedCredit":"0", "risk":"1", "language":"", "underSurveillance":"", "workforce":"25", "thirdparty_ID_paying":"", "pricecategory_ID":"", "discountRate":"0", "website":"<httpshttps://www.guichard.com",> "legalStatus":"Société Anonyme avec Directoire", "generictype_ID_brand":"", "generictype_ID_deliveryMode":"", "generictype_ID_paymentMean":"", "generictype_ID_thirdpartyFamily":"", "confirmationEmail":"contact@guichard.com", "confirmationFax":"03 90 11 22 44", "generictype_ID_taxCode":"", "productdepot_ID":"", "generictype_ID_accountingCategory":"", "generictype_ID_thirdpartyPotential":"B", "skype":"contact@guichard.com", "generictype_ID_role":"", "unused":"0", "customergroupthirdpartygroup_ID":"", "generictype_ID_referencing":"2", "generictype_ID_distribution":"SELF", "generictype_ID_market":"BIG", "area":"", "baseuser_ID_favoriteTechnician":"TECH-01", "emailFormat":"", "isIndividual":"0", "facebook":"https://www.facebook.com/guichard/", "twitter":"https://twitter.com/guichard", "youtube":"https://www.youtube.com/watch?v=6jGbnEwQJ54", "linkedin":"https://www.linkedin.com/company/guichard", "activity":"" } |
...
Bloc de code | ||
---|---|---|
| ||
"thirdparty": { ... }, "indicators": [{ "codethirdpartyextension": "30000000493", "thirdparty_ID": "2033", "dataQualityIndicator": "5", /* Indice qualité*/ "turnoverN": "", /* CA N*/ "turnoverN1": "", /* CA N-1*/ "turnoverN2": "", /* CA N-2*/ "lastOrder": "2019-05-17 08:47:47", /* Dernière commande*/ "lastIntervention": "2020-08-17 15:00:00", /* Dernière intervention*/ "openedContract": "0", /* Contrats en cours*/ "openedQuote": "26", /* Devis en cours*/ "openedOpportunity": "0", /* Opportunités en cours*/ "credit": "", /* Encours*/ "generictype_ID_thirdpartypotential": "B", /* Potentiel clienttiers*/ "lastVisit": "", /* Dernière visite*/ "companyTurnover": "22839140", /* Dernier chiffre d'affaire*/ "companyTurnoverDate": "2018-11-23 00:00:00", /* Date du dernier chiffre d'affaire*/ "generictype_ID_companyTurnoverSlice": "CA 20 à 50 M€", /* Tranche CA*/ "generictype_ID_companyWorkforceSlice": "Effectif 100 à 199", /* Tranche effectif*/ "companyWorkforce": "180", /* Dernier effectif*/ "companyWorkforceDate": "2018-03-30 00:00:00", /* Date du dernier effectif*/ "anonymizationDate": "", /* Date d'anonymisation*/ "openedTask": "0" /* Tâches en cours*/ }] |
...