WebHook Customer
verb: GET
resultType: simple
"customer":{
"codecustomer":"C0000001",
"name":"ENTREPRISE DIJON GUICHARD"
}
verb: GET
resultType: extended
"customer":{
"codecustomer":"C0000001",
"name":"ENTREPRISE DIJON GUICHARD",
"baseuser_ID":"",
"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",
"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",
"gpsPrecision":"8",
"gpsUpdateDate":"2020-09-03 23:02:12",
"gpsManual":"",
"accountNumber":"C0000001",
"contactName":"",
"currency_ID":"",
"authorizedCredit":"0",
"risk":"1",
"language":"",
"underSurveillance":"",
"workforce":"25",
"customer_ID_paying":"",
"pricecategory_ID":"",
"discountRate":"0",
"website":"https://www.guichard.com",
"legalStatus":"Société Anonyme avec Directoire",
"generictype_ID_brand":"",
"generictype_ID_deliveryMode":"",
"generictype_ID_paymentMean":"",
"generictype_ID_country":"",
"generictype_ID_province":"",
"generictype_ID_customerType":"CTC",
"generictype_ID_customerFamily":"",
"confirmationEmail":"contact@guichard.com",
"confirmationFax":"03 90 11 22 44",
"generictype_ID_taxCode":"",
"productdepot_ID":"",
"generictype_ID_accountingCategory":"",
"generictype_ID_customerPotential":"B",
"generictype_ID_civility":"",
"skype":"contact@guichard.com",
"generictype_ID_role":"",
"unused":"0",
"customergroup_ID":"",
"generictype_ID_referencing":"2",
"generictype_ID_distribution":"SELF",
"generictype_ID_market":"BIG",
"area":"",
"baseculture_ID":"FR-FR",
"baseuser_ID_favoriteTechnician":"TECH-01",
"branchoffice_ID":"SXB",
"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":""
}
Verb: GET
resultType: extendedRelated
en complément du résultat pour resultType: extended on aura le détail pour les tables generictype_customerfamily et baseuser
"related":[
{
"generictype_customerFamily":{
"codegenerictype":"CUSTOMER_FAMILY-Est",
"label":"Grand est",
"originalCode":"Est",
"dataType":"CUSTOMER_FAMILY",
"description":"",
"translationKey":"GenType_CUSTOMER_FAMILY-Est",
"generictype_ID_parent":"",
"tag":"",
"orderNumber":""
},
"baseuser":{
"codebaseuser":"25",
"lastName":"MOREL",
"firstName":"Vincent",
"initials":"MV",
"baseusertree_ID":"Région 2",
"productdepot_ID":"Dépôt Vincent MOREL",
"productdepot_ID_current":"",
"email":"vincent@morel.com",
"phoneNumber":"",
"faxNumber":"",
"address1":"",
"address2":"",
"postalCode":"",
"city":"",
"position":"Représentant",
"department":"Commercial",
"structureNav":"1",
"supervisor":"0",
"useMileageRate":"",
"account":"",
"analyticSection":"",
"lastGPSDate":"",
"gpsLongitude":"",
"gpsLatitude":"",
"gpsPrecision":"",
"gpsUpdateDate":"",
"gpsManual":"",
"generictype_ID_country":"",
"generictype_ID_province":"",
"baseculture_ID":"",
"branchoffice_ID":"",
"resourcetype_ID":"",
"teamtype_ID":""
}
}]
verb: PUT
{
"customer": {
"codecustomer": "C0000001",
"name": "ENTREPRISE DIJON GUICHARD",
"address1": "33 Avenue du Drapeau",
"address2": null,
"address3": null,
"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",
"website": "https://www.guichard.com",
"siretNumber": null,
"generictype_ID_customerType": "CUSTOMER_TYPE-CTC",
"generictype_ID_country": null,
"baseuser_ID": "GRO-OUES",
"deliveryDays": "1A;1B;2A;2B;3A;3B;4A;4B;5A;5B;",
"openingDays": "1A;1B;2A;2B;3A;3B;4A;4B;5A;5B;",
"comment": "",
"blocked": "0",
"blockedComment": "",
"message": "",
"vacationStart": "",
"vacationEnd": "",
"underSurveillance": "0",
"generictype_ID_customerFamily": "CUSTOMER_FAMILY-GROSARTG",
"generictype_ID_paymentMean": "PAYMENT_MEAN-N30",
"generictype_ID_deliveryMode": "DELIVERY_MODE-CHRO",
"pricecategory_ID": "GR",
"discountRate": "0.00",
"authorizedCredit": "0",
"apeCode": "516K",
"vatIntra": null,
"legalStatus": "Société Anonyme avec Directoire",
"workforce": "23",
"customer_ID_paying": null,
"generictype_ID_taxCode": "TAX_CUSTOMER-0",
"risk": "1",
"language": "FR",
"accountNumber": "C0000001",
"currency_ID": "EUR",
"generictype_ID_province": null,
"generictype_ID_civility": "CIVILITY-SA",
"customergroup_ID": "",
"confirmationFax": "03 90 11 22 44",
"confirmationEmail": "contact@guichard.com",
"generictype_ID_accountingCategory": "",
"generictype_ID_customerPotential": "CUSTOMER_POTENTIAL-B",
"generictype_ID_role": "",
"unused": "0",
"generictype_ID_referencing": "PRODUCT_REFERENCING-NOTSTRICT",
"generictype_ID_distribution": "DISTRIBUTION-SELF",
"generictype_ID_market": "MARKET-BIG",
"area": "",
"baseculture_ID": "FR-FR",
"baseuser_ID_favoriteTechnician": "TECH-01",
"branchoffice_ID": "SXB",
"emailFormat": "",
"isIndividual": "0",
"skype": "contact@guichard.com",
"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": "",
"internalCodeCustomer": null, /* CodeCustomer original de weavy s'il y a eu transcodage (Varchar (255)) */
/* Champs supplémentaires en surcharge DIVINF */
"divinf_t035_ID": "RG",
"divinf_t072_ID_promotacod": "",
"divinf_t072_ID_promoremcod": "",
"divinf_t001_ID_tafam": "GMS",
"divinf_t001_ID_tafamx": "",
"divinf_t002_ID_refam": "",
"divinf_t002_ID_refamx": "",
"divinf_rem1": "0.00",
"divinf_rem2": "0.00",
"divinf_rem3": "0.00",
"divinf_remtyp1": "2",
"divinf_remtyp2": "2",
"divinf_remtyp3": "2",
"divinf_pricecategorytarcod": "",
"divinf_dev": "EUR",
"divinf_rftctrcod": "1",
/* Optionnel : pour mettre à jour les champs dynamiques selon paramétrage */
/* Exemple : */
"dynamicfields":
[{
"fieldname": "CLI40",
"fieldvalue": "7"
},
{
"fieldname": "CLI50",
"fieldvalue": "8"
},
{
...
}]
}
}
verb: LIST
resultType: simple, extended, extendedRelated reprendre les définitions du GET
"filters:" {
"codeCustomer": "value", filter is equal
"name": "value", filter is contains
"customerType": "value", filter is equal
"customerFamily": "value" filter is equal
}