WebHook Intervention
verb: GET
resultType: simple
"intervention": {
"codeintervention": "INF000000001", /* Code globalement unique d'intervention (Varchar (255))*/
"customer_ID": "C0000001", /* (ForeignKey ())*/
"customeraddress_ID": "C0000001-BDX", /* (ForeignKey ())*/
"title": "Intervention pour changement chaudière", /* (Varchar (255))*/
"interventiontype_ID": "INST-CHAUDIERE", /* (ForeignKey ())*/
"interventionNumber": "INST20191011-00001", /* (Varchar (64))*/
"generictype_ID_status": "CLOSED",
"startDate": "2020-10-07 15:00:00", /* date de début d'intervention*/,
"endDate": "2020-10-07 17:00:00" /* date de fin d'intervention*/
}
verb: GET
resultType: extended
"intervention": {
"codeintervention": "INF000000001", /* Code globalement unique d'intervention (Varchar (255))*/
"customer_ID": "C0000001", /* (ForeignKey ())*/
"customeraddress_ID": "C0000001-BDX", /* (ForeignKey ())*/
"title": "Intervention pour changement chaudière", /* (Varchar (255))*/
"interventiontype_ID": "INST-CHAUDIERE", /* (ForeignKey ())*/
"interventionNumber": "INST20191011-00001", /* (Varchar (64))*/
"generictype_ID_status": "CLOSED",
"startDate": "2020-10-07 15:00:00", /* date de début d'intervention*/,
"endDate": "2020-10-07 17:00:00", /* date de fin d'intervention*/
"comment": "Installation chaudière new power", /* (Text (65535))*/
"contract_ID": null, /* Code du contrat si lié à un contrat (ForeignKey ())*/
"internalRemarks": "client sensible", /* Commentaires internes non imprimés sur le rapport (Text (65535))*/
"externalRemarks": "Installation chaudière selon devis numéro G234", /* Commentaires imprimés sur le rapport (Text (65535))*/
"phoneNumber": "0671727374", /* Du contact client pour l'intervention (Varchar (64))*/
"contactName": "DESMOUCEAUX Alexandre", /* Du contact client pour l'intervention (Varchar (255))*/
"contactEmail": "adesmouceaux@divalto.com", /* Du contact client pour l'intervention (Varchar (255))*/
"estimatedDuration": 240, /* Durée estimée, si le type d'intervention a une durée, la remettre ici (Int ())*/
"interventionpriority_ID": "LOW",
"requestedDate": "2019-10-26T00:00:00.000Z", /* Date d'intervention demandée (DateTime ())*/
"intervention_ID_parent": null, /* Code de l'intervention parente (nécessite que la parente ait été créée avant celle ci) (ForeignKey ())*/
"branchoffice_ID": null, /* Code de l'agence de rattachement (ForeignKey ())*/
"interventionrequest_ID": null,
"reportEmail": null,
"estimatedDuration": null,
"operationrange_ID": null,
"generictype_ID_followup": null,
"commentFollowup": null,
"isFrontOfficeCreated": null,
"generictype_ID_geoptimizationStatus": null,
"equipmentwarrantytype_ID": null,
"invoiceOutsideScope": "0",
"contract_ID_equipment": null,
"timetypeactivity_ID": null,
"timeworktimeheader_ID": null,
"orderheader_ID": null,
"externalID": null,
"deal_ID": null,
"dealelement_ID": null,
"contractToBill": null
}
verb: GET
resultType: extendedRelated
en complément du résultat pour resultType: extended on aura le détail pour les tables interventiontype, timetypeactivity, customeraddress et deal
"related":[
{
"interventiontype":{
"codeinterventiontype":"REP",
"label":"Réparation",
"printTimes":"1",
"printProducts":"1",
"defaultDuration":"60",
"isBreakFix":"1",
"color":"ff5252"
},
"timetypeactivity":{
"codetimetypeactivity":"PLOM",
"label":"Plomberie"
},
"customeraddress":{
"codecustomeraddress":"0000360000000002",
"customer_ID":"I0001700000000008",
"name":"Nouveau site",
"site":"1",
"generictype_ID_country":"",
"generictype_ID_province":"",
"baseculture_ID":"",
"address1":"25 Rue des pêcheurs",
"address2":"",
"address3":"",
"postalCode":"67000",
"city":"Strasbourg",
"phoneNumber":"",
"faxNumber":"",
"mobilePhoneNumber":"",
"email":"",
"areaCode":"",
"contact":"",
"gpsLongitude":"7.76106",
"gpsLatitude":"48.58294",
"gpsAccuracy":"8",
"gpsUpdateDate":"2019-04-11 18:36:31",
"gpsManual":"",
"billingAddress":"0",
"defaultBillingAddress":"0",
"deliveryAddress":"",
"defaultDeliveryAddress":"",
"accessCode":"",
"floor":"",
"apartment":"",
"miscInfos":"",
"baseuser_ID_favoriteTechnician":"",
"erpAddressID":"",
"branchoffice_ID":"SXB",
"bankholidayparamheader_ID":""
},
"deal":{
"codedeal":"PJ000011",
"customer_ID":"C0000001",
"label":"Vitrine de magasin",
"generictype_ID_dealType":"DEAL_DEALTYPE-PRJ",
"dealNumber":"PJ000011",
"description":"",
"creationDate":"2020-09-18 00:00:00",
"closingDate":"",
"amount":"300",
"probability":"55",
"generictype_ID_lossReason":"",
"customer_ID_introducer":"",
"baseuser_ID":"",
"amount2":"",
"generictype_ID_status":"DEAL_STATUS-PRJ-1",
"lossReasonComment":"",
"realClosingDate":"",
"dealstep_ID_current":"",
"deal_ID_origin":"",
"isProject":"1",
"manualProbability":"0",
"marketinglead_ID_origin":"",
"customercontact_ID":"C0000001-DJ"
}
}]
verb: PUT
{
"interventiontype": {
"codeinterventiontype": "INST-CHAUDIERE", /* varchar(255) */
"label": "Installation chaudière", /* (varchar(255) */
"defaultDuration" : 120, /* Durée par défaut d'intervention en mn (int) */
"printTimes": 1, /* 0 ou 1 impression des temps sur le rapport (tinyint(1)) */
"printProducts": 1, /* 0 ou 1 impression des articles sur le rapport (tinyint(1)) */
"isBreakFix": null, /* intervention de type SAV (tinyint(1)) */
"internalcodeinterventiontype": null /* codeinterventiontype original de weavy s'il y a eu transcodage (Varchar (255)) */
},
"intervention": {
"codeintervention": "INF000000001", /* Code globalement unique d'intervention (Varchar (255))*/
"customeraddress_ID": "C0000001-BDX", /* (ForeignKey ())*/
"title": "Intervention pour changement chaudière", /* (Varchar (255))*/
"comment": "Installation chaudière new power", /* (Text (65535))*/
"interventionNumber": "INST20191011-00001", /* (Varchar (64))*/
"interventiontype_ID": "INST-CHAUDIERE", /* (ForeignKey ())*/
"internalRemarks": "client sensible", /* Commentaires internes non imprimés sur le rapport (Text (65535))*/
"externalRemarks": "Installation chaudière selon devis numéro G234", /* Commentaires imprimés sur le rapport (Text (65535))*/
"phoneNumber": "0671727374", /* Du contact client pour l'intervention (Varchar (64))*/
"contactName": "DESMOUCEAUX Alexandre", /* Du contact client pour l'intervention (Varchar (255))*/
"contactEmail": "adesmouceaux@divalto.com", /* Du contact client pour l'intervention (Varchar (255))*/
"generictype_ID_status": null, /* Laisser vide on le positionne à l'intégration dans weavy (READY TO PLAN par défaut) (ForeignKey ())*/
"estimatedDuration": 240, /* Durée estimée, si le type d'intervention a une durée, la remettre ici (Int ())*/
"interventionpriority_ID": null, /* Laisser vide, on le positionne à l'intégration dans weavy (LOW par défaut) (ForeignKey ())*/
"requestedDate": "2019-10-26T00:00:00.000Z", /* Date d'intervention demandée (DateTime ())*/
"contract_ID": null, /* Code du contrat si lié à un contrat (ForeignKey ())*/
"intervention_ID_parent": null, /* Code de l'intervention parente (nécessite que la parente ait été créée avant celle ci) (ForeignKey ())*/
"branchoffice_ID": null, /* Code de l'agence de rattachement (ForeignKey ())*/
"externalID": "",
"reportEmail": "",
"operationrange_ID": "",
"generictype_ID_followup": "INTERVENTION_FOLLOWUP-INTERVENTION",
"commentFollowup": "",
"invoiceOutsideScope": "",
"deal_ID": "",
"dealelement_ID": "",
"timetypeactivity_ID": "",
"contractToBill": "",
"internalcustomeraddress_ID": null, /* customeraddress_ID original de weavy s'il y a eu transcodage (Varchar (255)) */
"internalinterventiontype_ID": null /* interventiontype_ID original de weavy s'il y a eu transcodage (Varchar (255)) */
},
"interventionequipment": [
{
"codeinterventionequipment": "INF000000001-BAL01-201910", /* varchar(255) */
"intervention_ID": "INF000000001", /* (ForeignKey ())*/
"equipment_ID" : "BAL01-201910", /* Code de l'équipement qui doit avoir été créé avant la création de l'intervention (ForeignKey ())*/
"addedByUser": false, /* 0 ou 1 impression des temps sur le rapport (tinyint(1)) */
"contract_ID": null, /* Code du contrat si lié à un contrat (ForeignKey ())*/
"internalequipment_ID": null /* equipment_ID original de weavy s'il y a eu transcodage (Varchar (255)) */
},
{
"codeinterventionequipment": "INF000000001-CHA01-201910", /* varchar(255) */
"intervention_ID": "INF000000001", /* (ForeignKey ())*/
"equipment_ID" : "CHA01-201910", /* Code de l'équipement qui doit avoir été créé avant la création de l'intervention (ForeignKey ())*/
"addedByUser": false, /* 0 ou 1 impression des temps sur le rapport (tinyint(1)) */
"contract_ID": null, /* Code du contrat si lié à un contrat (ForeignKey ())*/
"internalequipment_ID": null /* equipment_ID original de weavy s'il y a eu transcodage (Varchar (255)) */
}
],
"interventionpart": [
{
"codeinterventionpart": "INF000000001-BAL01-201910-BLO0001-L-BLANC-1", /* Composé codeintervention+"-"+codeequipement+"-"+codearticle+"-"+linenumber varchar(255) */
"intervention_ID": "INF000000001", /* (ForeignKey ())*/
"interventionequipment_ID" : "INF000000001-BAL01-201910", /* Code de l'équipement de l'intervention qui doit avoir été créé avant la création de l'intervention (ForeignKey ())*/
"product_ID": "BLO0001-L-BLANC", /* Code de l'article RTRIM(a.REF)+ISNULL('-'+CASE RTRIM(s.SREF1) WHEN '' THEN NULL ELSE RTRIM(s.SREF1) END,'')+ISNULL('-'+CASE RTRIM(s.SREF2) WHEN '' THEN NULL ELSE RTRIM(s.SREF2) END,'') (ForeignKey ()) */
"productCode": "BLO0001", /* Code article de la pièce (varchar(255))*/
"productDescription": "Filtre charbon universel", /* Libellé de l'article (varchar(255))*/
"lineNumber": 1, /* Numéro de ligne (int)*/
"estimatedQuantity": 1, /* Quantité estimée (double)*/
"internalproduct_ID": null /* Extension pour le futur : product_ID original de weavy s'il y a eu transcodage (Varchar (255)) */
},
{
"codeinterventionpart": "INF000000001--ALB0001-2", /* varchar(255) */
"intervention_ID": "INF000000001", /* (ForeignKey ())*/
"interventionequipment_ID" : null, /* içi pas d'équipement lié, Code de l'équipement de l'intervention qui doit avoir été créé avant la création de l'intervention (ForeignKey ())*/
"product_ID": "ALB0001", /* Code de l'article RTRIM(a.REF)+ISNULL('-'+CASE RTRIM(s.SREF1) WHEN '' THEN NULL ELSE RTRIM(s.SREF1) END,'')+ISNULL('-'+CASE RTRIM(s.SREF2) WHEN '' THEN NULL ELSE RTRIM(s.SREF2) END,'') (ForeignKey ()) */
"productCode": "ALB0001", /* Code article de la pièce (varchar(255))*/
"productDescription": "Album", /* Libellé de l'article (varchar(255))*/
"lineNumber": 2, /* Numéro de ligne (int)*/
"estimatedQuantity": 3, /* Quantité estimée (double)*/
"internalproduct_ID": null /* Extension pour le futur : product_ID original de weavy s'il y a eu transcodage (Varchar (255)) */
}
],
"site": {
"codecustomeraddress": "C0000001-BDX",
"customer_ID": "C0000001",
"name": "ENTREPÔT GUICHARD",
"address1": "15 Avenue Champollion",
"address2": null,
"address3": null,
"postalCode": "21000 ",
"city": "Dijon",
"phoneNumber": "03 90 22 75 45",
"faxNumber": "03 90 22 75 40",
"mobilePhoneNumber": null,
"email": null,
"generictype_ID_country": "COUNTRY-FR",
"site": 1,
"siteCode": "BDX",
"siteName": "Entrepôt Dijon",
"erpAddressID": "BDX",
"internalCodeCustomeraddress": null, /* CodeCustomeraddress original de weavy s'il y a eu transcodage (Varchar (255)) */
"internalCodeCustomer": null /* CodeCustomer original de weavy s'il y a eu transcodage (Varchar (255)) */
},
"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": "COUNTRY-FR",
"internalCodeCustomer": null /* CodeCustomer original de weavy s'il y a eu transcodage (Varchar (255)) */
}
}
verb: LIST
resultType: simple, extended, extendedRelated reprendre les définitions du GET
"filters:" {
"codeIntervention": "value", filter is equal
"title": "value", filter is contains
"codeCustomer": "value", filter is equal
"codeContract": "value", filter is equal
"startDate": "value", filter is greater or equal to
"endDate": "value", filter is lesser or equal to
"interventionType": "value", filter is equal
"codeDeal": "value" filter is equal
}