...
WHK_Customer est défini dans la gestion des webhooks du studio.
Règles métier
verb: PUT
Le type de tiers est mis par défaut à ‘Client' (generictype_ID_customerType = ‘CTC’) si non fourni lors d’une création
Les types de tiers gérés sont CTC : Client et CTE : Temporaire
Fonctionnement
settings parameters
Bloc de code | ||
---|---|---|
| ||
"settings": { "getIndicators": "1" // pour le verb GET et LIST permet de retourner les informations des indicateurs tiersclients } |
verb: GET
resultType: simple
...
Bloc de code | ||
---|---|---|
| ||
"customer":{ "codecustomer":"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_customerType":"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", "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_customerFamily":"", "confirmationEmail":"contact@guichard.com", "confirmationFax":"03 90 11 22 44", "generictype_ID_taxCode":"", "productdepot_ID":"", "generictype_ID_accountingCategory":"", "generictype_ID_customerPotential":"B", "skype":"contact@guichard.com", "generictype_ID_role":"", "unused":"0", "customergroup_ID":"", "generictype_ID_referencing":"2", "generictype_ID_distribution":"SELF", "generictype_ID_market":"BIG", "area":"", "baseuser_ID_favoriteTechnician":"TECH-01", "emailFormat":"", "isIndividual":"0", "facebook":"<httpshttps://www.facebook.com/guichard/",> "twitter":"<httpshttps://twitter.com/guichard",> "youtube":"<httpshttps://www.youtube.com/watch?v=6jGbnEwQJ54",> "linkedin":"<httpshttps://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, baseuser, generictype_country, generictype_province, productdepot, generictype_civility, baseculture, baseuser_favoriteTechnician, branchoffice et branchofficeproductdepot
Bloc de code | ||
---|---|---|
| ||
"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: GET
resultType: simple, extended, extendedRelated
getIndicators: 1
Bloc de code | ||
---|---|---|
| ||
"customer": {, "generictype_country": { "codegenerictype": "COUNTRY-FR", ... }, "indicators": [{"label": "FRANCE", "codecustomerextensionoriginalCode": "30000000493FR", "customer_IDdataType": "2033COUNTRY", "dataQualityIndicatordescription": "5", /* Indice qualité*/ "turnoverNtranslationKey": "GenType_COUNTRY-FR", /* CA N*/ "turnoverN1generictype_ID_parent": "", /* CA N-1*/ "turnoverN2tag": "", /* CA N-2*/ "lastOrderorderNumber": "2019-05-17 08:47:47", /* Dernière commande*/" }, "generictype_province": { "lastInterventioncodegenerictype": "2020-08-17 15:00:00", /* Dernière intervention*/ "openedContractlabel": "0", /* Contrats en cours*/ "openedQuoteoriginalCode": "26", /* Devis en cours*/ "dataType": "", "openedOpportunitydescription": "0", /* Opportunités en cours*/ "credittranslationKey": "", /* Encours*/ "generictype_ID_customerpotentialparent": "B", /* Potentiel client*/ "lastVisittag": "", /* Dernière visite*/ "companyTurnoverorderNumber": "22839140" }, /* Dernier chiffre d'affaire*/ "baseculture": { "companyTurnoverDatecodebaseculture": "2018-11-23 00:00:00FR-FR", /* Date du dernier chiffre d'affaire*/ "label": "French - France", "generictype_ID_companyTurnoverSlicecodelanguage": "CA 20 à 50 M€", /* Tranche CA*/FR" }, "generictype_civility": { "generictype_ID_companyWorkforceSlicecodegenerictype": "Effectif 100 à 199", /* Tranche effectif*/ "companyWorkforcelabel": "180", /* Dernier effectif*/ "companyWorkforceDateoriginalCode": "2018-03-30 00:00:00", "dataType": "", /* Date du dernier effectif*/ "anonymizationDate"description": "", /* Date d'anonymisation*/ "openedTasktranslationKey": "0", /* Tâches en cours*/ }] |
verb: PUT
Bloc de code | ||
---|---|---|
| ||
{ "generictype_ID_parent": "", "customertag": {"", "codecustomerorderNumber": "C0000001" }, /* Code globalement unique du client (Varchar (255))*/ "name": "ENTREPRISE DIJON GUICHARD", /* Nom du client (Varchar (255))*/ "baseuser_favoriteTechnician": { "codebaseuser": "TECH-01", "lastName": "TECH-01", "address1firstName": "33 Avenue du DrapeauTango", /* Adresse 1 (Varchar (255))*/ "initials": "", "address2email": null"tech01@test.fr", /* Adresse 2 (Varchar (255))*/ "phoneNumber": "", "address3faxNumber": null"", /* Adresse 3 (Varchar (255))*/ "address1": "2 Allée de Strasbourg", "postalCodeaddress2": "21000", /* Code postal (Varchar (16))*/ "postalCode": "91300", "city": "DIJONMassy", /* Ville (Varchar (64))*/ "position": "", "phoneNumberdepartment": ""03, 90 11 22 33 "generictype_ID_country": "", /* N° de téléphone (Varchar (64))*/ "generictype_ID_province": "", "faxNumberbaseculture_ID": "03 90 11 22 44FR-FR", "branchoffice_ID": "Agence-01", /* N° de télécopie (Varchar (64))*/ "resourcetype_ID": "", "mobilePhoneNumbersupervisor": "06", 90 11 22 33"useMileageRate": "", /* N° de portable (Varchar (64))*/ "account": "", "emailanalyticSection": "contact@guichard.com", /* Email (Varchar (255))*/ "productdepot_ID": "", "websitelastGPSDate": "<https://www.guichard.com",> /* Site internet (Varchar (255))*/ "gpsLongitude": "2.2922000000000353", "siretNumbergpsLatitude": null"48.73596000000003", /* N° siret (Varchar (40))*/ "fullView": "", "generictype_ID_customerTypechangeAuthorization": "CUSTOMER_TYPE-CTC", /* Code type de tiers. Mettre CUSTOMER_TYPE-CTC pour un client. (ForeignKey () - sw_data_generictype.codegenerictype avec datatype = CUSTOMER_TYPE)*/ "productdepot_ID_current": "", "techSyncRule": "0", "homePage": "", "generictypeteamtype_ID_country": "COUNTRY-FR", /* Code pays (ForeignKey () - sw"customer_data_generictype.codegenerictype avec datatype = COUNTRY)*/ "baseuser_IDID_subcontractor": "", "techIsSedentary": "GRO-OUES", /* Code utilisateur}, (ForeignKey () - sw_data_baseuser.codebaseuser)*/ "branchoffice": { "deliveryDayscodebranchoffice": "1A;1B;2A;2B;3A;3B;4A;4B;5A;5B;SXB", /* Jours de livraison (Varchar (255))*/ "name": "Strasbourg", "openingDaysaddress1": "1A;1B;2A;2B;3A;3B;4A;4B;5A;5B;", /* Jours d'ouverture (Varchar (255))*/ "comment10 Rue de l'Outre", "address2": "", /* Commentaires (Text (65535))*/ "postalCode": "67000", "blockedcity": "0Strasbourg", /* Client bloqué (Valeurs possibles : 0,1) (Bool ())*/ "blockedComment "generictype_ID_country": "FR", "phoneNumber": "0388123456", /* Commentaires client bloqué (Text (65535))*/ "faxNumber": "0388123400", "messageemail": "noreply-weavysxb@divalto.com", /* Message (Text (65535))*/ "vacationStartwebsite": "", /* Début des congés (Date ())*/ "bankholidayparamheader_ID": "FRANCE-ALSACE-MOSELLE", "vacationEndgpsLongitude": "7.7475", /* Fin des congés (Date ())*/ "gpsLatitude": "48.58367", "underSurveillancebaseusergroup_ID": "0#SXB-Strasbourg", /* Client sous surveillance (Valeurs possibles : 0,1) (Bool ())*/"interventionTeamLifetime": "4" }, "productdepot": { "generictype_ID_customerFamilycodeproductdepot": "CUSTOMER_FAMILY-GROSARTG", /* Code famille client (ForeignKey () - sw_data_generictype.codegenerictype avec datatype = CUSTOMER_FAMILY)*/ "label": "", "vehicle": "", "generictype_ID_paymentMeanmain": "PAYMENT_MEAN-N30", /* Code mode de règlement (ForeignKey () - sw_data_generictype.codegenerictype avec datatype = PAYMENT_MEAN)*/"vehicleRegistration": "", "vehicleBrand": "", "generictype_ID_deliveryModevehicleModel": "DELIVERY_MODE-CHRO", /* Code mode de livraison (ForeignKey () - sw_data_generictype.codegenerictype avec datatype = DELIVERY_MODE)*/ "pricecategory"automaticReception": "" } }] |
verb: GET
resultType: simple, extended, extendedRelated
getIndicators: 1
Bloc de code | ||
---|---|---|
| ||
"customer": { ... }, "indicators": [{ "codecustomerextension": "30000000493", "customer_ID": "GR2033", /* Code catégorie tarifaire (ForeignKey () - sw_data_pricecategory.codepricecategory)*/ "dataQualityIndicator": "5", /* Indice qualité*/ "discountRateturnoverN": "0.00", /* Taux de remise (Double ())CA N*/ "authorizedCreditturnoverN1": "0", /* Encours autorisé (Valeurs possibles : 0,1) (Bool ())CA N-1*/ "apeCodeturnoverN2": "516K", /* Code APE (Varchar (64))*/ CA N-2*/ "vatIntralastOrder": null, "2019-05-17 08:47:47", /* TVA intracommunautaire (Varchar (64))Dernière commande*/ "legalStatuslastIntervention": "Société Anonyme avec Directoire2020-08-17 15:00:00", /* Forme juridique (Varchar (64))Dernière intervention*/ "workforceopenedContract": "230", /* EffectifContrats (Int ())en cours*/ "customer_ID_payingopenedQuote": null"26", /* CodeDevis client payeur (ForeignKey () - sw_data_customer.codecustomer)*en cours*/ "generictype_ID_taxCode"openedOpportunity": "TAX_CUSTOMER-0", /* CodeOpportunités TVA client (ForeignKey () - sw_data_generictype.codegenerictype avec datatype = TAX_CUSTOMER)en cours*/ "riskcredit": "1", /* Risque (Varchar (64))Encours*/ "languagegenerictype_ID_customerpotential": "FRB", /* Code langue (ForeignKey () - sw_sys_language.codelanguage)Potentiel client*/ "accountNumberlastVisit": "C0000001", /* N° de compte principal (Varchar (64))Dernière visite*/ "currency_IDcompanyTurnover": "EUR22839140", /* CodeDernier devise ForeignKey () - sw_data_currency.codecurrency)*/ chiffre d'affaire*/ "generictype_ID_provincecompanyTurnoverDate": null, /* Code province (ForeignKey () - sw_data_generictype.codegenerictype avec datatype = PROVINCE)*/ "2018-11-23 00:00:00", /* Date du dernier chiffre d'affaire*/ "generictype_ID_civilitycompanyTurnoverSlice": "CIVILITY-SACA 20 à 50 M€", /* Code civilité (ForeignKey () - sw_data_generictype.codegenerictype avec datatype = CIVILITY)*/ Tranche CA*/ "customergroupgenerictype_ID_companyWorkforceSlice": ""Effectif 100 à 199", /* CodeTranche groupeeffectif*/ client (ForeignKey () - sw_data_customergroup.codecustomergroup)*/ "companyWorkforce": "180", /* Dernier effectif*/ "confirmationFaxcompanyWorkforceDate": "2018-03 90 11 22 44-30 00:00:00", /* N°Date dedu télécopie de confirmation (Varchar (64))dernier effectif*/ "confirmationEmailanonymizationDate": "contact@guichard.com", /* Email de confirmation (Varchar (255))Date d'anonymisation*/ "generictype_ID_accountingCategory"openedTask": "0", /* CodeTâches catégorieen comptablecours*/ (ForeignKey () - sw_data_generictype.codegenerictype avec datatype = ACCOUNTING_CATEGORY)*/ }] |
verb: PUT
Bloc de code | ||
---|---|---|
| ||
{ "customer": { "generictype_ID_customerPotentialcodecustomer": "CUSTOMER_POTENTIAL-BC0000001", /* Code globalement potentielunique du client (ForeignKeyVarchar () - sw_data_generictype.codegenerictype avec datatype = CUSTOMER_POTENTIAL255))*/ "generictype_ID_rolename": "ENTREPRISE DIJON GUICHARD", /* CodeNom du rôleclient (ForeignKeyVarchar () - sw_data_generictype.codegenerictype avec datatype = ROLE255))*/ "unusedaddress1": "033 Avenue du Drapeau", /* Client inactif (Valeurs possibles : 0,1) (Bool (Adresse 1 (Varchar (255))*/ "generictype_ID_referencing": "PRODUCT_REFERENCING-NOTSTRICT"address2": null, /* Code mode de référencement articles (ForeignKey () - sw_data_generictype.codegenerictype avec datatype = PRODUCT_REFERENCING Adresse 2 (Varchar (255))*/ "address3": null, /* Adresse 3 (Varchar (255))*/ "generictype_ID_distributionpostalCode": "DISTRIBUTION-SELF21000", /* Code type de distributionpostal (ForeignKeyVarchar (16))*/ - sw_data_generictype.codegenerictype avec datatype = DISTRIBUTION)*/ "generictype_ID_market "city": "MARKET-BIGDIJON", /* Code type de magasinVille (ForeignKeyVarchar () - sw_data_generictype.codegenerictype avec datatype = MARKET64))*/ "areaphoneNumber": "03 90 11 22 33", /* N° Superficiede téléphone (DoubleVarchar (64))*/ "baseculture_IDfaxNumber": "FR-FR", /* Code culture (ForeignKey () - sw_data_baseculture.codebaseculture03 90 11 22 44", /* N° de télécopie (Varchar (64))*/ "baseuser_ID_favoriteTechnicianmobilePhoneNumber": "TECH-0106 90 11 22 33", /* CodeN° techniciende préféréportable (ForeignKeyVarchar () - sw_data_baseuser.codebaseuser64))*/ "branchoffice_IDemail": "SXBcontact@guichard.com", /* Code de l'agence de rattachement (ForeignKeyEmail (Varchar () - sw_data_branchoffice.codebranchoffice)*255))*/ "emailFormatwebsite": "<https://www.guichard.com",> /* FormatSite d'emailinternet (Varchar (255))*/ "isIndividualsiretNumber": "0"null, /* Client est un particulier (Valeurs possibles : 0,1) (Bool (N° siret (Varchar (40))*/ "skypegenerictype_ID_customerType": "contact@guichard.comCUSTOMER_TYPE-CTC", /* SkypeCode (Varchar (255))*/ "facebook": "<https://www.facebook.com/guichard/",> /* Facebook (Varchar (255))*/ "twitter": "<https://twitter.com/guichard",> /* Twitter (Varchar (255))type de tiers. Mettre CUSTOMER_TYPE-CTC pour un client. (ForeignKey () - sw_data_generictype.codegenerictype avec datatype = CUSTOMER_TYPE). Si non transmis, initialisé par défaut à CTC.*/ "youtubegenerictype_ID_country": "<https://www.youtube.com/watch?v=6jGbnEwQJ54COUNTRY-FR",> /* Code YouTubepays (VarcharForeignKey (255)) - sw_data_generictype.codegenerictype avec datatype = COUNTRY)*/ "linkedinbaseuser_ID": "<https://www.linkedin.com/company/guichardGRO-OUES",> /* Code LinkedInutilisateur (VarcharForeignKey (255)) - sw_data_baseuser.codebaseuser)*/ "activitydeliveryDays": "1A;1B;2A;2B;3A;3B;4A;4B;5A;5B;", /* ActivitéJours de livraison (TextVarchar (65535255))*/ "internalCodeCustomeropeningDays": null"1A;1B;2A;2B;3A;3B;4A;4B;5A;5B;", /* CodeCustomer original de weavy s'il y a eu transcodage Jours d'ouverture (Varchar (255)) */ "comment": "", /* ChampsCommentaires supplémentaires en surcharge DIVINF (Text (65535))*/ "divinf_t035_IDblocked": "RG0", /* CodeClient remisebloqué (ForeignKey (Valeurs possibles : 0,1) - sw_data_divinf_t035.codedivinf_t035(Bool ())*/ "divinf_t072_ID_promotacodblockedComment": "", /* CodeCommentaires client promotionbloqué (ForeignKeyText () - sw_data_divinf_t072.codedivinf_t07265535))*/ "divinf_t072_ID_promoremcodmessage": "", /* Code remise promotionMessage (Text (ForeignKey () - sw_data_divinf_t072.codedivinf_t07265535))*/ "divinf_t001_ID_tafamvacationStart": "GMS", /* CodeDébut familledes de tarificationcongés (ForeignKeyDate () - sw_data_divinf_t001.codedivinf_t001)*/ "divinf_t001_ID_tafamxvacationEnd": "", /* CodeFin famille de tarification exceptionnelledes congés (ForeignKeyDate () - sw_data_divinf_t001.codedivinf_t001)*/ "divinf_t002_ID_refamunderSurveillance": "0", /* Code classe de remise (ForeignKey () - sw_data_divinf_t002.codedivinf_t002 Client sous surveillance (Valeurs possibles : 0,1) (Bool ())*/ "divinf_t002generictype_ID_refamxcustomerFamily": "CUSTOMER_FAMILY-GROSARTG", /* Code classefamille declient remise exceptionnelle (ForeignKey () - sw_data_divinf_t002.codedivinf_t002generictype.codegenerictype avec datatype = CUSTOMER_FAMILY)*/ "divinfgenerictype_ID_rem1paymentMean": "0.00PAYMENT_MEAN-N30", /* Code mode Remisede 1règlement (DoubleForeignKey () - sw_data_generictype.codegenerictype avec datatype = PAYMENT_MEAN)*/ "divinfgenerictype_ID_rem2deliveryMode": "0.00DELIVERY_MODE-CHRO", /* Code mode Remisede 2livraison (DoubleForeignKey () - sw_data_generictype.codegenerictype avec datatype = DELIVERY_MODE)*/ "divinfpricecategory_rem3ID": "0.00GR", /* RemiseCode 3catégorie (Doubletarifaire (ForeignKey () - sw_data_pricecategory.codepricecategory)*/ "divinf_remtyp1discountRate": "20.00", /* TypeTaux de remise 1(Double (Valeurs possibles : 1 (Cumulé), 2 (Succesif), 3 (Différé PB), 4 (Différé PN)) (Int))*/ "authorizedCredit": "0", /* Encours autorisé (Valeurs possibles : 0,1) (Bool ())*/ "divinf_remtyp2apeCode": "2516K", /* TypeCode deAPE remise(Varchar 2 (Valeurs possibles : 1 (Cumulé), 2 (Succesif), 3 (Différé PB), 4 (Différé PN)) (Int ((64))*/ "vatIntra": null, /* TVA intracommunautaire (Varchar (64))*/ "legalStatus": "Société Anonyme avec Directoire", /* Forme juridique (Varchar (64))*/ "divinf_remtyp3workforce": "223", /* TypeEffectif de remise 3 (Valeurs possibles : 1 (Cumulé), 2 (Succesif), 3 (Différé PB), 4 (Différé PN)) (Int ()(Int ())*/ "customer_ID_paying": null, /* Code client payeur (ForeignKey () - sw_data_customer.codecustomer)*/ "divinf_pricecategorygenerictype_ID_tarCodtaxCode": "TAX_CUSTOMER-0", /* Code tarifTVA TTCclient (ForeignKey () - sw_data_pricecategory.codepricecategorygenerictype.codegenerictype avec datatype = TAX_CUSTOMER)*/ "divinf_devrisk": "EUR1", /* CodeRisque devise (Varchar (64))*/ "divinf_rftctrcodlanguage": "1FR", /* TiersCode soumis aulangue référencement (Valeurs possibles : 1 (Non), 2 (Oui)) (Int ())ForeignKey () - sw_sys_language.codelanguage)*/ "accountNumber": "C0000001", /* N° Optionnelde :compte pourprincipal mettre à jour les champs dynamiques selon paramétrage */ /* Exemple 1 : (Varchar (64))*/ "currency_ID": "EUR", /* Code devise ForeignKey () - sw_data_currency.codecurrency)*/ "dynamicfieldsgenerictype_ID_province": null, /* Code province (ForeignKey [{() - sw_data_generictype.codegenerictype avec datatype = "fieldname": "CLI40",PROVINCE)*/ "fieldvalue"generictype_ID_civility": "7CIVILITY-SA", /* Code civilité (ForeignKey },() { - sw_data_generictype.codegenerictype avec datatype = CIVILITY)*/ "fieldnamecustomergroup_ID": "CLI50", /* Code groupe client (ForeignKey () - sw_data_customergroup.codecustomergroup)*/ "fieldvalueconfirmationFax": "8"03 90 11 22 44", /* N° de télécopie },de confirmation (Varchar (64))*/ { "confirmationEmail": "contact@guichard.com", /* Email ...de confirmation (Varchar (255))*/ }] "generictype_ID_accountingCategory": "", /* Code catégorie Exemplecomptable 2(ForeignKey :() */ /* A partir de la version SUMMER'21, le mappage direct des champs dynamiques est possible en utilisant le nom du champ en bdd - sw_data_generictype.codegenerictype avec datatype = ACCOUNTING_CATEGORY)*/ "generictype_ID_customerPotential": "CUSTOMER_POTENTIAL-B", /* Code potentiel client (ForeignKey () - sw_data_generictype.codegenerictype avec datatype = CUSTOMER_POTENTIAL)*/ "vgenerictype_ID_CLI40role": "7", /* Code rôle "v_CLI50": "8", ... },(ForeignKey () - sw_data_generictype.codegenerictype avec datatype = ROLE)*/ "customeruserunused": [ {"0", /* Client inactif (Valeurs possibles : 0,1) (Bool ())*/ "codecustomerusergenerictype_ID_referencing": "C0000001PRODUCT_REFERENCING-95NOTSTRICT", /* Code utilisateurmode liéde auréférencement tiersarticles (VarcharForeignKey (255)) - sw_data_generictype.codegenerictype avec datatype = PRODUCT_REFERENCING)*/ "customergenerictype_ID_distribution": "C0000001DISTRIBUTION-SELF", /* Code tiers.type Optionnelde :distribution reprendre(ForeignKey le() code tiers du bloc json "customer", si non fourni reprend automatiquement le code tiers- sw_data_generictype.codegenerictype avec datatype = DISTRIBUTION)*/ "generictype_ID_market": "MARKET-BIG", /* Code type de magasin (ForeignKey () - sw_data_customer.codecustomer)*/ "baseuser_ID": "95" /* Code utilisateur (ForeignKey () - sw_data_baseuser.codebaseuser)*/ }, { "codecustomeruser": "C0000001-TECH1generictype.codegenerictype avec datatype = MARKET)*/ "area": "", /* Superficie (Double ())*/ "baseculture_ID": "FR-FR", /* Code culture (ForeignKey () - sw_data_baseculture.codebaseculture)*/ "baseuser_ID_favoriteTechnician": "TECH-01", /* Code technicien préféré (ForeignKey () - sw_data_baseuser.codebaseuser)*/ "branchoffice_ID": "SXB", /* Code de l'agence de rattachement (ForeignKey () - sw_data_branchoffice.codebranchoffice)*/ "emailFormat": "", /* Format d'email (Varchar (255))*/ "isIndividual": "0", /* Client est un particulier (Valeurs possibles : 0,1) (Bool ())*/ "skype": "contact@guichard.com", /* Skype (Varchar (255))*/ "facebook": "https://www.facebook.com/guichard/", /* Facebook (Varchar (255))*/ "twitter": "https://twitter.com/guichard", /* Twitter (Varchar (255))*/ "youtube": "https://www.youtube.com/watch?v=6jGbnEwQJ54", /* YouTube (Varchar (255))*/ "linkedin": "https://www.linkedin.com/company/guichard", /* LinkedIn(Varchar (255))*/ "activity": "", /* Activité (Text (65535))*/ "internalcodecustomer": null, /* CodeCustomer original de weavy s'il y a eu transcodage (Varchar (255)) */ /* Champs supplémentaires en surcharge DIVINF */ "divinf_t035_ID": "RG", /* Code remise (ForeignKey () - sw_data_divinf_t035.codedivinf_t035)*/ "divinf_t072_ID_promotacod": "", /* Code promotion (ForeignKey () - sw_data_divinf_t072.codedivinf_t072)*/ "divinf_t072_ID_promoremcod": "", /* Code remise promotion (ForeignKey () - sw_data_divinf_t072.codedivinf_t072)*/ "divinf_t001_ID_tafam": "GMS", /* Code famille de tarification (ForeignKey () - sw_data_divinf_t001.codedivinf_t001)*/ "divinf_t001_ID_tafamx": "", /* Code famille de tarification exceptionnelle (ForeignKey () - sw_data_divinf_t001.codedivinf_t001)*/ "divinf_t002_ID_refam": "", /* Code classe de remise (ForeignKey () - sw_data_divinf_t002.codedivinf_t002)*/ "divinf_t002_ID_refamx": "", /* Code classe de remise exceptionnelle (ForeignKey () - sw_data_divinf_t002.codedivinf_t002)*/ "divinf_rem1": "0.00", /* Remise 1 (Double ())*/ "divinf_rem2": "0.00", /* Remise 2 (Double ())*/ "divinf_rem3": "0.00", /* Remise 3 (Double ())*/ "divinf_remtyp1": "2", /* Type de remise 1 (Valeurs possibles : 1 (Cumulé), 2 (Succesif), 3 (Différé PB), 4 (Différé PN)) (Int ())*/ "divinf_remtyp2": "2", /* Type de remise 2 (Valeurs possibles : 1 (Cumulé), 2 (Succesif), 3 (Différé PB), 4 (Différé PN)) (Int ())*/ "divinf_remtyp3": "2", /* Type de remise 3 (Valeurs possibles : 1 (Cumulé), 2 (Succesif), 3 (Différé PB), 4 (Différé PN)) (Int ())*/ "divinf_pricecategory_ID_tarCod": "", /* Code tarif TTC (ForeignKey () - sw_data_pricecategory.codepricecategory)*/ "divinf_dev": "EUR", /* Code devise (Varchar (64))*/ "divinf_rftctrcod": "1", /* Tiers soumis au référencement (Valeurs possibles : 1 (Non), 2 (Oui)) (Int ())*/ /* Optionnel : pour mettre à jour les champs dynamiques selon paramétrage */ /* Exemple 1 : */ "dynamicfields": [{ "fieldname": "CLI40", "fieldvalue": "7" }, { "fieldname": "CLI50", "fieldvalue": "8" }, { ... }] /* Exemple 2 : */ /* A partir de la version SUMMER'21, le mappage direct des champs dynamiques est possible en utilisant le nom du champ en bdd */ "v_CLI40": "7", "v_CLI50": "8", ... }, "customeruser": [ { "codecustomeruser": "C0000001-95", /* Code utilisateur lié au tiers (Varchar (255))*/ "customer_ID": "C0000001", /* Code tiers. Optionnel : reprendre le code tiers du bloc json "customer", si non fourni reprend automatiquement le code tiers (ForeignKey () - sw_data_customer.codecustomer)*/ "baseuser_ID": "95", /* Code utilisateur (ForeignKey () - sw_data_baseuser.codebaseuser)*/ "generictype_ID_category": "CUSTOMERUSER_LINK-1" /* Code catégorie (ForeignKey () - sw_data_generictype.codegenerictype avec datatype = CUSTOMERUSER-LINK)*/ }, { "codecustomeruser": "C0000001-TECH1", "customer_ID": "C0000001", "baseuser_ID": "TECH1", "generictype_ID_category": "CUSTOMERUSER_LINK-2" }] } |
Info |
---|
Exemple de recodification d’un prospect en client J’ai un prospect ‘P0000001’ (type de tiers : CTP), que je veux recodifier en client ‘C0000001’ (type de tiers : CTC) Ci-dessous les informations minimales à fournir en mode PUT : |
Bloc de code | ||
---|---|---|
| ||
{ "customer": { "codecustomer": "C0000001", // code destination "name": "CHEZ SOI", "customergenerictype_ID_customerType": "C0000001CUSTOMER_TYPE-CTC", "baseuser_IDinternalcodecustomer": "TECH1P0000001" // code origine }] } |
verb: LIST
resultType: simple, extended reprendre les définitions du GET
Bloc de code | ||
---|---|---|
| ||
"filters:" { "codeCustomer": "value", filter is equal "name": "value", filter is contains "customerType": "value", filter is equal "customerFamily": "value", filter is equal "codeCountry": "value", filter is equal "codeBaseuser": "value", filter is equal "codeBranchoffice": "value", filter is equal "email": "value", filter is equal "emailDomain": "value", filter is endswith (ie "emailDomain": "@domaine.extension") "siretNumber": "value", filter is equal "city": "value", filter is startsWith }, "orderBy": "value" |
Valeur Valeurs possibles pour le tri "orderBy" :
...