Suppression d'une intervention

Si vous supprimez une intervention dans votre outil métier (création par erreur, etc.), vous devez venir l'annuler sur intentPlatform et indiquer en commentaire de l'annulation que vous l'avez supprimée dans votre outil métier.

Modalités d'envoi

Une annulation se réalise en transmettant un log avec status=denied et event=canceled; Vous indiquez dans le champ description du log d'annulation la raison, c'est-à-dire la suppression de l'intervention dans votre outil. L'heure et date de suppression sont à indiquer dans l'eventDate du log d'annulation.

Champs

{
"status": "denied",
"event": "canceled"
"description":"Intervention supprimée dans notre outil"
"eventDate": "2023-06-30T10:00:00",
}

Si des documents ont été publiés sur l'intervention, il n'est pas nécessaire de les supprimer.

Exemple

{
"reference": "INTER-05061991",
"description": "Intervention supprimée dans notre outil",
"contractReference": "contract_intent",
"status": "denied",
"event": "canceled",
"eventDate": "2023-09-12T09:15:00",
"logDate": "2023-09-12T09:15:00",
"serviceCode": "P902",
"location": {
"assetReference": "LOGEMENT_002"
},
"workType": "corrective"
}

Rendu visuel

API

{
"_links": {
"self": {
"href": "https://apisandbox.hubintent.com/api/operations/v2/operations/INTER-05061991?contractReference=contract_intent"
},
"documents:list": {
"href": "https://apisandbox.hubintent.com/api/documents/v1/documents?elementType=intervention&elementReference=INTER-05061991"
},
"actions:reservation:create": {
"href": "https://apisandbox.hubintent.com/api/operations/v2/reservations/logs"
}
},
"reference": "INTER-05061991",
"description": "Plus de ventilation à l'étage 3",
"criticalLevel": 3,
"issuer": {
"entity": {
"id": "5cb73d0d7c73a343dbb69dfb",
"label": "intenttest sandbox",
"logoUrl": "https://image.freepik.com/free-vector/abstract-real-estate-logo_1032-116.jpg"
},
"user": {
"id": "c561e0cb-3c46-4255-a5aa-901f3bb72587",
"type": "client",
"name": "Intent"
}
},
"contract": {
"reference": "contract_intent",
"label": "Contrat",
"topic": "Multi technique",
"entities": [
{
"id": "63da7bb4574c950974f5075a",
"label": "Gestionnaire test",
"logoUrl": "https://sandbox.hubintent.com/intent/entities/logos/f20e5c12-b584-4a2d-873c-bf470c90ea22.png"
},
{
"id": "5cb73d0d7c73a343dbb69dfb",
"label": "intenttest sandbox",
"logoUrl": "https://image.freepik.com/free-vector/abstract-real-estate-logo_1032-116.jpg"
}
]
},
"type": "intervention",
"service": {
"code": "P902",
"originalCode": "P902"
},
"workType": "corrective",
"status": "denied",
"event": "canceled",
"eventDate": "2023-09-12T09:15:00+02:00",
"logDate": "2023-09-12T09:15:00+02:00",
"eventHistory": [
"acknowledged",
"canceled"
],
"location": {
"assetReference": "LOGEMENT_002",
"address": {
"way": "165 AVENUE DE BRETAGNE",
"city": "LILLE",
"zip": "59000",
"country": "FRANCE"
},
"owner": {
"id": "63da7bb4574c950974f5075a",
"label": "Gestionnaire test",
"entityRoles": [
{
"name": "assetOwner"
},
{
"name": "client"
}
],
"logoUrl": "https://sandbox.hubintent.com/intent/entities/logos/f20e5c12-b584-4a2d-873c-bf470c90ea22.png"
}
},
"contacts": [
"BEGIN:VCARD\n\nVERSION:3\r\nFN;CHARSET=UTF-8:Pierre DUPONT\r\nN;CHARSET=UTF-8:DUPONT;Pierre\r\nTEL;TYPE=WORK,VOICE:0734220902\r\nTEL;TYPE=HOME,VOICE:0685874445\r\nADR;TYPE=WORK:165 Avenue de Bretagne;59000;LILLE;France\r\nROLE;CHARSET=UTF-8:Locataire\r\nEMAIL;CHARSET=UTF-8;TYPE=WORK,INTERNET:p.dupont@internet.fr\r\nEND:VCARD"
],
"logs": [
{
"issuer": {
"entity": {
"id": "5cb73d0d7c73a343dbb69dfb",
"label": "intenttest sandbox",
"logoUrl": "https://image.freepik.com/free-vector/abstract-real-estate-logo_1032-116.jpg"
},
"user": {
"id": "c561e0cb-3c46-4255-a5aa-901f3bb72587",
"type": "client",
"name": "Intent"
}
},
"reference": "INTER-05061991",
"description": "Plus de ventilation à l'étage 3",
"contractReference": "contract_intent",
"contacts": [
"BEGIN:VCARD\n\nVERSION:3\r\nFN;CHARSET=UTF-8:Pierre DUPONT\r\nN;CHARSET=UTF-8:DUPONT;Pierre\r\nTEL;TYPE=WORK,VOICE:0734220902\r\nTEL;TYPE=HOME,VOICE:0685874445\r\nADR;TYPE=WORK:165 Avenue de Bretagne;59000;LILLE;France\r\nROLE;CHARSET=UTF-8:Locataire\r\nEMAIL;CHARSET=UTF-8;TYPE=WORK,INTERNET:p.dupont@internet.fr\r\nEND:VCARD"
],
"creationDate": "2023-09-13T14:43:34+02:00",
"type": "intervention",
"serviceCode": "P902",
"workType": "corrective",
"status": "open",
"event": "acknowledged",
"eventDate": "2023-09-12T09:00:00+02:00",
"logDate": "2023-09-12T09:00:00+02:00",
"location": {
"assetReference": "LOGEMENT_002",
"address": {
"way": "165 AVENUE DE BRETAGNE",
"city": "LILLE",
"zip": "59000",
"country": "FRANCE"
},
"assetLabel": "RdC, Porte 02",
"assetOwner": "gestionnairetest.intent",
"assetAlgoliaId": "649ed9f2fecb6667c3198805"
},
"equipmentWorkingOrder": "not_operational",
"visitAttempt": 1,
"criticalLevel": 3
},
{
"issuer": {
"entity": {
"id": "5cb73d0d7c73a343dbb69dfb",
"label": "intenttest sandbox",
"logoUrl": "https://image.freepik.com/free-vector/abstract-real-estate-logo_1032-116.jpg"
},
"user": {
"id": "c561e0cb-3c46-4255-a5aa-901f3bb72587",
"type": "client",
"name": "Intent"
}
},
"reference": "INTER-05061991",
"description": "Intervention supprimée dans notre outil",
"contractReference": "contract_intent",
"creationDate": "2023-09-13T14:44:26+02:00",
"type": "intervention",
"serviceCode": "P902",
"workType": "corrective",
"status": "denied",
"event": "canceled",
"eventDate": "2023-09-12T09:15:00+02:00",
"logDate": "2023-09-12T09:15:00+02:00",
"location": {
"assetReference": "LOGEMENT_002",
"address": {
"way": "165 AVENUE DE BRETAGNE",
"city": "LILLE",
"zip": "59000",
"country": "FRANCE"
},
"assetLabel": "RdC, Porte 02",
"assetOwner": "gestionnairetest.intent",
"assetAlgoliaId": "649ed9f2fecb6667c3198805"
}
}
],
"creationDate": "2023-09-13T14:43:34+02:00",
"lastUpdateDate": "2023-09-13T14:44:28+02:00"
}