From 5374054289a4a615c4f2ae96ca75200ff1a7b830 Mon Sep 17 00:00:00 2001 From: server Date: Mon, 2 Jun 2025 17:45:28 -0600 Subject: [PATCH] =?UTF-8?q?Cambios=20para=20quitar=20la=20hora=20de=20los?= =?UTF-8?q?=20mensajes=20que=20se=20env=C3=ADan=20a=20los=20clientes,=20co?= =?UTF-8?q?rrecci=C3=B3n=20en=20la=20funci=C3=B3n=20getVaultCredentials=20?= =?UTF-8?q?para=20poder=20enviar=20el=20mensaje=20con=20la=20contrase?= =?UTF-8?q?=C3=B1a=20al=20instalador?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 + data/plugin.log | 3473 +++++++++++++----- manifest.json | 2 +- src/Facade/AbstractMessageNotifierFacade.php | 458 ++- src/Facade/ClientCallBellAPI.php | 12 +- vendor/composer/installed.php | 4 +- 6 files changed, 2841 insertions(+), 1118 deletions(-) diff --git a/README.md b/README.md index 8b7ffe93..eda37131 100755 --- a/README.md +++ b/README.md @@ -4,6 +4,16 @@ Este plugin sincroniza los clientes del sitema UISP CRM con los contactos de Wha ## REGISTRO DE CAMBIOS +# VERSIÓN 2.8.5 +## 🔵 Mejoras +1️⃣ Se modificó la información para el envío de notificaciones a los clientes para su visita técnica: ahora ya no se envían las horas en que serán las visitas, SOLO LA FECHA. +2️⃣ Se crearon nuevas plantillas de tipo utilidad y se adaptaron al flujo de trabajo en el código. + +## 🟡 Bugs Resueltos +1️⃣ Se soluciono el bug que impedía enviar notificaciones a los instaladores para nuevas tareas. + +## 🟡 Bugs Resueltos + # VERSIÓN 2.8.2 ## 🟡 Bugs Resueltos diff --git a/data/plugin.log b/data/plugin.log index b7804e30..c54c7e3c 100755 --- a/data/plugin.log +++ b/data/plugin.log @@ -1,45 +1,45 @@ -[2025-05-27 19:40:02.717797] [notice] Logging level set to:debug -[2025-05-27 19:40:02.717979] [debug] valor del webhook: {"uuid":"2c3bf59c-e30c-4eed-a81a-5608c37d8a9e","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 16:52:19.327909] [notice] Logging level set to:debug +[2025-05-30 16:52:19.328277] [debug] valor del webhook: {"uuid":"b19e10db-9b25-447a-af1a-ff6780ce012c","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 19:40:02.754940] [debug] valor el evento recibido por webhook: job.edit +[2025-05-30 16:52:19.366075] [debug] valor el evento recibido por webhook: job.edit -[2025-05-27 19:40:02.755151] [debug] Valor de JSON: {"uuid":"2c3bf59c-e30c-4eed-a81a-5608c37d8a9e","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 16:52:19.366137] [debug] Valor de JSON: {"uuid":"b19e10db-9b25-447a-af1a-ff6780ce012c","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 19:40:02.755408] [debug] Se actualiza un trabajo +[2025-05-30 16:52:19.366355] [debug] Se actualiza un trabajo -[2025-05-27 19:40:02.755462] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-27 19:40:18.488338] [notice] Logging level set to:debug -[2025-05-27 19:40:18.488765] [debug] valor del webhook: {"uuid":"20c5620b-ba71-4362-b8c0-c52058ea4bd7","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 16:52:19.366375] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 16:52:26.508114] [notice] Logging level set to:debug +[2025-05-30 16:52:26.508213] [debug] valor del webhook: {"uuid":"6c6f75f4-7c3f-4550-8b6d-107242103f6c","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 19:40:18.517045] [debug] valor el evento recibido por webhook: job.edit +[2025-05-30 16:52:26.537961] [debug] valor el evento recibido por webhook: job.edit -[2025-05-27 19:40:18.517190] [debug] Valor de JSON: {"uuid":"20c5620b-ba71-4362-b8c0-c52058ea4bd7","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 16:52:26.538105] [debug] Valor de JSON: {"uuid":"6c6f75f4-7c3f-4550-8b6d-107242103f6c","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 19:40:18.517429] [debug] Se actualiza un trabajo +[2025-05-30 16:52:26.538249] [debug] Se actualiza un trabajo -[2025-05-27 19:40:18.517484] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-27 19:40:22.115401] [notice] Logging level set to:debug -[2025-05-27 19:40:22.115725] [debug] valor del webhook: {"uuid":"39c96b62-1a12-411b-af38-fe166a6febf8","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 16:52:26.538295] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 16:52:29.724842] [notice] Logging level set to:debug +[2025-05-30 16:52:29.725030] [debug] valor del webhook: {"uuid":"c6a317b5-ca2e-466d-9349-98da2aa9bd5f","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 19:40:22.148391] [debug] valor el evento recibido por webhook: job.edit +[2025-05-30 16:52:29.750267] [debug] valor el evento recibido por webhook: job.edit -[2025-05-27 19:40:22.148564] [debug] Valor de JSON: {"uuid":"39c96b62-1a12-411b-af38-fe166a6febf8","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 16:52:29.750438] [debug] Valor de JSON: {"uuid":"c6a317b5-ca2e-466d-9349-98da2aa9bd5f","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 19:40:22.148753] [debug] Se actualiza un trabajo +[2025-05-30 16:52:29.750653] [debug] Se actualiza un trabajo -[2025-05-27 19:40:22.148828] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-27 19:40:22.148880] [debug] El instalador cambió de null a un valor -[2025-05-27 19:40:22.148942] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** +[2025-05-30 16:52:29.750716] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 16:52:29.750770] [debug] El instalador cambió de null a un valor +[2025-05-30 16:52:29.750823] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** -[2025-05-27 19:40:22.149050] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"39c96b62-1a12-411b-af38-fe166a6febf8","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 16:52:29.750922] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"c6a317b5-ca2e-466d-9349-98da2aa9bd5f","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 19:40:22.149111] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"39c96b62-1a12-411b-af38-fe166a6febf8","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 16:52:29.751007] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"c6a317b5-ca2e-466d-9349-98da2aa9bd5f","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 19:40:22.149173] [debug] Valor de $reprogramming en verifyJobActionToDo: false +[2025-05-30 16:52:29.751074] [debug] Valor de $reprogramming en verifyJobActionToDo: false -[2025-05-27 19:40:22.149221] [debug] Valor de $changeInstaller en verifyJobActionToDo: false +[2025-05-30 16:52:29.751121] [debug] Valor de $changeInstaller en verifyJobActionToDo: false -[2025-05-27 19:40:22.149281] [debug] Valor de $installersData en verifyJobActionToDo: { +[2025-05-30 16:52:29.751177] [debug] Valor de $installersData en verifyJobActionToDo: { "instaladores": [ { "id": 1019, @@ -64,19 +64,19 @@ ] } -[2025-05-27 19:40:22.190372] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1019,"unmsId":"75e00242-86c2-436a-b3ac-bd6c31db681e","email":"lionelmuz@gmail.com","firstName":"Mucio","lastName":"Robledo Villegas","username":"muz","avatarColor":"#8bc34a","isActive":true} +[2025-05-30 16:52:29.783698] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1172,"unmsId":"2ac31363-6037-40f3-8196-5cc7c71866b0","email":"amazonrostro@gmail.com","firstName":"Juan","lastName":"Rostro","username":"rostro","avatarColor":"#00695c","isActive":true} -[2025-05-27 19:40:22.190506] [debug] Número de WhatsApp del Instalador: 4181878106 +[2025-05-30 16:52:29.783832] [debug] Número de WhatsApp del Instalador: 4181878106 -[2025-05-27 19:40:22.221954] [debug] Valor de $installerFullName: Mucio Robledo Villegas +[2025-05-30 16:52:29.814894] [debug] Valor de $installerFullName: Juan Rostro -[2025-05-27 19:40:22.287362] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 +[2025-05-30 16:52:29.884972] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 -[2025-05-27 19:40:22.287406] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] +[2025-05-30 16:52:29.885087] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] -[2025-05-27 19:40:22.287491] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] +[2025-05-30 16:52:29.885221] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] -[2025-05-27 19:40:22.291043] [debug] Se encontró un tipo de contacto whatsapp +[2025-05-30 16:52:29.885307] [debug] Se encontró un tipo de contacto whatsapp Enviando mensaje de trabajo para el cliente @@ -93,26 +93,30 @@ La cadena CURL que se envia es: { "content": { "text": "S/M" }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "#️⃣ *54*", "🗓️ *31/05/2025* a las 🕑 *02:00 PM* aproximadamente", "👷🏻‍♂️➡️ *Mucio Robledo Villegas*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], + "template_values": ["👤 *Daniel Humberto Soto Villegas*", "*#️⃣54*", "🗓️ *01/06/2025", "👷🏻‍♂️➡️ *Juan Rostro*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], "template_uuid": "07cfbc6e394044608485b530a27177d0", "optin_contact": true } -Response del CallBell: {"message":{"uuid":"4d5485cf19a1485ead111be93be148a1","status":"enqueued"}} +Response del CallBell: {"message":{"uuid":"a399de1c5ba64536b3b2ad40a15a57ca","status":"enqueued"}} La notificación fue enviada correctamente con estado: enqueued -[2025-05-27 19:40:23.157758] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). +[2025-05-30 16:52:30.644241] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). -[2025-05-27 19:40:23.157871] [debug] Valor de $title en verifyJobActionToDo: [NOTIFICACION-PENDIENTE]Ir a checar instalación +[2025-05-30 16:52:30.644471] [debug] Valor de $title en verifyJobActionToDo: [NOTIFICACION-PENDIENTE]Ir a checar instalación -[2025-05-27 19:40:23.239495] [debug] Valor de $title después de quitar el prefijo en verifyJobActionToDo: Ir a checar instalación +[2025-05-30 16:52:30.718312] [debug] Valor de $title después de quitar el prefijo en verifyJobActionToDo: Ir a checar instalación -[2025-05-27 19:40:23.239542] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: false +[2025-05-30 16:52:30.718440] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: false -[2025-05-27 19:40:23.239552] [debug] No se cambió el instalador +[2025-05-30 16:52:30.718487] [debug] No se cambió el instalador + +[2025-05-30 16:52:30.718544] [debug] Iniciando búsqueda de credenciales en el Vault para: 2 + +[2025-05-30 16:52:30.718647] [debug] La variable dataToSearch es un id de cliente: 2 Enviando mensaje de tarea al instalador -Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*31\/05\/2025* a las \ud83d\udd51 *02:00 PM* aproximadamente","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} +Datos de la notificación de tarea: {"installerName":"Juan Rostro","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*01\/06\/2025","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false @@ -125,46 +129,46 @@ La cadena CURL que se envia es: { "content": { "text": "S/M" }, - "template_values": ["👷🏻‍♂️ *Mucio Robledo Villegas* se te ha asignado una tarea con folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, para el 🗓️ *31/05/2025* a las 🕑 *02:00 PM* aproximadamente", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], + "template_values": ["👷🏻‍♂️ *Juan Rostro* se te ha asignado una tarea con folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, para el 🗓️ *01/06/2025", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], "template_uuid": "88eeb6420a214fd8870dd28d741021c4", "optin_contact": true } -Response del CallBell: {"message":{"uuid":"f415a5bd6dff4af09ada6e1cc01b43c6","status":"enqueued"}} +Response del CallBell: {"message":{"uuid":"6fc5245cb988480fa54ec4c696d3fc71","status":"enqueued"}} La notificación fue enviada correctamente con estado: enqueued -[2025-05-27 19:40:24.125391] [notice] Logging level set to:debug -[2025-05-27 19:40:24.125544] [debug] valor del webhook: {"uuid":"ec39e43a-c954-40ce-838a-bb70085b8875","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 16:52:31.624614] [notice] Logging level set to:debug +[2025-05-30 16:52:31.624766] [debug] valor del webhook: {"uuid":"3ffc204a-42dd-456b-9153-e5ab5cb68f9f","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 19:40:24.166703] [debug] valor el evento recibido por webhook: job.edit +[2025-05-30 16:52:31.652760] [debug] valor el evento recibido por webhook: job.edit -[2025-05-27 19:40:24.166842] [debug] Valor de JSON: {"uuid":"ec39e43a-c954-40ce-838a-bb70085b8875","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 16:52:31.652914] [debug] Valor de JSON: {"uuid":"3ffc204a-42dd-456b-9153-e5ab5cb68f9f","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 19:40:24.166976] [debug] Se actualiza un trabajo +[2025-05-30 16:52:31.653043] [debug] Se actualiza un trabajo -[2025-05-27 19:40:24.169734] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-27 19:40:24.169838] [debug] No hubo cambio en el instalador ni en la fecha -[2025-05-27 19:40:59.270200] [notice] Logging level set to:debug -[2025-05-27 19:40:59.270286] [debug] valor del webhook: {"uuid":"a6d8aeec-910b-40ad-b0c1-5881b16a31fe","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 16:52:31.653090] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 16:52:31.653130] [debug] No hubo cambio en el instalador ni en la fecha +[2025-05-30 16:56:01.793137] [notice] Logging level set to:debug +[2025-05-30 16:56:01.793229] [debug] valor del webhook: {"uuid":"3f2f637a-ceb4-4996-8594-17cb7472fe41","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 19:40:59.301765] [debug] valor el evento recibido por webhook: job.edit +[2025-05-30 16:56:01.828747] [debug] valor el evento recibido por webhook: job.edit -[2025-05-27 19:40:59.301824] [debug] Valor de JSON: {"uuid":"a6d8aeec-910b-40ad-b0c1-5881b16a31fe","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 16:56:01.828800] [debug] Valor de JSON: {"uuid":"3f2f637a-ceb4-4996-8594-17cb7472fe41","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 19:40:59.306039] [debug] Se actualiza un trabajo +[2025-05-30 16:56:01.829011] [debug] Se actualiza un trabajo -[2025-05-27 19:40:59.306077] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-27 19:40:59.306092] [debug] Se reprogramó el trabajo pero no hubo cambio de instalador -[2025-05-27 19:40:59.306116] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** +[2025-05-30 16:56:01.829030] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 16:56:01.829041] [debug] No hay reprogramación de trabajo pero si hay cambio de instalador +[2025-05-30 16:56:01.829054] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** -[2025-05-27 19:40:59.306178] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"a6d8aeec-910b-40ad-b0c1-5881b16a31fe","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 16:56:01.829099] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"3f2f637a-ceb4-4996-8594-17cb7472fe41","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 19:40:59.306195] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"a6d8aeec-910b-40ad-b0c1-5881b16a31fe","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T14:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 16:56:01.829121] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"3f2f637a-ceb4-4996-8594-17cb7472fe41","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 19:40:59.306205] [debug] Valor de $reprogramming en verifyJobActionToDo: true +[2025-05-30 16:56:01.829130] [debug] Valor de $reprogramming en verifyJobActionToDo: false -[2025-05-27 19:40:59.306211] [debug] Valor de $changeInstaller en verifyJobActionToDo: false +[2025-05-30 16:56:01.829138] [debug] Valor de $changeInstaller en verifyJobActionToDo: true -[2025-05-27 19:40:59.306229] [debug] Valor de $installersData en verifyJobActionToDo: { +[2025-05-30 16:56:01.829153] [debug] Valor de $installersData en verifyJobActionToDo: { "instaladores": [ { "id": 1019, @@ -189,247 +193,19 @@ La notificación fue enviada correctamente con estado: enqueued ] } -[2025-05-27 19:40:59.346400] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1019,"unmsId":"75e00242-86c2-436a-b3ac-bd6c31db681e","email":"lionelmuz@gmail.com","firstName":"Mucio","lastName":"Robledo Villegas","username":"muz","avatarColor":"#8bc34a","isActive":true} +[2025-05-30 16:56:01.862413] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1173,"unmsId":"5cb37ee8-e445-4b2a-87d4-6c83eebb8944","email":"hachi9801@gmail.com","firstName":"\u00c1ngel ","lastName":"Arvizu","username":"mamey","avatarColor":"#4caf50","isActive":true} -[2025-05-27 19:40:59.346460] [debug] Número de WhatsApp del Instalador: 4181878106 +[2025-05-30 16:56:01.862544] [debug] Número de WhatsApp del Instalador: 4181878106 -[2025-05-27 19:40:59.376843] [debug] Valor de $installerFullName: Mucio Robledo Villegas +[2025-05-30 16:56:01.895829] [debug] Valor de $installerFullName: Ángel Arvizu -[2025-05-27 19:40:59.441556] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 +[2025-05-30 16:56:01.961401] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 -[2025-05-27 19:40:59.441606] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] +[2025-05-30 16:56:01.961612] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] -[2025-05-27 19:40:59.441694] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] +[2025-05-30 16:56:01.961739] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] -[2025-05-27 19:40:59.441740] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false - -DEBUG: Valores antes de la estructura IF - Reprogramming: true, ChangeInstaller: false - -Enviando notificación de reprogramación al cliente, valor de reprogramming 1 y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "#️⃣ *54*", "🗓️ *31/05/2025* a las 🕒 *03:00 PM* aproximadamente", "👷🏻‍♂️➡️ *Mucio Robledo Villegas*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], - "template_uuid": "bd305d6dba7449e9a6609d5ed434a6c9", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"7a12abbe36914aa891c676991645d07f","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-27 19:41:00.242465] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-05-27 19:41:00.242716] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación - -[2025-05-27 19:41:00.242844] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación - -[2025-05-27 19:41:00.242968] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: true, ChangeInstaller: false - -[2025-05-27 19:41:00.243113] [debug] No se cambió el instalador - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*31\/05\/2025* a las \ud83d\udd52 *03:00 PM* aproximadamente","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} - -DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false - -Enviando notificación de reprogramación al instalador, valor de reprogramming 1 y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ Mucio Robledo Villegas", "#️⃣54", "👤 *[2] Daniel Humberto Soto Villegas*", "☎️ 5214181878106, 5214181148783", "🗓️ *31/05/2025* a las 🕒 *03:00 PM* aproximadamente", "🛠️ Andan mal esos equipos", "📌 https://www.google.com/maps?q=21.1564209,-100.9384185", "🔐 gYAIEK:Be}SK*01z5+/V"], - "template_uuid": "7eb4d8e27cf740779dd6777fad7ffaf4", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"6fa8178b72db4e97962c39372ea3d017","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-27 19:41:48.988986] [notice] Logging level set to:debug -[2025-05-27 19:41:48.989092] [debug] valor del webhook: {"uuid":"c2e9277f-ab83-4281-9c76-59fd9793ca9d","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-27 19:41:49.022665] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-27 19:41:49.022722] [debug] Valor de JSON: {"uuid":"c2e9277f-ab83-4281-9c76-59fd9793ca9d","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-27 19:41:49.022926] [debug] Se actualiza un trabajo - -[2025-05-27 19:41:49.022953] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-27 19:41:49.022965] [debug] Se reprogramó el trabajo pero no hubo cambio de instalador -[2025-05-27 19:41:49.023005] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-05-27 19:41:49.023061] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"c2e9277f-ab83-4281-9c76-59fd9793ca9d","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-27 19:41:49.023078] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"c2e9277f-ab83-4281-9c76-59fd9793ca9d","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-27 19:41:49.023089] [debug] Valor de $reprogramming en verifyJobActionToDo: true - -[2025-05-27 19:41:49.023097] [debug] Valor de $changeInstaller en verifyJobActionToDo: false - -[2025-05-27 19:41:49.023113] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Angel Arvizu", - "whatsapp": "4181878106" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - } - ] -} - -[2025-05-27 19:41:49.055370] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1019,"unmsId":"75e00242-86c2-436a-b3ac-bd6c31db681e","email":"lionelmuz@gmail.com","firstName":"Mucio","lastName":"Robledo Villegas","username":"muz","avatarColor":"#8bc34a","isActive":true} - -[2025-05-27 19:41:49.055422] [debug] Número de WhatsApp del Instalador: 4181878106 - -[2025-05-27 19:41:49.088267] [debug] Valor de $installerFullName: Mucio Robledo Villegas - -[2025-05-27 19:41:49.152280] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 - -[2025-05-27 19:41:49.152425] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-27 19:41:49.152553] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-27 19:41:49.152632] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false - -DEBUG: Valores antes de la estructura IF - Reprogramming: true, ChangeInstaller: false - -Enviando notificación de reprogramación al cliente, valor de reprogramming 1 y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "#️⃣ *54*", "🗓️ *01/06/2025* a las 🕒 *03:00 PM* aproximadamente", "👷🏻‍♂️➡️ *Mucio Robledo Villegas*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], - "template_uuid": "bd305d6dba7449e9a6609d5ed434a6c9", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"80891af075ea4666b1f4ee78f6025f2b","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-27 19:41:49.910507] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-05-27 19:41:49.911957] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación - -[2025-05-27 19:41:49.912060] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación - -[2025-05-27 19:41:49.912112] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: true, ChangeInstaller: false - -[2025-05-27 19:41:49.912153] [debug] No se cambió el instalador - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*01\/06\/2025* a las \ud83d\udd52 *03:00 PM* aproximadamente","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} - -DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false - -Enviando notificación de reprogramación al instalador, valor de reprogramming 1 y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ Mucio Robledo Villegas", "#️⃣54", "👤 *[2] Daniel Humberto Soto Villegas*", "☎️ 5214181878106, 5214181148783", "🗓️ *01/06/2025* a las 🕒 *03:00 PM* aproximadamente", "🛠️ Andan mal esos equipos", "📌 https://www.google.com/maps?q=21.1564209,-100.9384185", "🔐 gYAIEK:Be}SK*01z5+/V"], - "template_uuid": "7eb4d8e27cf740779dd6777fad7ffaf4", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"3d5205625582496dba10e31b9e160e59","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-27 19:43:34.192425] [notice] Logging level set to:debug -[2025-05-27 19:43:34.192593] [debug] valor del webhook: {"uuid":"5caa3376-db6d-4436-9b7c-26a44593ee91","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-27 19:43:34.217736] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-27 19:43:34.217983] [debug] Valor de JSON: {"uuid":"5caa3376-db6d-4436-9b7c-26a44593ee91","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-27 19:43:34.218236] [debug] Se actualiza un trabajo - -[2025-05-27 19:43:34.218296] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-27 19:43:34.218337] [debug] No hay reprogramación de trabajo pero si hay cambio de instalador -[2025-05-27 19:43:34.218386] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-05-27 19:43:34.218468] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"5caa3376-db6d-4436-9b7c-26a44593ee91","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-27 19:43:34.218513] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"5caa3376-db6d-4436-9b7c-26a44593ee91","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-27 19:43:34.218561] [debug] Valor de $reprogramming en verifyJobActionToDo: false - -[2025-05-27 19:43:34.218596] [debug] Valor de $changeInstaller en verifyJobActionToDo: true - -[2025-05-27 19:43:34.218641] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Angel Arvizu", - "whatsapp": "4181878106" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - } - ] -} - -[2025-05-27 19:43:34.250261] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1173,"unmsId":"5cb37ee8-e445-4b2a-87d4-6c83eebb8944","email":"hachi9801@gmail.com","firstName":"\u00c1ngel ","lastName":"Arvizu","username":"mamey","avatarColor":"#4caf50","isActive":true} - -[2025-05-27 19:43:34.250392] [debug] Número de WhatsApp del Instalador: 4181878106 - -[2025-05-27 19:43:34.289427] [debug] Valor de $installerFullName: Ángel Arvizu - -[2025-05-27 19:43:34.380695] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 - -[2025-05-27 19:43:34.380831] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-27 19:43:34.380950] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-27 19:43:34.381031] [debug] Se encontró un tipo de contacto whatsapp +[2025-05-30 16:56:01.961812] [debug] Se encontró un tipo de contacto whatsapp Enviando mensaje de trabajo para el cliente @@ -446,300 +222,24 @@ La cadena CURL que se envia es: { "content": { "text": "S/M" }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "se ha hecho un cambio de técnico 👷🏻‍♂️🔄 para su visita con el folio #️⃣54", "🗓️ *01/06/2025* a las 🕒 *03:00 PM* aproximadamente", "👷🏻‍♂️➡️ *Ángel Arvizu*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], + "template_values": ["👤 *Daniel Humberto Soto Villegas*", "se ha hecho un cambio de técnico 👷🏻‍♂️🔄 para su visita con el folio *#️⃣54*", "🗓️ *01/06/2025*", "👷🏻‍♂️➡️ *Ángel Arvizu*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], "template_uuid": "d684e6fa2ba24593a86c98be1815831d", "optin_contact": true } -Response del CallBell: {"message":{"uuid":"82c60cbad5864cf6aefa023f08c031fe","status":"enqueued"}} +Response del CallBell: {"message":{"uuid":"27a55ab2660a43599f3ad497fc9a44f8","status":"enqueued"}} La notificación fue enviada correctamente con estado: enqueued -[2025-05-27 19:43:37.156166] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). +[2025-05-30 16:56:02.969120] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). -[2025-05-27 19:43:37.156404] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación +[2025-05-30 16:56:02.969361] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación -[2025-05-27 19:43:37.156528] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación +[2025-05-30 16:56:02.969486] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación -[2025-05-27 19:43:37.156649] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: true +[2025-05-30 16:56:02.969607] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: true -[2025-05-27 19:43:37.156757] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó +[2025-05-30 16:56:02.969713] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó -[2025-05-27 19:43:37.203649] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106 - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"\ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0fMucio Robledo Villegas","subjectOfChange":"se te ha desasignado\u274c la tarea con el folio ","jobId":"54","clientFullName":"[2] Daniel Humberto Soto Villegas","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico \ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u27a1\ufe0f *\u00c1ngel Arvizu*"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true - -Enviando notificación de cambio de instalador al instalador anterior, valor de reprogramming y valor de changeInstaller 1 - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ 👷🏻‍♂️Mucio Robledo Villegas", "se te ha desasignado❌ la tarea con el folio ", "#️⃣ *54*", "👤 *Cliente:* [2] Daniel Humberto Soto Villegas", "En tu lugar asistirá el técnico 👷🏻‍♂️➡️ *Ángel Arvizu*"], - "template_uuid": "e1aa2b0fd3884595918f4ac2676acd29", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"5ecd5408de09407cb5d94a130f29fb1b","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"\u00c1ngel Arvizu","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*01\/06\/2025* a las \ud83d\udd52 *03:00 PM* aproximadamente","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false - -Enviando notificación normal de tarea al instalador, valor de reprogramming y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ *Ángel Arvizu* se te ha asignado una tarea con folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, para el 🗓️ *01/06/2025* a las 🕒 *03:00 PM* aproximadamente", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], - "template_uuid": "88eeb6420a214fd8870dd28d741021c4", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"47440a12254f47e9aff6c644388dce3a","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-27 19:50:08.698178] [notice] Logging level set to:debug -[2025-05-27 19:50:08.698266] [debug] valor del webhook: {"uuid":"730230ec-5c3d-4efc-91e0-077e7cd186b3","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-27 19:50:08.722898] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-27 19:50:08.722955] [debug] Valor de JSON: {"uuid":"730230ec-5c3d-4efc-91e0-077e7cd186b3","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-27 19:50:08.723223] [debug] Se actualiza un trabajo - -[2025-05-27 19:50:08.723248] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-27 19:50:08.723261] [debug] No hay reprogramación de trabajo pero si hay cambio de instalador -[2025-05-27 19:50:08.723282] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-05-27 19:50:08.723334] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"730230ec-5c3d-4efc-91e0-077e7cd186b3","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-27 19:50:08.723351] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"730230ec-5c3d-4efc-91e0-077e7cd186b3","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-27 19:50:08.723361] [debug] Valor de $reprogramming en verifyJobActionToDo: false - -[2025-05-27 19:50:08.723368] [debug] Valor de $changeInstaller en verifyJobActionToDo: true - -[2025-05-27 19:50:08.723383] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Angel Arvizu", - "whatsapp": "4181878106" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - } - ] -} - -[2025-05-27 19:50:08.755670] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1172,"unmsId":"2ac31363-6037-40f3-8196-5cc7c71866b0","email":"amazonrostro@gmail.com","firstName":"Juan","lastName":"Rostro","username":"rostro","avatarColor":"#00695c","isActive":true} - -[2025-05-27 19:50:08.755726] [debug] Número de WhatsApp del Instalador: 4181878106 - -[2025-05-27 19:50:08.791166] [debug] Valor de $installerFullName: Juan Rostro - -[2025-05-27 19:50:08.882389] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 - -[2025-05-27 19:50:08.882513] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-27 19:50:08.882635] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-27 19:50:08.889816] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true - -DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: true - -Enviando notificación de cambio de instalador al cliente, valor de reprogramming y valor de changeInstaller 1 - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "se ha hecho un cambio de técnico 👷🏻‍♂️🔄 para su visita con el folio *#️⃣54*", "🗓️ *01/06/2025* a las 🕒 *03:00 PM* aproximadamente", "👷🏻‍♂️➡️ *Juan Rostro*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], - "template_uuid": "d684e6fa2ba24593a86c98be1815831d", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"333acd343aea4583aa8887231437934c","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-27 19:50:09.952290] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-05-27 19:50:09.952542] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación - -[2025-05-27 19:50:09.952667] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación - -[2025-05-27 19:50:09.952792] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: true - -[2025-05-27 19:50:09.952898] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó - -[2025-05-27 19:50:09.997595] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106 - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"\ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u00c1ngel Arvizu","subjectOfChange":"se te ha desasignado\u274c la tarea con el folio ","jobId":"54","clientFullName":"[2] Daniel Humberto Soto Villegas","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico \ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u27a1\ufe0f *Juan Rostro*"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true - -Enviando notificación de cambio de instalador al instalador anterior, valor de reprogramming y valor de changeInstaller 1 - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ 👷🏻‍♂️Ángel Arvizu", "se te ha desasignado❌ la tarea con el folio ", "*#️⃣54*", "👤 *Cliente:* [2] Daniel Humberto Soto Villegas", "En tu lugar asistirá el técnico 👷🏻‍♂️➡️ *Juan Rostro*"], - "template_uuid": "e1aa2b0fd3884595918f4ac2676acd29", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"086ab88a6c324fd99e18818eaf813c34","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"Juan Rostro","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*01\/06\/2025* a las \ud83d\udd52 *03:00 PM* aproximadamente","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false - -Enviando notificación normal de tarea al instalador, valor de reprogramming y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ *Juan Rostro* se te ha asignado una tarea con folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, para el 🗓️ *01/06/2025* a las 🕒 *03:00 PM* aproximadamente", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], - "template_uuid": "88eeb6420a214fd8870dd28d741021c4", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"84e09dfcabda413a91da94d0c0f15309","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-27 19:51:12.870804] [notice] Logging level set to:debug -[2025-05-27 19:51:12.870893] [debug] valor del webhook: {"uuid":"6bf67e7d-27bc-4415-927a-bd3baf024e07","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-27 19:51:12.903228] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-27 19:51:12.903374] [debug] Valor de JSON: {"uuid":"6bf67e7d-27bc-4415-927a-bd3baf024e07","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-27 19:51:12.903606] [debug] Se actualiza un trabajo - -[2025-05-27 19:51:12.903666] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-27 19:51:12.903707] [debug] No hay reprogramación de trabajo pero si hay cambio de instalador -[2025-05-27 19:51:12.903757] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-05-27 19:51:12.903840] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"6bf67e7d-27bc-4415-927a-bd3baf024e07","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-27 19:51:12.903883] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"6bf67e7d-27bc-4415-927a-bd3baf024e07","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-27 19:51:12.903932] [debug] Valor de $reprogramming en verifyJobActionToDo: false - -[2025-05-27 19:51:12.903966] [debug] Valor de $changeInstaller en verifyJobActionToDo: true - -[2025-05-27 19:51:12.904011] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Angel Arvizu", - "whatsapp": "4181878106" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - } - ] -} - -[2025-05-27 19:51:12.936723] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1173,"unmsId":"5cb37ee8-e445-4b2a-87d4-6c83eebb8944","email":"hachi9801@gmail.com","firstName":"\u00c1ngel ","lastName":"Arvizu","username":"mamey","avatarColor":"#4caf50","isActive":true} - -[2025-05-27 19:51:12.936779] [debug] Número de WhatsApp del Instalador: 4181878106 - -[2025-05-27 19:51:12.969682] [debug] Valor de $installerFullName: Ángel Arvizu - -[2025-05-27 19:51:13.033044] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 - -[2025-05-27 19:51:13.033173] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-27 19:51:13.033299] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-27 19:51:13.036921] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true - -DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: true - -Enviando notificación de cambio de instalador al cliente, valor de reprogramming y valor de changeInstaller 1 - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "se ha hecho un cambio de técnico 👷🏻‍♂️🔄 para su visita con el folio *#️⃣54*", "🗓️ *01/06/2025* a las 🕒 *03:00 PM* aproximadamente", "👷🏻‍♂️➡️ *Ángel Arvizu*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], - "template_uuid": "d684e6fa2ba24593a86c98be1815831d", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"2dcb1e3560e04e4fb46b2e1cb713af52","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-27 19:51:13.863202] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-05-27 19:51:13.863461] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación - -[2025-05-27 19:51:13.863588] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación - -[2025-05-27 19:51:13.863708] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: true - -[2025-05-27 19:51:13.863816] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó - -[2025-05-27 19:51:13.903022] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106 +[2025-05-30 16:56:03.007776] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106 Enviando mensaje de tarea al instalador @@ -760,12 +260,16 @@ La cadena CURL que se envia es: { "template_uuid": "e1aa2b0fd3884595918f4ac2676acd29", "optin_contact": true } -Response del CallBell: {"message":{"uuid":"21388adec3424cfb9aa756866ea72e01","status":"enqueued"}} +Response del CallBell: {"message":{"uuid":"1b44ce398b2844588477c4e502c81fd1","status":"enqueued"}} La notificación fue enviada correctamente con estado: enqueued +[2025-05-30 16:56:07.770865] [debug] Iniciando búsqueda de credenciales en el Vault para: 2 + +[2025-05-30 16:56:07.771228] [debug] La variable dataToSearch es un id de cliente: 2 + Enviando mensaje de tarea al instalador -Datos de la notificación de tarea: {"installerName":"\u00c1ngel Arvizu","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*01\/06\/2025* a las \ud83d\udd52 *03:00 PM* aproximadamente","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} +Datos de la notificación de tarea: {"installerName":"\u00c1ngel Arvizu","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*01\/06\/2025*","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false @@ -778,35 +282,35 @@ La cadena CURL que se envia es: { "content": { "text": "S/M" }, - "template_values": ["👷🏻‍♂️ *Ángel Arvizu* se te ha asignado una tarea con folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, para el 🗓️ *01/06/2025* a las 🕒 *03:00 PM* aproximadamente", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], + "template_values": ["👷🏻‍♂️ *Ángel Arvizu* se te ha asignado una tarea con folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, para el 🗓️ *01/06/2025*", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], "template_uuid": "88eeb6420a214fd8870dd28d741021c4", "optin_contact": true } -Response del CallBell: {"message":{"uuid":"5783461740e94e17833903ffe4857953","status":"enqueued"}} +Response del CallBell: {"message":{"uuid":"ceca17b75dfe45f3bdbb17f5162c98d9","status":"enqueued"}} La notificación fue enviada correctamente con estado: enqueued -[2025-05-27 19:51:39.691133] [notice] Logging level set to:debug -[2025-05-27 19:51:39.691446] [debug] valor del webhook: {"uuid":"98bd750d-1777-4f22-a7fc-f56a0dc51378","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 16:56:40.596395] [notice] Logging level set to:debug +[2025-05-30 16:56:40.596731] [debug] valor del webhook: {"uuid":"01b78983-891b-4d44-89a8-38c2692e14ef","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 19:51:39.722738] [debug] valor el evento recibido por webhook: job.edit +[2025-05-30 16:56:40.622116] [debug] valor el evento recibido por webhook: job.edit -[2025-05-27 19:51:39.722908] [debug] Valor de JSON: {"uuid":"98bd750d-1777-4f22-a7fc-f56a0dc51378","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 16:56:40.622256] [debug] Valor de JSON: {"uuid":"01b78983-891b-4d44-89a8-38c2692e14ef","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 19:51:39.723180] [debug] Se actualiza un trabajo +[2025-05-30 16:56:40.622483] [debug] Se actualiza un trabajo -[2025-05-27 19:51:39.723241] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-27 19:51:39.723280] [debug] Se reprogramó el trabajo pero no hubo cambio de instalador -[2025-05-27 19:51:39.723331] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** +[2025-05-30 16:56:40.622538] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 16:56:40.622579] [debug] Se reprogramó el trabajo pero no hubo cambio de instalador +[2025-05-30 16:56:40.622622] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** -[2025-05-27 19:51:39.723414] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"98bd750d-1777-4f22-a7fc-f56a0dc51378","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 16:56:40.622704] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"01b78983-891b-4d44-89a8-38c2692e14ef","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 19:51:39.723459] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"98bd750d-1777-4f22-a7fc-f56a0dc51378","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 16:56:40.622772] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"01b78983-891b-4d44-89a8-38c2692e14ef","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 19:51:39.723498] [debug] Valor de $reprogramming en verifyJobActionToDo: true +[2025-05-30 16:56:40.622812] [debug] Valor de $reprogramming en verifyJobActionToDo: true -[2025-05-27 19:51:39.723531] [debug] Valor de $changeInstaller en verifyJobActionToDo: false +[2025-05-30 16:56:40.622845] [debug] Valor de $changeInstaller en verifyJobActionToDo: false -[2025-05-27 19:51:39.723573] [debug] Valor de $installersData en verifyJobActionToDo: { +[2025-05-30 16:56:40.622888] [debug] Valor de $installersData en verifyJobActionToDo: { "instaladores": [ { "id": 1019, @@ -831,19 +335,19 @@ La notificación fue enviada correctamente con estado: enqueued ] } -[2025-05-27 19:51:39.757066] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1173,"unmsId":"5cb37ee8-e445-4b2a-87d4-6c83eebb8944","email":"hachi9801@gmail.com","firstName":"\u00c1ngel ","lastName":"Arvizu","username":"mamey","avatarColor":"#4caf50","isActive":true} +[2025-05-30 16:56:40.661757] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1173,"unmsId":"5cb37ee8-e445-4b2a-87d4-6c83eebb8944","email":"hachi9801@gmail.com","firstName":"\u00c1ngel ","lastName":"Arvizu","username":"mamey","avatarColor":"#4caf50","isActive":true} -[2025-05-27 19:51:39.757194] [debug] Número de WhatsApp del Instalador: 4181878106 +[2025-05-30 16:56:40.661894] [debug] Número de WhatsApp del Instalador: 4181878106 -[2025-05-27 19:51:39.787755] [debug] Valor de $installerFullName: Ángel Arvizu +[2025-05-30 16:56:40.703242] [debug] Valor de $installerFullName: Ángel Arvizu -[2025-05-27 19:51:39.850306] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 +[2025-05-30 16:56:40.788870] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 -[2025-05-27 19:51:39.850421] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] +[2025-05-30 16:56:40.791063] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] -[2025-05-27 19:51:39.850542] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] +[2025-05-30 16:56:40.791266] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] -[2025-05-27 19:51:39.850616] [debug] Se encontró un tipo de contacto whatsapp +[2025-05-30 16:56:40.791379] [debug] Se encontró un tipo de contacto whatsapp Enviando mensaje de trabajo para el cliente @@ -860,26 +364,30 @@ La cadena CURL que se envia es: { "content": { "text": "S/M" }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "*#️⃣54*", "🗓️ *28/05/2025* a las 🕒 *03:00 PM* aproximadamente", "👷🏻‍♂️➡️ *Ángel Arvizu*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], - "template_uuid": "bd305d6dba7449e9a6609d5ed434a6c9", + "template_values": ["Estimado cliente 👤 *Daniel Humberto Soto Villegas* se ha reprogramado su visita técnica con folio *#️⃣54*", "🗓️➡️ *02/06/2025*", "👷🏻‍♂️➡️ *Ángel Arvizu*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], + "template_uuid": "715eed9d6f2d4d90853f25e296202e00", "optin_contact": true } -Response del CallBell: {"message":{"uuid":"f2d2a0b49564490ab8a2b8b1ae50f8ce","status":"enqueued"}} +Response del CallBell: {"message":{"uuid":"e5a8d289e81a45f38f11f52bed4d92c6","status":"enqueued"}} La notificación fue enviada correctamente con estado: enqueued -[2025-05-27 19:51:40.606304] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). +[2025-05-30 16:56:41.602298] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). -[2025-05-27 19:51:40.606411] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación +[2025-05-30 16:56:41.602551] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación -[2025-05-27 19:51:40.606443] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación +[2025-05-30 16:56:41.602678] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación -[2025-05-27 19:51:40.606477] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: true, ChangeInstaller: false +[2025-05-30 16:56:41.602821] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: true, ChangeInstaller: false -[2025-05-27 19:51:40.606498] [debug] No se cambió el instalador +[2025-05-30 16:56:41.602926] [debug] No se cambió el instalador + +[2025-05-30 16:56:41.603122] [debug] Iniciando búsqueda de credenciales en el Vault para: 2 + +[2025-05-30 16:56:41.603341] [debug] La variable dataToSearch es un id de cliente: 2 Enviando mensaje de tarea al instalador -Datos de la notificación de tarea: {"installerName":"\u00c1ngel Arvizu","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*28\/05\/2025* a las \ud83d\udd52 *03:00 PM* aproximadamente","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} +Datos de la notificación de tarea: {"installerName":"\u00c1ngel Arvizu","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*02\/06\/2025*","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false @@ -892,35 +400,55 @@ La cadena CURL que se envia es: { "content": { "text": "S/M" }, - "template_values": ["👷🏻‍♂️ Ángel Arvizu", "#️⃣54", "👤 *[2] Daniel Humberto Soto Villegas*", "☎️ 5214181878106, 5214181148783", "🗓️ *28/05/2025* a las 🕒 *03:00 PM* aproximadamente", "🛠️ Andan mal esos equipos", "📌 https://www.google.com/maps?q=21.1564209,-100.9384185", "🔐 gYAIEK:Be}SK*01z5+/V"], - "template_uuid": "7eb4d8e27cf740779dd6777fad7ffaf4", + "template_values": ["👷🏻‍♂️ *Ángel Arvizu* se reprogramó una tarea con el folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, la nueva fecha será el 🗓️➡️ *02/06/2025*", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], + "template_uuid": "88eeb6420a214fd8870dd28d741021c4", "optin_contact": true } -Response del CallBell: {"message":{"uuid":"56edf338abde417187ce3d229cd1c1ea","status":"enqueued"}} +Response del CallBell: {"message":{"uuid":"1afde7180b2848c9830809c8fb9922bc","status":"enqueued"}} La notificación fue enviada correctamente con estado: enqueued -[2025-05-27 20:12:04.394680] [notice] Logging level set to:debug -[2025-05-27 20:12:04.394767] [debug] valor del webhook: {"uuid":"db71a6aa-65c0-40e2-90a5-6814ead7c6f2","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 17:50:15.875696] [notice] Logging level set to:debug +[2025-05-30 17:50:15.875781] [debug] valor del webhook: {"uuid":"78d33c27-b0a8-4f55-bf7b-0480c35b6341","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 20:12:04.419981] [debug] valor el evento recibido por webhook: job.edit +[2025-05-30 17:50:15.903736] [debug] valor el evento recibido por webhook: job.edit -[2025-05-27 20:12:04.420041] [debug] Valor de JSON: {"uuid":"db71a6aa-65c0-40e2-90a5-6814ead7c6f2","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 17:50:15.903790] [debug] Valor de JSON: {"uuid":"78d33c27-b0a8-4f55-bf7b-0480c35b6341","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 20:12:04.420254] [debug] Se actualiza un trabajo +[2025-05-30 17:50:15.903990] [debug] Se actualiza un trabajo -[2025-05-27 20:12:04.420275] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-27 20:12:04.420288] [debug] No hay reprogramación de trabajo pero si hay cambio de instalador -[2025-05-27 20:12:04.420310] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** +[2025-05-30 17:50:15.904011] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 17:50:28.096195] [notice] Logging level set to:debug +[2025-05-30 17:50:28.096456] [debug] valor del webhook: {"uuid":"8cafb1e8-0706-40da-918e-787ed7ed2578","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 20:12:04.420361] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"db71a6aa-65c0-40e2-90a5-6814ead7c6f2","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 17:50:28.139205] [debug] valor el evento recibido por webhook: job.edit -[2025-05-27 20:12:04.420377] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"db71a6aa-65c0-40e2-90a5-6814ead7c6f2","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 17:50:28.139349] [debug] Valor de JSON: {"uuid":"8cafb1e8-0706-40da-918e-787ed7ed2578","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 20:12:04.420387] [debug] Valor de $reprogramming en verifyJobActionToDo: false +[2025-05-30 17:50:28.139581] [debug] Se actualiza un trabajo -[2025-05-27 20:12:04.420394] [debug] Valor de $changeInstaller en verifyJobActionToDo: true +[2025-05-30 17:50:28.139642] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 17:50:32.211833] [notice] Logging level set to:debug +[2025-05-30 17:50:32.212199] [debug] valor del webhook: {"uuid":"16c7e94e-1c52-409c-bf6a-ce9336fa33ce","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 20:12:04.420413] [debug] Valor de $installersData en verifyJobActionToDo: { +[2025-05-30 17:50:32.241657] [debug] valor el evento recibido por webhook: job.edit + +[2025-05-30 17:50:32.241861] [debug] Valor de JSON: {"uuid":"16c7e94e-1c52-409c-bf6a-ce9336fa33ce","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 17:50:32.242043] [debug] Se actualiza un trabajo + +[2025-05-30 17:50:32.242095] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 17:50:32.242136] [debug] El instalador cambió de null a un valor +[2025-05-30 17:50:32.242197] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** + +[2025-05-30 17:50:32.242310] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"16c7e94e-1c52-409c-bf6a-ce9336fa33ce","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 17:50:32.242360] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"16c7e94e-1c52-409c-bf6a-ce9336fa33ce","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 17:50:32.242399] [debug] Valor de $reprogramming en verifyJobActionToDo: false + +[2025-05-30 17:50:32.242436] [debug] Valor de $changeInstaller en verifyJobActionToDo: false + +[2025-05-30 17:50:32.242480] [debug] Valor de $installersData en verifyJobActionToDo: { "instaladores": [ { "id": 1019, @@ -945,19 +473,371 @@ La notificación fue enviada correctamente con estado: enqueued ] } -[2025-05-27 20:12:04.456681] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1019,"unmsId":"75e00242-86c2-436a-b3ac-bd6c31db681e","email":"lionelmuz@gmail.com","firstName":"Mucio","lastName":"Robledo Villegas","username":"muz","avatarColor":"#8bc34a","isActive":true} +[2025-05-30 17:50:32.274905] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1173,"unmsId":"5cb37ee8-e445-4b2a-87d4-6c83eebb8944","email":"hachi9801@gmail.com","firstName":"\u00c1ngel ","lastName":"Arvizu","username":"mamey","avatarColor":"#4caf50","isActive":true} -[2025-05-27 20:12:04.456734] [debug] Número de WhatsApp del Instalador: 4181878106 +[2025-05-30 17:50:32.275070] [debug] Número de WhatsApp del Instalador: 4181878106 -[2025-05-27 20:12:04.498831] [debug] Valor de $installerFullName: Mucio Robledo Villegas +[2025-05-30 17:50:32.309446] [debug] Valor de $installerFullName: Ángel Arvizu -[2025-05-27 20:12:04.571357] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 +[2025-05-30 17:50:32.374001] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 -[2025-05-27 20:12:04.571481] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] +[2025-05-30 17:50:32.374129] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] -[2025-05-27 20:12:04.571602] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] +[2025-05-30 17:50:32.374245] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] -[2025-05-27 20:12:04.575263] [debug] Se encontró un tipo de contacto whatsapp +[2025-05-30 17:50:32.374339] [debug] Se encontró un tipo de contacto whatsapp + +Enviando mensaje de trabajo para el cliente + +DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false + +DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: false + +Enviando notificación normal de visita técnica al cliente, valor de reprogramming y valor de changeInstaller + +La cadena CURL que se envia es: { + "to": "5214181148783", + "from": "whatsapp", + "type": "text", + "content": { + "text": "S/M" + }, + "template_values": ["👤 *Daniel Humberto Soto Villegas*", "*#️⃣54*", "🗓️ *02/06/2025*", "👷🏻‍♂️➡️ *Ángel Arvizu*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], + "template_uuid": "07cfbc6e394044608485b530a27177d0", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"eca914d6f6df492ba011094535af1dc7","status":"enqueued"}} +La notificación fue enviada correctamente con estado: enqueued + +[2025-05-30 17:50:33.462290] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). + +[2025-05-30 17:50:33.462625] [debug] Valor de $title en verifyJobActionToDo: [NOTIFICACION-PENDIENTE]Ir a checar instalación + +[2025-05-30 17:50:33.547179] [debug] Valor de $title después de quitar el prefijo en verifyJobActionToDo: Ir a checar instalación + +[2025-05-30 17:50:33.547319] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: false + +[2025-05-30 17:50:33.547364] [debug] No se cambió el instalador + +[2025-05-30 17:50:33.547420] [debug] Iniciando búsqueda de credenciales en el Vault para: 2 + +[2025-05-30 17:50:33.547533] [debug] La variable dataToSearch es un id de cliente: 2 + +Enviando mensaje de tarea al instalador + +Datos de la notificación de tarea: {"installerName":"\u00c1ngel Arvizu","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*02\/06\/2025*","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} + +DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false + +Enviando notificación normal de tarea al instalador, valor de reprogramming y valor de changeInstaller + +La cadena CURL que se envia es: { + "to": "5214181878106", + "from": "whatsapp", + "type": "text", + "content": { + "text": "S/M" + }, + "template_values": ["👷🏻‍♂️ *Ángel Arvizu* se te ha asignado una tarea con folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, para el 🗓️ *02/06/2025*", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "passowrdchida"], + "template_uuid": "88eeb6420a214fd8870dd28d741021c4", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"a62ec49092af4879a87e67a475172e1b","status":"enqueued"}} +La notificación fue enviada correctamente con estado: enqueued + +[2025-05-30 17:50:34.467987] [notice] Logging level set to:debug +[2025-05-30 17:50:34.468127] [debug] valor del webhook: {"uuid":"585b69c3-3a73-4f05-87e7-81beea274633","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 17:50:34.498147] [debug] valor el evento recibido por webhook: job.edit + +[2025-05-30 17:50:34.498284] [debug] Valor de JSON: {"uuid":"585b69c3-3a73-4f05-87e7-81beea274633","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 17:50:34.498421] [debug] Se actualiza un trabajo + +[2025-05-30 17:50:34.498467] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 17:50:34.498507] [debug] No hubo cambio en el instalador ni en la fecha +[2025-05-30 17:56:59.547414] [notice] Logging level set to:debug +[2025-05-30 17:56:59.547497] [debug] valor del webhook: {"uuid":"9c013d77-2692-41f9-83d0-fa3880583dab","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 17:56:59.575588] [debug] valor el evento recibido por webhook: job.edit + +[2025-05-30 17:56:59.575701] [debug] Valor de JSON: {"uuid":"9c013d77-2692-41f9-83d0-fa3880583dab","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 17:56:59.576179] [debug] Se actualiza un trabajo + +[2025-05-30 17:56:59.576227] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 17:57:05.390305] [notice] Logging level set to:debug +[2025-05-30 17:57:05.390623] [debug] valor del webhook: {"uuid":"6c349bdd-a635-4035-81e1-15d524afad4b","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 17:57:05.416486] [debug] valor el evento recibido por webhook: job.edit + +[2025-05-30 17:57:05.417198] [debug] Valor de JSON: {"uuid":"6c349bdd-a635-4035-81e1-15d524afad4b","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 17:57:05.417366] [debug] Se actualiza un trabajo + +[2025-05-30 17:57:05.417386] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 18:00:58.630542] [notice] Logging level set to:debug +[2025-05-30 18:00:58.630752] [debug] valor del webhook: {"uuid":"a79d0d2f-e54d-448a-afea-171769c00766","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 18:00:58.657902] [debug] valor el evento recibido por webhook: job.edit + +[2025-05-30 18:00:58.658049] [debug] Valor de JSON: {"uuid":"a79d0d2f-e54d-448a-afea-171769c00766","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 18:00:58.658301] [debug] Se actualiza un trabajo + +[2025-05-30 18:00:58.658360] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 18:00:58.658401] [debug] El instalador cambió de null a un valor +[2025-05-30 18:00:58.658449] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** + +[2025-05-30 18:00:58.658533] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"a79d0d2f-e54d-448a-afea-171769c00766","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 18:00:58.658586] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"a79d0d2f-e54d-448a-afea-171769c00766","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 18:00:58.658624] [debug] Valor de $reprogramming en verifyJobActionToDo: false + +[2025-05-30 18:00:58.658658] [debug] Valor de $changeInstaller en verifyJobActionToDo: false + +[2025-05-30 18:00:58.658698] [debug] Valor de $installersData en verifyJobActionToDo: { + "instaladores": [ + { + "id": 1019, + "nombre": "Mucio Robledo", + "whatsapp": "4181878106" + }, + { + "id": 1173, + "nombre": "Angel Arvizu", + "whatsapp": "4181878106" + }, + { + "id": 1172, + "nombre": "Juan Rostro", + "whatsapp": "4181878106" + }, + { + "id": 1015, + "nombre": "Daniel Humberto", + "whatsapp": "4181878106" + } + ] +} + +[2025-05-30 18:00:58.691342] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1173,"unmsId":"5cb37ee8-e445-4b2a-87d4-6c83eebb8944","email":"hachi9801@gmail.com","firstName":"\u00c1ngel ","lastName":"Arvizu","username":"mamey","avatarColor":"#4caf50","isActive":true} + +[2025-05-30 18:00:58.691529] [debug] Número de WhatsApp del Instalador: 4181878106 + +[2025-05-30 18:00:58.722682] [debug] Valor de $installerFullName: Ángel Arvizu + +[2025-05-30 18:00:58.795244] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 + +[2025-05-30 18:00:58.795295] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] + +[2025-05-30 18:00:58.795404] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] + +[2025-05-30 18:00:58.795460] [debug] Se encontró un tipo de contacto whatsapp + +Enviando mensaje de trabajo para el cliente + +DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false + +DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: false + +Enviando notificación normal de visita técnica al cliente, valor de reprogramming y valor de changeInstaller + +La cadena CURL que se envia es: { + "to": "5214181148783", + "from": "whatsapp", + "type": "text", + "content": { + "text": "S/M" + }, + "template_values": ["👤 *Daniel Humberto Soto Villegas*", "*#️⃣54*", "🗓️ *02/06/2025*", "👷🏻‍♂️➡️ *Ángel Arvizu*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], + "template_uuid": "07cfbc6e394044608485b530a27177d0", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"8320575787e24a16865fadf5efe047be","status":"enqueued"}} +La notificación fue enviada correctamente con estado: enqueued + +[2025-05-30 18:00:59.247427] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). + +[2025-05-30 18:00:59.247566] [debug] Valor de $title en verifyJobActionToDo: [NOTIFICACION-PENDIENTE]Ir a checar instalación + +[2025-05-30 18:00:59.332540] [debug] Valor de $title después de quitar el prefijo en verifyJobActionToDo: Ir a checar instalación + +[2025-05-30 18:00:59.332591] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: false + +[2025-05-30 18:00:59.332612] [debug] No se cambió el instalador + +[2025-05-30 18:00:59.332650] [debug] Iniciando búsqueda de credenciales en el Vault para: 2 + +[2025-05-30 18:00:59.332740] [debug] La variable dataToSearch es un id de cliente: 2 + +[2025-05-30 18:00:59.480756] [notice] Logging level set to:debug +[2025-05-30 18:00:59.480845] [debug] valor del webhook: {"uuid":"79d10af6-9d78-4a89-97b1-22693ac86861","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 18:00:59.510859] [debug] valor el evento recibido por webhook: job.edit + +[2025-05-30 18:00:59.510915] [debug] Valor de JSON: {"uuid":"79d10af6-9d78-4a89-97b1-22693ac86861","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 18:00:59.511106] [debug] Se actualiza un trabajo + +[2025-05-30 18:00:59.511131] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 18:00:59.511143] [debug] No hubo cambio en el instalador ni en la fecha +[2025-05-30 18:04:01.365423] [notice] Logging level set to:debug +[2025-05-30 18:04:01.365673] [debug] valor del webhook: {"uuid":"c494c48d-b734-4ca1-ab8c-d0ab1862fe26","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 18:04:01.394845] [debug] valor el evento recibido por webhook: job.edit + +[2025-05-30 18:04:01.395174] [debug] Valor de JSON: {"uuid":"c494c48d-b734-4ca1-ab8c-d0ab1862fe26","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 18:04:01.395488] [debug] Se actualiza un trabajo + +[2025-05-30 18:04:01.395551] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 18:04:01.395595] [debug] Se reprogramó el trabajo pero no hubo cambio de instalador +[2025-05-30 18:04:01.395646] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** + +[2025-05-30 18:04:01.395733] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"c494c48d-b734-4ca1-ab8c-d0ab1862fe26","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 18:04:01.395777] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"c494c48d-b734-4ca1-ab8c-d0ab1862fe26","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 18:04:01.395821] [debug] Valor de $reprogramming en verifyJobActionToDo: true + +[2025-05-30 18:04:01.395858] [debug] Valor de $changeInstaller en verifyJobActionToDo: false + +[2025-05-30 18:04:01.397558] [debug] Valor de $installersData en verifyJobActionToDo: { + "instaladores": [ + { + "id": 1019, + "nombre": "Mucio Robledo", + "whatsapp": "4181878106" + }, + { + "id": 1173, + "nombre": "Angel Arvizu", + "whatsapp": "4181878106" + }, + { + "id": 1172, + "nombre": "Juan Rostro", + "whatsapp": "4181878106" + }, + { + "id": 1015, + "nombre": "Daniel Humberto", + "whatsapp": "4181878106" + } + ] +} + +[2025-05-30 18:04:01.449029] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1173,"unmsId":"5cb37ee8-e445-4b2a-87d4-6c83eebb8944","email":"hachi9801@gmail.com","firstName":"\u00c1ngel ","lastName":"Arvizu","username":"mamey","avatarColor":"#4caf50","isActive":true} + +[2025-05-30 18:04:01.449181] [debug] Número de WhatsApp del Instalador: 4181878106 + +[2025-05-30 18:04:01.482623] [debug] Valor de $installerFullName: Ángel Arvizu + +[2025-05-30 18:04:01.565094] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 + +[2025-05-30 18:04:01.565138] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] + +[2025-05-30 18:04:01.565222] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] + +[2025-05-30 18:04:01.565268] [debug] Se encontró un tipo de contacto whatsapp + +Enviando mensaje de trabajo para el cliente + +DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false + +DEBUG: Valores antes de la estructura IF - Reprogramming: true, ChangeInstaller: false + +Enviando notificación de reprogramación al cliente, valor de reprogramming 1 y valor de changeInstaller + +La cadena CURL que se envia es: { + "to": "5214181148783", + "from": "whatsapp", + "type": "text", + "content": { + "text": "S/M" + }, + "template_values": ["Estimado cliente 👤 *Daniel Humberto Soto Villegas* se ha reprogramado su visita técnica con folio *#️⃣54*", "🗓️➡️ *03/06/2025*", "👷🏻‍♂️➡️ *Ángel Arvizu*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], + "template_uuid": "715eed9d6f2d4d90853f25e296202e00", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"abb996e5f7a64d4ca1d39aa24a481cb5","status":"enqueued"}} +La notificación fue enviada correctamente con estado: enqueued + +[2025-05-30 18:04:02.415726] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). + +[2025-05-30 18:04:02.415901] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación + +[2025-05-30 18:04:02.415937] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación + +[2025-05-30 18:04:02.415975] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: true, ChangeInstaller: false + +[2025-05-30 18:04:02.415997] [debug] No se cambió el instalador + +[2025-05-30 18:04:02.416063] [debug] Iniciando búsqueda de credenciales en el Vault para: 2 + +[2025-05-30 18:04:02.416268] [debug] La variable dataToSearch es un id de cliente: 2 + +[2025-05-30 18:04:21.188220] [notice] Logging level set to:debug +[2025-05-30 18:04:21.188319] [debug] valor del webhook: {"uuid":"cddddb72-4e63-4627-af2c-f7710a0d9e01","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 18:04:21.225929] [debug] valor el evento recibido por webhook: job.edit + +[2025-05-30 18:04:21.225994] [debug] Valor de JSON: {"uuid":"cddddb72-4e63-4627-af2c-f7710a0d9e01","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 18:04:21.226211] [debug] Se actualiza un trabajo + +[2025-05-30 18:04:21.226232] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 18:04:21.226243] [debug] No hay reprogramación de trabajo pero si hay cambio de instalador +[2025-05-30 18:04:21.226263] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** + +[2025-05-30 18:04:21.226315] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"cddddb72-4e63-4627-af2c-f7710a0d9e01","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 18:04:21.226341] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"cddddb72-4e63-4627-af2c-f7710a0d9e01","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 18:04:21.226351] [debug] Valor de $reprogramming en verifyJobActionToDo: false + +[2025-05-30 18:04:21.226358] [debug] Valor de $changeInstaller en verifyJobActionToDo: true + +[2025-05-30 18:04:21.226372] [debug] Valor de $installersData en verifyJobActionToDo: { + "instaladores": [ + { + "id": 1019, + "nombre": "Mucio Robledo", + "whatsapp": "4181878106" + }, + { + "id": 1173, + "nombre": "Angel Arvizu", + "whatsapp": "4181878106" + }, + { + "id": 1172, + "nombre": "Juan Rostro", + "whatsapp": "4181878106" + }, + { + "id": 1015, + "nombre": "Daniel Humberto", + "whatsapp": "4181878106" + } + ] +} + +[2025-05-30 18:04:21.264209] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1172,"unmsId":"2ac31363-6037-40f3-8196-5cc7c71866b0","email":"amazonrostro@gmail.com","firstName":"Juan","lastName":"Rostro","username":"rostro","avatarColor":"#00695c","isActive":true} + +[2025-05-30 18:04:21.264262] [debug] Número de WhatsApp del Instalador: 4181878106 + +[2025-05-30 18:04:21.300266] [debug] Valor de $installerFullName: Juan Rostro + +[2025-05-30 18:04:21.364789] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 + +[2025-05-30 18:04:21.364912] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] + +[2025-05-30 18:04:21.365034] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] + +[2025-05-30 18:04:21.365113] [debug] Se encontró un tipo de contacto whatsapp Enviando mensaje de trabajo para el cliente @@ -974,28 +854,28 @@ La cadena CURL que se envia es: { "content": { "text": "S/M" }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "se ha hecho un cambio de técnico 👷🏻‍♂️🔄 para su visita con el folio *#️⃣54*", "🗓️ *28/05/2025* a las 🕒 *03:00 PM* aproximadamente", "👷🏻‍♂️➡️ *Mucio Robledo Villegas*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], + "template_values": ["👤 *Daniel Humberto Soto Villegas*", "se ha hecho un cambio de técnico 👷🏻‍♂️🔄 para su visita con el folio *#️⃣54*", "🗓️ *03/06/2025*", "👷🏻‍♂️➡️ *Juan Rostro*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], "template_uuid": "d684e6fa2ba24593a86c98be1815831d", "optin_contact": true } -Response del CallBell: {"message":{"uuid":"d4c46cc34e454659ae86e99ec3e76618","status":"enqueued"}} +Response del CallBell: {"message":{"uuid":"0119fda955dc4a2095c390b905f6cae0","status":"enqueued"}} La notificación fue enviada correctamente con estado: enqueued -[2025-05-27 20:12:05.456803] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). +[2025-05-30 18:04:22.137687] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). -[2025-05-27 20:12:05.456967] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación +[2025-05-30 18:04:22.137921] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación -[2025-05-27 20:12:05.457034] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación +[2025-05-30 18:04:22.138046] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación -[2025-05-27 20:12:05.457096] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: true +[2025-05-30 18:04:22.138217] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: true -[2025-05-27 20:12:05.457145] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó +[2025-05-30 18:04:22.138360] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó -[2025-05-27 20:12:05.494877] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106 +[2025-05-30 18:04:22.176135] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106 Enviando mensaje de tarea al instalador -Datos de la notificación de tarea: {"installerName":"\ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u00c1ngel Arvizu","subjectOfChange":"se te ha desasignado\u274c la tarea con el folio ","jobId":"54","clientFullName":"[2] Daniel Humberto Soto Villegas","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico \ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u27a1\ufe0f *Mucio Robledo Villegas*"} +Datos de la notificación de tarea: {"installerName":"\ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u00c1ngel Arvizu","subjectOfChange":"se te ha desasignado\u274c la tarea con el folio ","jobId":"54","clientFullName":"[2] Daniel Humberto Soto Villegas","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico \ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u27a1\ufe0f *Juan Rostro*"} DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true @@ -1008,16 +888,262 @@ La cadena CURL que se envia es: { "content": { "text": "S/M" }, - "template_values": ["👷🏻‍♂️ 👷🏻‍♂️Ángel Arvizu", "se te ha desasignado❌ la tarea con el folio ", "#️⃣54", "👤 *Cliente:* [2] Daniel Humberto Soto Villegas", "En tu lugar asistirá el técnico 👷🏻‍♂️➡️ *Mucio Robledo Villegas*"], + "template_values": ["👷🏻‍♂️ 👷🏻‍♂️Ángel Arvizu", "se te ha desasignado❌ la tarea con el folio ", "#️⃣54", "👤 *Cliente:* [2] Daniel Humberto Soto Villegas", "En tu lugar asistirá el técnico 👷🏻‍♂️➡️ *Juan Rostro*"], "template_uuid": "e1aa2b0fd3884595918f4ac2676acd29", "optin_contact": true } -Response del CallBell: {"message":{"uuid":"7b8e1fc0e3834ef7b287dae99ccfb7d7","status":"enqueued"}} +Response del CallBell: {"message":{"uuid":"342dcca9f38547178675eb7033356e72","status":"enqueued"}} La notificación fue enviada correctamente con estado: enqueued +[2025-05-30 18:04:26.940141] [debug] Iniciando búsqueda de credenciales en el Vault para: 2 + +[2025-05-30 18:04:26.940799] [debug] La variable dataToSearch es un id de cliente: 2 + +[2025-05-30 18:06:20.202104] [notice] Logging level set to:debug +[2025-05-30 18:06:20.202445] [debug] valor del webhook: {"uuid":"4c9332b2-b3a3-4112-bba2-1737c85d8dc0","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 18:06:20.229302] [debug] valor el evento recibido por webhook: job.edit + +[2025-05-30 18:06:20.229443] [debug] Valor de JSON: {"uuid":"4c9332b2-b3a3-4112-bba2-1737c85d8dc0","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 18:06:20.229687] [debug] Se actualiza un trabajo + +[2025-05-30 18:06:20.229746] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 18:06:20.229785] [debug] No hay reprogramación de trabajo pero si hay cambio de instalador +[2025-05-30 18:06:20.229834] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** + +[2025-05-30 18:06:20.229918] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"4c9332b2-b3a3-4112-bba2-1737c85d8dc0","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 18:06:20.229960] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"4c9332b2-b3a3-4112-bba2-1737c85d8dc0","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 18:06:20.229998] [debug] Valor de $reprogramming en verifyJobActionToDo: false + +[2025-05-30 18:06:20.230031] [debug] Valor de $changeInstaller en verifyJobActionToDo: true + +[2025-05-30 18:06:20.230071] [debug] Valor de $installersData en verifyJobActionToDo: { + "instaladores": [ + { + "id": 1019, + "nombre": "Mucio Robledo", + "whatsapp": "4181878106" + }, + { + "id": 1173, + "nombre": "Angel Arvizu", + "whatsapp": "4181878106" + }, + { + "id": 1172, + "nombre": "Juan Rostro", + "whatsapp": "4181878106" + }, + { + "id": 1015, + "nombre": "Daniel Humberto", + "whatsapp": "4181878106" + } + ] +} + +[2025-05-30 18:06:20.267606] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1173,"unmsId":"5cb37ee8-e445-4b2a-87d4-6c83eebb8944","email":"hachi9801@gmail.com","firstName":"\u00c1ngel ","lastName":"Arvizu","username":"mamey","avatarColor":"#4caf50","isActive":true} + +[2025-05-30 18:06:20.267741] [debug] Número de WhatsApp del Instalador: 4181878106 + +[2025-05-30 18:06:20.318914] [debug] Valor de $installerFullName: Ángel Arvizu + +[2025-05-30 18:06:20.385339] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 + +[2025-05-30 18:06:20.385415] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] + +[2025-05-30 18:06:20.385554] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] + +[2025-05-30 18:06:20.385649] [debug] Se encontró un tipo de contacto whatsapp + +Enviando mensaje de trabajo para el cliente + +DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true + +DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: true + +Enviando notificación de cambio de instalador al cliente, valor de reprogramming y valor de changeInstaller 1 + +La cadena CURL que se envia es: { + "to": "5214181148783", + "from": "whatsapp", + "type": "text", + "content": { + "text": "S/M" + }, + "template_values": ["👤 *Daniel Humberto Soto Villegas*", "se ha hecho un cambio de técnico 👷🏻‍♂️🔄 para su visita con el folio *#️⃣54*", "🗓️ *03/06/2025*", "👷🏻‍♂️➡️ *Ángel Arvizu*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], + "template_uuid": "d684e6fa2ba24593a86c98be1815831d", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"24fe113cbc694ae0bf940183b1016856","status":"enqueued"}} +La notificación fue enviada correctamente con estado: enqueued + +[2025-05-30 18:06:21.248502] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). + +[2025-05-30 18:06:21.248635] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación + +[2025-05-30 18:06:21.248667] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación + +[2025-05-30 18:06:21.248703] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: true + +[2025-05-30 18:06:21.248725] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó + +[2025-05-30 18:06:21.286695] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106 + Enviando mensaje de tarea al instalador -Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*28\/05\/2025* a las \ud83d\udd52 *03:00 PM* aproximadamente","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} +Datos de la notificación de tarea: {"installerName":"\ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0fJuan Rostro","subjectOfChange":"se te ha desasignado\u274c la tarea con el folio ","jobId":"54","clientFullName":"[2] Daniel Humberto Soto Villegas","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico \ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u27a1\ufe0f *\u00c1ngel Arvizu*"} + +DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true + +Enviando notificación de cambio de instalador al instalador anterior, valor de reprogramming y valor de changeInstaller 1 + +La cadena CURL que se envia es: { + "to": "5214181878106", + "from": "whatsapp", + "type": "text", + "content": { + "text": "S/M" + }, + "template_values": ["👷🏻‍♂️ 👷🏻‍♂️Juan Rostro", "se te ha desasignado❌ la tarea con el folio ", "#️⃣54", "👤 *Cliente:* [2] Daniel Humberto Soto Villegas", "En tu lugar asistirá el técnico 👷🏻‍♂️➡️ *Ángel Arvizu*"], + "template_uuid": "e1aa2b0fd3884595918f4ac2676acd29", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"cac6bbeb0a8f4f60b678b05bd65bd6dd","status":"enqueued"}} +La notificación fue enviada correctamente con estado: enqueued + +[2025-05-30 18:06:26.080730] [debug] Iniciando búsqueda de credenciales en el Vault para: 2 + +[2025-05-30 18:06:26.081485] [debug] La variable dataToSearch es un id de cliente: 2 + +[2025-05-30 19:01:43.274418] [notice] Logging level set to:debug +[2025-05-30 19:01:43.274508] [debug] valor del webhook: {"uuid":"028feb84-74ed-47b7-90e1-01634b154c9f","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:01:43.301758] [debug] valor el evento recibido por webhook: job.edit + +[2025-05-30 19:01:43.301985] [debug] Valor de JSON: {"uuid":"028feb84-74ed-47b7-90e1-01634b154c9f","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:01:43.302215] [debug] Se actualiza un trabajo + +[2025-05-30 19:01:43.302268] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 19:02:32.776896] [notice] Logging level set to:debug +[2025-05-30 19:02:32.777251] [debug] valor del webhook: {"uuid":"dbaae080-aae6-41cd-9f61-6d0dab03ca3e","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:02:32.802119] [debug] valor el evento recibido por webhook: job.edit + +[2025-05-30 19:02:32.802265] [debug] Valor de JSON: {"uuid":"dbaae080-aae6-41cd-9f61-6d0dab03ca3e","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:02:32.802500] [debug] Se actualiza un trabajo + +[2025-05-30 19:02:32.802557] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 19:02:42.918914] [notice] Logging level set to:debug +[2025-05-30 19:02:42.919239] [debug] valor del webhook: {"uuid":"b663f76e-55e6-400c-9ba2-6105dd98bb34","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:02:42.945800] [debug] valor el evento recibido por webhook: job.edit + +[2025-05-30 19:02:42.945935] [debug] Valor de JSON: {"uuid":"b663f76e-55e6-400c-9ba2-6105dd98bb34","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:02:42.946075] [debug] Se actualiza un trabajo + +[2025-05-30 19:02:42.946121] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 19:02:46.521488] [notice] Logging level set to:debug +[2025-05-30 19:02:46.521859] [debug] valor del webhook: {"uuid":"7c18dfc9-feae-40a6-9e63-776a497bceaf","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:02:46.552679] [debug] valor el evento recibido por webhook: job.edit + +[2025-05-30 19:02:46.552962] [debug] Valor de JSON: {"uuid":"7c18dfc9-feae-40a6-9e63-776a497bceaf","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:02:46.553172] [debug] Se actualiza un trabajo + +[2025-05-30 19:02:46.553251] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 19:02:46.553312] [debug] El instalador cambió de null a un valor +[2025-05-30 19:02:46.553371] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** + +[2025-05-30 19:02:46.553488] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"7c18dfc9-feae-40a6-9e63-776a497bceaf","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:02:46.553570] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"7c18dfc9-feae-40a6-9e63-776a497bceaf","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:02:46.553627] [debug] Valor de $reprogramming en verifyJobActionToDo: false + +[2025-05-30 19:02:46.553680] [debug] Valor de $changeInstaller en verifyJobActionToDo: false + +[2025-05-30 19:02:46.553744] [debug] Valor de $installersData en verifyJobActionToDo: { + "instaladores": [ + { + "id": 1019, + "nombre": "Mucio Robledo", + "whatsapp": "4181878106" + }, + { + "id": 1173, + "nombre": "Angel Arvizu", + "whatsapp": "4181878106" + }, + { + "id": 1172, + "nombre": "Juan Rostro", + "whatsapp": "4181878106" + }, + { + "id": 1015, + "nombre": "Daniel Humberto", + "whatsapp": "4181878106" + } + ] +} + +[2025-05-30 19:02:46.587315] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1019,"unmsId":"75e00242-86c2-436a-b3ac-bd6c31db681e","email":"lionelmuz@gmail.com","firstName":"Mucio","lastName":"Robledo Villegas","username":"muz","avatarColor":"#8bc34a","isActive":true} + +[2025-05-30 19:02:46.587367] [debug] Número de WhatsApp del Instalador: 4181878106 + +[2025-05-30 19:02:46.623774] [debug] Valor de $installerFullName: Mucio Robledo Villegas + +[2025-05-30 19:02:46.694719] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 + +[2025-05-30 19:02:46.694768] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] + +[2025-05-30 19:02:46.694856] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] + +[2025-05-30 19:02:46.694905] [debug] Se encontró un tipo de contacto whatsapp + +Enviando mensaje de trabajo para el cliente + +DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false + +DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: false + +Enviando notificación normal de visita técnica al cliente, valor de reprogramming y valor de changeInstaller + +La cadena CURL que se envia es: { + "to": "5214181148783", + "from": "whatsapp", + "type": "text", + "content": { + "text": "S/M" + }, + "template_values": ["👤 *Daniel Humberto Soto Villegas*", "*#️⃣54*", "🗓️ *03/06/2025*", "👷🏻‍♂️➡️ *Mucio Robledo Villegas*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], + "template_uuid": "07cfbc6e394044608485b530a27177d0", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"a2b7bc4cb152404aa0d73ad2e2b16b15","status":"enqueued"}} +La notificación fue enviada correctamente con estado: enqueued + +[2025-05-30 19:02:47.553713] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). + +[2025-05-30 19:02:47.553827] [debug] Valor de $title en verifyJobActionToDo: [NOTIFICACION-PENDIENTE]Ir a checar instalación + +[2025-05-30 19:02:47.639300] [debug] Valor de $title después de quitar el prefijo en verifyJobActionToDo: Ir a checar instalación + +[2025-05-30 19:02:47.639420] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: false + +[2025-05-30 19:02:47.639462] [debug] No se cambió el instalador + +Enviando mensaje de tarea al instalador + +Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*03\/06\/2025*","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false @@ -1030,35 +1156,46 @@ La cadena CURL que se envia es: { "content": { "text": "S/M" }, - "template_values": ["👷🏻‍♂️ *Mucio Robledo Villegas* se te ha asignado una tarea con folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, para el 🗓️ *28/05/2025* a las 🕒 *03:00 PM* aproximadamente", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], + "template_values": ["👷🏻‍♂️ *Mucio Robledo Villegas* se te ha asignado una tarea con folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, para el 🗓️ *03/06/2025*", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], "template_uuid": "88eeb6420a214fd8870dd28d741021c4", "optin_contact": true } -Response del CallBell: {"message":{"uuid":"658d1815456f477aaab7b7ddff9ab994","status":"enqueued"}} +Response del CallBell: {"message":{"uuid":"387544a0126f4278a8628490bebf1e10","status":"enqueued"}} La notificación fue enviada correctamente con estado: enqueued -[2025-05-27 20:13:04.496330] [notice] Logging level set to:debug -[2025-05-27 20:13:04.496668] [debug] valor del webhook: {"uuid":"a7f03056-2de0-4212-88bc-863c8cd81291","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 19:02:48.521192] [notice] Logging level set to:debug +[2025-05-30 19:02:48.521332] [debug] valor del webhook: {"uuid":"00c1a83a-92aa-4910-85f8-665e010cd5dc","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 20:13:04.523091] [debug] valor el evento recibido por webhook: job.edit +[2025-05-30 19:02:48.550684] [debug] valor el evento recibido por webhook: job.edit -[2025-05-27 20:13:04.523272] [debug] Valor de JSON: {"uuid":"a7f03056-2de0-4212-88bc-863c8cd81291","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 19:02:48.550735] [debug] Valor de JSON: {"uuid":"00c1a83a-92aa-4910-85f8-665e010cd5dc","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 20:13:04.523503] [debug] Se actualiza un trabajo +[2025-05-30 19:02:48.550843] [debug] Se actualiza un trabajo -[2025-05-27 20:13:04.523554] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-27 20:13:04.523592] [debug] Se reprogramó el trabajo pero no hubo cambio de instalador -[2025-05-27 20:13:04.523639] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** +[2025-05-30 19:02:48.550858] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 19:02:48.550870] [debug] No hubo cambio en el instalador ni en la fecha +[2025-05-30 19:03:54.628052] [notice] Logging level set to:debug +[2025-05-30 19:03:54.628403] [debug] valor del webhook: {"uuid":"b6191c4a-dcf1-4553-9109-29431b412561","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 20:13:04.523718] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"a7f03056-2de0-4212-88bc-863c8cd81291","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 19:03:54.656881] [debug] valor el evento recibido por webhook: job.edit -[2025-05-27 20:13:04.523768] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"a7f03056-2de0-4212-88bc-863c8cd81291","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-28T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 19:03:54.657035] [debug] Valor de JSON: {"uuid":"b6191c4a-dcf1-4553-9109-29431b412561","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 20:13:04.523804] [debug] Valor de $reprogramming en verifyJobActionToDo: true +[2025-05-30 19:03:54.657278] [debug] Se actualiza un trabajo -[2025-05-27 20:13:04.523838] [debug] Valor de $changeInstaller en verifyJobActionToDo: false +[2025-05-30 19:03:54.657336] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 19:03:54.657377] [debug] No hay reprogramación de trabajo pero si hay cambio de instalador +[2025-05-30 19:03:54.657423] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** -[2025-05-27 20:13:04.523878] [debug] Valor de $installersData en verifyJobActionToDo: { +[2025-05-30 19:03:54.657506] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"b6191c4a-dcf1-4553-9109-29431b412561","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:03:54.657552] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"b6191c4a-dcf1-4553-9109-29431b412561","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:03:54.657601] [debug] Valor de $reprogramming en verifyJobActionToDo: false + +[2025-05-30 19:03:54.657635] [debug] Valor de $changeInstaller en verifyJobActionToDo: true + +[2025-05-30 19:03:54.657676] [debug] Valor de $installersData en verifyJobActionToDo: { "instaladores": [ { "id": 1019, @@ -1083,27 +1220,27 @@ La notificación fue enviada correctamente con estado: enqueued ] } -[2025-05-27 20:13:04.565129] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1019,"unmsId":"75e00242-86c2-436a-b3ac-bd6c31db681e","email":"lionelmuz@gmail.com","firstName":"Mucio","lastName":"Robledo Villegas","username":"muz","avatarColor":"#8bc34a","isActive":true} +[2025-05-30 19:03:54.699667] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1172,"unmsId":"2ac31363-6037-40f3-8196-5cc7c71866b0","email":"amazonrostro@gmail.com","firstName":"Juan","lastName":"Rostro","username":"rostro","avatarColor":"#00695c","isActive":true} -[2025-05-27 20:13:04.565180] [debug] Número de WhatsApp del Instalador: 4181878106 +[2025-05-30 19:03:54.699727] [debug] Número de WhatsApp del Instalador: 4181878106 -[2025-05-27 20:13:04.595345] [debug] Valor de $installerFullName: Mucio Robledo Villegas +[2025-05-30 19:03:54.731954] [debug] Valor de $installerFullName: Juan Rostro -[2025-05-27 20:13:04.663584] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 +[2025-05-30 19:03:54.795839] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 -[2025-05-27 20:13:04.663630] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] +[2025-05-30 19:03:54.795964] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] -[2025-05-27 20:13:04.663721] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] +[2025-05-30 19:03:54.796086] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] -[2025-05-27 20:13:04.663767] [debug] Se encontró un tipo de contacto whatsapp +[2025-05-30 19:03:54.796179] [debug] Se encontró un tipo de contacto whatsapp Enviando mensaje de trabajo para el cliente -DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false +DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true -DEBUG: Valores antes de la estructura IF - Reprogramming: true, ChangeInstaller: false +DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: true -Enviando notificación de reprogramación al cliente, valor de reprogramming 1 y valor de changeInstaller +Enviando notificación de cambio de instalador al cliente, valor de reprogramming y valor de changeInstaller 1 La cadena CURL que se envia es: { "to": "5214181148783", @@ -1112,30 +1249,32 @@ La cadena CURL que se envia es: { "content": { "text": "S/M" }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "*#️⃣54*", "🗓️ *29/05/2025* a las 🕒 *03:00 PM* aproximadamente", "👷🏻‍♂️➡️ *Mucio Robledo Villegas*"], - "template_uuid": "70579353773f4de1836d4f9b6bf6074d", + "template_values": ["👤 *Daniel Humberto Soto Villegas*", "se ha hecho un cambio de técnico 👷🏻‍♂️🔄 para su visita con el folio *#️⃣54*", "🗓️ *03/06/2025*", "👷🏻‍♂️➡️ *Juan Rostro*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], + "template_uuid": "d684e6fa2ba24593a86c98be1815831d", "optin_contact": true } -Response del CallBell: {"message":{"uuid":"95fe2d55728e4f708bf90f017d9718b3","status":"enqueued"}} +Response del CallBell: {"message":{"uuid":"7fe9c76bef264a0d9d65590d31d5df1d","status":"enqueued"}} La notificación fue enviada correctamente con estado: enqueued -[2025-05-27 20:13:05.414139] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). +[2025-05-30 19:03:55.557535] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). -[2025-05-27 20:13:05.414346] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación +[2025-05-30 19:03:55.557771] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación -[2025-05-27 20:13:05.414452] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación +[2025-05-30 19:03:55.557894] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación -[2025-05-27 20:13:05.414552] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: true, ChangeInstaller: false +[2025-05-30 19:03:55.558017] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: true -[2025-05-27 20:13:05.414664] [debug] No se cambió el instalador +[2025-05-30 19:03:55.558123] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó + +[2025-05-30 19:03:55.600856] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106 Enviando mensaje de tarea al instalador -Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*29\/05\/2025* a las \ud83d\udd52 *03:00 PM* aproximadamente","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} +Datos de la notificación de tarea: {"installerName":"\ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0fMucio Robledo Villegas","subjectOfChange":"se te ha desasignado\u274c la tarea con el folio ","jobId":"54","clientFullName":"[2] Daniel Humberto Soto Villegas","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico \ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u27a1\ufe0f *Juan Rostro*"} -DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false +DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true -Enviando notificación de reprogramación al instalador, valor de reprogramming 1 y valor de changeInstaller +Enviando notificación de cambio de instalador al instalador anterior, valor de reprogramming y valor de changeInstaller 1 La cadena CURL que se envia es: { "to": "5214181878106", @@ -1144,112 +1283,20 @@ La cadena CURL que se envia es: { "content": { "text": "S/M" }, - "template_values": ["👷🏻‍♂️ Mucio Robledo Villegas", "#️⃣54", "👤 *[2] Daniel Humberto Soto Villegas*", "☎️ 5214181878106, 5214181148783", "🗓️ *29/05/2025* a las 🕒 *03:00 PM* aproximadamente", "🛠️ Andan mal esos equipos", "📌 https://www.google.com/maps?q=21.1564209,-100.9384185", "🔐 gYAIEK:Be}SK*01z5+/V"], - "template_uuid": "7eb4d8e27cf740779dd6777fad7ffaf4", + "template_values": ["👷🏻‍♂️ 👷🏻‍♂️Mucio Robledo Villegas", "se te ha desasignado❌ la tarea con el folio ", "#️⃣54", "👤 *Cliente:* [2] Daniel Humberto Soto Villegas", "En tu lugar asistirá el técnico 👷🏻‍♂️➡️ *Juan Rostro*"], + "template_uuid": "e1aa2b0fd3884595918f4ac2676acd29", "optin_contact": true } -Response del CallBell: {"message":{"uuid":"9fd467a777cf458aa24db9bcd4741cc7","status":"enqueued"}} +Response del CallBell: {"message":{"uuid":"3718115fe08b497ebdf0cd14e98d2ce1","status":"enqueued"}} La notificación fue enviada correctamente con estado: enqueued -[2025-05-27 20:17:47.489377] [notice] Logging level set to:debug -[2025-05-27 20:17:47.489691] [debug] valor del webhook: {"uuid":"4303a3cb-ac3e-44ad-b669-a6f2ce97a58b","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-27 20:17:47.514425] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-27 20:17:47.514569] [debug] Valor de JSON: {"uuid":"4303a3cb-ac3e-44ad-b669-a6f2ce97a58b","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-27 20:17:47.514817] [debug] Se actualiza un trabajo - -[2025-05-27 20:17:47.514877] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-27 20:17:47.514919] [debug] Se reprogramó el trabajo pero no hubo cambio de instalador -[2025-05-27 20:17:47.514971] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-05-27 20:17:47.515074] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"4303a3cb-ac3e-44ad-b669-a6f2ce97a58b","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-27 20:17:47.515130] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"4303a3cb-ac3e-44ad-b669-a6f2ce97a58b","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T15:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-27 20:17:47.515170] [debug] Valor de $reprogramming en verifyJobActionToDo: true - -[2025-05-27 20:17:47.515204] [debug] Valor de $changeInstaller en verifyJobActionToDo: false - -[2025-05-27 20:17:47.515249] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Angel Arvizu", - "whatsapp": "4181878106" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - } - ] -} - -[2025-05-27 20:17:47.547489] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1019,"unmsId":"75e00242-86c2-436a-b3ac-bd6c31db681e","email":"lionelmuz@gmail.com","firstName":"Mucio","lastName":"Robledo Villegas","username":"muz","avatarColor":"#8bc34a","isActive":true} - -[2025-05-27 20:17:47.547621] [debug] Número de WhatsApp del Instalador: 4181878106 - -[2025-05-27 20:17:47.578680] [debug] Valor de $installerFullName: Mucio Robledo Villegas - -[2025-05-27 20:17:47.666748] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 - -[2025-05-27 20:17:47.666884] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-27 20:17:47.667027] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-27 20:17:47.671047] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false - -DEBUG: Valores antes de la estructura IF - Reprogramming: true, ChangeInstaller: false - -Enviando notificación de reprogramación al cliente, valor de reprogramming 1 y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "*#️⃣54*", "🗓️ *29/05/2025* a las 🕔 *05:00 PM* aproximadamente", "👷🏻‍♂️➡️ *Mucio Robledo Villegas*"], - "template_uuid": "70579353773f4de1836d4f9b6bf6074d", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"a79b407029a64b7bb248b0089f49e356","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-27 20:17:48.538891] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-05-27 20:17:48.539180] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación - -[2025-05-27 20:17:48.539361] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación - -[2025-05-27 20:17:48.539527] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: true, ChangeInstaller: false - -[2025-05-27 20:17:48.539774] [debug] No se cambió el instalador - Enviando mensaje de tarea al instalador -Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*29\/05\/2025* a las \ud83d\udd54 *05:00 PM* aproximadamente","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} +Datos de la notificación de tarea: {"installerName":"Juan Rostro","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*03\/06\/2025*","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} -DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false +DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false -Enviando notificación de reprogramación al instalador, valor de reprogramming 1 y valor de changeInstaller +Enviando notificación normal de tarea al instalador, valor de reprogramming y valor de changeInstaller La cadena CURL que se envia es: { "to": "5214181878106", @@ -1258,149 +1305,35 @@ La cadena CURL que se envia es: { "content": { "text": "S/M" }, - "template_values": ["👷🏻‍♂️ Mucio Robledo Villegas", "#️⃣54", "👤 *[2] Daniel Humberto Soto Villegas*", "☎️ 5214181878106, 5214181148783", "🗓️ *29/05/2025* a las 🕔 *05:00 PM* aproximadamente", "🛠️ Andan mal esos equipos", "📌 https://www.google.com/maps?q=21.1564209,-100.9384185", "🔐 gYAIEK:Be}SK*01z5+/V"], - "template_uuid": "42152c07c67b468ba68e581c0283e22e", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"fa0ba526b37c4fc9be2bdaf441947ccd","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-27 20:45:08.555311] [notice] Logging level set to:debug -[2025-05-27 20:45:08.555406] [debug] valor del webhook: {"uuid":"ff355047-cebb-444b-9c3d-f875d1c4eb80","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-30T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-27 20:45:08.591732] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-27 20:45:08.592159] [debug] Valor de JSON: {"uuid":"ff355047-cebb-444b-9c3d-f875d1c4eb80","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-30T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-27 20:45:08.592405] [debug] Se actualiza un trabajo - -[2025-05-27 20:45:08.592467] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-27 20:45:08.592521] [debug] Se reprogramó el trabajo pero no hubo cambio de instalador -[2025-05-27 20:45:08.592582] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-05-27 20:45:08.592700] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"ff355047-cebb-444b-9c3d-f875d1c4eb80","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-30T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-27 20:45:08.592749] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"ff355047-cebb-444b-9c3d-f875d1c4eb80","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-30T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-29T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-27 20:45:08.592788] [debug] Valor de $reprogramming en verifyJobActionToDo: true - -[2025-05-27 20:45:08.592827] [debug] Valor de $changeInstaller en verifyJobActionToDo: false - -[2025-05-27 20:45:08.592875] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Angel Arvizu", - "whatsapp": "4181878106" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - } - ] -} - -[2025-05-27 20:45:08.629574] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1019,"unmsId":"75e00242-86c2-436a-b3ac-bd6c31db681e","email":"lionelmuz@gmail.com","firstName":"Mucio","lastName":"Robledo Villegas","username":"muz","avatarColor":"#8bc34a","isActive":true} - -[2025-05-27 20:45:08.629709] [debug] Número de WhatsApp del Instalador: 4181878106 - -[2025-05-27 20:45:08.668134] [debug] Valor de $installerFullName: Mucio Robledo Villegas - -[2025-05-27 20:45:08.750946] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 - -[2025-05-27 20:45:08.751235] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-27 20:45:08.751377] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-27 20:45:08.759375] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false - -DEBUG: Valores antes de la estructura IF - Reprogramming: true, ChangeInstaller: false - -Enviando notificación de reprogramación al cliente, valor de reprogramming 1 y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "*#️⃣54*", "🗓️ *30/05/2025* a las 🕔 *05:00 PM* aproximadamente", "👷🏻‍♂️➡️ *Mucio Robledo Villegas*"], - "template_uuid": "70579353773f4de1836d4f9b6bf6074d", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"acbd50c95e304a3393f8e71125442575","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-27 20:45:09.657078] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-05-27 20:45:09.657188] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación - -[2025-05-27 20:45:09.657217] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación - -[2025-05-27 20:45:09.657242] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: true, ChangeInstaller: false - -[2025-05-27 20:45:09.657258] [debug] No se cambió el instalador - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*30\/05\/2025* a las \ud83d\udd54 *05:00 PM* aproximadamente","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} - -DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false - -Enviando notificación de reprogramación al instalador, valor de reprogramming 1 y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ *Mucio Robledo Villegas* se reprogramó una tarea con el folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, la nueva fecha será el 🗓️➡️ *30/05/2025* a las 🕔 *05:00 PM* aproximadamente", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], + "template_values": ["👷🏻‍♂️ *Juan Rostro* se te ha asignado una tarea con folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, para el 🗓️ *03/06/2025*", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], "template_uuid": "88eeb6420a214fd8870dd28d741021c4", "optin_contact": true } -Response del CallBell: {"message":{"uuid":"630a6169c4664d09890bcdffb0f6c13c","status":"enqueued"}} +Response del CallBell: {"message":{"uuid":"beee3ef5a9734c0da7f4ea1e9de61b5b","status":"enqueued"}} La notificación fue enviada correctamente con estado: enqueued -[2025-05-27 21:25:17.930980] [notice] Logging level set to:debug -[2025-05-27 21:25:17.931329] [debug] valor del webhook: {"uuid":"efc7868d-b859-43fb-95a2-a2387ed2fb57","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-30T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 19:09:07.838247] [notice] Logging level set to:debug +[2025-05-30 19:09:07.838332] [debug] valor del webhook: {"uuid":"359d6911-ce8e-495b-8440-970c17374a09","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 21:25:17.955180] [debug] valor el evento recibido por webhook: job.edit +[2025-05-30 19:09:07.864420] [debug] valor el evento recibido por webhook: job.edit -[2025-05-27 21:25:17.955238] [debug] Valor de JSON: {"uuid":"efc7868d-b859-43fb-95a2-a2387ed2fb57","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-30T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 19:09:07.864479] [debug] Valor de JSON: {"uuid":"359d6911-ce8e-495b-8440-970c17374a09","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 21:25:17.955454] [debug] Se actualiza un trabajo +[2025-05-30 19:09:07.864701] [debug] Se actualiza un trabajo -[2025-05-27 21:25:17.955487] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-27 21:25:17.955498] [debug] Se reprogramó el trabajo pero no hubo cambio de instalador -[2025-05-27 21:25:17.955527] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** +[2025-05-30 19:09:07.864723] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 19:09:07.864734] [debug] No hay reprogramación de trabajo pero si hay cambio de instalador +[2025-05-30 19:09:07.864751] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** -[2025-05-27 21:25:17.955575] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"efc7868d-b859-43fb-95a2-a2387ed2fb57","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-30T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 19:09:07.864801] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"359d6911-ce8e-495b-8440-970c17374a09","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 21:25:17.955591] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"efc7868d-b859-43fb-95a2-a2387ed2fb57","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-30T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 19:09:07.864819] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"359d6911-ce8e-495b-8440-970c17374a09","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 21:25:17.955601] [debug] Valor de $reprogramming en verifyJobActionToDo: true +[2025-05-30 19:09:07.864829] [debug] Valor de $reprogramming en verifyJobActionToDo: false -[2025-05-27 21:25:17.955609] [debug] Valor de $changeInstaller en verifyJobActionToDo: false +[2025-05-30 19:09:07.864835] [debug] Valor de $changeInstaller en verifyJobActionToDo: true -[2025-05-27 21:25:17.955624] [debug] Valor de $installersData en verifyJobActionToDo: { +[2025-05-30 19:09:07.864849] [debug] Valor de $installersData en verifyJobActionToDo: { "instaladores": [ { "id": 1019, @@ -1425,27 +1358,27 @@ La notificación fue enviada correctamente con estado: enqueued ] } -[2025-05-27 21:25:17.984384] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1019,"unmsId":"75e00242-86c2-436a-b3ac-bd6c31db681e","email":"lionelmuz@gmail.com","firstName":"Mucio","lastName":"Robledo Villegas","username":"muz","avatarColor":"#8bc34a","isActive":true} +[2025-05-30 19:09:07.895946] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1173,"unmsId":"5cb37ee8-e445-4b2a-87d4-6c83eebb8944","email":"hachi9801@gmail.com","firstName":"\u00c1ngel ","lastName":"Arvizu","username":"mamey","avatarColor":"#4caf50","isActive":true} -[2025-05-27 21:25:17.984448] [debug] Número de WhatsApp del Instalador: 4181878106 +[2025-05-30 19:09:07.896084] [debug] Número de WhatsApp del Instalador: 4181878106 -[2025-05-27 21:25:18.014928] [debug] Valor de $installerFullName: Mucio Robledo Villegas +[2025-05-30 19:09:07.929634] [debug] Valor de $installerFullName: Ángel Arvizu -[2025-05-27 21:25:18.090785] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 +[2025-05-30 19:09:07.990922] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 -[2025-05-27 21:25:18.090905] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] +[2025-05-30 19:09:07.990967] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] -[2025-05-27 21:25:18.091043] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] +[2025-05-30 19:09:07.991091] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] -[2025-05-27 21:25:18.095246] [debug] Se encontró un tipo de contacto whatsapp +[2025-05-30 19:09:07.994815] [debug] Se encontró un tipo de contacto whatsapp Enviando mensaje de trabajo para el cliente -DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false +DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true -DEBUG: Valores antes de la estructura IF - Reprogramming: true, ChangeInstaller: false +DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: true -Enviando notificación de reprogramación al cliente, valor de reprogramming 1 y valor de changeInstaller +Enviando notificación de cambio de instalador al cliente, valor de reprogramming y valor de changeInstaller 1 La cadena CURL que se envia es: { "to": "5214181148783", @@ -1454,30 +1387,32 @@ La cadena CURL que se envia es: { "content": { "text": "S/M" }, - "template_values": ["Estimado cliente 👤 *Daniel Humberto Soto Villegas* se ha reprogramado su visita técnica con folio *#️⃣54*", "🗓️➡️ *31/05/2025* a las 🕔 *05:00 PM* aproximadamente", "👷🏻‍♂️➡️ *Mucio Robledo Villegas*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], - "template_uuid": "70579353773f4de1836d4f9b6bf6074d", + "template_values": ["👤 *Daniel Humberto Soto Villegas*", "se ha hecho un cambio de técnico 👷🏻‍♂️🔄 para su visita con el folio *#️⃣54*", "🗓️ *03/06/2025*", "👷🏻‍♂️➡️ *Ángel Arvizu*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], + "template_uuid": "d684e6fa2ba24593a86c98be1815831d", "optin_contact": true } -Response del CallBell: {"message":{"uuid":"f812d72b9bad4b66acc27432b15c8f7f","status":"enqueued"}} +Response del CallBell: {"message":{"uuid":"0a65479c61164ad6a1bd1adda1a39421","status":"enqueued"}} La notificación fue enviada correctamente con estado: enqueued -[2025-05-27 21:25:18.886759] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). +[2025-05-30 19:09:08.386008] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). -[2025-05-27 21:25:18.887129] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación +[2025-05-30 19:09:08.386127] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación -[2025-05-27 21:25:18.887351] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación +[2025-05-30 19:09:08.386161] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación -[2025-05-27 21:25:18.887553] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: true, ChangeInstaller: false +[2025-05-30 19:09:08.386198] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: true -[2025-05-27 21:25:18.887746] [debug] No se cambió el instalador +[2025-05-30 19:09:08.386220] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó + +[2025-05-30 19:09:08.425004] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106 Enviando mensaje de tarea al instalador -Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*31\/05\/2025* a las \ud83d\udd54 *05:00 PM* aproximadamente","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} +Datos de la notificación de tarea: {"installerName":"\ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0fJuan Rostro","subjectOfChange":"se te ha desasignado\u274c la tarea con el folio ","jobId":"54","clientFullName":"[2] Daniel Humberto Soto Villegas","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico \ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u27a1\ufe0f *\u00c1ngel Arvizu*"} -DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false +DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true -Enviando notificación de reprogramación al instalador, valor de reprogramming 1 y valor de changeInstaller +Enviando notificación de cambio de instalador al instalador anterior (desasignación), valor de reprogramming y valor de changeInstaller 1 La cadena CURL que se envia es: { "to": "5214181878106", @@ -1486,35 +1421,77 @@ La cadena CURL que se envia es: { "content": { "text": "S/M" }, - "template_values": ["👷🏻‍♂️ *Mucio Robledo Villegas* se reprogramó una tarea con el folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, la nueva fecha será el 🗓️➡️ *31/05/2025* a las 🕔 *05:00 PM* aproximadamente", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], + "template_values": ["👷🏻‍♂️ 👷🏻‍♂️Juan Rostro", "se te ha desasignado❌ la tarea con el folio ", "#️⃣54", "*👤[2] Daniel Humberto Soto Villegas* ", "En tu lugar asistirá el técnico 👷🏻‍♂️➡️ *Ángel Arvizu*"], + "template_uuid": "e1aa2b0fd3884595918f4ac2676acd29", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"5042ace82c9e4c7dbdf53c733f6c445a","status":"enqueued"}} +La notificación fue enviada correctamente con estado: enqueued + +Enviando mensaje de tarea al instalador + +Datos de la notificación de tarea: {"installerName":"\u00c1ngel Arvizu","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*03\/06\/2025*","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} + +DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false + +Enviando notificación normal de tarea al instalador, valor de reprogramming y valor de changeInstaller + +La cadena CURL que se envia es: { + "to": "5214181878106", + "from": "whatsapp", + "type": "text", + "content": { + "text": "S/M" + }, + "template_values": ["👷🏻‍♂️ *Ángel Arvizu* se te ha asignado una tarea con folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, para el 🗓️ *03/06/2025*", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], "template_uuid": "88eeb6420a214fd8870dd28d741021c4", "optin_contact": true } -Response del CallBell: {"message":{"uuid":"c0aae270712b4284b1a1d400b138760e","status":"enqueued"}} +Response del CallBell: {"message":{"uuid":"1f87b66db7ef46dd85b491b7412a8c5a","status":"enqueued"}} La notificación fue enviada correctamente con estado: enqueued -[2025-05-27 21:26:21.929450] [notice] Logging level set to:debug -[2025-05-27 21:26:21.929552] [debug] valor del webhook: {"uuid":"df89b619-ae0d-4b4e-b105-37fc6b6dbfb1","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 19:19:21.509720] [notice] Logging level set to:debug +[2025-05-30 19:19:21.509912] [debug] valor del webhook: {"uuid":"5213548e-6316-4d35-a31f-0027268c51bb","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 21:26:21.962728] [debug] valor el evento recibido por webhook: job.edit +[2025-05-30 19:19:21.539808] [debug] valor el evento recibido por webhook: job.edit -[2025-05-27 21:26:21.963088] [debug] Valor de JSON: {"uuid":"df89b619-ae0d-4b4e-b105-37fc6b6dbfb1","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 19:19:21.539947] [debug] Valor de JSON: {"uuid":"5213548e-6316-4d35-a31f-0027268c51bb","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 21:26:21.963694] [debug] Se actualiza un trabajo +[2025-05-30 19:19:21.540195] [debug] Se actualiza un trabajo -[2025-05-27 21:26:21.965094] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-27 21:26:21.965198] [debug] Se reprogramó el trabajo pero no hubo cambio de instalador -[2025-05-27 21:26:21.965260] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** +[2025-05-30 19:19:21.540256] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 19:19:27.456516] [notice] Logging level set to:debug +[2025-05-30 19:19:27.456677] [debug] valor del webhook: {"uuid":"8a73b819-b937-4ab6-921a-6125e6967f3c","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 21:26:21.965368] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"df89b619-ae0d-4b4e-b105-37fc6b6dbfb1","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 19:19:27.482791] [debug] valor el evento recibido por webhook: job.edit -[2025-05-27 21:26:21.965416] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"df89b619-ae0d-4b4e-b105-37fc6b6dbfb1","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-05-31T17:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-05-30 19:19:27.482928] [debug] Valor de JSON: {"uuid":"8a73b819-b937-4ab6-921a-6125e6967f3c","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 21:26:21.965456] [debug] Valor de $reprogramming en verifyJobActionToDo: true +[2025-05-30 19:19:27.483103] [debug] Se actualiza un trabajo -[2025-05-27 21:26:21.965516] [debug] Valor de $changeInstaller en verifyJobActionToDo: false +[2025-05-30 19:19:27.483165] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 19:19:32.110601] [notice] Logging level set to:debug +[2025-05-30 19:19:32.110872] [debug] valor del webhook: {"uuid":"43ade6be-b053-4631-a961-aee6c98eba91","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-05-27 21:26:21.965564] [debug] Valor de $installersData en verifyJobActionToDo: { +[2025-05-30 19:19:32.139094] [debug] valor el evento recibido por webhook: job.edit + +[2025-05-30 19:19:32.139225] [debug] Valor de JSON: {"uuid":"43ade6be-b053-4631-a961-aee6c98eba91","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:19:32.139359] [debug] Se actualiza un trabajo + +[2025-05-30 19:19:32.139401] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 19:19:32.139439] [debug] El instalador cambió de null a un valor +[2025-05-30 19:19:32.139475] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** + +[2025-05-30 19:19:32.139544] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"43ade6be-b053-4631-a961-aee6c98eba91","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:19:32.139585] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"43ade6be-b053-4631-a961-aee6c98eba91","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:19:32.139631] [debug] Valor de $reprogramming en verifyJobActionToDo: false + +[2025-05-30 19:19:32.139663] [debug] Valor de $changeInstaller en verifyJobActionToDo: false + +[2025-05-30 19:19:32.139702] [debug] Valor de $installersData en verifyJobActionToDo: { "instaladores": [ { "id": 1019, @@ -1539,19 +1516,282 @@ La notificación fue enviada correctamente con estado: enqueued ] } -[2025-05-27 21:26:22.003457] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1019,"unmsId":"75e00242-86c2-436a-b3ac-bd6c31db681e","email":"lionelmuz@gmail.com","firstName":"Mucio","lastName":"Robledo Villegas","username":"muz","avatarColor":"#8bc34a","isActive":true} +[2025-05-30 19:19:32.172931] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1173,"unmsId":"5cb37ee8-e445-4b2a-87d4-6c83eebb8944","email":"hachi9801@gmail.com","firstName":"\u00c1ngel ","lastName":"Arvizu","username":"mamey","avatarColor":"#4caf50","isActive":true} -[2025-05-27 21:26:22.003531] [debug] Número de WhatsApp del Instalador: 4181878106 +[2025-05-30 19:19:32.173095] [debug] Número de WhatsApp del Instalador: 4181878106 -[2025-05-27 21:26:22.047250] [debug] Valor de $installerFullName: Mucio Robledo Villegas +[2025-05-30 19:19:32.206557] [debug] Valor de $installerFullName: Ángel Arvizu -[2025-05-27 21:26:22.113622] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 +[2025-05-30 19:19:32.272847] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 -[2025-05-27 21:26:22.113756] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] +[2025-05-30 19:19:32.272974] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] -[2025-05-27 21:26:22.113903] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] +[2025-05-30 19:19:32.273086] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] -[2025-05-27 21:26:22.117643] [debug] Se encontró un tipo de contacto whatsapp +[2025-05-30 19:19:32.276515] [debug] Se encontró un tipo de contacto whatsapp + +Enviando mensaje de trabajo para el cliente + +DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false + +DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: false + +Enviando notificación normal de visita técnica al cliente, valor de reprogramming y valor de changeInstaller + +La cadena CURL que se envia es: { + "to": "5214181148783", + "from": "whatsapp", + "type": "text", + "content": { + "text": "S/M" + }, + "template_values": ["👤 *Daniel Humberto Soto Villegas*", "*#️⃣54*", "🗓️ *03/06/2025*", "👷🏻‍♂️➡️ *Ángel Arvizu*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], + "template_uuid": "07cfbc6e394044608485b530a27177d0", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"fcf501d162af4a73ab5c20574a78829f","status":"enqueued"}} +La notificación fue enviada correctamente con estado: enqueued + +[2025-05-30 19:19:33.141551] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). + +[2025-05-30 19:19:33.141808] [debug] Valor de $title en verifyJobActionToDo: [NOTIFICACION-PENDIENTE]Ir a checar instalación + +[2025-05-30 19:19:33.221045] [debug] Valor de $title después de quitar el prefijo en verifyJobActionToDo: Ir a checar instalación + +[2025-05-30 19:19:33.221187] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: false + +[2025-05-30 19:19:33.221230] [debug] No se cambió el instalador + +Enviando mensaje de tarea al instalador + +Datos de la notificación de tarea: {"installerName":"\u00c1ngel Arvizu","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*03\/06\/2025*","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} + +DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false + +Enviando notificación normal de tarea al instalador, valor de reprogramming y valor de changeInstaller + +La cadena CURL que se envia es: { + "to": "5214181878106", + "from": "whatsapp", + "type": "text", + "content": { + "text": "S/M" + }, + "template_values": ["👷🏻‍♂️ *Ángel Arvizu* se te ha asignado una tarea con folio #️⃣ *54*, para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, para el 🗓️ *03/06/2025*", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], + "template_uuid": "88eeb6420a214fd8870dd28d741021c4", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"510c58c2623a4121967c9c50d88c3eba","status":"enqueued"}} +La notificación fue enviada correctamente con estado: enqueued + +[2025-05-30 19:19:34.232140] [notice] Logging level set to:debug +[2025-05-30 19:19:34.232211] [debug] valor del webhook: {"uuid":"cbc9c919-dea7-45e5-a19a-75d36fad92f0","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:19:34.269200] [debug] valor el evento recibido por webhook: job.edit + +[2025-05-30 19:19:34.269342] [debug] Valor de JSON: {"uuid":"cbc9c919-dea7-45e5-a19a-75d36fad92f0","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:19:34.269473] [debug] Se actualiza un trabajo + +[2025-05-30 19:19:34.269519] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 19:19:34.269560] [debug] No hubo cambio en el instalador ni en la fecha +[2025-05-30 19:29:56.595314] [notice] Logging level set to:debug +[2025-05-30 19:29:56.595411] [debug] valor del webhook: {"uuid":"6ddf6d7b-3938-44ee-a7f5-b2bd07c9a749","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:29:56.623722] [debug] valor el evento recibido por webhook: job.edit + +[2025-05-30 19:29:56.623790] [debug] Valor de JSON: {"uuid":"6ddf6d7b-3938-44ee-a7f5-b2bd07c9a749","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:29:56.623992] [debug] Se actualiza un trabajo + +[2025-05-30 19:29:56.624016] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 19:29:56.624027] [debug] No hay reprogramación de trabajo pero si hay cambio de instalador +[2025-05-30 19:29:56.624048] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** + +[2025-05-30 19:29:56.624103] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"6ddf6d7b-3938-44ee-a7f5-b2bd07c9a749","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:29:56.624119] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"6ddf6d7b-3938-44ee-a7f5-b2bd07c9a749","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:29:56.624130] [debug] Valor de $reprogramming en verifyJobActionToDo: false + +[2025-05-30 19:29:56.624136] [debug] Valor de $changeInstaller en verifyJobActionToDo: true + +[2025-05-30 19:29:56.624150] [debug] Valor de $installersData en verifyJobActionToDo: { + "instaladores": [ + { + "id": 1019, + "nombre": "Mucio Robledo", + "whatsapp": "4181878106" + }, + { + "id": 1173, + "nombre": "Angel Arvizu", + "whatsapp": "4181878106" + }, + { + "id": 1172, + "nombre": "Juan Rostro", + "whatsapp": "4181878106" + }, + { + "id": 1015, + "nombre": "Daniel Humberto", + "whatsapp": "4181878106" + } + ] +} + +[2025-05-30 19:29:56.655783] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1172,"unmsId":"2ac31363-6037-40f3-8196-5cc7c71866b0","email":"amazonrostro@gmail.com","firstName":"Juan","lastName":"Rostro","username":"rostro","avatarColor":"#00695c","isActive":true} + +[2025-05-30 19:29:56.655836] [debug] Número de WhatsApp del Instalador: 4181878106 + +[2025-05-30 19:29:56.691982] [debug] Valor de $installerFullName: Juan Rostro + +[2025-05-30 19:29:56.775173] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 + +[2025-05-30 19:29:56.775218] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] + +[2025-05-30 19:29:56.775304] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] + +[2025-05-30 19:29:56.775338] [debug] Se encontró un tipo de contacto whatsapp + +Enviando mensaje de trabajo para el cliente + +DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true + +DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: true + +Enviando notificación de cambio de instalador al cliente, valor de reprogramming y valor de changeInstaller 1 + +La cadena CURL que se envia es: { + "to": "5214181148783", + "from": "whatsapp", + "type": "text", + "content": { + "text": "S/M" + }, + "template_values": ["👤 *Daniel Humberto Soto Villegas*", "se ha hecho un cambio de técnico 👷🏻‍♂️🔄 para su visita con el folio *#️⃣54*", "🗓️ *03/06/2025*", "👷🏻‍♂️➡️ *Juan Rostro*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], + "template_uuid": "d684e6fa2ba24593a86c98be1815831d", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"3a6dfaaa7e9b43559f1e5333441befb0","status":"enqueued"}} +La notificación fue enviada correctamente con estado: enqueued + +[2025-05-30 19:29:57.664676] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). + +[2025-05-30 19:29:57.664787] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación + +[2025-05-30 19:29:57.664819] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación + +[2025-05-30 19:29:57.664854] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: true + +[2025-05-30 19:29:57.664875] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó + +[2025-05-30 19:29:57.702188] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106 + +Enviando mensaje de tarea al instalador + +Datos de la notificación de tarea: {"installerName":"\ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u00c1ngel Arvizu","subjectOfChange":"se te ha desasignado\u274c la tarea con el folio ","jobId":"54","clientFullName":"[2] Daniel Humberto Soto Villegas","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico \ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u27a1\ufe0f *Juan Rostro*"} + +DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true + +Enviando notificación de cambio de instalador al instalador anterior (desasignación), valor de reprogramming y valor de changeInstaller 1 + +La cadena CURL que se envia es: { + "to": "5214181878106", + "from": "whatsapp", + "type": "text", + "content": { + "text": "S/M" + }, + "template_values": ["👷🏻‍♂️ 👷🏻‍♂️Ángel Arvizu", "se te ha desasignado❌ la tarea con el folio ", "#️⃣54", "*👤[2] Daniel Humberto Soto Villegas* ", "En tu lugar asistirá el técnico 👷🏻‍♂️➡️ *Juan Rostro*"], + "template_uuid": "e1aa2b0fd3884595918f4ac2676acd29", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"727d72dbd6604dd797b96cf949de1ffa","status":"enqueued"}} +La notificación fue enviada correctamente con estado: enqueued + +Enviando mensaje de tarea al instalador + +Datos de la notificación de tarea: {"installerName":"Juan Rostro","clientFullName":"Daniel Humberto Soto Villegas [2]","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*03\/06\/2025*","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} + +DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false + +Enviando notificación normal de tarea al instalador, valor de reprogramming y valor de changeInstaller + +La cadena CURL que se envia es: { + "to": "5214181878106", + "from": "whatsapp", + "type": "text", + "content": { + "text": "S/M" + }, + "template_values": ["👷🏻‍♂️ *Juan Rostro* se te ha asignado una tarea con folio #️⃣ *54*, para el cliente 👤 *Daniel Humberto Soto Villegas [2]*, para el 🗓️ *03/06/2025*", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], + "template_uuid": "88eeb6420a214fd8870dd28d741021c4", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"2556dd03fb2e469fbd6ef9f0cd0ee28e","status":"enqueued"}} +La notificación fue enviada correctamente con estado: enqueued + +[2025-05-30 19:42:02.827620] [notice] Logging level set to:debug +[2025-05-30 19:42:02.828003] [debug] valor del webhook: {"uuid":"3cd5cecb-166d-4076-a938-a8ce9d5cdc8c","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-04T16:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:42:02.855772] [debug] valor el evento recibido por webhook: job.edit + +[2025-05-30 19:42:02.855828] [debug] Valor de JSON: {"uuid":"3cd5cecb-166d-4076-a938-a8ce9d5cdc8c","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-04T16:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:42:02.856034] [debug] Se actualiza un trabajo + +[2025-05-30 19:42:02.856055] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 19:42:02.856067] [debug] Se reprogramó el trabajo pero no hubo cambio de instalador +[2025-05-30 19:42:02.856080] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** + +[2025-05-30 19:42:02.856123] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"3cd5cecb-166d-4076-a938-a8ce9d5cdc8c","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-04T16:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:42:02.856152] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"3cd5cecb-166d-4076-a938-a8ce9d5cdc8c","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-04T16:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:42:02.856163] [debug] Valor de $reprogramming en verifyJobActionToDo: true + +[2025-05-30 19:42:02.856169] [debug] Valor de $changeInstaller en verifyJobActionToDo: false + +[2025-05-30 19:42:02.856184] [debug] Valor de $installersData en verifyJobActionToDo: { + "instaladores": [ + { + "id": 1019, + "nombre": "Mucio Robledo", + "whatsapp": "4181878106" + }, + { + "id": 1173, + "nombre": "Angel Arvizu", + "whatsapp": "4181878106" + }, + { + "id": 1172, + "nombre": "Juan Rostro", + "whatsapp": "4181878106" + }, + { + "id": 1015, + "nombre": "Daniel Humberto", + "whatsapp": "4181878106" + } + ] +} + +[2025-05-30 19:42:02.888569] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1172,"unmsId":"2ac31363-6037-40f3-8196-5cc7c71866b0","email":"amazonrostro@gmail.com","firstName":"Juan","lastName":"Rostro","username":"rostro","avatarColor":"#00695c","isActive":true} + +[2025-05-30 19:42:02.888622] [debug] Número de WhatsApp del Instalador: 4181878106 + +[2025-05-30 19:42:02.921652] [debug] Valor de $installerFullName: Juan Rostro + +[2025-05-30 19:42:03.003722] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 + +[2025-05-30 19:42:03.003849] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] + +[2025-05-30 19:42:03.003957] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] + +[2025-05-30 19:42:03.007296] [debug] Se encontró un tipo de contacto whatsapp Enviando mensaje de trabajo para el cliente @@ -1568,26 +1808,26 @@ La cadena CURL que se envia es: { "content": { "text": "S/M" }, - "template_values": ["Estimado cliente 👤 *Daniel Humberto Soto Villegas* se ha reprogramado su visita técnica con folio *#️⃣54*", "🗓️➡️ *01/06/2025* a las 🕕 *06:00 PM* aproximadamente", "👷🏻‍♂️➡️ *Mucio Robledo Villegas*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], + "template_values": ["Estimado cliente 👤 *Daniel Humberto Soto Villegas* se ha reprogramado su visita técnica con folio *#️⃣54*", "🗓️➡️ *04/06/2025*", "👷🏻‍♂️➡️ *Juan Rostro*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], "template_uuid": "715eed9d6f2d4d90853f25e296202e00", "optin_contact": true } -Response del CallBell: {"message":{"uuid":"2e184edefdb44934bd3b0f70b92976ac","status":"enqueued"}} +Response del CallBell: {"message":{"uuid":"5bdf7194962346b4ad42af5400f935ee","status":"enqueued"}} La notificación fue enviada correctamente con estado: enqueued -[2025-05-27 21:26:22.848962] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). +[2025-05-30 19:42:04.122318] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). -[2025-05-27 21:26:22.849066] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación +[2025-05-30 19:42:04.122936] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación -[2025-05-27 21:26:22.849097] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación +[2025-05-30 19:42:04.123131] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación -[2025-05-27 21:26:22.849138] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: true, ChangeInstaller: false +[2025-05-30 19:42:04.123260] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: true, ChangeInstaller: false -[2025-05-27 21:26:22.849160] [debug] No se cambió el instalador +[2025-05-30 19:42:04.123392] [debug] No se cambió el instalador Enviando mensaje de tarea al instalador -Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*01\/06\/2025* a las \ud83d\udd55 *06:00 PM* aproximadamente","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} +Datos de la notificación de tarea: {"installerName":"Juan Rostro","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*04\/06\/2025*","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false @@ -1600,10 +1840,1313 @@ La cadena CURL que se envia es: { "content": { "text": "S/M" }, - "template_values": ["👷🏻‍♂️ *Mucio Robledo Villegas* se reprogramó una tarea con el folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, la nueva fecha será el 🗓️➡️ *01/06/2025* a las 🕕 *06:00 PM* aproximadamente", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], + "template_values": ["👷🏻‍♂️ *Juan Rostro* se reprogramó una tarea con el folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, la nueva fecha será el 🗓️➡️ *04/06/2025*", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], "template_uuid": "88eeb6420a214fd8870dd28d741021c4", "optin_contact": true } -Response del CallBell: {"message":{"uuid":"6f2d70beaee94baaa7419a135b26aded","status":"enqueued"}} +Response del CallBell: {"message":{"uuid":"45d0b0bda91548959d326bdf5a792c7c","status":"enqueued"}} La notificación fue enviada correctamente con estado: enqueued +[2025-05-30 19:50:42.504424] [notice] Logging level set to:debug +[2025-05-30 19:50:42.504782] [debug] valor del webhook: {"uuid":"711cf05f-f9d1-45a6-9f7e-4a9e6fd2b8d4","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-04T16:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-04T16:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:50:42.532969] [debug] valor el evento recibido por webhook: job.edit + +[2025-05-30 19:50:42.533113] [debug] Valor de JSON: {"uuid":"711cf05f-f9d1-45a6-9f7e-4a9e6fd2b8d4","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-04T16:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-04T16:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:50:42.533364] [debug] Se actualiza un trabajo + +[2025-05-30 19:50:42.533423] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-05-30 19:50:42.533468] [debug] No hay reprogramación de trabajo pero si hay cambio de instalador +[2025-05-30 19:50:42.533509] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** + +[2025-05-30 19:50:42.533586] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"711cf05f-f9d1-45a6-9f7e-4a9e6fd2b8d4","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-04T16:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-04T16:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:50:42.533643] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"711cf05f-f9d1-45a6-9f7e-4a9e6fd2b8d4","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-04T16:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-04T16:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-05-30 19:50:42.533683] [debug] Valor de $reprogramming en verifyJobActionToDo: false + +[2025-05-30 19:50:42.533720] [debug] Valor de $changeInstaller en verifyJobActionToDo: true + +[2025-05-30 19:50:42.533765] [debug] Valor de $installersData en verifyJobActionToDo: { + "instaladores": [ + { + "id": 1019, + "nombre": "Mucio Robledo", + "whatsapp": "4181878106" + }, + { + "id": 1173, + "nombre": "Angel Arvizu", + "whatsapp": "4181878106" + }, + { + "id": 1172, + "nombre": "Juan Rostro", + "whatsapp": "4181878106" + }, + { + "id": 1015, + "nombre": "Daniel Humberto", + "whatsapp": "4181878106" + } + ] +} + +[2025-05-30 19:50:42.570734] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1019,"unmsId":"75e00242-86c2-436a-b3ac-bd6c31db681e","email":"lionelmuz@gmail.com","firstName":"Mucio","lastName":"Robledo Villegas","username":"muz","avatarColor":"#8bc34a","isActive":true} + +[2025-05-30 19:50:42.570882] [debug] Número de WhatsApp del Instalador: 4181878106 + +[2025-05-30 19:50:42.607685] [debug] Valor de $installerFullName: Mucio Robledo Villegas + +[2025-05-30 19:50:42.698084] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 + +[2025-05-30 19:50:42.698201] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] + +[2025-05-30 19:50:42.698312] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] + +[2025-05-30 19:50:42.702286] [debug] Se encontró un tipo de contacto whatsapp + +Enviando mensaje de trabajo para el cliente + +DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true + +DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: true + +Enviando notificación de cambio de instalador al cliente, valor de reprogramming y valor de changeInstaller 1 + +La cadena CURL que se envia es: { + "to": "5214181148783", + "from": "whatsapp", + "type": "text", + "content": { + "text": "S/M" + }, + "template_values": ["👤 *Daniel Humberto Soto Villegas*", "se ha hecho un cambio de técnico 👷🏻‍♂️🔄 para su visita con el folio *#️⃣54*", "🗓️ *04/06/2025*", "👷🏻‍♂️➡️ *Mucio Robledo Villegas*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], + "template_uuid": "d684e6fa2ba24593a86c98be1815831d", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"d46c6d0115c64d358e5599b08d225669","status":"enqueued"}} +La notificación fue enviada correctamente con estado: enqueued + +[2025-05-30 19:50:43.574907] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). + +[2025-05-30 19:50:43.575048] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación + +[2025-05-30 19:50:43.575086] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación + +[2025-05-30 19:50:43.575120] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: true + +[2025-05-30 19:50:43.575144] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó + +[2025-05-30 19:50:43.614706] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106 + +Enviando mensaje de tarea al instalador + +Datos de la notificación de tarea: {"installerName":"\ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0fJuan Rostro","subjectOfChange":"se te ha desasignado\u274c la tarea con el folio ","jobId":"54","clientFullName":"[2] Daniel Humberto Soto Villegas","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico \ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u27a1\ufe0f *Mucio Robledo Villegas*"} + +DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true + +Enviando notificación de cambio de instalador al instalador anterior (desasignación), valor de reprogramming y valor de changeInstaller 1 + +La cadena CURL que se envia es: { + "to": "5214181878106", + "from": "whatsapp", + "type": "text", + "content": { + "text": "S/M" + }, + "template_values": ["👷🏻‍♂️ 👷🏻‍♂️Juan Rostro", "se te ha desasignado❌ la tarea con el folio ", "#️⃣54", "*👤[2] Daniel Humberto Soto Villegas* ", "En tu lugar asistirá el técnico 👷🏻‍♂️➡️ *Mucio Robledo Villegas*"], + "template_uuid": "e1aa2b0fd3884595918f4ac2676acd29", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"3d096a9851f64b8abfd2651682372249","status":"enqueued"}} +La notificación fue enviada correctamente con estado: enqueued + +Enviando mensaje de tarea al instalador + +Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","clientFullName":"Daniel Humberto Soto Villegas [ID:2]","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*04\/06\/2025*","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} + +DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false + +Enviando notificación normal de tarea al instalador, valor de reprogramming y valor de changeInstaller + +La cadena CURL que se envia es: { + "to": "5214181878106", + "from": "whatsapp", + "type": "text", + "content": { + "text": "S/M" + }, + "template_values": ["👷🏻‍♂️ *Mucio Robledo Villegas* se te ha asignado una tarea con folio #️⃣ *54*, del cliente 👤 *Daniel Humberto Soto Villegas [ID:2]*, para el 🗓️ *04/06/2025*", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], + "template_uuid": "88eeb6420a214fd8870dd28d741021c4", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"1640eb56168749a2b1fd9154f426741e","status":"enqueued"}} +La notificación fue enviada correctamente con estado: enqueued + +[2025-05-31 16:00:04.861433] [notice] Logging level set to:debug +[2025-05-31 16:00:04.861510] [debug] valor del webhook: {"uuid":"058fd922-2158-48d7-b8bf-12ac25670a5d","changeType":"draft_approved","entity":"invoice","entityId":"1962","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1962,"clientId":54,"number":"001912","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1965,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":53,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORETO","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"COLORADO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:05.007189] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:05.007247] [debug] Valor de JSON: {"uuid":"058fd922-2158-48d7-b8bf-12ac25670a5d","changeType":"draft_approved","entity":"invoice","entityId":"1962","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1962,"clientId":54,"number":"001912","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1965,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":53,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORETO","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"COLORADO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:05.007469] [debug] Aprobación de Factura + +[2025-05-31 16:00:05.007524] [debug] {"uuid":"058fd922-2158-48d7-b8bf-12ac25670a5d","changeType":"draft_approved","entity":"invoice","entityId":1962,"message":null,"clientId":54,"eventName":"invoice.draft_approved","clientData":{"id":54,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"COLORADO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"COLORADO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"LORETO","lastName":"HERRERA","username":"lherrera54","contacts":[{"id":55,"clientId":54,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ff8f00","addressGpsLat":21.1608267,"addressGpsLon":-100.7982422,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1962,"clientId":54,"number":"001912","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1965,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":53,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORETO","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"COLORADO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:06.227622] [notice] Logging level set to:debug +[2025-05-31 16:00:06.227696] [debug] valor del webhook: {"uuid":"55f91311-8ae1-47df-b3e1-f1c559f265af","changeType":"draft_approved","entity":"invoice","entityId":"1963","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1963,"clientId":84,"number":"001913","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1966,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":83,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ROLANDO","clientLastName":"CALVILLLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:06.362140] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:06.362191] [debug] Valor de JSON: {"uuid":"55f91311-8ae1-47df-b3e1-f1c559f265af","changeType":"draft_approved","entity":"invoice","entityId":"1963","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1963,"clientId":84,"number":"001913","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1966,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":83,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ROLANDO","clientLastName":"CALVILLLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:06.362292] [debug] Aprobación de Factura + +[2025-05-31 16:00:06.362339] [debug] {"uuid":"55f91311-8ae1-47df-b3e1-f1c559f265af","changeType":"draft_approved","entity":"invoice","entityId":1963,"message":null,"clientId":84,"eventName":"invoice.draft_approved","clientData":{"id":84,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ELIAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ELIAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ROLANDO","lastName":"CALVILLLO","username":"rcalvilllo84","contacts":[{"id":85,"clientId":84,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2196f3","addressGpsLat":21.2516667,"addressGpsLon":-101.0924998,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1963,"clientId":84,"number":"001913","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1966,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":83,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ROLANDO","clientLastName":"CALVILLLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:07.579890] [notice] Logging level set to:debug +[2025-05-31 16:00:07.579966] [debug] valor del webhook: {"uuid":"0a74429e-fae6-4fc8-86bc-f282e395d692","changeType":"draft_approved","entity":"invoice","entityId":"1964","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1964,"clientId":21,"number":"001914","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1967,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":20,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NATALIA","clientLastName":"JUAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:07.739706] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:07.739763] [debug] Valor de JSON: {"uuid":"0a74429e-fae6-4fc8-86bc-f282e395d692","changeType":"draft_approved","entity":"invoice","entityId":"1964","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1964,"clientId":21,"number":"001914","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1967,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":20,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NATALIA","clientLastName":"JUAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:07.739883] [debug] Aprobación de Factura + +[2025-05-31 16:00:07.739938] [debug] {"uuid":"0a74429e-fae6-4fc8-86bc-f282e395d692","changeType":"draft_approved","entity":"invoice","entityId":1964,"message":null,"clientId":21,"eventName":"invoice.draft_approved","clientData":{"id":21,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"MEZQUITAL","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"MEZQUITAL, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"NATALIA","lastName":"JUAREZ","username":"njuarez21","contacts":[{"id":22,"clientId":21,"email":null,"phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#546e7a","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1964,"clientId":21,"number":"001914","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1967,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":20,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NATALIA","clientLastName":"JUAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:08.932185] [notice] Logging level set to:debug +[2025-05-31 16:00:08.932293] [debug] valor del webhook: {"uuid":"b1f631e0-e5d9-48ec-ac7b-31b1080ab4f0","changeType":"draft_approved","entity":"invoice","entityId":"1965","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1965,"clientId":74,"number":"001915","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1968,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":73,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARCELO","clientLastName":"PALACIOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:09.061868] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:09.061918] [debug] Valor de JSON: {"uuid":"b1f631e0-e5d9-48ec-ac7b-31b1080ab4f0","changeType":"draft_approved","entity":"invoice","entityId":"1965","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1965,"clientId":74,"number":"001915","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1968,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":73,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARCELO","clientLastName":"PALACIOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:09.062007] [debug] Aprobación de Factura + +[2025-05-31 16:00:09.062048] [debug] {"uuid":"b1f631e0-e5d9-48ec-ac7b-31b1080ab4f0","changeType":"draft_approved","entity":"invoice","entityId":1965,"message":null,"clientId":74,"eventName":"invoice.draft_approved","clientData":{"id":74,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MARCELO","lastName":"PALACIOS","username":"mpalacios74","contacts":[{"id":75,"clientId":74,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2e7d32","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1965,"clientId":74,"number":"001915","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1968,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":73,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARCELO","clientLastName":"PALACIOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:10.230859] [notice] Logging level set to:debug +[2025-05-31 16:00:10.230968] [debug] valor del webhook: {"uuid":"06a51560-2a9d-43dc-b579-745c7a21d39a","changeType":"draft_approved","entity":"invoice","entityId":"1966","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1966,"clientId":46,"number":"001916","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1969,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":45,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ISMAEL","clientLastName":"PUGA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ROSILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:10.388104] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:10.388169] [debug] Valor de JSON: {"uuid":"06a51560-2a9d-43dc-b579-745c7a21d39a","changeType":"draft_approved","entity":"invoice","entityId":"1966","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1966,"clientId":46,"number":"001916","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1969,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":45,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ISMAEL","clientLastName":"PUGA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ROSILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:10.391433] [debug] Aprobación de Factura + +[2025-05-31 16:00:10.391513] [debug] {"uuid":"06a51560-2a9d-43dc-b579-745c7a21d39a","changeType":"draft_approved","entity":"invoice","entityId":1966,"message":null,"clientId":46,"eventName":"invoice.draft_approved","clientData":{"id":46,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL ROSILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL ROSILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ISMAEL","lastName":"PUGA","username":"ipuga46","contacts":[{"id":47,"clientId":46,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":100,"clientId":46,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtMzv6GBcULCcTh","clientZoneVisible":true},{"id":101,"clientId":46,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"6881305189499928","clientZoneVisible":true}],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2e7d32","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1966,"clientId":46,"number":"001916","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1969,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":45,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ISMAEL","clientLastName":"PUGA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ROSILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:11.514689] [notice] Logging level set to:debug +[2025-05-31 16:00:11.514766] [debug] valor del webhook: {"uuid":"93e90f01-14bd-4264-8916-d9fc96fd4ec0","changeType":"draft_approved","entity":"invoice","entityId":"1967","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1967,"clientId":86,"number":"001917","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1970,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":85,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PALMITAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:11.652932] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:11.653017] [debug] Valor de JSON: {"uuid":"93e90f01-14bd-4264-8916-d9fc96fd4ec0","changeType":"draft_approved","entity":"invoice","entityId":"1967","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1967,"clientId":86,"number":"001917","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1970,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":85,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PALMITAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:11.653181] [debug] Aprobación de Factura + +[2025-05-31 16:00:11.653325] [debug] {"uuid":"93e90f01-14bd-4264-8916-d9fc96fd4ec0","changeType":"draft_approved","entity":"invoice","entityId":1967,"message":null,"clientId":86,"eventName":"invoice.draft_approved","clientData":{"id":86,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"PALMITAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"PALMITAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"HUMBERTO","lastName":"CASTILLO","username":"hcastillo86","contacts":[{"id":87,"clientId":86,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-8200,"accountCredit":0,"accountOutstanding":8200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#c62828","addressGpsLat":21.2394677,"addressGpsLon":-100.9803471,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1967,"clientId":86,"number":"001917","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1970,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":85,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PALMITAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:12.782502] [notice] Logging level set to:debug +[2025-05-31 16:00:12.782613] [debug] valor del webhook: {"uuid":"d696e9ec-325a-4450-ab78-2384b6889480","changeType":"draft_approved","entity":"invoice","entityId":"1968","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1968,"clientId":28,"number":"001918","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1971,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":27,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OSVALDO","clientLastName":"GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN GABRIEL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:12.908070] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:12.908124] [debug] Valor de JSON: {"uuid":"d696e9ec-325a-4450-ab78-2384b6889480","changeType":"draft_approved","entity":"invoice","entityId":"1968","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1968,"clientId":28,"number":"001918","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1971,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":27,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OSVALDO","clientLastName":"GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN GABRIEL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:12.908241] [debug] Aprobación de Factura + +[2025-05-31 16:00:12.908292] [debug] {"uuid":"d696e9ec-325a-4450-ab78-2384b6889480","changeType":"draft_approved","entity":"invoice","entityId":1968,"message":null,"clientId":28,"eventName":"invoice.draft_approved","clientData":{"id":28,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN GABRIEL","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN GABRIEL, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"OSVALDO","lastName":"GONZALEZ","username":"ogonzalez28","contacts":[{"id":29,"clientId":28,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-8483.33,"accountCredit":0,"accountOutstanding":8483.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#03a9f4","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1968,"clientId":28,"number":"001918","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1971,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":27,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OSVALDO","clientLastName":"GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN GABRIEL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:14.023883] [notice] Logging level set to:debug +[2025-05-31 16:00:14.023952] [debug] valor del webhook: {"uuid":"3f6e6986-01e4-4a9b-9ca0-b50b805253a1","changeType":"draft_approved","entity":"invoice","entityId":"1969","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1969,"clientId":9,"number":"001919","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1972,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":9,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JHOVANY","clientLastName":"LOPEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GALLINERO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:14.168847] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:14.168904] [debug] Valor de JSON: {"uuid":"3f6e6986-01e4-4a9b-9ca0-b50b805253a1","changeType":"draft_approved","entity":"invoice","entityId":"1969","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1969,"clientId":9,"number":"001919","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1972,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":9,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JHOVANY","clientLastName":"LOPEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GALLINERO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:14.169034] [debug] Aprobación de Factura + +[2025-05-31 16:00:14.169081] [debug] {"uuid":"3f6e6986-01e4-4a9b-9ca0-b50b805253a1","changeType":"draft_approved","entity":"invoice","entityId":1969,"message":null,"clientId":9,"eventName":"invoice.draft_approved","clientData":{"id":9,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"GALLINERO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"GALLINERO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JHOVANY","lastName":"LOPEZ","username":"jlopez09","contacts":[{"id":10,"clientId":9,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5500,"accountCredit":0,"accountOutstanding":5500,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#d81b60","addressGpsLat":21.179169675936,"addressGpsLon":-100.95965623856,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1969,"clientId":9,"number":"001919","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1972,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":9,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JHOVANY","clientLastName":"LOPEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GALLINERO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:15.371562] [notice] Logging level set to:debug +[2025-05-31 16:00:15.371675] [debug] valor del webhook: {"uuid":"c885d763-f3b6-49c6-8443-f47b30333c3f","changeType":"draft_approved","entity":"invoice","entityId":"1970","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1970,"clientId":88,"number":"001920","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1973,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":87,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CECILIA","clientLastName":"GRANDE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIFORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:15.503566] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:15.503624] [debug] Valor de JSON: {"uuid":"c885d763-f3b6-49c6-8443-f47b30333c3f","changeType":"draft_approved","entity":"invoice","entityId":"1970","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1970,"clientId":88,"number":"001920","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1973,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":87,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CECILIA","clientLastName":"GRANDE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIFORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:15.503734] [debug] Aprobación de Factura + +[2025-05-31 16:00:15.503789] [debug] {"uuid":"c885d763-f3b6-49c6-8443-f47b30333c3f","changeType":"draft_approved","entity":"invoice","entityId":1970,"message":null,"clientId":88,"eventName":"invoice.draft_approved","clientData":{"id":88,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA CALIFORNIA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA CALIFORNIA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"CECILIA","lastName":"GRANDE","username":"cgrande88","contacts":[{"id":89,"clientId":88,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-11700,"accountCredit":0,"accountOutstanding":11700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#4527a0","addressGpsLat":21.2895071,"addressGpsLon":-100.825418,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1970,"clientId":88,"number":"001920","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1973,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":87,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CECILIA","clientLastName":"GRANDE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIFORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:17.010761] [notice] Logging level set to:debug +[2025-05-31 16:00:17.010813] [debug] valor del webhook: {"uuid":"cf805034-d9fa-4b4b-a333-e3ea381b8cd8","changeType":"draft_approved","entity":"invoice","entityId":"1971","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1971,"clientId":85,"number":"001921","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1974,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":84,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GISELLE","clientLastName":"ARREDONDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GARABATILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:17.162435] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:17.162497] [debug] Valor de JSON: {"uuid":"cf805034-d9fa-4b4b-a333-e3ea381b8cd8","changeType":"draft_approved","entity":"invoice","entityId":"1971","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1971,"clientId":85,"number":"001921","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1974,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":84,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GISELLE","clientLastName":"ARREDONDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GARABATILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:17.162638] [debug] Aprobación de Factura + +[2025-05-31 16:00:17.162688] [debug] {"uuid":"cf805034-d9fa-4b4b-a333-e3ea381b8cd8","changeType":"draft_approved","entity":"invoice","entityId":1971,"message":null,"clientId":85,"eventName":"invoice.draft_approved","clientData":{"id":85,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"GARABATILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"GARABATILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"GISELLE","lastName":"ARREDONDO","username":"garredondo85","contacts":[{"id":86,"clientId":85,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-8300,"accountCredit":0,"accountOutstanding":8300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef6c00","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1971,"clientId":85,"number":"001921","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1974,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":84,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GISELLE","clientLastName":"ARREDONDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GARABATILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:18.366220] [notice] Logging level set to:debug +[2025-05-31 16:00:18.366338] [debug] valor del webhook: {"uuid":"d3b7c95f-82cf-465b-a644-25aa4cece0f1","changeType":"draft_approved","entity":"invoice","entityId":"1972","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1972,"clientId":56,"number":"001922","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1975,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":55,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NOE","clientLastName":"SANDOVAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTIAGUILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:18.495527] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:18.495587] [debug] Valor de JSON: {"uuid":"d3b7c95f-82cf-465b-a644-25aa4cece0f1","changeType":"draft_approved","entity":"invoice","entityId":"1972","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1972,"clientId":56,"number":"001922","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1975,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":55,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NOE","clientLastName":"SANDOVAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTIAGUILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:18.495682] [debug] Aprobación de Factura + +[2025-05-31 16:00:18.495726] [debug] {"uuid":"d3b7c95f-82cf-465b-a644-25aa4cece0f1","changeType":"draft_approved","entity":"invoice","entityId":1972,"message":null,"clientId":56,"eventName":"invoice.draft_approved","clientData":{"id":56,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTIAGUILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":null,"fullAddress":"SANTIAGUILLO, Dolores Hidalgo Cuna de la Independencia Nacional","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"NOE","lastName":"SANDOVAL","username":"nsandoval56","contacts":[{"id":57,"clientId":56,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#039be5","addressGpsLat":21.0165209,"addressGpsLon":-100.9831731,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1972,"clientId":56,"number":"001922","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1975,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":55,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NOE","clientLastName":"SANDOVAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTIAGUILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:19.652884] [notice] Logging level set to:debug +[2025-05-31 16:00:19.652993] [debug] valor del webhook: {"uuid":"1b04a4a9-a7ff-45cd-940b-3c95cf62c007","changeType":"draft_approved","entity":"invoice","entityId":"1973","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1973,"clientId":42,"number":"001923","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1976,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":41,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORENA","clientLastName":"MARTINEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:19.784090] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:19.784142] [debug] Valor de JSON: {"uuid":"1b04a4a9-a7ff-45cd-940b-3c95cf62c007","changeType":"draft_approved","entity":"invoice","entityId":"1973","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1973,"clientId":42,"number":"001923","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1976,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":41,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORENA","clientLastName":"MARTINEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:19.784235] [debug] Aprobación de Factura + +[2025-05-31 16:00:19.784276] [debug] {"uuid":"1b04a4a9-a7ff-45cd-940b-3c95cf62c007","changeType":"draft_approved","entity":"invoice","entityId":1973,"message":null,"clientId":42,"eventName":"invoice.draft_approved","clientData":{"id":42,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"LORENA","lastName":"MARTINEZ","username":"lmartinez42","contacts":[{"id":43,"clientId":42,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5110,"accountCredit":0,"accountOutstanding":5110,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#4527a0","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1973,"clientId":42,"number":"001923","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1976,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":41,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORENA","clientLastName":"MARTINEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:20.913855] [notice] Logging level set to:debug +[2025-05-31 16:00:20.913960] [debug] valor del webhook: {"uuid":"099503de-2b11-4cb6-99ab-bbc1d7b389ab","changeType":"draft_approved","entity":"invoice","entityId":"1974","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1974,"clientId":44,"number":"001924","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1977,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":43,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JAVIER","clientLastName":"BRIONES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ESTANCIA DE ZAMARRIPA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:21.057003] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:21.057061] [debug] Valor de JSON: {"uuid":"099503de-2b11-4cb6-99ab-bbc1d7b389ab","changeType":"draft_approved","entity":"invoice","entityId":"1974","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1974,"clientId":44,"number":"001924","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1977,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":43,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JAVIER","clientLastName":"BRIONES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ESTANCIA DE ZAMARRIPA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:21.057178] [debug] Aprobación de Factura + +[2025-05-31 16:00:21.057223] [debug] {"uuid":"099503de-2b11-4cb6-99ab-bbc1d7b389ab","changeType":"draft_approved","entity":"invoice","entityId":1974,"message":null,"clientId":44,"eventName":"invoice.draft_approved","clientData":{"id":44,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"ESTANCIA DE ZAMARRIPA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"ESTANCIA DE ZAMARRIPA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JAVIER","lastName":"BRIONES","username":"jbriones44","contacts":[{"id":45,"clientId":44,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4810,"accountCredit":0,"accountOutstanding":4810,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#c0ca33","addressGpsLat":21.2370877,"addressGpsLon":-101.116799,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1974,"clientId":44,"number":"001924","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1977,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":43,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JAVIER","clientLastName":"BRIONES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ESTANCIA DE ZAMARRIPA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:22.180434] [notice] Logging level set to:debug +[2025-05-31 16:00:22.180542] [debug] valor del webhook: {"uuid":"ee9d6964-b3dd-4d53-a51e-88177afcb287","changeType":"draft_approved","entity":"invoice","entityId":"1975","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1975,"clientId":91,"number":"001925","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1978,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":90,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CAROLINA","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:22.317214] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:22.317272] [debug] Valor de JSON: {"uuid":"ee9d6964-b3dd-4d53-a51e-88177afcb287","changeType":"draft_approved","entity":"invoice","entityId":"1975","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1975,"clientId":91,"number":"001925","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1978,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":90,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CAROLINA","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:22.317369] [debug] Aprobación de Factura + +[2025-05-31 16:00:22.317414] [debug] {"uuid":"ee9d6964-b3dd-4d53-a51e-88177afcb287","changeType":"draft_approved","entity":"invoice","entityId":1975,"message":null,"clientId":91,"eventName":"invoice.draft_approved","clientData":{"id":91,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA CALIORNIA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA CALIORNIA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"CAROLINA","lastName":"PE\u00d1A","username":"cpe\u00d1a91","contacts":[{"id":92,"clientId":91,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-8000,"accountCredit":0,"accountOutstanding":8000,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#03a9f4","addressGpsLat":21.2935854,"addressGpsLon":-100.8211626,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1975,"clientId":91,"number":"001925","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1978,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":90,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CAROLINA","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:23.491048] [notice] Logging level set to:debug +[2025-05-31 16:00:23.491123] [debug] valor del webhook: {"uuid":"256947a0-8dbb-4c2e-bbdd-3043a37c064e","changeType":"draft_approved","entity":"invoice","entityId":"1976","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1976,"clientId":78,"number":"001926","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1979,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":77,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDER","clientLastName":"ROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:23.638818] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:23.638875] [debug] Valor de JSON: {"uuid":"256947a0-8dbb-4c2e-bbdd-3043a37c064e","changeType":"draft_approved","entity":"invoice","entityId":"1976","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1976,"clientId":78,"number":"001926","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1979,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":77,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDER","clientLastName":"ROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:23.639035] [debug] Aprobación de Factura + +[2025-05-31 16:00:23.639086] [debug] {"uuid":"256947a0-8dbb-4c2e-bbdd-3043a37c064e","changeType":"draft_approved","entity":"invoice","entityId":1976,"message":null,"clientId":78,"eventName":"invoice.draft_approved","clientData":{"id":78,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL BOBO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL BOBO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALEXANDER","lastName":"ROSTRO","username":"arostro78","contacts":[{"id":79,"clientId":78,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#9c27b0","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1976,"clientId":78,"number":"001926","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1979,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":77,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDER","clientLastName":"ROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:24.773148] [notice] Logging level set to:debug +[2025-05-31 16:00:24.773253] [debug] valor del webhook: {"uuid":"0095ce25-5835-49c9-bb90-420bec816841","changeType":"draft_approved","entity":"invoice","entityId":"1977","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1977,"clientId":49,"number":"001927","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1980,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":48,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"ARGOTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:24.908772] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:24.908838] [debug] Valor de JSON: {"uuid":"0095ce25-5835-49c9-bb90-420bec816841","changeType":"draft_approved","entity":"invoice","entityId":"1977","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1977,"clientId":49,"number":"001927","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1980,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":48,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"ARGOTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:24.908953] [debug] Aprobación de Factura + +[2025-05-31 16:00:24.909023] [debug] {"uuid":"0095ce25-5835-49c9-bb90-420bec816841","changeType":"draft_approved","entity":"invoice","entityId":1977,"message":null,"clientId":49,"eventName":"invoice.draft_approved","clientData":{"id":49,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"HUMBERTO","lastName":"ARGOTE","username":"hargote49","contacts":[{"id":50,"clientId":49,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":106,"clientId":49,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtN1TKNidnkizX4","clientZoneVisible":true},{"id":107,"clientId":49,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"5239864893662909","clientZoneVisible":true}],"accountBalance":-4810,"accountCredit":0,"accountOutstanding":4810,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1977,"clientId":49,"number":"001927","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1980,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":48,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"ARGOTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:26.053610] [notice] Logging level set to:debug +[2025-05-31 16:00:26.053694] [debug] valor del webhook: {"uuid":"0cb80388-0bb1-4aea-b5ac-fd870c701efe","changeType":"draft_approved","entity":"invoice","entityId":"1978","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1978,"clientId":5,"number":"001928","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1981,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":5,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MUCIO","clientLastName":"ROBLEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CORREGIDORA #61, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:26.205651] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:26.205704] [debug] Valor de JSON: {"uuid":"0cb80388-0bb1-4aea-b5ac-fd870c701efe","changeType":"draft_approved","entity":"invoice","entityId":"1978","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1978,"clientId":5,"number":"001928","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1981,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":5,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MUCIO","clientLastName":"ROBLEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CORREGIDORA #61, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:26.205823] [debug] Aprobación de Factura + +[2025-05-31 16:00:26.205868] [debug] {"uuid":"0cb80388-0bb1-4aea-b5ac-fd870c701efe","changeType":"draft_approved","entity":"invoice","entityId":1978,"message":null,"clientId":5,"eventName":"invoice.draft_approved","clientData":{"id":5,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"CORREGIDORA #61, ZONA CENTRO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"CORREGIDORA #61, ZONA CENTRO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MUCIO","lastName":"ROBLEDO","username":"mrobledo05","contacts":[{"id":6,"clientId":5,"email":null,"phone":"5214181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-12533.33,"accountCredit":0,"accountOutstanding":12533.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.158357169062,"addressGpsLon":-100.93191261001,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1978,"clientId":5,"number":"001928","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1981,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":5,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MUCIO","clientLastName":"ROBLEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CORREGIDORA #61, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:26.205908] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-05-31 16:00:26.205916] [info] Tipo de contacto normalizado: 'whatsapp' +Notificacion data: {"uuid":"0cb80388-0bb1-4aea-b5ac-fd870c701efe","changeType":"draft_approved","entity":"invoice","entityId":1978,"message":null,"clientId":5,"eventName":"invoice.draft_approved","clientData":{"id":5,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"CORREGIDORA #61, ZONA CENTRO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"CORREGIDORA #61, ZONA CENTRO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MUCIO","lastName":"ROBLEDO","username":"mrobledo05","contacts":[{"id":6,"clientId":5,"email":null,"phone":"5214181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-12533.33,"accountCredit":0,"accountOutstanding":12533.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.158357169062,"addressGpsLon":-100.93191261001,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1978,"clientId":5,"number":"001928","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1981,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":5,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MUCIO","clientLastName":"ROBLEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CORREGIDORA #61, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [] + +Nombre del cliente que se va a actualizar: MUCIO ROBLEDO + +UUID: 92dd9fb15b8f4ff6860f8a32ea9bd7e4 + +JSON con los datos a actualizar: {"name":"MUCIO ROBLEDO","custom_fields":{"Cliente":5,"Domicilio":"\ud83d\udccd CORREGIDORA #61, ZONA CENTRO, Dolores Hidalgo, 37800","Nombre":"\ud83d\udc64 MUCIO ROBLEDO","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/5","Saldo Actual":"\ud83d\udcb212533.33 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"5\",\"Domicilio\": \"\"Nombre\": \"MUCIO ROBLEDO\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/5\",\"Saldo Actual\": \"\ud83d\udcb212533.33 pendientes\",\"Monto Ultimo Pago\": \"$ \",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 31\/05\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"31\/05\/2025 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 31\/05\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 31\/05\/2025 10:00","Clabe Interbancaria":null,"Site":"","Antena\/Sectorial":""}} + +JSON con los datos a actualizar del resumen: {"Cliente": "5","Domicilio": ""Nombre": "MUCIO ROBLEDO","URL": "https://sistema.siip.mx/crm/client/5","Saldo Actual": "💲12533.33 pendientes","Monto Ultimo Pago": "$ ","Estado": "Suspendido","Fecha Ultimo Pago": " 31/05/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion": "31/05/2025 10:00","Clabe Interbancaria": "","Site": "","Antena/Sectorial": ""} + +Response Patch CallBell: {"contact":{"uuid":"92dd9fb15b8f4ff6860f8a32ea9bd7e4","name":"MUCIO ROBLEDO","phoneNumber":"5214181091933","avatarUrl":null,"createdAt":"2023-12-22T16:55:50Z","closedAt":"2024-07-11T22:49:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/92dd9fb15b8f4ff6860f8a32ea9bd7e4","conversationHref":"https://dash.callbell.eu/chat/04a3e26142e0431789260acb0b60a3ac","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"124180650659256341","Estado":"🔴 Suspendido","Antena/Sectorial":"Sec3-Sb 172.16.55.13/24","Site":"SBARB","Cliente":"5","Domicilio":"📍 CORREGIDORA #61, ZONA CENTRO, Dolores Hidalgo, 37800","Saldo Actual":"💲12533.33 pendientes","Monto Ultimo Pago":"💲 ","Fecha Ultimo Pago":"📆💸 31/05/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Resumen":"{\"Cliente\": \"5\",\"Domicilio\": \"\"Nombre\": \"MUCIO ROBLEDO\",\"URL\": \"https://sistema.siip.mx/crm/client/5\",\"Saldo Actual\": \"💲12533.33 pendientes\",\"Monto Ultimo Pago\": \"$ \",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 31/05/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"31/05/2025 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","URL":"🌐 https://sistema.siip.mx/crm/client/5","Fecha Ultima Actualizacion":"📆🔄️ 31/05/2025 10:00","Nombre":"👤 MUCIO ROBLEDO"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +Response 2 Patch CallBell: {"contact":{"uuid":"92dd9fb15b8f4ff6860f8a32ea9bd7e4","name":"MUCIO ROBLEDO","phoneNumber":"5214181091933","avatarUrl":null,"createdAt":"2023-12-22T16:55:50Z","closedAt":"2024-07-11T22:49:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/92dd9fb15b8f4ff6860f8a32ea9bd7e4","conversationHref":"https://dash.callbell.eu/chat/04a3e26142e0431789260acb0b60a3ac","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"124180650659256341","Estado":"🔴 Suspendido","Antena/Sectorial":"Sec3-Sb 172.16.55.13/24","Site":"SBARB","Cliente":"5","Domicilio":"📍 CORREGIDORA #61, ZONA CENTRO, Dolores Hidalgo, 37800","Saldo Actual":"💲12533.33 pendientes","Monto Ultimo Pago":"💲 ","Fecha Ultimo Pago":"📆💸 31/05/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Resumen":"{\"Cliente\": \"5\",\"Domicilio\": \"\"Nombre\": \"MUCIO ROBLEDO\",\"URL\": \"https://sistema.siip.mx/crm/client/5\",\"Saldo Actual\": \"💲12533.33 pendientes\",\"Monto Ultimo Pago\": \"$ \",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 31/05/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"31/05/2025 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","URL":"🌐 https://sistema.siip.mx/crm/client/5","Fecha Ultima Actualizacion":"📆🔄️ 31/05/2025 10:00","Nombre":"👤 MUCIO ROBLEDO"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-05-31 16:00:29.106333] [notice] Logging level set to:debug +[2025-05-31 16:00:29.106417] [debug] valor del webhook: {"uuid":"312157bb-8fa1-43bf-81f0-230341a9c3e3","changeType":"draft_approved","entity":"invoice","entityId":"1979","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1979,"clientId":102,"number":"001929","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1982,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":101,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"XX","clientLastName":"XX","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:29.247906] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:29.247960] [debug] Valor de JSON: {"uuid":"312157bb-8fa1-43bf-81f0-230341a9c3e3","changeType":"draft_approved","entity":"invoice","entityId":"1979","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1979,"clientId":102,"number":"001929","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1982,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":101,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"XX","clientLastName":"XX","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:29.248080] [debug] Aprobación de Factura + +[2025-05-31 16:00:29.248125] [debug] {"uuid":"312157bb-8fa1-43bf-81f0-230341a9c3e3","changeType":"draft_approved","entity":"invoice","entityId":1979,"message":null,"clientId":102,"eventName":"invoice.draft_approved","clientData":{"id":102,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"YERBAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"YERBAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"XX","lastName":"XX","username":"xxx02","contacts":[{"id":103,"clientId":102,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2e7d32","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1979,"clientId":102,"number":"001929","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1982,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":101,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"XX","clientLastName":"XX","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:30.240964] [notice] Logging level set to:debug +[2025-05-31 16:00:30.241041] [debug] valor del webhook: {"uuid":"0635d47a-42d5-44d1-8add-93ef66c21cc2","changeType":"draft_approved","entity":"invoice","entityId":"1980","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1980,"clientId":22,"number":"001930","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1983,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":21,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEBAN","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA PUERTA DE SAN FRANCISCO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:30.383936] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:30.383989] [debug] Valor de JSON: {"uuid":"0635d47a-42d5-44d1-8add-93ef66c21cc2","changeType":"draft_approved","entity":"invoice","entityId":"1980","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1980,"clientId":22,"number":"001930","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1983,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":21,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEBAN","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA PUERTA DE SAN FRANCISCO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:30.384089] [debug] Aprobación de Factura + +[2025-05-31 16:00:30.384130] [debug] {"uuid":"0635d47a-42d5-44d1-8add-93ef66c21cc2","changeType":"draft_approved","entity":"invoice","entityId":1980,"message":null,"clientId":22,"eventName":"invoice.draft_approved","clientData":{"id":22,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA PUERTA DE SAN FRANCISCO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA PUERTA DE SAN FRANCISCO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ESTEBAN","lastName":"GARCIA","username":"egarcia22","contacts":[{"id":23,"clientId":22,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5430,"accountCredit":0,"accountOutstanding":5430,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#7cb342","addressGpsLat":21.2091666,"addressGpsLon":-100.76,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1980,"clientId":22,"number":"001930","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1983,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":21,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEBAN","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA PUERTA DE SAN FRANCISCO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:34.356384] [notice] Logging level set to:debug +[2025-05-31 16:00:34.356436] [debug] valor del webhook: {"uuid":"0b31336d-bc7b-46fa-b46d-9f947c1ecf87","changeType":"draft_approved","entity":"invoice","entityId":"1981","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1981,"clientId":70,"number":"001931","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1984,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":69,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALBERTO","clientLastName":"TRUJILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:34.490824] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:34.490881] [debug] Valor de JSON: {"uuid":"0b31336d-bc7b-46fa-b46d-9f947c1ecf87","changeType":"draft_approved","entity":"invoice","entityId":"1981","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1981,"clientId":70,"number":"001931","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1984,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":69,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALBERTO","clientLastName":"TRUJILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:34.491036] [debug] Aprobación de Factura + +[2025-05-31 16:00:34.491087] [debug] {"uuid":"0b31336d-bc7b-46fa-b46d-9f947c1ecf87","changeType":"draft_approved","entity":"invoice","entityId":1981,"message":null,"clientId":70,"eventName":"invoice.draft_approved","clientData":{"id":70,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALBERTO","lastName":"TRUJILLO","username":"atrujillo70","contacts":[{"id":71,"clientId":70,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-11200,"accountCredit":0,"accountOutstanding":11200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef6c00","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1981,"clientId":70,"number":"001931","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1984,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":69,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALBERTO","clientLastName":"TRUJILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:35.641813] [notice] Logging level set to:debug +[2025-05-31 16:00:35.641890] [debug] valor del webhook: {"uuid":"390873b2-8d64-47be-b449-38247ab23e2b","changeType":"draft_approved","entity":"invoice","entityId":"1982","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1982,"clientId":17,"number":"001932","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1985,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":16,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUAN","clientLastName":"LOPEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CIENEGUILLA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:35.787424] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:35.787475] [debug] Valor de JSON: {"uuid":"390873b2-8d64-47be-b449-38247ab23e2b","changeType":"draft_approved","entity":"invoice","entityId":"1982","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1982,"clientId":17,"number":"001932","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1985,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":16,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUAN","clientLastName":"LOPEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CIENEGUILLA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:35.787579] [debug] Aprobación de Factura + +[2025-05-31 16:00:35.787621] [debug] {"uuid":"390873b2-8d64-47be-b449-38247ab23e2b","changeType":"draft_approved","entity":"invoice","entityId":1982,"message":null,"clientId":17,"eventName":"invoice.draft_approved","clientData":{"id":17,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"CIENEGUILLA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"CIENEGUILLA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JUAN","lastName":"LOPEZ","username":"jlopez17","contacts":[{"id":18,"clientId":17,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5690,"accountCredit":0,"accountOutstanding":5690,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.0749852,"addressGpsLon":-100.937613,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1982,"clientId":17,"number":"001932","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1985,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":16,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUAN","clientLastName":"LOPEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CIENEGUILLA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:36.940087] [notice] Logging level set to:debug +[2025-05-31 16:00:36.940196] [debug] valor del webhook: {"uuid":"4437b481-e38b-49be-a26c-dd613827c41e","changeType":"draft_approved","entity":"invoice","entityId":"1983","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1983,"clientId":66,"number":"001933","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1986,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":65,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LAURA","clientLastName":"CRUCES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:37.099354] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:37.099406] [debug] Valor de JSON: {"uuid":"4437b481-e38b-49be-a26c-dd613827c41e","changeType":"draft_approved","entity":"invoice","entityId":"1983","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1983,"clientId":66,"number":"001933","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1986,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":65,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LAURA","clientLastName":"CRUCES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:37.099528] [debug] Aprobación de Factura + +[2025-05-31 16:00:37.099574] [debug] {"uuid":"4437b481-e38b-49be-a26c-dd613827c41e","changeType":"draft_approved","entity":"invoice","entityId":1983,"message":null,"clientId":66,"eventName":"invoice.draft_approved","clientData":{"id":66,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"LAURA","lastName":"CRUCES","username":"lcruces66","contacts":[{"id":67,"clientId":66,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ffb300","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1983,"clientId":66,"number":"001933","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1986,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":65,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LAURA","clientLastName":"CRUCES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:38.239447] [notice] Logging level set to:debug +[2025-05-31 16:00:38.239533] [debug] valor del webhook: {"uuid":"2ecc7492-3c06-4d47-910c-5d61506abd76","changeType":"draft_approved","entity":"invoice","entityId":"1984","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1984,"clientId":7,"number":"001934","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1987,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":7,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JESUS","clientLastName":"GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:38.372268] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:38.372330] [debug] Valor de JSON: {"uuid":"2ecc7492-3c06-4d47-910c-5d61506abd76","changeType":"draft_approved","entity":"invoice","entityId":"1984","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1984,"clientId":7,"number":"001934","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1987,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":7,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JESUS","clientLastName":"GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:38.372452] [debug] Aprobación de Factura + +[2025-05-31 16:00:38.372497] [debug] {"uuid":"2ecc7492-3c06-4d47-910c-5d61506abd76","changeType":"draft_approved","entity":"invoice","entityId":1984,"message":null,"clientId":7,"eventName":"invoice.draft_approved","clientData":{"id":7,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"ADJUNTAS DEL RIO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"ADJUNTAS DEL RIO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JESUS","lastName":"GONZALEZ","username":"jgonzalez07","contacts":[{"id":8,"clientId":7,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#607d8b","addressGpsLat":21.1191939,"addressGpsLon":-100.8698211,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1984,"clientId":7,"number":"001934","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1987,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":7,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JESUS","clientLastName":"GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:39.481625] [notice] Logging level set to:debug +[2025-05-31 16:00:39.481715] [debug] valor del webhook: {"uuid":"8febbcf0-dfa7-4d30-9f47-fd7688cfe5d8","changeType":"draft_approved","entity":"invoice","entityId":"1985","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1985,"clientId":38,"number":"001935","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1988,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":37,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGELICA","clientLastName":"ROMAN","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:39.612042] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:39.612097] [debug] Valor de JSON: {"uuid":"8febbcf0-dfa7-4d30-9f47-fd7688cfe5d8","changeType":"draft_approved","entity":"invoice","entityId":"1985","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1985,"clientId":38,"number":"001935","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1988,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":37,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGELICA","clientLastName":"ROMAN","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:39.612195] [debug] Aprobación de Factura + +[2025-05-31 16:00:39.612237] [debug] {"uuid":"8febbcf0-dfa7-4d30-9f47-fd7688cfe5d8","changeType":"draft_approved","entity":"invoice","entityId":1985,"message":null,"clientId":38,"eventName":"invoice.draft_approved","clientData":{"id":38,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TECOLOTE","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TECOLOTE, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANGELICA","lastName":"ROMAN","username":"aroman38","contacts":[{"id":39,"clientId":38,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4810,"accountCredit":0,"accountOutstanding":4810,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#607d8b","addressGpsLat":21.22987,"addressGpsLon":-101.0648115,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1985,"clientId":38,"number":"001935","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1988,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":37,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGELICA","clientLastName":"ROMAN","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:40.743180] [notice] Logging level set to:debug +[2025-05-31 16:00:40.743237] [debug] valor del webhook: {"uuid":"7b54927b-b6ba-4d0a-9561-d0b3df60821e","changeType":"draft_approved","entity":"invoice","entityId":"1986","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1986,"clientId":62,"number":"001936","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1989,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":61,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"BERNAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:40.886604] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:40.886653] [debug] Valor de JSON: {"uuid":"7b54927b-b6ba-4d0a-9561-d0b3df60821e","changeType":"draft_approved","entity":"invoice","entityId":"1986","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1986,"clientId":62,"number":"001936","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1989,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":61,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"BERNAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:40.886744] [debug] Aprobación de Factura + +[2025-05-31 16:00:40.886786] [debug] {"uuid":"7b54927b-b6ba-4d0a-9561-d0b3df60821e","changeType":"draft_approved","entity":"invoice","entityId":1986,"message":null,"clientId":62,"eventName":"invoice.draft_approved","clientData":{"id":62,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TRANCAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TRANCAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"DANIEL","lastName":"BERNAL","username":"dbernal62","contacts":[{"id":63,"clientId":62,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ff5722","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1986,"clientId":62,"number":"001936","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1989,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":61,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"BERNAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:42.017618] [notice] Logging level set to:debug +[2025-05-31 16:00:42.017679] [debug] valor del webhook: {"uuid":"9281b28a-7c45-43ee-9c59-7f883d8c603b","changeType":"draft_approved","entity":"invoice","entityId":"1987","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1987,"clientId":82,"number":"001937","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1990,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":81,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AGUSTINA","clientLastName":"PERICLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:42.149447] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:42.149499] [debug] Valor de JSON: {"uuid":"9281b28a-7c45-43ee-9c59-7f883d8c603b","changeType":"draft_approved","entity":"invoice","entityId":"1987","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1987,"clientId":82,"number":"001937","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1990,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":81,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AGUSTINA","clientLastName":"PERICLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:42.149624] [debug] Aprobación de Factura + +[2025-05-31 16:00:42.149667] [debug] {"uuid":"9281b28a-7c45-43ee-9c59-7f883d8c603b","changeType":"draft_approved","entity":"invoice","entityId":1987,"message":null,"clientId":82,"eventName":"invoice.draft_approved","clientData":{"id":82,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"AGUSTINA","lastName":"PERICLES","username":"apericles82","contacts":[{"id":83,"clientId":82,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1987,"clientId":82,"number":"001937","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1990,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":81,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AGUSTINA","clientLastName":"PERICLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:43.281096] [notice] Logging level set to:debug +[2025-05-31 16:00:43.281178] [debug] valor del webhook: {"uuid":"1fb0df53-9fcf-4107-ac32-bfcc11b4b9d6","changeType":"draft_approved","entity":"invoice","entityId":"1988","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1988,"clientId":89,"number":"001938","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1991,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":88,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RIO LAJA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:43.432051] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:43.432120] [debug] Valor de JSON: {"uuid":"1fb0df53-9fcf-4107-ac32-bfcc11b4b9d6","changeType":"draft_approved","entity":"invoice","entityId":"1988","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1988,"clientId":89,"number":"001938","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1991,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":88,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RIO LAJA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:43.432218] [debug] Aprobación de Factura + +[2025-05-31 16:00:43.432260] [debug] {"uuid":"1fb0df53-9fcf-4107-ac32-bfcc11b4b9d6","changeType":"draft_approved","entity":"invoice","entityId":1988,"message":null,"clientId":89,"eventName":"invoice.draft_approved","clientData":{"id":89,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"RIO LAJA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"RIO LAJA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"TERESA","lastName":"SANCHEZ","username":"tsanchez89","contacts":[{"id":90,"clientId":89,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f9a825","addressGpsLat":21.2023922,"addressGpsLon":-100.9220375,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1988,"clientId":89,"number":"001938","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1991,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":88,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RIO LAJA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:44.578087] [notice] Logging level set to:debug +[2025-05-31 16:00:44.578145] [debug] valor del webhook: {"uuid":"d6424338-82f1-4ac9-99ef-4c4cb568afe4","changeType":"draft_approved","entity":"invoice","entityId":"1989","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1989,"clientId":45,"number":"001939","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1992,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":44,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALBERTO","clientLastName":"GRANADOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:44.740633] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:44.740686] [debug] Valor de JSON: {"uuid":"d6424338-82f1-4ac9-99ef-4c4cb568afe4","changeType":"draft_approved","entity":"invoice","entityId":"1989","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1989,"clientId":45,"number":"001939","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1992,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":44,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALBERTO","clientLastName":"GRANADOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:44.740782] [debug] Aprobación de Factura + +[2025-05-31 16:00:44.740825] [debug] {"uuid":"d6424338-82f1-4ac9-99ef-4c4cb568afe4","changeType":"draft_approved","entity":"invoice","entityId":1989,"message":null,"clientId":45,"eventName":"invoice.draft_approved","clientData":{"id":45,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALBERTO","lastName":"GRANADOS","username":"agranados45","contacts":[{"id":46,"clientId":45,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":98,"clientId":45,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtN1E1ePcRAA689","clientZoneVisible":true},{"id":99,"clientId":45,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"9271357829475893","clientZoneVisible":true}],"accountBalance":-4810,"accountCredit":0,"accountOutstanding":4810,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ff9800","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1989,"clientId":45,"number":"001939","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1992,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":44,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALBERTO","clientLastName":"GRANADOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:45.890940] [notice] Logging level set to:debug +[2025-05-31 16:00:45.891062] [debug] valor del webhook: {"uuid":"62c562ca-a4ad-4d38-b5b5-daacbeba5577","changeType":"draft_approved","entity":"invoice","entityId":"1990","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1990,"clientId":100,"number":"001940","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1993,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":99,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RENE","clientLastName":"BUSTOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:46.032316] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:46.032373] [debug] Valor de JSON: {"uuid":"62c562ca-a4ad-4d38-b5b5-daacbeba5577","changeType":"draft_approved","entity":"invoice","entityId":"1990","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1990,"clientId":100,"number":"001940","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1993,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":99,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RENE","clientLastName":"BUSTOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:46.032500] [debug] Aprobación de Factura + +[2025-05-31 16:00:46.032546] [debug] {"uuid":"62c562ca-a4ad-4d38-b5b5-daacbeba5577","changeType":"draft_approved","entity":"invoice","entityId":1990,"message":null,"clientId":100,"eventName":"invoice.draft_approved","clientData":{"id":100,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"RENE","lastName":"BUSTOS","username":"rbustos00","contacts":[{"id":101,"clientId":100,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#0277bd","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1990,"clientId":100,"number":"001940","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1993,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":99,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RENE","clientLastName":"BUSTOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:47.176789] [notice] Logging level set to:debug +[2025-05-31 16:00:47.176843] [debug] valor del webhook: {"uuid":"36472f0a-847c-4eaf-8fae-b58a3a92f324","changeType":"draft_approved","entity":"invoice","entityId":"1991","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1991,"clientId":10,"number":"001941","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1994,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":10,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CARLOS","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:47.319675] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:47.319731] [debug] Valor de JSON: {"uuid":"36472f0a-847c-4eaf-8fae-b58a3a92f324","changeType":"draft_approved","entity":"invoice","entityId":"1991","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1991,"clientId":10,"number":"001941","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1994,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":10,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CARLOS","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:47.319830] [debug] Aprobación de Factura + +[2025-05-31 16:00:47.319873] [debug] {"uuid":"36472f0a-847c-4eaf-8fae-b58a3a92f324","changeType":"draft_approved","entity":"invoice","entityId":1991,"message":null,"clientId":10,"eventName":"invoice.draft_approved","clientData":{"id":10,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"CARLOS","lastName":"MESA","username":"cmesa10","contacts":[{"id":11,"clientId":10,"email":null,"phone":"4425476911","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1001,"name":"WhatsApptmp"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00695c","addressGpsLat":21.1574,"addressGpsLon":-100.934617,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1991,"clientId":10,"number":"001941","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1994,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":10,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CARLOS","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:48.448971] [notice] Logging level set to:debug +[2025-05-31 16:00:48.449039] [debug] valor del webhook: {"uuid":"e9f56e12-ff78-422c-afc4-e295d62919a3","changeType":"draft_approved","entity":"invoice","entityId":"1992","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1992,"clientId":27,"number":"001942","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1995,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":26,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXIS","clientLastName":"DIAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA RITA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:48.576967] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:48.577018] [debug] Valor de JSON: {"uuid":"e9f56e12-ff78-422c-afc4-e295d62919a3","changeType":"draft_approved","entity":"invoice","entityId":"1992","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1992,"clientId":27,"number":"001942","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1995,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":26,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXIS","clientLastName":"DIAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA RITA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:48.577133] [debug] Aprobación de Factura + +[2025-05-31 16:00:48.577174] [debug] {"uuid":"e9f56e12-ff78-422c-afc4-e295d62919a3","changeType":"draft_approved","entity":"invoice","entityId":1992,"message":null,"clientId":27,"eventName":"invoice.draft_approved","clientData":{"id":27,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA RITA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA RITA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALEXIS","lastName":"DIAZ","username":"adiaz27","contacts":[{"id":28,"clientId":27,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4810,"accountCredit":0,"accountOutstanding":4810,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ad1457","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1992,"clientId":27,"number":"001942","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1995,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":26,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXIS","clientLastName":"DIAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA RITA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:49.722793] [notice] Logging level set to:debug +[2025-05-31 16:00:49.722877] [debug] valor del webhook: {"uuid":"3469426c-23c0-4db5-ad5a-88418082fd25","changeType":"draft_approved","entity":"invoice","entityId":"1993","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1993,"clientId":19,"number":"001943","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1996,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":18,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARIA","clientLastName":"RODRIGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:49.872124] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:49.872183] [debug] Valor de JSON: {"uuid":"3469426c-23c0-4db5-ad5a-88418082fd25","changeType":"draft_approved","entity":"invoice","entityId":"1993","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1993,"clientId":19,"number":"001943","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1996,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":18,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARIA","clientLastName":"RODRIGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:49.872291] [debug] Aprobación de Factura + +[2025-05-31 16:00:49.872349] [debug] {"uuid":"3469426c-23c0-4db5-ad5a-88418082fd25","changeType":"draft_approved","entity":"invoice","entityId":1993,"message":null,"clientId":19,"eventName":"invoice.draft_approved","clientData":{"id":19,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MARIA","lastName":"RODRIGUEZ","username":"mrodriguez19","contacts":[{"id":20,"clientId":19,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-9933.33,"accountCredit":0,"accountOutstanding":9933.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ff5722","addressGpsLat":21.151597,"addressGpsLon":-100.9367183,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1993,"clientId":19,"number":"001943","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1996,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":18,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARIA","clientLastName":"RODRIGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:51.013113] [notice] Logging level set to:debug +[2025-05-31 16:00:51.013169] [debug] valor del webhook: {"uuid":"409f43fd-87ac-4ed8-8523-611759cbe723","changeType":"draft_approved","entity":"invoice","entityId":"1994","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1994,"clientId":63,"number":"001944","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1997,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":62,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONELA","clientLastName":"ROBLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:51.150394] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:51.150449] [debug] Valor de JSON: {"uuid":"409f43fd-87ac-4ed8-8523-611759cbe723","changeType":"draft_approved","entity":"invoice","entityId":"1994","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1994,"clientId":63,"number":"001944","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1997,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":62,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONELA","clientLastName":"ROBLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:51.150562] [debug] Aprobación de Factura + +[2025-05-31 16:00:51.150604] [debug] {"uuid":"409f43fd-87ac-4ed8-8523-611759cbe723","changeType":"draft_approved","entity":"invoice","entityId":1994,"message":null,"clientId":63,"eventName":"invoice.draft_approved","clientData":{"id":63,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ELIAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ELIAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANTONELA","lastName":"ROBLES","username":"arobles63","contacts":[{"id":64,"clientId":63,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ffb300","addressGpsLat":21.2516667,"addressGpsLon":-101.0924998,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1994,"clientId":63,"number":"001944","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1997,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":62,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONELA","clientLastName":"ROBLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:52.312581] [notice] Logging level set to:debug +[2025-05-31 16:00:52.312659] [debug] valor del webhook: {"uuid":"2ba61d64-7aba-4d83-af52-af0f62727dd2","changeType":"draft_approved","entity":"invoice","entityId":"1995","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1995,"clientId":48,"number":"001945","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1998,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":47,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ISELA","clientLastName":"AZPEITIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTIAGUILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:52.445229] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:52.445278] [debug] Valor de JSON: {"uuid":"2ba61d64-7aba-4d83-af52-af0f62727dd2","changeType":"draft_approved","entity":"invoice","entityId":"1995","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1995,"clientId":48,"number":"001945","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1998,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":47,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ISELA","clientLastName":"AZPEITIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTIAGUILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:52.445369] [debug] Aprobación de Factura + +[2025-05-31 16:00:52.445415] [debug] {"uuid":"2ba61d64-7aba-4d83-af52-af0f62727dd2","changeType":"draft_approved","entity":"invoice","entityId":1995,"message":null,"clientId":48,"eventName":"invoice.draft_approved","clientData":{"id":48,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTIAGUILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTIAGUILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ISELA","lastName":"AZPEITIA","username":"iazpeitia48","contacts":[{"id":49,"clientId":48,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":104,"clientId":48,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtN1VUj6JXVCcUu","clientZoneVisible":true},{"id":105,"clientId":48,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"4896043950637164","clientZoneVisible":true}],"accountBalance":-7800,"accountCredit":0,"accountOutstanding":7800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#558b2f","addressGpsLat":21.0165209,"addressGpsLon":-100.9831731,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1995,"clientId":48,"number":"001945","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1998,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":47,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ISELA","clientLastName":"AZPEITIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTIAGUILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:53.588577] [notice] Logging level set to:debug +[2025-05-31 16:00:53.588653] [debug] valor del webhook: {"uuid":"b2188509-210f-4e98-81f3-a42eda05396d","changeType":"draft_approved","entity":"invoice","entityId":"1996","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1996,"clientId":79,"number":"001946","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1999,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":78,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"ESPONIZA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:53.715104] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:53.715158] [debug] Valor de JSON: {"uuid":"b2188509-210f-4e98-81f3-a42eda05396d","changeType":"draft_approved","entity":"invoice","entityId":"1996","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1996,"clientId":79,"number":"001946","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1999,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":78,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"ESPONIZA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:53.715254] [debug] Aprobación de Factura + +[2025-05-31 16:00:53.715296] [debug] {"uuid":"b2188509-210f-4e98-81f3-a42eda05396d","changeType":"draft_approved","entity":"invoice","entityId":1996,"message":null,"clientId":79,"eventName":"invoice.draft_approved","clientData":{"id":79,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LAS YERBAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LAS YERBAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"SEBASTIAN","lastName":"ESPONIZA","username":"sesponiza79","contacts":[{"id":80,"clientId":79,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-8000,"accountCredit":0,"accountOutstanding":8000,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2e7d32","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1996,"clientId":79,"number":"001946","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1999,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":78,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"ESPONIZA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:54.843694] [notice] Logging level set to:debug +[2025-05-31 16:00:54.843791] [debug] valor del webhook: {"uuid":"45577f52-5819-47b9-8722-fff35b21e4a1","changeType":"draft_approved","entity":"invoice","entityId":"1997","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1997,"clientId":53,"number":"001947","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2000,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":52,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONIO","clientLastName":"CHAVEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:54.988593] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:54.988651] [debug] Valor de JSON: {"uuid":"45577f52-5819-47b9-8722-fff35b21e4a1","changeType":"draft_approved","entity":"invoice","entityId":"1997","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1997,"clientId":53,"number":"001947","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2000,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":52,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONIO","clientLastName":"CHAVEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:54.988771] [debug] Aprobación de Factura + +[2025-05-31 16:00:54.988816] [debug] {"uuid":"45577f52-5819-47b9-8722-fff35b21e4a1","changeType":"draft_approved","entity":"invoice","entityId":1997,"message":null,"clientId":53,"eventName":"invoice.draft_approved","clientData":{"id":53,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA VENTA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA VENTA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANTONIO","lastName":"CHAVEZ","username":"achavez53","contacts":[{"id":54,"clientId":53,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef5350","addressGpsLat":21.1197222,"addressGpsLon":-100.7872222,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1997,"clientId":53,"number":"001947","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2000,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":52,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONIO","clientLastName":"CHAVEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:56.129044] [notice] Logging level set to:debug +[2025-05-31 16:00:56.129117] [debug] valor del webhook: {"uuid":"c1a5f0e4-4f09-4fc8-99e8-dc94ce3093fb","changeType":"draft_approved","entity":"invoice","entityId":"1998","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1998,"clientId":76,"number":"001948","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2001,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":75,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"RANGEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:56.262161] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:56.262217] [debug] Valor de JSON: {"uuid":"c1a5f0e4-4f09-4fc8-99e8-dc94ce3093fb","changeType":"draft_approved","entity":"invoice","entityId":"1998","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1998,"clientId":76,"number":"001948","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2001,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":75,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"RANGEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:56.262314] [debug] Aprobación de Factura + +[2025-05-31 16:00:56.262356] [debug] {"uuid":"c1a5f0e4-4f09-4fc8-99e8-dc94ce3093fb","changeType":"draft_approved","entity":"invoice","entityId":1998,"message":null,"clientId":76,"eventName":"invoice.draft_approved","clientData":{"id":76,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TRANCAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TRANCAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"EDGAR","lastName":"RANGEL","username":"erangel76","contacts":[{"id":77,"clientId":76,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00695c","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1998,"clientId":76,"number":"001948","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2001,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":75,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"RANGEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:57.409401] [notice] Logging level set to:debug +[2025-05-31 16:00:57.409499] [debug] valor del webhook: {"uuid":"b4e82dd2-6e5d-40aa-88c2-473f0ce8b555","changeType":"draft_approved","entity":"invoice","entityId":"1999","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1999,"clientId":73,"number":"001949","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2002,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":72,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ERICK","clientLastName":"VAZQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:57.547655] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:57.547709] [debug] Valor de JSON: {"uuid":"b4e82dd2-6e5d-40aa-88c2-473f0ce8b555","changeType":"draft_approved","entity":"invoice","entityId":"1999","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1999,"clientId":73,"number":"001949","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2002,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":72,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ERICK","clientLastName":"VAZQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:57.547849] [debug] Aprobación de Factura + +[2025-05-31 16:00:57.547895] [debug] {"uuid":"b4e82dd2-6e5d-40aa-88c2-473f0ce8b555","changeType":"draft_approved","entity":"invoice","entityId":1999,"message":null,"clientId":73,"eventName":"invoice.draft_approved","clientData":{"id":73,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ERICK","lastName":"VAZQUEZ","username":"evazquez73","contacts":[{"id":74,"clientId":73,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#d81b60","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1999,"clientId":73,"number":"001949","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2002,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":72,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ERICK","clientLastName":"VAZQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:58.688282] [notice] Logging level set to:debug +[2025-05-31 16:00:58.688349] [debug] valor del webhook: {"uuid":"ed1074f6-6ba5-4ed3-ba7f-796be44f3204","changeType":"draft_approved","entity":"invoice","entityId":"2000","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2000,"clientId":65,"number":"001950","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2003,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":64,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS MONCADA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:58.826920] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:00:58.826977] [debug] Valor de JSON: {"uuid":"ed1074f6-6ba5-4ed3-ba7f-796be44f3204","changeType":"draft_approved","entity":"invoice","entityId":"2000","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2000,"clientId":65,"number":"001950","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2003,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":64,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS MONCADA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:00:58.827105] [debug] Aprobación de Factura + +[2025-05-31 16:00:58.827151] [debug] {"uuid":"ed1074f6-6ba5-4ed3-ba7f-796be44f3204","changeType":"draft_approved","entity":"invoice","entityId":2000,"message":null,"clientId":65,"eventName":"invoice.draft_approved","clientData":{"id":65,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LOS MONCADA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LOS MONCADA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"SEBASTIAN","lastName":"MESA","username":"smesa65","contacts":[{"id":66,"clientId":65,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3949ab","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2000,"clientId":65,"number":"001950","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2003,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":64,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS MONCADA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:00:59.980782] [notice] Logging level set to:debug +[2025-05-31 16:00:59.980835] [debug] valor del webhook: {"uuid":"63ebb6d0-d7da-4121-8336-199005b8b23f","changeType":"draft_approved","entity":"invoice","entityId":"2001","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2001,"clientId":94,"number":"001951","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2004,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":93,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARTIN","clientLastName":"TREJO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:00.282042] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:00.282098] [debug] Valor de JSON: {"uuid":"63ebb6d0-d7da-4121-8336-199005b8b23f","changeType":"draft_approved","entity":"invoice","entityId":"2001","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2001,"clientId":94,"number":"001951","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2004,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":93,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARTIN","clientLastName":"TREJO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:00.282200] [debug] Aprobación de Factura + +[2025-05-31 16:01:00.282242] [debug] {"uuid":"63ebb6d0-d7da-4121-8336-199005b8b23f","changeType":"draft_approved","entity":"invoice","entityId":2001,"message":null,"clientId":94,"eventName":"invoice.draft_approved","clientData":{"id":94,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MARTIN","lastName":"TREJO","username":"mtrejo94","contacts":[{"id":95,"clientId":94,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00695c","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2001,"clientId":94,"number":"001951","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2004,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":93,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARTIN","clientLastName":"TREJO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:00.282270] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-05-31 16:01:00.282279] [info] Tipo de contacto normalizado: 'whatsapp' +Notificacion data: {"uuid":"63ebb6d0-d7da-4121-8336-199005b8b23f","changeType":"draft_approved","entity":"invoice","entityId":2001,"message":null,"clientId":94,"eventName":"invoice.draft_approved","clientData":{"id":94,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MARTIN","lastName":"TREJO","username":"mtrejo94","contacts":[{"id":95,"clientId":94,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00695c","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2001,"clientId":94,"number":"001951","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2004,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":93,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARTIN","clientLastName":"TREJO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":17,"clientId":94,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-01-31T15:59:03-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":22,"invoiceId":87,"paymentId":17,"creditNoteId":null,"refundId":null,"amount":200}],"creditAmount":0,"userId":1000,"attributes":[]}] + +Nombre del cliente que se va a actualizar: MARTIN TREJO + +UUID: 92dd9fb15b8f4ff6860f8a32ea9bd7e4 + +JSON con los datos a actualizar: {"name":"MARTIN TREJO","custom_fields":{"Cliente":94,"Domicilio":"\ud83d\udccd Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Nombre":"\ud83d\udc64 MARTIN TREJO","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/94","Saldo Actual":"\ud83d\udcb25100 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 200","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"94\",\"Domicilio\": \"\"Nombre\": \"MARTIN TREJO\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/94\",\"Saldo Actual\": \"\ud83d\udcb25100 pendientes\",\"Monto Ultimo Pago\": \"$ 200\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 31\/01\/2024 15:59 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"31\/05\/2025 10:01\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 31\/01\/2024 15:59 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 31\/05\/2025 10:01","Clabe Interbancaria":null,"Site":"","Antena\/Sectorial":""}} + +JSON con los datos a actualizar del resumen: {"Cliente": "94","Domicilio": ""Nombre": "MARTIN TREJO","URL": "https://sistema.siip.mx/crm/client/94","Saldo Actual": "💲5100 pendientes","Monto Ultimo Pago": "$ 200","Estado": "Suspendido","Fecha Ultimo Pago": " 31/01/2024 15:59 con Efectivo 💵","Fecha Ultima Actualizacion": "31/05/2025 10:01","Clabe Interbancaria": "","Site": "","Antena/Sectorial": ""} + +Response Patch CallBell: {"contact":{"uuid":"92dd9fb15b8f4ff6860f8a32ea9bd7e4","name":"MARTIN TREJO","phoneNumber":"5214181091933","avatarUrl":null,"createdAt":"2023-12-22T16:55:50Z","closedAt":"2024-07-11T22:49:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/92dd9fb15b8f4ff6860f8a32ea9bd7e4","conversationHref":"https://dash.callbell.eu/chat/04a3e26142e0431789260acb0b60a3ac","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"124180650659256341","Estado":"🔴 Suspendido","Antena/Sectorial":"Sec3-Sb 172.16.55.13/24","Site":"SBARB","Domicilio":"📍 Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Resumen":"{\"Cliente\": \"94\",\"Domicilio\": \"\"Nombre\": \"MARTIN TREJO\",\"URL\": \"https://sistema.siip.mx/crm/client/94\",\"Saldo Actual\": \"💲5100 pendientes\",\"Monto Ultimo Pago\": \"$ 200\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 31/01/2024 15:59 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/05/2025 10:01\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","URL":"🌐 https://sistema.siip.mx/crm/client/94","Fecha Ultima Actualizacion":"📆🔄️ 31/05/2025 10:01","Nombre":"👤 MARTIN TREJO","Cliente":"94","Saldo Actual":"💲5100 pendientes","Monto Ultimo Pago":"💲 200","Fecha Ultimo Pago":"📆💸 31/01/2024 15:59 con Efectivo 💵"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +Response 2 Patch CallBell: {"contact":{"uuid":"92dd9fb15b8f4ff6860f8a32ea9bd7e4","name":"MARTIN TREJO","phoneNumber":"5214181091933","avatarUrl":null,"createdAt":"2023-12-22T16:55:50Z","closedAt":"2024-07-11T22:49:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/92dd9fb15b8f4ff6860f8a32ea9bd7e4","conversationHref":"https://dash.callbell.eu/chat/04a3e26142e0431789260acb0b60a3ac","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"124180650659256341","Estado":"🔴 Suspendido","Antena/Sectorial":"Sec3-Sb 172.16.55.13/24","Site":"SBARB","Domicilio":"📍 Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Resumen":"{\"Cliente\": \"94\",\"Domicilio\": \"\"Nombre\": \"MARTIN TREJO\",\"URL\": \"https://sistema.siip.mx/crm/client/94\",\"Saldo Actual\": \"💲5100 pendientes\",\"Monto Ultimo Pago\": \"$ 200\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 31/01/2024 15:59 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/05/2025 10:01\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","URL":"🌐 https://sistema.siip.mx/crm/client/94","Fecha Ultima Actualizacion":"📆🔄️ 31/05/2025 10:01","Nombre":"👤 MARTIN TREJO","Cliente":"94","Saldo Actual":"💲5100 pendientes","Monto Ultimo Pago":"💲 200","Fecha Ultimo Pago":"📆💸 31/01/2024 15:59 con Efectivo 💵"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-05-31 16:01:03.105777] [notice] Logging level set to:debug +[2025-05-31 16:01:03.105830] [debug] valor del webhook: {"uuid":"c8b96ea2-2f56-483a-9a80-f2a0d88a0d2c","changeType":"draft_approved","entity":"invoice","entityId":"2002","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2002,"clientId":33,"number":"001952","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2005,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":32,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURELIA","clientLastName":"BARAJAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA CECILIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:03.267775] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:03.267824] [debug] Valor de JSON: {"uuid":"c8b96ea2-2f56-483a-9a80-f2a0d88a0d2c","changeType":"draft_approved","entity":"invoice","entityId":"2002","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2002,"clientId":33,"number":"001952","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2005,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":32,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURELIA","clientLastName":"BARAJAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA CECILIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:03.270883] [debug] Aprobación de Factura + +[2025-05-31 16:01:03.270946] [debug] {"uuid":"c8b96ea2-2f56-483a-9a80-f2a0d88a0d2c","changeType":"draft_approved","entity":"invoice","entityId":2002,"message":null,"clientId":33,"eventName":"invoice.draft_approved","clientData":{"id":33,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA CECILIA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA CECILIA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"AURELIA","lastName":"BARAJAS","username":"abarajas33","contacts":[{"id":34,"clientId":33,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5350,"accountCredit":0,"accountOutstanding":5350,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#8bc34a","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2002,"clientId":33,"number":"001952","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2005,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":32,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURELIA","clientLastName":"BARAJAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA CECILIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:04.274769] [notice] Logging level set to:debug +[2025-05-31 16:01:04.274862] [debug] valor del webhook: {"uuid":"d9fee43e-236c-46cd-a481-fa70e30d6798","changeType":"draft_approved","entity":"invoice","entityId":"2003","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2003,"clientId":59,"number":"001953","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2006,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":58,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAMSES","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GUSANO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:04.407068] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:04.407121] [debug] Valor de JSON: {"uuid":"d9fee43e-236c-46cd-a481-fa70e30d6798","changeType":"draft_approved","entity":"invoice","entityId":"2003","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2003,"clientId":59,"number":"001953","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2006,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":58,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAMSES","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GUSANO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:04.407232] [debug] Aprobación de Factura + +[2025-05-31 16:01:04.407277] [debug] {"uuid":"d9fee43e-236c-46cd-a481-fa70e30d6798","changeType":"draft_approved","entity":"invoice","entityId":2003,"message":null,"clientId":59,"eventName":"invoice.draft_approved","clientData":{"id":59,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"GUSANO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"GUSANO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"RAMSES","lastName":"HERRERA","username":"rherrera59","contacts":[{"id":60,"clientId":59,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00acc1","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2003,"clientId":59,"number":"001953","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2006,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":58,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAMSES","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GUSANO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:05.544384] [notice] Logging level set to:debug +[2025-05-31 16:01:05.544476] [debug] valor del webhook: {"uuid":"13764763-f5ca-4f80-8045-138cb9fbd014","changeType":"draft_approved","entity":"invoice","entityId":"2004","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2004,"clientId":37,"number":"001954","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2007,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":36,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGEL","clientLastName":"ARVIZU","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA SOLEDAD","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:05.683237] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:05.683288] [debug] Valor de JSON: {"uuid":"13764763-f5ca-4f80-8045-138cb9fbd014","changeType":"draft_approved","entity":"invoice","entityId":"2004","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2004,"clientId":37,"number":"001954","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2007,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":36,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGEL","clientLastName":"ARVIZU","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA SOLEDAD","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:05.683393] [debug] Aprobación de Factura + +[2025-05-31 16:01:05.683438] [debug] {"uuid":"13764763-f5ca-4f80-8045-138cb9fbd014","changeType":"draft_approved","entity":"invoice","entityId":2004,"message":null,"clientId":37,"eventName":"invoice.draft_approved","clientData":{"id":37,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA SOLEDAD","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA SOLEDAD, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANGEL","lastName":"ARVIZU","username":"aarvizu37","contacts":[{"id":38,"clientId":37,"email":null,"phone":"4181818706","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4810,"accountCredit":0,"accountOutstanding":4810,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#009688","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2004,"clientId":37,"number":"001954","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2007,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":36,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGEL","clientLastName":"ARVIZU","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA SOLEDAD","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:06.852404] [notice] Logging level set to:debug +[2025-05-31 16:01:06.852459] [debug] valor del webhook: {"uuid":"0ecf9162-f9dd-4836-8632-31e6cf9c5c22","changeType":"draft_approved","entity":"invoice","entityId":"2005","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2005,"clientId":71,"number":"001955","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2008,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":70,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MNARIA","clientLastName":"ALVAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:06.993736] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:06.993791] [debug] Valor de JSON: {"uuid":"0ecf9162-f9dd-4836-8632-31e6cf9c5c22","changeType":"draft_approved","entity":"invoice","entityId":"2005","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2005,"clientId":71,"number":"001955","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2008,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":70,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MNARIA","clientLastName":"ALVAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:06.993913] [debug] Aprobación de Factura + +[2025-05-31 16:01:06.993961] [debug] {"uuid":"0ecf9162-f9dd-4836-8632-31e6cf9c5c22","changeType":"draft_approved","entity":"invoice","entityId":2005,"message":null,"clientId":71,"eventName":"invoice.draft_approved","clientData":{"id":71,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MNARIA","lastName":"ALVAREZ","username":"malvarez71","contacts":[{"id":72,"clientId":71,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-900,"accountCredit":0,"accountOutstanding":900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#4caf50","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2005,"clientId":71,"number":"001955","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2008,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":70,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MNARIA","clientLastName":"ALVAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:08.151171] [notice] Logging level set to:debug +[2025-05-31 16:01:08.151236] [debug] valor del webhook: {"uuid":"cb25e17e-6813-458f-998f-f953f2edb651","changeType":"draft_approved","entity":"invoice","entityId":"2006","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2006,"clientId":96,"number":"001956","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2009,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":95,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PAMELA","clientLastName":"RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:08.280680] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:08.280735] [debug] Valor de JSON: {"uuid":"cb25e17e-6813-458f-998f-f953f2edb651","changeType":"draft_approved","entity":"invoice","entityId":"2006","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2006,"clientId":96,"number":"001956","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2009,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":95,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PAMELA","clientLastName":"RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:08.280839] [debug] Aprobación de Factura + +[2025-05-31 16:01:08.280883] [debug] {"uuid":"cb25e17e-6813-458f-998f-f953f2edb651","changeType":"draft_approved","entity":"invoice","entityId":2006,"message":null,"clientId":96,"eventName":"invoice.draft_approved","clientData":{"id":96,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"PAMELA","lastName":"RAMIREZ","username":"pramirez96","contacts":[{"id":97,"clientId":96,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-1200,"accountCredit":0,"accountOutstanding":1200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#c0ca33","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2006,"clientId":96,"number":"001956","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2009,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":95,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PAMELA","clientLastName":"RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:09.461338] [notice] Logging level set to:debug +[2025-05-31 16:01:09.461410] [debug] valor del webhook: {"uuid":"08fa89e6-8204-48a2-91aa-928d1fe3542e","changeType":"draft_approved","entity":"invoice","entityId":"2007","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2007,"clientId":23,"number":"001957","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2010,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":22,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OSCAR","clientLastName":"GUERRERO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TABASCO #45, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:09.603167] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:09.603220] [debug] Valor de JSON: {"uuid":"08fa89e6-8204-48a2-91aa-928d1fe3542e","changeType":"draft_approved","entity":"invoice","entityId":"2007","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2007,"clientId":23,"number":"001957","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2010,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":22,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OSCAR","clientLastName":"GUERRERO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TABASCO #45, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:09.603338] [debug] Aprobación de Factura + +[2025-05-31 16:01:09.603384] [debug] {"uuid":"08fa89e6-8204-48a2-91aa-928d1fe3542e","changeType":"draft_approved","entity":"invoice","entityId":2007,"message":null,"clientId":23,"eventName":"invoice.draft_approved","clientData":{"id":23,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TABASCO #45, ZONA CENTRO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TABASCO #45, ZONA CENTRO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"OSCAR","lastName":"GUERRERO","username":"oguerrero23","contacts":[{"id":24,"clientId":23,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#283593","addressGpsLat":21.1550814,"addressGpsLon":-100.9341575,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2007,"clientId":23,"number":"001957","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2010,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":22,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OSCAR","clientLastName":"GUERRERO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TABASCO #45, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:10.743680] [notice] Logging level set to:debug +[2025-05-31 16:01:10.743789] [debug] valor del webhook: {"uuid":"0062b184-6b68-4ae6-9cb6-211ad73843ad","changeType":"draft_approved","entity":"invoice","entityId":"2008","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2008,"clientId":55,"number":"001958","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2011,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":54,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JOSE","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:10.873435] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:10.873491] [debug] Valor de JSON: {"uuid":"0062b184-6b68-4ae6-9cb6-211ad73843ad","changeType":"draft_approved","entity":"invoice","entityId":"2008","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2008,"clientId":55,"number":"001958","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2011,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":54,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JOSE","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:10.873596] [debug] Aprobación de Factura + +[2025-05-31 16:01:10.873642] [debug] {"uuid":"0062b184-6b68-4ae6-9cb6-211ad73843ad","changeType":"draft_approved","entity":"invoice","entityId":2008,"message":null,"clientId":55,"eventName":"invoice.draft_approved","clientData":{"id":55,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL MEZQUITAL","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL MEZQUITAL, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JOSE","lastName":"SANCHEZ","username":"jsanchez55","contacts":[{"id":56,"clientId":55,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#8e24aa","addressGpsLat":21.1081412,"addressGpsLon":-100.9422033,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2008,"clientId":55,"number":"001958","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2011,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":54,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JOSE","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:11.990926] [notice] Logging level set to:debug +[2025-05-31 16:01:11.991055] [debug] valor del webhook: {"uuid":"10e397ab-530f-4c1a-9bf0-0f184fbc25c8","changeType":"draft_approved","entity":"invoice","entityId":"2009","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2009,"clientId":64,"number":"001959","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2012,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":63,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"LANDEROS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:12.129261] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:12.129314] [debug] Valor de JSON: {"uuid":"10e397ab-530f-4c1a-9bf0-0f184fbc25c8","changeType":"draft_approved","entity":"invoice","entityId":"2009","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2009,"clientId":64,"number":"001959","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2012,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":63,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"LANDEROS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:12.129412] [debug] Aprobación de Factura + +[2025-05-31 16:01:12.129461] [debug] {"uuid":"10e397ab-530f-4c1a-9bf0-0f184fbc25c8","changeType":"draft_approved","entity":"invoice","entityId":2009,"message":null,"clientId":64,"eventName":"invoice.draft_approved","clientData":{"id":64,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ELIAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ELIAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"OMAR","lastName":"LANDEROS","username":"olanderos64","contacts":[{"id":65,"clientId":64,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1565c0","addressGpsLat":21.2516667,"addressGpsLon":-101.0924998,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2009,"clientId":64,"number":"001959","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2012,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":63,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"LANDEROS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:13.298114] [notice] Logging level set to:debug +[2025-05-31 16:01:13.298223] [debug] valor del webhook: {"uuid":"7e7bd76b-6aea-49f2-9575-d75e929ae923","changeType":"draft_approved","entity":"invoice","entityId":"2010","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2010,"clientId":57,"number":"001960","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2013,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":56,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SANDRO","clientLastName":"MARQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:13.428037] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:13.428092] [debug] Valor de JSON: {"uuid":"7e7bd76b-6aea-49f2-9575-d75e929ae923","changeType":"draft_approved","entity":"invoice","entityId":"2010","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2010,"clientId":57,"number":"001960","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2013,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":56,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SANDRO","clientLastName":"MARQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:13.428212] [debug] Aprobación de Factura + +[2025-05-31 16:01:13.428261] [debug] {"uuid":"7e7bd76b-6aea-49f2-9575-d75e929ae923","changeType":"draft_approved","entity":"invoice","entityId":2010,"message":null,"clientId":57,"eventName":"invoice.draft_approved","clientData":{"id":57,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"SANDRO","lastName":"MARQUEZ","username":"smarquez57","contacts":[{"id":58,"clientId":57,"email":null,"phone":"181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f9a825","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2010,"clientId":57,"number":"001960","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2013,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":56,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SANDRO","clientLastName":"MARQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:14.580276] [notice] Logging level set to:debug +[2025-05-31 16:01:14.580331] [debug] valor del webhook: {"uuid":"17443149-d984-4d60-b842-3cbe3d85d400","changeType":"draft_approved","entity":"invoice","entityId":"2011","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2011,"clientId":52,"number":"001961","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2014,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":51,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RODRIGO","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL CARMEN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:14.703881] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:14.703929] [debug] Valor de JSON: {"uuid":"17443149-d984-4d60-b842-3cbe3d85d400","changeType":"draft_approved","entity":"invoice","entityId":"2011","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2011,"clientId":52,"number":"001961","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2014,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":51,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RODRIGO","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL CARMEN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:14.704032] [debug] Aprobación de Factura + +[2025-05-31 16:01:14.704076] [debug] {"uuid":"17443149-d984-4d60-b842-3cbe3d85d400","changeType":"draft_approved","entity":"invoice","entityId":2011,"message":null,"clientId":52,"eventName":"invoice.draft_approved","clientData":{"id":52,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL CARMEN","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":null,"fullAddress":"EL CARMEN, Dolores Hidalgo Cuna de la Independencia Nacional","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"RODRIGO","lastName":"PE\u00d1A","username":"rpe\u00d1a52","contacts":[{"id":53,"clientId":52,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#6a1b9a","addressGpsLat":21.1534937,"addressGpsLon":-100.9123301,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2011,"clientId":52,"number":"001961","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2014,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":51,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RODRIGO","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL CARMEN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:15.914721] [notice] Logging level set to:debug +[2025-05-31 16:01:15.914778] [debug] valor del webhook: {"uuid":"5427d934-1a93-47fc-9a41-177c58a069d9","changeType":"draft_approved","entity":"invoice","entityId":"2012","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2012,"clientId":14,"number":"001962","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2015,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":14,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDRO","clientLastName":"ARIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:16.109034] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:16.109086] [debug] Valor de JSON: {"uuid":"5427d934-1a93-47fc-9a41-177c58a069d9","changeType":"draft_approved","entity":"invoice","entityId":"2012","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2012,"clientId":14,"number":"001962","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2015,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":14,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDRO","clientLastName":"ARIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:16.109189] [debug] Aprobación de Factura + +[2025-05-31 16:01:16.109232] [debug] {"uuid":"5427d934-1a93-47fc-9a41-177c58a069d9","changeType":"draft_approved","entity":"invoice","entityId":2012,"message":null,"clientId":14,"eventName":"invoice.draft_approved","clientData":{"id":14,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LINDAVISTA","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LINDAVISTA, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALEXANDRO","lastName":"ARIAS","username":"aarias14","contacts":[{"id":15,"clientId":14,"email":null,"phone":"+1 682-260-4759","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-3600,"accountCredit":0,"accountOutstanding":3600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#546e7a","addressGpsLat":21.1499891,"addressGpsLon":-100.9582493,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2012,"clientId":14,"number":"001962","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2015,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":14,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDRO","clientLastName":"ARIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:16.109271] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-05-31 16:01:16.109281] [info] Tipo de contacto normalizado: 'whatsapp' +Notificacion data: {"uuid":"5427d934-1a93-47fc-9a41-177c58a069d9","changeType":"draft_approved","entity":"invoice","entityId":2012,"message":null,"clientId":14,"eventName":"invoice.draft_approved","clientData":{"id":14,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LINDAVISTA","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LINDAVISTA, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALEXANDRO","lastName":"ARIAS","username":"aarias14","contacts":[{"id":15,"clientId":14,"email":null,"phone":"+1 682-260-4759","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-3600,"accountCredit":0,"accountOutstanding":3600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#546e7a","addressGpsLat":21.1499891,"addressGpsLon":-100.9582493,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2012,"clientId":14,"number":"001962","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2015,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":14,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDRO","clientLastName":"ARIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":15,"clientId":14,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-01-29T12:00:41-0600","amount":1800,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":17,"invoiceId":23,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300},{"id":19,"invoiceId":67,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300},{"id":36,"invoiceId":126,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300},{"id":122,"invoiceId":318,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300},{"id":125,"invoiceId":382,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300},{"id":312,"invoiceId":582,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1000,"attributes":[]}] + +Nombre del cliente que se va a actualizar: ALEXANDRO ARIAS + +UUID: be760b254a694e8b94b002789d68d388 + +JSON con los datos a actualizar: {"name":"ALEXANDRO ARIAS","custom_fields":{"Cliente":14,"Domicilio":"\ud83d\udccd LINDAVISTA, Dolores Hidalgo, 37800","Nombre":"\ud83d\udc64 ALEXANDRO ARIAS","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/14","Saldo Actual":"\ud83d\udcb23600 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 1800","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"14\",\"Domicilio\": \"\"Nombre\": \"ALEXANDRO ARIAS\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/14\",\"Saldo Actual\": \"\ud83d\udcb23600 pendientes\",\"Monto Ultimo Pago\": \"$ 1800\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29\/01\/2024 12:00 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"31\/05\/2025 10:01\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 29\/01\/2024 12:00 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 31\/05\/2025 10:01","Clabe Interbancaria":null,"Site":"","Antena\/Sectorial":""}} + +JSON con los datos a actualizar del resumen: {"Cliente": "14","Domicilio": ""Nombre": "ALEXANDRO ARIAS","URL": "https://sistema.siip.mx/crm/client/14","Saldo Actual": "💲3600 pendientes","Monto Ultimo Pago": "$ 1800","Estado": "Suspendido","Fecha Ultimo Pago": " 29/01/2024 12:00 con Efectivo 💵","Fecha Ultima Actualizacion": "31/05/2025 10:01","Clabe Interbancaria": "","Site": "","Antena/Sectorial": ""} + +Response Patch CallBell: {"contact":{"uuid":"be760b254a694e8b94b002789d68d388","name":"ALEXANDRO ARIAS","phoneNumber":"+1 682-260-4759","avatarUrl":null,"createdAt":"2024-01-29T18:03:03Z","closedAt":"2024-01-29T18:32:46Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/be760b254a694e8b94b002789d68d388","conversationHref":"https://dash.callbell.eu/chat/b95896c60a7e4541b9d378d9d9ef938b","tags":[],"assignedUser":null,"customFields":{"Antena/Sectorial":"14","Nombre":"👤 ALEXANDRO ARIAS","Cliente":"14","Domicilio":"📍 LINDAVISTA, Dolores Hidalgo, 37800","Fecha Ultimo Pago":"📆💸 29/01/2024 12:00 con Efectivo 💵","Monto Ultimo Pago":"💲 1800","URL":"🌐 https://sistema.siip.mx/crm/client/14","Estado":"🔴 Suspendido","Resumen":"{\"Cliente\": \"14\",\"Domicilio\": \"\"Nombre\": \"ALEXANDRO ARIAS\",\"URL\": \"https://sistema.siip.mx/crm/client/14\",\"Saldo Actual\": \"💲3600 pendientes\",\"Monto Ultimo Pago\": \"$ 1800\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29/01/2024 12:00 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/05/2025 10:01\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Saldo Actual":"💲3600 pendientes","Fecha Ultima Actualizacion":"📆🔄️ 31/05/2025 10:01"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +Response 2 Patch CallBell: {"contact":{"uuid":"be760b254a694e8b94b002789d68d388","name":"ALEXANDRO ARIAS","phoneNumber":"+1 682-260-4759","avatarUrl":null,"createdAt":"2024-01-29T18:03:03Z","closedAt":"2024-01-29T18:32:46Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/be760b254a694e8b94b002789d68d388","conversationHref":"https://dash.callbell.eu/chat/b95896c60a7e4541b9d378d9d9ef938b","tags":[],"assignedUser":null,"customFields":{"Antena/Sectorial":"14","Nombre":"👤 ALEXANDRO ARIAS","Cliente":"14","Domicilio":"📍 LINDAVISTA, Dolores Hidalgo, 37800","Fecha Ultimo Pago":"📆💸 29/01/2024 12:00 con Efectivo 💵","Monto Ultimo Pago":"💲 1800","URL":"🌐 https://sistema.siip.mx/crm/client/14","Estado":"🔴 Suspendido","Resumen":"{\"Cliente\": \"14\",\"Domicilio\": \"\"Nombre\": \"ALEXANDRO ARIAS\",\"URL\": \"https://sistema.siip.mx/crm/client/14\",\"Saldo Actual\": \"💲3600 pendientes\",\"Monto Ultimo Pago\": \"$ 1800\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29/01/2024 12:00 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/05/2025 10:01\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Saldo Actual":"💲3600 pendientes","Fecha Ultima Actualizacion":"📆🔄️ 31/05/2025 10:01"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-05-31 16:01:18.751410] [notice] Logging level set to:debug +[2025-05-31 16:01:18.751462] [debug] valor del webhook: {"uuid":"5ffb63cf-316a-42ad-834b-eff8fe9875e4","changeType":"draft_approved","entity":"invoice","entityId":"2013","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2013,"clientId":15,"number":"001963","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2016,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":15,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"VILLEGAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:18.927114] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:18.927185] [debug] Valor de JSON: {"uuid":"5ffb63cf-316a-42ad-834b-eff8fe9875e4","changeType":"draft_approved","entity":"invoice","entityId":"2013","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2013,"clientId":15,"number":"001963","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2016,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":15,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"VILLEGAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:18.927299] [debug] Aprobación de Factura + +[2025-05-31 16:01:18.927349] [debug] {"uuid":"5ffb63cf-316a-42ad-834b-eff8fe9875e4","changeType":"draft_approved","entity":"invoice","entityId":2013,"message":null,"clientId":15,"eventName":"invoice.draft_approved","clientData":{"id":15,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"EDUARDO","lastName":"VILLEGAZ","username":"evillegaz15","contacts":[{"id":16,"clientId":15,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-12600,"accountCredit":0,"accountOutstanding":12600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#c0ca33","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2013,"clientId":15,"number":"001963","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2016,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":15,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"VILLEGAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:18.927392] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-05-31 16:01:18.928251] [info] Tipo de contacto normalizado: 'whatsapp' +Notificacion data: {"uuid":"5ffb63cf-316a-42ad-834b-eff8fe9875e4","changeType":"draft_approved","entity":"invoice","entityId":2013,"message":null,"clientId":15,"eventName":"invoice.draft_approved","clientData":{"id":15,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"EDUARDO","lastName":"VILLEGAZ","username":"evillegaz15","contacts":[{"id":16,"clientId":15,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-12600,"accountCredit":0,"accountOutstanding":12600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#c0ca33","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2013,"clientId":15,"number":"001963","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2016,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":15,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"VILLEGAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":16,"clientId":15,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-01-29T16:50:24-0600","amount":3500,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":18,"invoiceId":25,"paymentId":16,"creditNoteId":null,"refundId":null,"amount":3500}],"creditAmount":0,"userId":1000,"attributes":[]}] + +Nombre del cliente que se va a actualizar: EDUARDO VILLEGAZ + +UUID: 92dd9fb15b8f4ff6860f8a32ea9bd7e4 + +JSON con los datos a actualizar: {"name":"EDUARDO VILLEGAZ","custom_fields":{"Cliente":15,"Domicilio":"\ud83d\udccd SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Nombre":"\ud83d\udc64 EDUARDO VILLEGAZ","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/15","Saldo Actual":"\ud83d\udcb212600 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 3500","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"15\",\"Domicilio\": \"\"Nombre\": \"EDUARDO VILLEGAZ\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/15\",\"Saldo Actual\": \"\ud83d\udcb212600 pendientes\",\"Monto Ultimo Pago\": \"$ 3500\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29\/01\/2024 16:50 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"31\/05\/2025 10:01\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 29\/01\/2024 16:50 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 31\/05\/2025 10:01","Clabe Interbancaria":null,"Site":"","Antena\/Sectorial":""}} + +JSON con los datos a actualizar del resumen: {"Cliente": "15","Domicilio": ""Nombre": "EDUARDO VILLEGAZ","URL": "https://sistema.siip.mx/crm/client/15","Saldo Actual": "💲12600 pendientes","Monto Ultimo Pago": "$ 3500","Estado": "Suspendido","Fecha Ultimo Pago": " 29/01/2024 16:50 con Efectivo 💵","Fecha Ultima Actualizacion": "31/05/2025 10:01","Clabe Interbancaria": "","Site": "","Antena/Sectorial": ""} + +Response Patch CallBell: {"contact":{"uuid":"92dd9fb15b8f4ff6860f8a32ea9bd7e4","name":"EDUARDO VILLEGAZ","phoneNumber":"5214181091933","avatarUrl":null,"createdAt":"2023-12-22T16:55:50Z","closedAt":"2024-07-11T22:49:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/92dd9fb15b8f4ff6860f8a32ea9bd7e4","conversationHref":"https://dash.callbell.eu/chat/04a3e26142e0431789260acb0b60a3ac","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"124180650659256341","Estado":"🔴 Suspendido","Antena/Sectorial":"Sec3-Sb 172.16.55.13/24","Site":"SBARB","Domicilio":"📍 SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Resumen":"{\"Cliente\": \"15\",\"Domicilio\": \"\"Nombre\": \"EDUARDO VILLEGAZ\",\"URL\": \"https://sistema.siip.mx/crm/client/15\",\"Saldo Actual\": \"💲12600 pendientes\",\"Monto Ultimo Pago\": \"$ 3500\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29/01/2024 16:50 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/05/2025 10:01\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","URL":"🌐 https://sistema.siip.mx/crm/client/15","Fecha Ultima Actualizacion":"📆🔄️ 31/05/2025 10:01","Nombre":"👤 EDUARDO VILLEGAZ","Cliente":"15","Saldo Actual":"💲12600 pendientes","Monto Ultimo Pago":"💲 3500","Fecha Ultimo Pago":"📆💸 29/01/2024 16:50 con Efectivo 💵"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +Response 2 Patch CallBell: {"contact":{"uuid":"92dd9fb15b8f4ff6860f8a32ea9bd7e4","name":"EDUARDO VILLEGAZ","phoneNumber":"5214181091933","avatarUrl":null,"createdAt":"2023-12-22T16:55:50Z","closedAt":"2024-07-11T22:49:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/92dd9fb15b8f4ff6860f8a32ea9bd7e4","conversationHref":"https://dash.callbell.eu/chat/04a3e26142e0431789260acb0b60a3ac","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"124180650659256341","Estado":"🔴 Suspendido","Antena/Sectorial":"Sec3-Sb 172.16.55.13/24","Site":"SBARB","Domicilio":"📍 SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Resumen":"{\"Cliente\": \"15\",\"Domicilio\": \"\"Nombre\": \"EDUARDO VILLEGAZ\",\"URL\": \"https://sistema.siip.mx/crm/client/15\",\"Saldo Actual\": \"💲12600 pendientes\",\"Monto Ultimo Pago\": \"$ 3500\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29/01/2024 16:50 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/05/2025 10:01\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","URL":"🌐 https://sistema.siip.mx/crm/client/15","Fecha Ultima Actualizacion":"📆🔄️ 31/05/2025 10:01","Nombre":"👤 EDUARDO VILLEGAZ","Cliente":"15","Saldo Actual":"💲12600 pendientes","Monto Ultimo Pago":"💲 3500","Fecha Ultimo Pago":"📆💸 29/01/2024 16:50 con Efectivo 💵"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-05-31 16:01:21.320161] [notice] Logging level set to:debug +[2025-05-31 16:01:21.320214] [debug] valor del webhook: {"uuid":"c4462bae-5f0e-4cce-844e-6c119c2efccb","changeType":"draft_approved","entity":"invoice","entityId":"2014","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2014,"clientId":97,"number":"001964","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2017,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":96,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"YOLANDA","clientLastName":"CANO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AVILES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:21.506104] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:21.506162] [debug] Valor de JSON: {"uuid":"c4462bae-5f0e-4cce-844e-6c119c2efccb","changeType":"draft_approved","entity":"invoice","entityId":"2014","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2014,"clientId":97,"number":"001964","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2017,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":96,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"YOLANDA","clientLastName":"CANO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AVILES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:21.506278] [debug] Aprobación de Factura + +[2025-05-31 16:01:21.506324] [debug] {"uuid":"c4462bae-5f0e-4cce-844e-6c119c2efccb","changeType":"draft_approved","entity":"invoice","entityId":2014,"message":null,"clientId":97,"eventName":"invoice.draft_approved","clientData":{"id":97,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LOS AVILES","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LOS AVILES, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"YOLANDA","lastName":"CANO","username":"ycano97","contacts":[{"id":98,"clientId":97,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-8500,"accountCredit":0,"accountOutstanding":8500,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#607d8b","addressGpsLat":21.151597,"addressGpsLon":-100.9367183,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2014,"clientId":97,"number":"001964","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2017,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":96,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"YOLANDA","clientLastName":"CANO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AVILES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:22.372608] [notice] Logging level set to:debug +[2025-05-31 16:01:22.372683] [debug] valor del webhook: {"uuid":"887d9892-bec3-44b1-af79-418914462b55","changeType":"draft_approved","entity":"invoice","entityId":"2015","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2015,"clientId":31,"number":"001965","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2018,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":30,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANA","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SIETE REALES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:22.508816] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:22.508869] [debug] Valor de JSON: {"uuid":"887d9892-bec3-44b1-af79-418914462b55","changeType":"draft_approved","entity":"invoice","entityId":"2015","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2015,"clientId":31,"number":"001965","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2018,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":30,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANA","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SIETE REALES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:22.508970] [debug] Aprobación de Factura + +[2025-05-31 16:01:22.509018] [debug] {"uuid":"887d9892-bec3-44b1-af79-418914462b55","changeType":"draft_approved","entity":"invoice","entityId":2015,"message":null,"clientId":31,"eventName":"invoice.draft_approved","clientData":{"id":31,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SIETE REALES","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SIETE REALES, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANA","lastName":"CASTILLO","username":"acastillo31","contacts":[{"id":32,"clientId":31,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4780,"accountCredit":0,"accountOutstanding":4780,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#4caf50","addressGpsLat":21.2302531,"addressGpsLon":-100.7594666,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2015,"clientId":31,"number":"001965","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2018,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":30,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANA","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SIETE REALES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:23.612113] [notice] Logging level set to:debug +[2025-05-31 16:01:23.612200] [debug] valor del webhook: {"uuid":"ba6ae16e-73c2-433c-8e12-780b107c5ecc","changeType":"draft_approved","entity":"invoice","entityId":"2016","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2016,"clientId":90,"number":"001966","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2019,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":89,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PEDRO","clientLastName":"HORNEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:23.749452] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:23.749505] [debug] Valor de JSON: {"uuid":"ba6ae16e-73c2-433c-8e12-780b107c5ecc","changeType":"draft_approved","entity":"invoice","entityId":"2016","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2016,"clientId":90,"number":"001966","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2019,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":89,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PEDRO","clientLastName":"HORNEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:23.749617] [debug] Aprobación de Factura + +[2025-05-31 16:01:23.749670] [debug] {"uuid":"ba6ae16e-73c2-433c-8e12-780b107c5ecc","changeType":"draft_approved","entity":"invoice","entityId":2016,"message":null,"clientId":90,"eventName":"invoice.draft_approved","clientData":{"id":90,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"ADJUNTAS DEL RIO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"ADJUNTAS DEL RIO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"PEDRO","lastName":"HORNEDO","username":"phornedo90","contacts":[{"id":91,"clientId":90,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2016,"clientId":90,"number":"001966","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2019,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":89,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PEDRO","clientLastName":"HORNEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:24.891098] [notice] Logging level set to:debug +[2025-05-31 16:01:24.891182] [debug] valor del webhook: {"uuid":"8bb7c320-e4dc-4ee1-ab80-5abd23d6d03d","changeType":"draft_approved","entity":"invoice","entityId":"2017","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2017,"clientId":77,"number":"001967","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2020,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":76,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARGARITO","clientLastName":"ESTRADA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTILLA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:25.026607] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:25.026664] [debug] Valor de JSON: {"uuid":"8bb7c320-e4dc-4ee1-ab80-5abd23d6d03d","changeType":"draft_approved","entity":"invoice","entityId":"2017","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2017,"clientId":77,"number":"001967","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2020,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":76,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARGARITO","clientLastName":"ESTRADA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTILLA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:25.026789] [debug] Aprobación de Factura + +[2025-05-31 16:01:25.026834] [debug] {"uuid":"8bb7c320-e4dc-4ee1-ab80-5abd23d6d03d","changeType":"draft_approved","entity":"invoice","entityId":2017,"message":null,"clientId":77,"eventName":"invoice.draft_approved","clientData":{"id":77,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA VENTILLA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA VENTILLA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MARGARITO","lastName":"ESTRADA","username":"mestrada77","contacts":[{"id":78,"clientId":77,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#039be5","addressGpsLat":21.1145736,"addressGpsLon":-100.933729,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2017,"clientId":77,"number":"001967","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2020,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":76,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARGARITO","clientLastName":"ESTRADA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTILLA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:26.183191] [notice] Logging level set to:debug +[2025-05-31 16:01:26.183270] [debug] valor del webhook: {"uuid":"9a74aac5-7d19-4f2a-b939-b8ce4cb0c7cf","changeType":"draft_approved","entity":"invoice","entityId":"2018","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2018,"clientId":69,"number":"001968","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2021,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":68,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CIRILA","clientLastName":"AVILES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:26.311382] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:26.311431] [debug] Valor de JSON: {"uuid":"9a74aac5-7d19-4f2a-b939-b8ce4cb0c7cf","changeType":"draft_approved","entity":"invoice","entityId":"2018","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2018,"clientId":69,"number":"001968","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2021,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":68,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CIRILA","clientLastName":"AVILES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:26.311533] [debug] Aprobación de Factura + +[2025-05-31 16:01:26.311575] [debug] {"uuid":"9a74aac5-7d19-4f2a-b939-b8ce4cb0c7cf","changeType":"draft_approved","entity":"invoice","entityId":2018,"message":null,"clientId":69,"eventName":"invoice.draft_approved","clientData":{"id":69,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"CIRILA","lastName":"AVILES","username":"caviles69","contacts":[{"id":70,"clientId":69,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#8bc34a","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2018,"clientId":69,"number":"001968","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2021,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":68,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CIRILA","clientLastName":"AVILES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:27.461910] [notice] Logging level set to:debug +[2025-05-31 16:01:27.461982] [debug] valor del webhook: {"uuid":"2b86b99b-1497-47f9-a297-f0816e4b3d9d","changeType":"draft_approved","entity":"invoice","entityId":"2019","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2019,"clientId":35,"number":"001969","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2022,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":34,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GABRIELA","clientLastName":"SUASTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CANTERA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:27.604438] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:27.604487] [debug] Valor de JSON: {"uuid":"2b86b99b-1497-47f9-a297-f0816e4b3d9d","changeType":"draft_approved","entity":"invoice","entityId":"2019","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2019,"clientId":35,"number":"001969","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2022,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":34,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GABRIELA","clientLastName":"SUASTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CANTERA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:27.604599] [debug] Aprobación de Factura + +[2025-05-31 16:01:27.604639] [debug] {"uuid":"2b86b99b-1497-47f9-a297-f0816e4b3d9d","changeType":"draft_approved","entity":"invoice","entityId":2019,"message":null,"clientId":35,"eventName":"invoice.draft_approved","clientData":{"id":35,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA CANTERA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA CANTERA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"GABRIELA","lastName":"SUASTE","username":"gsuaste35","contacts":[{"id":36,"clientId":35,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#e91e63","addressGpsLat":21.1461112,"addressGpsLon":-101.0019444,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2019,"clientId":35,"number":"001969","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2022,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":34,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GABRIELA","clientLastName":"SUASTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CANTERA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:28.755903] [notice] Logging level set to:debug +[2025-05-31 16:01:28.755973] [debug] valor del webhook: {"uuid":"b37ce20e-69fc-4f0f-af3c-ac5270a03327","changeType":"draft_approved","entity":"invoice","entityId":"2020","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2020,"clientId":83,"number":"001970","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2023,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":82,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"SOLIS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL VERGEL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:28.885066] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:28.885119] [debug] Valor de JSON: {"uuid":"b37ce20e-69fc-4f0f-af3c-ac5270a03327","changeType":"draft_approved","entity":"invoice","entityId":"2020","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2020,"clientId":83,"number":"001970","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2023,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":82,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"SOLIS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL VERGEL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:28.885234] [debug] Aprobación de Factura + +[2025-05-31 16:01:28.885279] [debug] {"uuid":"b37ce20e-69fc-4f0f-af3c-ac5270a03327","changeType":"draft_approved","entity":"invoice","entityId":2020,"message":null,"clientId":83,"eventName":"invoice.draft_approved","clientData":{"id":83,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL VERGEL","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL VERGEL, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"EDUARDO","lastName":"SOLIS","username":"esolis83","contacts":[{"id":84,"clientId":83,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-10600,"accountCredit":0,"accountOutstanding":10600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#fdd835","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2020,"clientId":83,"number":"001970","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2023,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":82,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"SOLIS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL VERGEL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:30.044131] [notice] Logging level set to:debug +[2025-05-31 16:01:30.044187] [debug] valor del webhook: {"uuid":"007aee49-4b61-4f55-b5c2-e653def8ccfa","changeType":"draft_approved","entity":"invoice","entityId":"2021","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2021,"clientId":29,"number":"001971","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2024,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":28,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTELA","clientLastName":"ORTIZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EJIDO DOLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:30.186909] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:30.186964] [debug] Valor de JSON: {"uuid":"007aee49-4b61-4f55-b5c2-e653def8ccfa","changeType":"draft_approved","entity":"invoice","entityId":"2021","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2021,"clientId":29,"number":"001971","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2024,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":28,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTELA","clientLastName":"ORTIZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EJIDO DOLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:30.187097] [debug] Aprobación de Factura + +[2025-05-31 16:01:30.187143] [debug] {"uuid":"007aee49-4b61-4f55-b5c2-e653def8ccfa","changeType":"draft_approved","entity":"invoice","entityId":2021,"message":null,"clientId":29,"eventName":"invoice.draft_approved","clientData":{"id":29,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EJIDO DOLORES","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EJIDO DOLORES, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ESTELA","lastName":"ORTIZ","username":"eortiz29","contacts":[{"id":30,"clientId":29,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-8316.67,"accountCredit":0,"accountOutstanding":8316.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ffb300","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2021,"clientId":29,"number":"001971","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2024,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":28,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTELA","clientLastName":"ORTIZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EJIDO DOLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:31.321634] [notice] Logging level set to:debug +[2025-05-31 16:01:31.321712] [debug] valor del webhook: {"uuid":"c1fd9cf2-807f-4a61-a296-a8f3736a5779","changeType":"draft_approved","entity":"invoice","entityId":"2022","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2022,"clientId":24,"number":"001972","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2025,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":23,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JACIEL","clientLastName":"CERVANTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTO NI\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:31.460474] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:31.460531] [debug] Valor de JSON: {"uuid":"c1fd9cf2-807f-4a61-a296-a8f3736a5779","changeType":"draft_approved","entity":"invoice","entityId":"2022","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2022,"clientId":24,"number":"001972","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2025,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":23,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JACIEL","clientLastName":"CERVANTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTO NI\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:31.460630] [debug] Aprobación de Factura + +[2025-05-31 16:01:31.460673] [debug] {"uuid":"c1fd9cf2-807f-4a61-a296-a8f3736a5779","changeType":"draft_approved","entity":"invoice","entityId":2022,"message":null,"clientId":24,"eventName":"invoice.draft_approved","clientData":{"id":24,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTO NI\u00d1O","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTO NI\u00d1O, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JACIEL","lastName":"CERVANTES","username":"jcervantes24","contacts":[{"id":25,"clientId":24,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5080,"accountCredit":0,"accountOutstanding":5080,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ff8f00","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2022,"clientId":24,"number":"001972","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2025,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":23,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JACIEL","clientLastName":"CERVANTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTO NI\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:32.628308] [notice] Logging level set to:debug +[2025-05-31 16:01:32.628420] [debug] valor del webhook: {"uuid":"ee7a5cb3-e0a3-444e-a6b9-cf83e93db3d9","changeType":"draft_approved","entity":"invoice","entityId":"2023","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2023,"clientId":26,"number":"001973","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2026,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":25,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SAMANTA","clientLastName":"FUENTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GUSANO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:32.757710] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:32.757764] [debug] Valor de JSON: {"uuid":"ee7a5cb3-e0a3-444e-a6b9-cf83e93db3d9","changeType":"draft_approved","entity":"invoice","entityId":"2023","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2023,"clientId":26,"number":"001973","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2026,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":25,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SAMANTA","clientLastName":"FUENTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GUSANO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:32.757862] [debug] Aprobación de Factura + +[2025-05-31 16:01:32.757903] [debug] {"uuid":"ee7a5cb3-e0a3-444e-a6b9-cf83e93db3d9","changeType":"draft_approved","entity":"invoice","entityId":2023,"message":null,"clientId":26,"eventName":"invoice.draft_approved","clientData":{"id":26,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"GUSANO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"GUSANO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"SAMANTA","lastName":"FUENTES","username":"sfuentes26","contacts":[{"id":27,"clientId":26,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5680,"accountCredit":0,"accountOutstanding":5680,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#4caf50","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2023,"clientId":26,"number":"001973","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2026,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":25,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SAMANTA","clientLastName":"FUENTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GUSANO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:33.904963] [notice] Logging level set to:debug +[2025-05-31 16:01:33.905050] [debug] valor del webhook: {"uuid":"ee5d06c7-fb85-4892-be0d-e398be024875","changeType":"draft_approved","entity":"invoice","entityId":"2024","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2024,"clientId":30,"number":"001974","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2027,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":29,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUANA","clientLastName":"MONTES DE OCA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:34.047354] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:34.047406] [debug] Valor de JSON: {"uuid":"ee5d06c7-fb85-4892-be0d-e398be024875","changeType":"draft_approved","entity":"invoice","entityId":"2024","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2024,"clientId":30,"number":"001974","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2027,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":29,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUANA","clientLastName":"MONTES DE OCA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:34.047523] [debug] Aprobación de Factura + +[2025-05-31 16:01:34.047565] [debug] {"uuid":"ee5d06c7-fb85-4892-be0d-e398be024875","changeType":"draft_approved","entity":"invoice","entityId":2024,"message":null,"clientId":30,"eventName":"invoice.draft_approved","clientData":{"id":30,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"FRACCIONAMIENTO GUANAJUATO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JUANA","lastName":"MONTES DE OCA","username":"jmontes30","contacts":[{"id":31,"clientId":30,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-12600,"accountCredit":0,"accountOutstanding":12600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#0277bd","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2024,"clientId":30,"number":"001974","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2027,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":29,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUANA","clientLastName":"MONTES DE OCA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:35.220285] [notice] Logging level set to:debug +[2025-05-31 16:01:35.220347] [debug] valor del webhook: {"uuid":"ce276aa1-45d1-4c60-8a12-5cf002366a6a","changeType":"draft_approved","entity":"invoice","entityId":"2025","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2025,"clientId":39,"number":"001975","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2028,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":38,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"FRANCISCO","clientLastName":"BALDERAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA PIEDRA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:35.359499] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:35.359546] [debug] Valor de JSON: {"uuid":"ce276aa1-45d1-4c60-8a12-5cf002366a6a","changeType":"draft_approved","entity":"invoice","entityId":"2025","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2025,"clientId":39,"number":"001975","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2028,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":38,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"FRANCISCO","clientLastName":"BALDERAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA PIEDRA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:35.359635] [debug] Aprobación de Factura + +[2025-05-31 16:01:35.359673] [debug] {"uuid":"ce276aa1-45d1-4c60-8a12-5cf002366a6a","changeType":"draft_approved","entity":"invoice","entityId":2025,"message":null,"clientId":39,"eventName":"invoice.draft_approved","clientData":{"id":39,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA PIEDRA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA PIEDRA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"FRANCISCO","lastName":"BALDERAS","username":"fbalderas39","contacts":[{"id":40,"clientId":39,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5110,"accountCredit":0,"accountOutstanding":5110,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#546e7a","addressGpsLat":21.2708978,"addressGpsLon":-100.7973281,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2025,"clientId":39,"number":"001975","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2028,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":38,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"FRANCISCO","clientLastName":"BALDERAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA PIEDRA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:36.506315] [notice] Logging level set to:debug +[2025-05-31 16:01:36.506442] [debug] valor del webhook: {"uuid":"f765af4e-bc70-4e7f-a37d-7730f681f45e","changeType":"draft_approved","entity":"invoice","entityId":"2026","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2026,"clientId":43,"number":"001976","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2029,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":42,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"VICTORIO","clientLastName":"DIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS FLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:36.661103] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:36.661166] [debug] Valor de JSON: {"uuid":"f765af4e-bc70-4e7f-a37d-7730f681f45e","changeType":"draft_approved","entity":"invoice","entityId":"2026","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2026,"clientId":43,"number":"001976","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2029,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":42,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"VICTORIO","clientLastName":"DIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS FLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:36.661313] [debug] Aprobación de Factura + +[2025-05-31 16:01:36.661376] [debug] {"uuid":"f765af4e-bc70-4e7f-a37d-7730f681f45e","changeType":"draft_approved","entity":"invoice","entityId":2026,"message":null,"clientId":43,"eventName":"invoice.draft_approved","clientData":{"id":43,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LAS FLORES","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LAS FLORES, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"VICTORIO","lastName":"DIAS","username":"vdias43","contacts":[{"id":44,"clientId":43,"email":null,"phone":"4181818706","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-11223.33,"accountCredit":0,"accountOutstanding":11223.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#fb8c00","addressGpsLat":21.1511969,"addressGpsLon":-100.9132525,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2026,"clientId":43,"number":"001976","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2029,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":42,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"VICTORIO","clientLastName":"DIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS FLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:37.822525] [notice] Logging level set to:debug +[2025-05-31 16:01:37.822623] [debug] valor del webhook: {"uuid":"1c2fd5fa-9ff1-4111-8c27-a8ddcdcffde2","changeType":"draft_approved","entity":"invoice","entityId":"2027","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2027,"clientId":81,"number":"001977","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2030,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":80,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"FERNANDO","clientLastName":"ALCAZAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:37.956001] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:37.956053] [debug] Valor de JSON: {"uuid":"1c2fd5fa-9ff1-4111-8c27-a8ddcdcffde2","changeType":"draft_approved","entity":"invoice","entityId":"2027","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2027,"clientId":81,"number":"001977","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2030,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":80,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"FERNANDO","clientLastName":"ALCAZAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:37.956160] [debug] Aprobación de Factura + +[2025-05-31 16:01:37.956204] [debug] {"uuid":"1c2fd5fa-9ff1-4111-8c27-a8ddcdcffde2","changeType":"draft_approved","entity":"invoice","entityId":2027,"message":null,"clientId":81,"eventName":"invoice.draft_approved","clientData":{"id":81,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"FERNANDO","lastName":"ALCAZAR","username":"falcazar81","contacts":[{"id":82,"clientId":81,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-11900,"accountCredit":0,"accountOutstanding":11900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#d81b60","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2027,"clientId":81,"number":"001977","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2030,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":80,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"FERNANDO","clientLastName":"ALCAZAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:39.080461] [notice] Logging level set to:debug +[2025-05-31 16:01:39.080527] [debug] valor del webhook: {"uuid":"b7702535-9c11-4de4-acc3-f401aa28c5ad","changeType":"draft_approved","entity":"invoice","entityId":"2028","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2028,"clientId":8,"number":"001978","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2031,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":8,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALFREDO","clientLastName":"GUTIERREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:39.228786] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:39.228840] [debug] Valor de JSON: {"uuid":"b7702535-9c11-4de4-acc3-f401aa28c5ad","changeType":"draft_approved","entity":"invoice","entityId":"2028","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2028,"clientId":8,"number":"001978","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2031,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":8,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALFREDO","clientLastName":"GUTIERREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:39.228964] [debug] Aprobación de Factura + +[2025-05-31 16:01:39.229006] [debug] {"uuid":"b7702535-9c11-4de4-acc3-f401aa28c5ad","changeType":"draft_approved","entity":"invoice","entityId":2028,"message":null,"clientId":8,"eventName":"invoice.draft_approved","clientData":{"id":8,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL BOBO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL BOBO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALFREDO","lastName":"GUTIERREZ","username":"agutierrez08","contacts":[{"id":9,"clientId":8,"email":null,"phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-8530,"accountCredit":0,"accountOutstanding":8530,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.21484,"addressGpsLon":-100.8478122,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2028,"clientId":8,"number":"001978","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2031,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":8,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALFREDO","clientLastName":"GUTIERREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:40.377481] [notice] Logging level set to:debug +[2025-05-31 16:01:40.377598] [debug] valor del webhook: {"uuid":"6c2872a1-d5d0-4043-a4dd-c25353ef3f48","changeType":"draft_approved","entity":"invoice","entityId":"2029","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2029,"clientId":80,"number":"001979","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2032,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":79,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AXEL","clientLastName":"FERNANDEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN SEBASTIAN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:40.511370] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:40.511420] [debug] Valor de JSON: {"uuid":"6c2872a1-d5d0-4043-a4dd-c25353ef3f48","changeType":"draft_approved","entity":"invoice","entityId":"2029","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2029,"clientId":80,"number":"001979","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2032,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":79,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AXEL","clientLastName":"FERNANDEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN SEBASTIAN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:40.511523] [debug] Aprobación de Factura + +[2025-05-31 16:01:40.511565] [debug] {"uuid":"6c2872a1-d5d0-4043-a4dd-c25353ef3f48","changeType":"draft_approved","entity":"invoice","entityId":2029,"message":null,"clientId":80,"eventName":"invoice.draft_approved","clientData":{"id":80,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN SEBASTIAN","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN SEBASTIAN, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"AXEL","lastName":"FERNANDEZ","username":"afernandez80","contacts":[{"id":81,"clientId":80,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef5350","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2029,"clientId":80,"number":"001979","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2032,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":79,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AXEL","clientLastName":"FERNANDEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN SEBASTIAN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:41.649316] [notice] Logging level set to:debug +[2025-05-31 16:01:41.649370] [debug] valor del webhook: {"uuid":"f71dc66e-6e0e-4de8-bf14-d3526317c320","changeType":"draft_approved","entity":"invoice","entityId":"2030","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2030,"clientId":61,"number":"001980","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2033,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":60,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LUIS","clientLastName":"AGULAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AGUILAR","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:41.774912] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:41.774967] [debug] Valor de JSON: {"uuid":"f71dc66e-6e0e-4de8-bf14-d3526317c320","changeType":"draft_approved","entity":"invoice","entityId":"2030","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2030,"clientId":61,"number":"001980","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2033,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":60,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LUIS","clientLastName":"AGULAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AGUILAR","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:41.775089] [debug] Aprobación de Factura + +[2025-05-31 16:01:41.775132] [debug] {"uuid":"f71dc66e-6e0e-4de8-bf14-d3526317c320","changeType":"draft_approved","entity":"invoice","entityId":2030,"message":null,"clientId":61,"eventName":"invoice.draft_approved","clientData":{"id":61,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LOS AGUILAR","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LOS AGUILAR, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"LUIS","lastName":"AGULAR","username":"lagular61","contacts":[{"id":62,"clientId":61,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00acc1","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2030,"clientId":61,"number":"001980","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2033,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":60,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LUIS","clientLastName":"AGULAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AGUILAR","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:42.898813] [notice] Logging level set to:debug +[2025-05-31 16:01:42.898874] [debug] valor del webhook: {"uuid":"77948a49-d3ff-42f3-9c25-d7331cd37147","changeType":"draft_approved","entity":"invoice","entityId":"2031","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2031,"clientId":87,"number":"001981","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2034,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":86,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ANTON","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:43.035187] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:43.035240] [debug] Valor de JSON: {"uuid":"77948a49-d3ff-42f3-9c25-d7331cd37147","changeType":"draft_approved","entity":"invoice","entityId":"2031","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2031,"clientId":87,"number":"001981","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2034,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":86,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ANTON","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:43.035351] [debug] Aprobación de Factura + +[2025-05-31 16:01:43.035393] [debug] {"uuid":"77948a49-d3ff-42f3-9c25-d7331cd37147","changeType":"draft_approved","entity":"invoice","entityId":2031,"message":null,"clientId":87,"eventName":"invoice.draft_approved","clientData":{"id":87,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ANTON","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ANTON, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"TERESA","lastName":"REYES","username":"treyes87","contacts":[{"id":88,"clientId":87,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1565c0","addressGpsLat":21.1473165,"addressGpsLon":-100.9333759,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2031,"clientId":87,"number":"001981","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2034,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":86,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ANTON","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:44.197350] [notice] Logging level set to:debug +[2025-05-31 16:01:44.197419] [debug] valor del webhook: {"uuid":"81cf9c5b-30aa-4a38-b449-bd36aa0fe4ad","changeType":"draft_approved","entity":"invoice","entityId":"2032","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2032,"clientId":50,"number":"001982","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2035,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":49,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GLORIA","clientLastName":"DELGADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:44.330065] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:44.330116] [debug] Valor de JSON: {"uuid":"81cf9c5b-30aa-4a38-b449-bd36aa0fe4ad","changeType":"draft_approved","entity":"invoice","entityId":"2032","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2032,"clientId":50,"number":"001982","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2035,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":49,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GLORIA","clientLastName":"DELGADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:44.330208] [debug] Aprobación de Factura + +[2025-05-31 16:01:44.330275] [debug] {"uuid":"81cf9c5b-30aa-4a38-b449-bd36aa0fe4ad","changeType":"draft_approved","entity":"invoice","entityId":2032,"message":null,"clientId":50,"eventName":"invoice.draft_approved","clientData":{"id":50,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL BOBO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL BOBO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"GLORIA","lastName":"DELGADO","username":"gdelgado50","contacts":[{"id":51,"clientId":50,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":108,"clientId":50,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtN2hegnjiQhR7M","clientZoneVisible":true},{"id":109,"clientId":50,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"1847644339402745","clientZoneVisible":true}],"accountBalance":-4810,"accountCredit":0,"accountOutstanding":4810,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ffc107","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2032,"clientId":50,"number":"001982","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2035,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":49,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GLORIA","clientLastName":"DELGADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:45.479583] [notice] Logging level set to:debug +[2025-05-31 16:01:45.479649] [debug] valor del webhook: {"uuid":"79d80bc1-ae6c-4e9a-a669-25010d55d54a","changeType":"draft_approved","entity":"invoice","entityId":"2033","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2033,"clientId":101,"number":"001983","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2036,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":100,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OCTAVIO","clientLastName":"VIDAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ESTA\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:45.619165] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:45.619224] [debug] Valor de JSON: {"uuid":"79d80bc1-ae6c-4e9a-a669-25010d55d54a","changeType":"draft_approved","entity":"invoice","entityId":"2033","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2033,"clientId":101,"number":"001983","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2036,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":100,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OCTAVIO","clientLastName":"VIDAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ESTA\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:45.619342] [debug] Aprobación de Factura + +[2025-05-31 16:01:45.619391] [debug] {"uuid":"79d80bc1-ae6c-4e9a-a669-25010d55d54a","changeType":"draft_approved","entity":"invoice","entityId":2033,"message":null,"clientId":101,"eventName":"invoice.draft_approved","clientData":{"id":101,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL ESTA\u00d1O","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL ESTA\u00d1O, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"OCTAVIO","lastName":"VIDAL","username":"ovidal01","contacts":[{"id":102,"clientId":101,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2033,"clientId":101,"number":"001983","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2036,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":100,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OCTAVIO","clientLastName":"VIDAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ESTA\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:49.653925] [notice] Logging level set to:debug +[2025-05-31 16:01:49.653995] [debug] valor del webhook: {"uuid":"ee6a686a-f3e0-4042-8916-6a1eec5f7862","changeType":"draft_approved","entity":"invoice","entityId":"2034","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2034,"clientId":58,"number":"001984","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2037,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":57,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"DOMINGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MOLINO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:49.851660] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:49.851722] [debug] Valor de JSON: {"uuid":"ee6a686a-f3e0-4042-8916-6a1eec5f7862","changeType":"draft_approved","entity":"invoice","entityId":"2034","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2034,"clientId":58,"number":"001984","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2037,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":57,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"DOMINGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MOLINO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:49.851994] [debug] Aprobación de Factura + +[2025-05-31 16:01:49.852051] [debug] {"uuid":"ee6a686a-f3e0-4042-8916-6a1eec5f7862","changeType":"draft_approved","entity":"invoice","entityId":2034,"message":null,"clientId":58,"eventName":"invoice.draft_approved","clientData":{"id":58,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL MOLINO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL MOLINO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"EDGAR","lastName":"DOMINGUEZ","username":"edominguez58","contacts":[{"id":59,"clientId":58,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#6a1b9a","addressGpsLat":21.1326682,"addressGpsLon":-101.0194414,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2034,"clientId":58,"number":"001984","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2037,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":57,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"DOMINGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MOLINO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:51.021948] [notice] Logging level set to:debug +[2025-05-31 16:01:51.022011] [debug] valor del webhook: {"uuid":"3a45fc5e-68c5-4f1a-9dec-7ee5df8c5e63","changeType":"draft_approved","entity":"invoice","entityId":"2035","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2035,"clientId":32,"number":"001985","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2038,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":31,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EMILIO","clientLastName":"PEREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ANTON DE LAS MINAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:51.145421] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:51.145478] [debug] Valor de JSON: {"uuid":"3a45fc5e-68c5-4f1a-9dec-7ee5df8c5e63","changeType":"draft_approved","entity":"invoice","entityId":"2035","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2035,"clientId":32,"number":"001985","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2038,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":31,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EMILIO","clientLastName":"PEREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ANTON DE LAS MINAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:51.145582] [debug] Aprobación de Factura + +[2025-05-31 16:01:51.145627] [debug] {"uuid":"3a45fc5e-68c5-4f1a-9dec-7ee5df8c5e63","changeType":"draft_approved","entity":"invoice","entityId":2035,"message":null,"clientId":32,"eventName":"invoice.draft_approved","clientData":{"id":32,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ANTON DE LAS MINAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ANTON DE LAS MINAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"EMILIO","lastName":"PEREZ","username":"eperez32","contacts":[{"id":33,"clientId":32,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-6040,"accountCredit":0,"accountOutstanding":6040,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#d81b60","addressGpsLat":21.0705003,"addressGpsLon":-101.0487257,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2035,"clientId":32,"number":"001985","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2038,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":31,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EMILIO","clientLastName":"PEREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ANTON DE LAS MINAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:52.304757] [notice] Logging level set to:debug +[2025-05-31 16:01:52.304831] [debug] valor del webhook: {"uuid":"805e2cda-7756-4695-9ede-b21e73acaa8f","changeType":"draft_approved","entity":"invoice","entityId":"2036","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2036,"clientId":98,"number":"001986","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2039,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":97,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JULIO","clientLastName":"OLACHIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AGUILAR","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:52.443105] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:52.443162] [debug] Valor de JSON: {"uuid":"805e2cda-7756-4695-9ede-b21e73acaa8f","changeType":"draft_approved","entity":"invoice","entityId":"2036","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2036,"clientId":98,"number":"001986","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2039,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":97,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JULIO","clientLastName":"OLACHIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AGUILAR","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:52.443284] [debug] Aprobación de Factura + +[2025-05-31 16:01:52.443326] [debug] {"uuid":"805e2cda-7756-4695-9ede-b21e73acaa8f","changeType":"draft_approved","entity":"invoice","entityId":2036,"message":null,"clientId":98,"eventName":"invoice.draft_approved","clientData":{"id":98,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LOS AGUILAR","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LOS AGUILAR, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JULIO","lastName":"OLACHIA","username":"jolachia98","contacts":[{"id":99,"clientId":98,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#9c27b0","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2036,"clientId":98,"number":"001986","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2039,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":97,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JULIO","clientLastName":"OLACHIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AGUILAR","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:53.592372] [notice] Logging level set to:debug +[2025-05-31 16:01:53.592433] [debug] valor del webhook: {"uuid":"ff5e3272-a1ff-433c-a170-33ab3ed42e82","changeType":"draft_approved","entity":"invoice","entityId":"2037","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2037,"clientId":95,"number":"001987","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2040,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":94,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SOFIA","clientLastName":"VALENCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:53.718339] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:53.718394] [debug] Valor de JSON: {"uuid":"ff5e3272-a1ff-433c-a170-33ab3ed42e82","changeType":"draft_approved","entity":"invoice","entityId":"2037","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2037,"clientId":95,"number":"001987","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2040,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":94,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SOFIA","clientLastName":"VALENCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:53.718499] [debug] Aprobación de Factura + +[2025-05-31 16:01:53.718543] [debug] {"uuid":"ff5e3272-a1ff-433c-a170-33ab3ed42e82","changeType":"draft_approved","entity":"invoice","entityId":2037,"message":null,"clientId":95,"eventName":"invoice.draft_approved","clientData":{"id":95,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"SOFIA","lastName":"VALENCIA","username":"svalencia95","contacts":[{"id":96,"clientId":95,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-8500,"accountCredit":0,"accountOutstanding":8500,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#546e7a","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2037,"clientId":95,"number":"001987","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2040,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":94,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SOFIA","clientLastName":"VALENCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:54.873209] [notice] Logging level set to:debug +[2025-05-31 16:01:54.873265] [debug] valor del webhook: {"uuid":"4ab03c41-31cd-4427-b6f4-a90a92295fb2","changeType":"draft_approved","entity":"invoice","entityId":"2038","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2038,"clientId":51,"number":"001988","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2041,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":50,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"MORENO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PADRE HIDALGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:55.010786] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:55.010844] [debug] Valor de JSON: {"uuid":"4ab03c41-31cd-4427-b6f4-a90a92295fb2","changeType":"draft_approved","entity":"invoice","entityId":"2038","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2038,"clientId":51,"number":"001988","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2041,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":50,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"MORENO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PADRE HIDALGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:55.010952] [debug] Aprobación de Factura + +[2025-05-31 16:01:55.011018] [debug] {"uuid":"4ab03c41-31cd-4427-b6f4-a90a92295fb2","changeType":"draft_approved","entity":"invoice","entityId":2038,"message":null,"clientId":51,"eventName":"invoice.draft_approved","clientData":{"id":51,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"PADRE HIDALGO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"PADRE HIDALGO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"DANIEL","lastName":"MORENO","username":"dmoreno51","contacts":[{"id":52,"clientId":51,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-8350,"accountCredit":0,"accountOutstanding":8350,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#fb8c00","addressGpsLat":21.1663422,"addressGpsLon":-100.9347882,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2038,"clientId":51,"number":"001988","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2041,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":50,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"MORENO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PADRE HIDALGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:56.132970] [notice] Logging level set to:debug +[2025-05-31 16:01:56.133074] [debug] valor del webhook: {"uuid":"4391115d-5d61-4628-b700-94ff8f97c38c","changeType":"draft_approved","entity":"invoice","entityId":"2039","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2039,"clientId":25,"number":"001989","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2042,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":24,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ARIEL","clientLastName":"CORTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL DURAZNO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:56.279458] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:56.279521] [debug] Valor de JSON: {"uuid":"4391115d-5d61-4628-b700-94ff8f97c38c","changeType":"draft_approved","entity":"invoice","entityId":"2039","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2039,"clientId":25,"number":"001989","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2042,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":24,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ARIEL","clientLastName":"CORTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL DURAZNO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:56.279652] [debug] Aprobación de Factura + +[2025-05-31 16:01:56.279695] [debug] {"uuid":"4391115d-5d61-4628-b700-94ff8f97c38c","changeType":"draft_approved","entity":"invoice","entityId":2039,"message":null,"clientId":25,"eventName":"invoice.draft_approved","clientData":{"id":25,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL DURAZNO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL DURAZNO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ARIEL","lastName":"CORTES","username":"acortes25","contacts":[{"id":26,"clientId":25,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-14000,"accountCredit":0,"accountOutstanding":14000,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#607d8b","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2039,"clientId":25,"number":"001989","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2042,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":24,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ARIEL","clientLastName":"CORTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL DURAZNO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:57.432694] [notice] Logging level set to:debug +[2025-05-31 16:01:57.432764] [debug] valor del webhook: {"uuid":"0aa11de7-8671-47f4-808b-75be40fd8ab2","changeType":"draft_approved","entity":"invoice","entityId":"2040","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2040,"clientId":67,"number":"001990","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2043,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":66,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TOMAS","clientLastName":"SUASTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:57.575263] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:57.575316] [debug] Valor de JSON: {"uuid":"0aa11de7-8671-47f4-808b-75be40fd8ab2","changeType":"draft_approved","entity":"invoice","entityId":"2040","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2040,"clientId":67,"number":"001990","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2043,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":66,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TOMAS","clientLastName":"SUASTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:57.575423] [debug] Aprobación de Factura + +[2025-05-31 16:01:57.575468] [debug] {"uuid":"0aa11de7-8671-47f4-808b-75be40fd8ab2","changeType":"draft_approved","entity":"invoice","entityId":2040,"message":null,"clientId":67,"eventName":"invoice.draft_approved","clientData":{"id":67,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"TOMAS","lastName":"SUASTE","username":"tsuaste67","contacts":[{"id":68,"clientId":67,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#03a9f4","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2040,"clientId":67,"number":"001990","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2043,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":66,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TOMAS","clientLastName":"SUASTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:01:58.750044] [notice] Logging level set to:debug +[2025-05-31 16:01:58.750164] [debug] valor del webhook: {"uuid":"699d8213-361b-4700-8633-1d7d54aa7dbc","changeType":"draft_approved","entity":"invoice","entityId":"2041","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2041,"clientId":40,"number":"001991","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2044,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":39,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"PADRON","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RANCHO GUADALUPE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:58.899205] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:01:58.899261] [debug] Valor de JSON: {"uuid":"699d8213-361b-4700-8633-1d7d54aa7dbc","changeType":"draft_approved","entity":"invoice","entityId":"2041","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2041,"clientId":40,"number":"001991","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2044,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":39,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"PADRON","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RANCHO GUADALUPE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:01:58.899359] [debug] Aprobación de Factura + +[2025-05-31 16:01:58.899416] [debug] {"uuid":"699d8213-361b-4700-8633-1d7d54aa7dbc","changeType":"draft_approved","entity":"invoice","entityId":2041,"message":null,"clientId":40,"eventName":"invoice.draft_approved","clientData":{"id":40,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"RANCHO GUADALUPE","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"RANCHO GUADALUPE, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"OMAR","lastName":"PADRON","username":"opadron40","contacts":[{"id":41,"clientId":40,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4810,"accountCredit":0,"accountOutstanding":4810,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#fdd835","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2041,"clientId":40,"number":"001991","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2044,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":39,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"PADRON","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RANCHO GUADALUPE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:02:00.071675] [notice] Logging level set to:debug +[2025-05-31 16:02:00.071753] [debug] valor del webhook: {"uuid":"929405b9-b14e-46a7-ac6c-6f441cf37b94","changeType":"draft_approved","entity":"invoice","entityId":"2042","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2042,"clientId":47,"number":"001992","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2045,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":46,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ASRAEL","clientLastName":"PONCE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:02:00.231112] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:02:00.231164] [debug] Valor de JSON: {"uuid":"929405b9-b14e-46a7-ac6c-6f441cf37b94","changeType":"draft_approved","entity":"invoice","entityId":"2042","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2042,"clientId":47,"number":"001992","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2045,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":46,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ASRAEL","clientLastName":"PONCE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:02:00.231276] [debug] Aprobación de Factura + +[2025-05-31 16:02:00.231319] [debug] {"uuid":"929405b9-b14e-46a7-ac6c-6f441cf37b94","changeType":"draft_approved","entity":"invoice","entityId":2042,"message":null,"clientId":47,"eventName":"invoice.draft_approved","clientData":{"id":47,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ASRAEL","lastName":"PONCE","username":"aponce47","contacts":[{"id":48,"clientId":47,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":102,"clientId":47,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtN1ERR1n4E6GPk","clientZoneVisible":true},{"id":103,"clientId":47,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"8205258963078605","clientZoneVisible":true}],"accountBalance":-4780,"accountCredit":0,"accountOutstanding":4780,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef5350","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2042,"clientId":47,"number":"001992","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2045,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":46,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ASRAEL","clientLastName":"PONCE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:02:01.898057] [notice] Logging level set to:debug +[2025-05-31 16:02:01.898118] [debug] valor del webhook: {"uuid":"449064aa-c287-4c5c-b5ea-94c6a4742b45","changeType":"draft_approved","entity":"invoice","entityId":"2043","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2043,"clientId":41,"number":"001993","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2046,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":40,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUDITH","clientLastName":"CUELLAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN SEBASTIAN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:02:02.025228] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:02:02.025285] [debug] Valor de JSON: {"uuid":"449064aa-c287-4c5c-b5ea-94c6a4742b45","changeType":"draft_approved","entity":"invoice","entityId":"2043","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2043,"clientId":41,"number":"001993","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2046,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":40,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUDITH","clientLastName":"CUELLAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN SEBASTIAN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:02:02.025382] [debug] Aprobación de Factura + +[2025-05-31 16:02:02.025424] [debug] {"uuid":"449064aa-c287-4c5c-b5ea-94c6a4742b45","changeType":"draft_approved","entity":"invoice","entityId":2043,"message":null,"clientId":41,"eventName":"invoice.draft_approved","clientData":{"id":41,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN SEBASTIAN","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN SEBASTIAN, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JUDITH","lastName":"CUELLAR","username":"jcuellar41","contacts":[{"id":42,"clientId":41,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4810,"accountCredit":0,"accountOutstanding":4810,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#546e7a","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2043,"clientId":41,"number":"001993","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2046,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":40,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUDITH","clientLastName":"CUELLAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN SEBASTIAN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:02:03.167715] [notice] Logging level set to:debug +[2025-05-31 16:02:03.167798] [debug] valor del webhook: {"uuid":"a2087092-b94f-4cde-abe4-bac60497c675","changeType":"draft_approved","entity":"invoice","entityId":"2044","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2044,"clientId":36,"number":"001994","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2047,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":35,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURORA","clientLastName":"FLORES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS FLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:02:03.314791] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:02:03.314845] [debug] Valor de JSON: {"uuid":"a2087092-b94f-4cde-abe4-bac60497c675","changeType":"draft_approved","entity":"invoice","entityId":"2044","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2044,"clientId":36,"number":"001994","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2047,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":35,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURORA","clientLastName":"FLORES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS FLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:02:03.314954] [debug] Aprobación de Factura + +[2025-05-31 16:02:03.315026] [debug] {"uuid":"a2087092-b94f-4cde-abe4-bac60497c675","changeType":"draft_approved","entity":"invoice","entityId":2044,"message":null,"clientId":36,"eventName":"invoice.draft_approved","clientData":{"id":36,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LAS FLORES","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LAS FLORES, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"AURORA","lastName":"FLORES","username":"aflores36","contacts":[{"id":37,"clientId":36,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-6590,"accountCredit":0,"accountOutstanding":6590,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00695c","addressGpsLat":21.1511969,"addressGpsLon":-100.9132525,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2044,"clientId":36,"number":"001994","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2047,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":35,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURORA","clientLastName":"FLORES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS FLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:02:04.483755] [notice] Logging level set to:debug +[2025-05-31 16:02:04.483943] [debug] valor del webhook: {"uuid":"ed1c5604-c24c-4a87-b293-1739263942ad","changeType":"draft_approved","entity":"invoice","entityId":"2045","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2045,"clientId":72,"number":"001995","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2048,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":71,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BRANDOM","clientLastName":"EZQUIVEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:02:04.624140] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:02:04.624190] [debug] Valor de JSON: {"uuid":"ed1c5604-c24c-4a87-b293-1739263942ad","changeType":"draft_approved","entity":"invoice","entityId":"2045","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2045,"clientId":72,"number":"001995","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2048,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":71,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BRANDOM","clientLastName":"EZQUIVEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:02:04.624284] [debug] Aprobación de Factura + +[2025-05-31 16:02:04.624326] [debug] {"uuid":"ed1c5604-c24c-4a87-b293-1739263942ad","changeType":"draft_approved","entity":"invoice","entityId":2045,"message":null,"clientId":72,"eventName":"invoice.draft_approved","clientData":{"id":72,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"MONTELONGO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"MONTELONGO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"BRANDOM","lastName":"EZQUIVEL","username":"bezquivel72","contacts":[{"id":73,"clientId":72,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ff8f00","addressGpsLat":21.2384788,"addressGpsLon":-100.8430302,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2045,"clientId":72,"number":"001995","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2048,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":71,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BRANDOM","clientLastName":"EZQUIVEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:02:05.804007] [notice] Logging level set to:debug +[2025-05-31 16:02:05.804064] [debug] valor del webhook: {"uuid":"1e28880d-2341-48bf-8760-a02a8bb52a68","changeType":"draft_approved","entity":"invoice","entityId":"2046","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2046,"clientId":34,"number":"001996","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2049,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":33,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NORMA","clientLastName":"ALMAGUER","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ROSALITO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:02:05.937719] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:02:05.937771] [debug] Valor de JSON: {"uuid":"1e28880d-2341-48bf-8760-a02a8bb52a68","changeType":"draft_approved","entity":"invoice","entityId":"2046","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2046,"clientId":34,"number":"001996","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2049,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":33,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NORMA","clientLastName":"ALMAGUER","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ROSALITO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:02:05.937868] [debug] Aprobación de Factura + +[2025-05-31 16:02:05.937911] [debug] {"uuid":"1e28880d-2341-48bf-8760-a02a8bb52a68","changeType":"draft_approved","entity":"invoice","entityId":2046,"message":null,"clientId":34,"eventName":"invoice.draft_approved","clientData":{"id":34,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL ROSALITO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL ROSALITO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"NORMA","lastName":"ALMAGUER","username":"nalmaguer34","contacts":[{"id":35,"clientId":34,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5410,"accountCredit":0,"accountOutstanding":5410,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#0277bd","addressGpsLat":21.2514711,"addressGpsLon":-100.738323,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2046,"clientId":34,"number":"001996","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2049,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":33,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NORMA","clientLastName":"ALMAGUER","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ROSALITO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:02:07.091950] [notice] Logging level set to:debug +[2025-05-31 16:02:07.092037] [debug] valor del webhook: {"uuid":"6d3d4a3c-afbb-40e0-a38d-adfa48710620","changeType":"draft_approved","entity":"invoice","entityId":"2047","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2047,"clientId":75,"number":"001997","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2050,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":74,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAUL","clientLastName":"AYALA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:02:07.241697] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:02:07.241754] [debug] Valor de JSON: {"uuid":"6d3d4a3c-afbb-40e0-a38d-adfa48710620","changeType":"draft_approved","entity":"invoice","entityId":"2047","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2047,"clientId":75,"number":"001997","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2050,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":74,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAUL","clientLastName":"AYALA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:02:07.241875] [debug] Aprobación de Factura + +[2025-05-31 16:02:07.241919] [debug] {"uuid":"6d3d4a3c-afbb-40e0-a38d-adfa48710620","changeType":"draft_approved","entity":"invoice","entityId":2047,"message":null,"clientId":75,"eventName":"invoice.draft_approved","clientData":{"id":75,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ELIAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ELIAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"RAUL","lastName":"AYALA","username":"rayala75","contacts":[{"id":76,"clientId":75,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#6a1b9a","addressGpsLat":21.2516667,"addressGpsLon":-101.0924998,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2047,"clientId":75,"number":"001997","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2050,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":74,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAUL","clientLastName":"AYALA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:02:08.359462] [notice] Logging level set to:debug +[2025-05-31 16:02:08.359544] [debug] valor del webhook: {"uuid":"864ca8a5-e658-42b2-a31b-46c6fddee51b","changeType":"draft_approved","entity":"invoice","entityId":"2048","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2048,"clientId":99,"number":"001998","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2051,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":98,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BELINDA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:02:08.497427] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:02:08.497478] [debug] Valor de JSON: {"uuid":"864ca8a5-e658-42b2-a31b-46c6fddee51b","changeType":"draft_approved","entity":"invoice","entityId":"2048","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2048,"clientId":99,"number":"001998","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2051,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":98,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BELINDA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:02:08.497584] [debug] Aprobación de Factura + +[2025-05-31 16:02:08.497627] [debug] {"uuid":"864ca8a5-e658-42b2-a31b-46c6fddee51b","changeType":"draft_approved","entity":"invoice","entityId":2048,"message":null,"clientId":99,"eventName":"invoice.draft_approved","clientData":{"id":99,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"MONTELONGO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"MONTELONGO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"BELINDA","lastName":"REYES","username":"breyes99","contacts":[{"id":100,"clientId":99,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-6300,"accountCredit":0,"accountOutstanding":6300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#558b2f","addressGpsLat":21.2384788,"addressGpsLon":-100.8430302,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2048,"clientId":99,"number":"001998","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2051,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":98,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BELINDA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:02:09.648137] [notice] Logging level set to:debug +[2025-05-31 16:02:09.648232] [debug] valor del webhook: {"uuid":"3f23ef0a-e073-45e6-8f03-e9165af5c9ee","changeType":"draft_approved","entity":"invoice","entityId":"2049","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2049,"clientId":18,"number":"001999","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2052,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":17,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"INGRID","clientLastName":"CORONADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:02:09.785618] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:02:09.785680] [debug] Valor de JSON: {"uuid":"3f23ef0a-e073-45e6-8f03-e9165af5c9ee","changeType":"draft_approved","entity":"invoice","entityId":"2049","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2049,"clientId":18,"number":"001999","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2052,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":17,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"INGRID","clientLastName":"CORONADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:02:09.785793] [debug] Aprobación de Factura + +[2025-05-31 16:02:09.785840] [debug] {"uuid":"3f23ef0a-e073-45e6-8f03-e9165af5c9ee","changeType":"draft_approved","entity":"invoice","entityId":2049,"message":null,"clientId":18,"eventName":"invoice.draft_approved","clientData":{"id":18,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"INGRID","lastName":"CORONADO","username":"icoronado18","contacts":[{"id":19,"clientId":18,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-11900,"accountCredit":0,"accountOutstanding":11900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#039be5","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2049,"clientId":18,"number":"001999","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2052,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":17,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"INGRID","clientLastName":"CORONADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:02:10.937354] [notice] Logging level set to:debug +[2025-05-31 16:02:10.937422] [debug] valor del webhook: {"uuid":"2d10de2d-7e49-46df-adb3-39183c57bfcf","changeType":"draft_approved","entity":"invoice","entityId":"2050","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2050,"clientId":11,"number":"002000","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2053,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":11,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"KARIME","clientLastName":"QUINTERO HERNANDEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:02:11.083502] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:02:11.083554] [debug] Valor de JSON: {"uuid":"2d10de2d-7e49-46df-adb3-39183c57bfcf","changeType":"draft_approved","entity":"invoice","entityId":"2050","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2050,"clientId":11,"number":"002000","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2053,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":11,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"KARIME","clientLastName":"QUINTERO HERNANDEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:02:11.083672] [debug] Aprobación de Factura + +[2025-05-31 16:02:11.083714] [debug] {"uuid":"2d10de2d-7e49-46df-adb3-39183c57bfcf","changeType":"draft_approved","entity":"invoice","entityId":2050,"message":null,"clientId":11,"eventName":"invoice.draft_approved","clientData":{"id":11,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TRANCAS","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TRANCAS, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"KARIME","lastName":"QUINTERO HERNANDEZ","username":"kquintero11","contacts":[{"id":12,"clientId":11,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.2271959,"addressGpsLon":-101.0269744,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2050,"clientId":11,"number":"002000","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2053,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":11,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"KARIME","clientLastName":"QUINTERO HERNANDEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:02:12.234683] [notice] Logging level set to:debug +[2025-05-31 16:02:12.234795] [debug] valor del webhook: {"uuid":"702f674d-a382-4285-ba0c-ad901e4592df","changeType":"draft_approved","entity":"invoice","entityId":"2051","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2051,"clientId":68,"number":"002001","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2054,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":67,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DOLORES","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:02:12.372459] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:02:12.372520] [debug] Valor de JSON: {"uuid":"702f674d-a382-4285-ba0c-ad901e4592df","changeType":"draft_approved","entity":"invoice","entityId":"2051","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2051,"clientId":68,"number":"002001","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2054,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":67,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DOLORES","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:02:12.372622] [debug] Aprobación de Factura + +[2025-05-31 16:02:12.372665] [debug] {"uuid":"702f674d-a382-4285-ba0c-ad901e4592df","changeType":"draft_approved","entity":"invoice","entityId":2051,"message":null,"clientId":68,"eventName":"invoice.draft_approved","clientData":{"id":68,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ELIAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ELIAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"DOLORES","lastName":"GARCIA","username":"dgarcia68","contacts":[{"id":69,"clientId":68,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#9e9d24","addressGpsLat":21.2516667,"addressGpsLon":-101.0924998,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2051,"clientId":68,"number":"002001","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2054,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":67,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DOLORES","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:02:13.541991] [notice] Logging level set to:debug +[2025-05-31 16:02:13.542088] [debug] valor del webhook: {"uuid":"7f5c92b0-0652-4e29-bb35-ad02020d0501","changeType":"draft_approved","entity":"invoice","entityId":"2052","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2052,"clientId":12,"number":"002002","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2055,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":12,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MIRIAM","clientLastName":"ZURITA RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:02:13.695902] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:02:13.695961] [debug] Valor de JSON: {"uuid":"7f5c92b0-0652-4e29-bb35-ad02020d0501","changeType":"draft_approved","entity":"invoice","entityId":"2052","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2052,"clientId":12,"number":"002002","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2055,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":12,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MIRIAM","clientLastName":"ZURITA RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:02:13.696088] [debug] Aprobación de Factura + +[2025-05-31 16:02:13.696134] [debug] {"uuid":"7f5c92b0-0652-4e29-bb35-ad02020d0501","changeType":"draft_approved","entity":"invoice","entityId":2052,"message":null,"clientId":12,"eventName":"invoice.draft_approved","clientData":{"id":12,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"DOLORES HIDALGO","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MIRIAM","lastName":"ZURITA RAMIREZ","username":"mzurita12","contacts":[{"id":13,"clientId":12,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-9933.33,"accountCredit":0,"accountOutstanding":9933.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#9c27b0","addressGpsLat":21.1574,"addressGpsLon":-100.934617,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2052,"clientId":12,"number":"002002","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2055,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":12,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MIRIAM","clientLastName":"ZURITA RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:02:13.696183] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-05-31 16:02:13.696193] [info] Tipo de contacto normalizado: 'whatsapp' +Notificacion data: {"uuid":"7f5c92b0-0652-4e29-bb35-ad02020d0501","changeType":"draft_approved","entity":"invoice","entityId":2052,"message":null,"clientId":12,"eventName":"invoice.draft_approved","clientData":{"id":12,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"DOLORES HIDALGO","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MIRIAM","lastName":"ZURITA RAMIREZ","username":"mzurita12","contacts":[{"id":13,"clientId":12,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-9933.33,"accountCredit":0,"accountOutstanding":9933.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#9c27b0","addressGpsLat":21.1574,"addressGpsLon":-100.934617,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2052,"clientId":12,"number":"002002","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2055,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":12,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MIRIAM","clientLastName":"ZURITA RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":11,"clientId":12,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-01-29T11:46:50-0600","amount":3500,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":13,"invoiceId":20,"paymentId":11,"creditNoteId":null,"refundId":null,"amount":3500}],"creditAmount":0,"userId":1000,"attributes":[]}] + +Nombre del cliente que se va a actualizar: MIRIAM ZURITA RAMIREZ + +UUID: 7ec1948ad8af4bcd8eff0d7c2a995d09 + +JSON con los datos a actualizar: {"name":"MIRIAM ZURITA RAMIREZ","custom_fields":{"Cliente":12,"Domicilio":"\ud83d\udccd DOLORES HIDALGO","Nombre":"\ud83d\udc64 MIRIAM ZURITA RAMIREZ","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/12","Saldo Actual":"\ud83d\udcb29933.33 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 3500","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"12\",\"Domicilio\": \"\"Nombre\": \"MIRIAM ZURITA RAMIREZ\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/12\",\"Saldo Actual\": \"\ud83d\udcb29933.33 pendientes\",\"Monto Ultimo Pago\": \"$ 3500\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29\/01\/2024 11:46 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"31\/05\/2025 10:02\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 29\/01\/2024 11:46 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 31\/05\/2025 10:02","Clabe Interbancaria":null,"Site":"","Antena\/Sectorial":""}} + +JSON con los datos a actualizar del resumen: {"Cliente": "12","Domicilio": ""Nombre": "MIRIAM ZURITA RAMIREZ","URL": "https://sistema.siip.mx/crm/client/12","Saldo Actual": "💲9933.33 pendientes","Monto Ultimo Pago": "$ 3500","Estado": "Suspendido","Fecha Ultimo Pago": " 29/01/2024 11:46 con Efectivo 💵","Fecha Ultima Actualizacion": "31/05/2025 10:02","Clabe Interbancaria": "","Site": "","Antena/Sectorial": ""} + +Response Patch CallBell: {"contact":{"uuid":"7ec1948ad8af4bcd8eff0d7c2a995d09","name":"MIRIAM ZURITA RAMIREZ","phoneNumber":"5214181577623","avatarUrl":null,"createdAt":"2023-12-22T16:52:57Z","closedAt":"2025-01-07T23:12:30Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7ec1948ad8af4bcd8eff0d7c2a995d09","conversationHref":"https://dash.callbell.eu/chat/d06f5a96768c4945b7a659a6930e5fa0","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clabe Interbancaria":"124180650725363841","user name":"Míriam Moctezuma","Antena/Sectorial":"SECTORIAL-2 172.16.12.11/24","Site":"GPE1","Estado":"🔴 Suspendido","Monto Ultimo Pago":"💲 3500","Domicilio":"📍 DOLORES HIDALGO","Resumen":"{\"Cliente\": \"12\",\"Domicilio\": \"\"Nombre\": \"MIRIAM ZURITA RAMIREZ\",\"URL\": \"https://sistema.siip.mx/crm/client/12\",\"Saldo Actual\": \"💲9933.33 pendientes\",\"Monto Ultimo Pago\": \"$ 3500\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29/01/2024 11:46 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/05/2025 10:02\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Cliente":"12","URL":"🌐 https://sistema.siip.mx/crm/client/12","Saldo Actual":"💲9933.33 pendientes","Fecha Ultimo Pago":"📆💸 29/01/2024 11:46 con Efectivo 💵","Fecha Ultima Actualizacion":"📆🔄️ 31/05/2025 10:02","Nombre":"👤 MIRIAM ZURITA RAMIREZ"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +Response 2 Patch CallBell: {"contact":{"uuid":"7ec1948ad8af4bcd8eff0d7c2a995d09","name":"MIRIAM ZURITA RAMIREZ","phoneNumber":"5214181577623","avatarUrl":null,"createdAt":"2023-12-22T16:52:57Z","closedAt":"2025-01-07T23:12:30Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7ec1948ad8af4bcd8eff0d7c2a995d09","conversationHref":"https://dash.callbell.eu/chat/d06f5a96768c4945b7a659a6930e5fa0","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clabe Interbancaria":"124180650725363841","user name":"Míriam Moctezuma","Antena/Sectorial":"SECTORIAL-2 172.16.12.11/24","Site":"GPE1","Estado":"🔴 Suspendido","Monto Ultimo Pago":"💲 3500","Domicilio":"📍 DOLORES HIDALGO","Resumen":"{\"Cliente\": \"12\",\"Domicilio\": \"\"Nombre\": \"MIRIAM ZURITA RAMIREZ\",\"URL\": \"https://sistema.siip.mx/crm/client/12\",\"Saldo Actual\": \"💲9933.33 pendientes\",\"Monto Ultimo Pago\": \"$ 3500\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29/01/2024 11:46 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/05/2025 10:02\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Cliente":"12","URL":"🌐 https://sistema.siip.mx/crm/client/12","Saldo Actual":"💲9933.33 pendientes","Fecha Ultimo Pago":"📆💸 29/01/2024 11:46 con Efectivo 💵","Fecha Ultima Actualizacion":"📆🔄️ 31/05/2025 10:02","Nombre":"👤 MIRIAM ZURITA RAMIREZ"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-05-31 16:02:16.469988] [notice] Logging level set to:debug +[2025-05-31 16:02:16.470093] [debug] valor del webhook: {"uuid":"8c505821-f989-46d8-81df-1f5b7a20a755","changeType":"draft_approved","entity":"invoice","entityId":"2053","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2053,"clientId":20,"number":"002003","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2056,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":19,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEFANIA","clientLastName":"BUENROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN PABLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:02:16.611959] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:02:16.612013] [debug] Valor de JSON: {"uuid":"8c505821-f989-46d8-81df-1f5b7a20a755","changeType":"draft_approved","entity":"invoice","entityId":"2053","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2053,"clientId":20,"number":"002003","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2056,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":19,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEFANIA","clientLastName":"BUENROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN PABLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:02:16.612124] [debug] Aprobación de Factura + +[2025-05-31 16:02:16.612169] [debug] {"uuid":"8c505821-f989-46d8-81df-1f5b7a20a755","changeType":"draft_approved","entity":"invoice","entityId":2053,"message":null,"clientId":20,"eventName":"invoice.draft_approved","clientData":{"id":20,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN PABLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN PABLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ESTEFANIA","lastName":"BUENROSTRO","username":"ebuenrostro20","contacts":[{"id":21,"clientId":20,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4780,"accountCredit":0,"accountOutstanding":4780,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#0277bd","addressGpsLat":21.1575375,"addressGpsLon":-100.9440518,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2053,"clientId":20,"number":"002003","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2056,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":19,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEFANIA","clientLastName":"BUENROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN PABLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:02:17.638762] [notice] Logging level set to:debug +[2025-05-31 16:02:17.638875] [debug] valor del webhook: {"uuid":"261063f7-1e14-4f90-94e2-484c49248587","changeType":"draft_approved","entity":"invoice","entityId":"2054","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2054,"clientId":6,"number":"002004","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2057,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":6,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEJANDRO","clientLastName":"MOCTEZUMA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:02:17.770859] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:02:17.770909] [debug] Valor de JSON: {"uuid":"261063f7-1e14-4f90-94e2-484c49248587","changeType":"draft_approved","entity":"invoice","entityId":"2054","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2054,"clientId":6,"number":"002004","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2057,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":6,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEJANDRO","clientLastName":"MOCTEZUMA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:02:17.771079] [debug] Aprobación de Factura + +[2025-05-31 16:02:17.771126] [debug] {"uuid":"261063f7-1e14-4f90-94e2-484c49248587","changeType":"draft_approved","entity":"invoice","entityId":2054,"message":null,"clientId":6,"eventName":"invoice.draft_approved","clientData":{"id":6,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"ALEJANDRO","lastName":"MOCTEZUMA","username":"amoctezuma06","contacts":[{"id":7,"clientId":6,"email":null,"phone":"5214181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-4780,"accountCredit":0,"accountOutstanding":4780,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574,"addressGpsLon":-100.934617,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2054,"clientId":6,"number":"002004","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2057,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":6,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEJANDRO","clientLastName":"MOCTEZUMA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-05-31 16:02:17.771161] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-05-31 16:02:17.771171] [info] Tipo de contacto normalizado: 'whatsapp' +Notificacion data: {"uuid":"261063f7-1e14-4f90-94e2-484c49248587","changeType":"draft_approved","entity":"invoice","entityId":2054,"message":null,"clientId":6,"eventName":"invoice.draft_approved","clientData":{"id":6,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"ALEJANDRO","lastName":"MOCTEZUMA","username":"amoctezuma06","contacts":[{"id":7,"clientId":6,"email":null,"phone":"5214181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-4780,"accountCredit":0,"accountOutstanding":4780,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574,"addressGpsLon":-100.934617,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2054,"clientId":6,"number":"002004","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2057,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":6,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEJANDRO","clientLastName":"MOCTEZUMA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":27,"clientId":6,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-02-01T12:57:53-0600","amount":2000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":30,"invoiceId":7,"paymentId":27,"creditNoteId":null,"refundId":null,"amount":1700},{"id":31,"invoiceId":5,"paymentId":27,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1000,"attributes":[]}] + +Nombre del cliente que se va a actualizar: ALEJANDRO MOCTEZUMA + +UUID: 71a76e57f89441ff978a5ece070f21d7 + +JSON con los datos a actualizar: {"name":"ALEJANDRO MOCTEZUMA","custom_fields":{"Cliente":6,"Domicilio":"\ud83d\udccd DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","Nombre":"\ud83d\udc64 ALEJANDRO MOCTEZUMA","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/6","Saldo Actual":"\ud83d\udcb24780 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 2000","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"6\",\"Domicilio\": \"\"Nombre\": \"ALEJANDRO MOCTEZUMA\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/6\",\"Saldo Actual\": \"\ud83d\udcb24780 pendientes\",\"Monto Ultimo Pago\": \"$ 2000\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 01\/02\/2024 12:57 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"31\/05\/2025 10:02\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 01\/02\/2024 12:57 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 31\/05\/2025 10:02","Clabe Interbancaria":null,"Site":"","Antena\/Sectorial":""}} + +JSON con los datos a actualizar del resumen: {"Cliente": "6","Domicilio": ""Nombre": "ALEJANDRO MOCTEZUMA","URL": "https://sistema.siip.mx/crm/client/6","Saldo Actual": "💲4780 pendientes","Monto Ultimo Pago": "$ 2000","Estado": "Suspendido","Fecha Ultimo Pago": " 01/02/2024 12:57 con Efectivo 💵","Fecha Ultima Actualizacion": "31/05/2025 10:02","Clabe Interbancaria": "","Site": "","Antena/Sectorial": ""} + +Response Patch CallBell: {"contact":{"uuid":"71a76e57f89441ff978a5ece070f21d7","name":"ALEJANDRO MOCTEZUMA","phoneNumber":"5214181811375","avatarUrl":null,"createdAt":"2021-06-25T15:57:32Z","closedAt":"2025-05-23T15:41:40Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/71a76e57f89441ff978a5ece070f21d7","conversationHref":"https://dash.callbell.eu/chat/6c83978a945141db820592787b7184d5","tags":["SIIP"],"assignedUser":null,"customFields":{"Antena/Sectorial":"6","Nombre":"👤 ALEJANDRO MOCTEZUMA","Domicilio":"📍 DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","Fecha Ultimo Pago":"📆💸 01/02/2024 12:57 con Efectivo 💵","Monto Ultimo Pago":"💲 2000","Estado":"🔴 Suspendido","Cliente":"6","URL":"🌐 https://sistema.siip.mx/crm/client/6","user name":"🤩🤤","user entry point":"inbound_message","Acciones":"NOBOT-SIIP","Saldo Actual":"💲4780 pendientes","Resumen":"{\"Cliente\": \"6\",\"Domicilio\": \"\"Nombre\": \"ALEJANDRO MOCTEZUMA\",\"URL\": \"https://sistema.siip.mx/crm/client/6\",\"Saldo Actual\": \"💲4780 pendientes\",\"Monto Ultimo Pago\": \"$ 2000\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 01/02/2024 12:57 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/05/2025 10:02\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Fecha Ultima Actualizacion":"📆🔄️ 31/05/2025 10:02"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +Response 2 Patch CallBell: {"contact":{"uuid":"71a76e57f89441ff978a5ece070f21d7","name":"ALEJANDRO MOCTEZUMA","phoneNumber":"5214181811375","avatarUrl":null,"createdAt":"2021-06-25T15:57:32Z","closedAt":"2025-05-23T15:41:40Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/71a76e57f89441ff978a5ece070f21d7","conversationHref":"https://dash.callbell.eu/chat/6c83978a945141db820592787b7184d5","tags":["SIIP"],"assignedUser":null,"customFields":{"Antena/Sectorial":"6","Nombre":"👤 ALEJANDRO MOCTEZUMA","Domicilio":"📍 DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","Fecha Ultimo Pago":"📆💸 01/02/2024 12:57 con Efectivo 💵","Monto Ultimo Pago":"💲 2000","Estado":"🔴 Suspendido","Cliente":"6","URL":"🌐 https://sistema.siip.mx/crm/client/6","user name":"🤩🤤","user entry point":"inbound_message","Acciones":"NOBOT-SIIP","Saldo Actual":"💲4780 pendientes","Resumen":"{\"Cliente\": \"6\",\"Domicilio\": \"\"Nombre\": \"ALEJANDRO MOCTEZUMA\",\"URL\": \"https://sistema.siip.mx/crm/client/6\",\"Saldo Actual\": \"💲4780 pendientes\",\"Monto Ultimo Pago\": \"$ 2000\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 01/02/2024 12:57 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/05/2025 10:02\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Fecha Ultima Actualizacion":"📆🔄️ 31/05/2025 10:02"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-05-31 16:02:20.516747] [notice] Logging level set to:debug +[2025-05-31 16:02:20.516801] [debug] valor del webhook: {"uuid":"2114e3f6-171e-4f90-8e63-f22775ae3509","changeType":"draft_approved","entity":"invoice","entityId":"2055","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2055,"clientId":60,"number":"002005","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2058,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":59,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MANUEL","clientLastName":"CORENEO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:02:20.662806] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-05-31 16:02:20.662861] [debug] Valor de JSON: {"uuid":"2114e3f6-171e-4f90-8e63-f22775ae3509","changeType":"draft_approved","entity":"invoice","entityId":"2055","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2055,"clientId":60,"number":"002005","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2058,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":59,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MANUEL","clientLastName":"CORENEO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-05-31 16:02:20.662981] [debug] Aprobación de Factura + +[2025-05-31 16:02:20.663098] [debug] {"uuid":"2114e3f6-171e-4f90-8e63-f22775ae3509","changeType":"draft_approved","entity":"invoice","entityId":2055,"message":null,"clientId":60,"eventName":"invoice.draft_approved","clientData":{"id":60,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TECOLOTE","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TECOLOTE, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MANUEL","lastName":"CORENEO","username":"mcoreneo60","contacts":[{"id":61,"clientId":60,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#6a1b9a","addressGpsLat":21.22987,"addressGpsLon":-101.0648115,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2055,"clientId":60,"number":"002005","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2058,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":59,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MANUEL","clientLastName":"CORENEO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-06-01 16:00:04.666373] [notice] Logging level set to:debug +[2025-06-01 16:00:04.666459] [debug] valor del webhook: {"uuid":"e2141650-c145-4c60-9c9b-21da04f52483","changeType":"draft_approved","entity":"invoice","entityId":"2056","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2056,"clientId":132,"number":"002006","createdDate":"2025-06-01T10:00:02-0600","dueDate":"2025-06-15T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-31T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2059,"type":"service","label":"plan300 01\/05\/2025 \u2013 31\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":115,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Marto","clientLastName":"Vago Payaso","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"20 Avenida Norte","clientStreet2":null,"clientCity":"Guanajuato","clientCountryId":173,"clientStateId":null,"clientZipCode":"37807","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-06-01 16:00:04.921533] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-06-01 16:00:04.921587] [debug] Valor de JSON: {"uuid":"e2141650-c145-4c60-9c9b-21da04f52483","changeType":"draft_approved","entity":"invoice","entityId":"2056","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2056,"clientId":132,"number":"002006","createdDate":"2025-06-01T10:00:02-0600","dueDate":"2025-06-15T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-31T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2059,"type":"service","label":"plan300 01\/05\/2025 \u2013 31\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":115,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Marto","clientLastName":"Vago Payaso","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"20 Avenida Norte","clientStreet2":null,"clientCity":"Guanajuato","clientCountryId":173,"clientStateId":null,"clientZipCode":"37807","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-06-01 16:00:04.921797] [debug] Aprobación de Factura + +[2025-06-01 16:00:04.921863] [debug] {"uuid":"e2141650-c145-4c60-9c9b-21da04f52483","changeType":"draft_approved","entity":"invoice","entityId":2056,"message":null,"clientId":132,"eventName":"invoice.draft_approved","clientData":{"id":132,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"20 Avenida Norte","street2":null,"city":"Guanajuato","countryId":173,"stateId":null,"zipCode":"37807","fullAddress":"Avenida Norte 20, Dolores, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-18T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Marto","lastName":"Vago Payaso","username":null,"contacts":[{"id":136,"clientId":132,"email":"vagopayaso@gmail.com","phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3300,"accountCredit":0,"accountOutstanding":3300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#9c27b0","addressGpsLat":21.1641484,"addressGpsLon":-100.9405409,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2056,"clientId":132,"number":"002006","createdDate":"2025-06-01T10:00:02-0600","dueDate":"2025-06-15T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2059,"type":"service","label":"plan300 01\/05\/2025 \u2013 31\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":115,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Marto","clientLastName":"Vago Payaso","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"20 Avenida Norte","clientStreet2":null,"clientCity":"Guanajuato","clientCountryId":173,"clientStateId":null,"clientZipCode":"37807","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + diff --git a/manifest.json b/manifest.json index fc6ffe9c..26d029ef 100755 --- a/manifest.json +++ b/manifest.json @@ -5,7 +5,7 @@ "displayName": "SIIP - Procesador de Pagos en línea con Stripe, Oxxo y Transferencia, Sincronizador de CallBell y Envío de Notificaciones y comprobantes vía WhatsApp", "description": "Este plugin sincroniza los clientes del sistema UISP CRM con los contactos de WhatsApp en CallBell, además procesa pagos de Stripe como las trasferencias bancarias y genera referencias de pago vía OXXO, además envía comprobantes de pago en formato imagen PNG o texto vía Whatsapp a los clientes", "url": "https://siip.mx/", - "version": "2.8.2", + "version": "2.8.5", "unmsVersionCompliancy": { "min": "2.1.0", "max": null diff --git a/src/Facade/AbstractMessageNotifierFacade.php b/src/Facade/AbstractMessageNotifierFacade.php index 1d3085c3..64553833 100755 --- a/src/Facade/AbstractMessageNotifierFacade.php +++ b/src/Facade/AbstractMessageNotifierFacade.php @@ -256,47 +256,48 @@ abstract class AbstractMessageNotifierFacade $hour = $date->format('h'); $clockEmoji = "🕐"; // Emoji por defecto // Determinar el emoji del reloj según la hora - switch ($hour) { - case '01': - $clockEmoji = "🕐"; - break; - case '02': - $clockEmoji = "🕑"; - break; - case '03': - $clockEmoji = "🕒"; - break; - case '04': - $clockEmoji = "🕓"; - break; - case '05': - $clockEmoji = "🕔"; - break; - case '06': - $clockEmoji = "🕕"; - break; - case '07': - $clockEmoji = "🕖"; - break; - case '08': - $clockEmoji = "🕗"; - break; - case '09': - $clockEmoji = "🕘"; - break; - case '10': - $clockEmoji = "🕙"; - break; - case '11': - $clockEmoji = "🕚"; - break; - case '12': - $clockEmoji = "🕛"; - break; - } + // switch ($hour) { + // case '01': + // $clockEmoji = "🕐"; + // break; + // case '02': + // $clockEmoji = "🕑"; + // break; + // case '03': + // $clockEmoji = "🕒"; + // break; + // case '04': + // $clockEmoji = "🕓"; + // break; + // case '05': + // $clockEmoji = "🕔"; + // break; + // case '06': + // $clockEmoji = "🕕"; + // break; + // case '07': + // $clockEmoji = "🕖"; + // break; + // case '08': + // $clockEmoji = "🕗"; + // break; + // case '09': + // $clockEmoji = "🕘"; + // break; + // case '10': + // $clockEmoji = "🕙"; + // break; + // case '11': + // $clockEmoji = "🕚"; + // break; + // case '12': + // $clockEmoji = "🕛"; + // break; + // } // Formatear la fecha al formato deseado: día/mes/año a las hora:minuto am/pm aproximadamente - $formattedDate = "*" . $date->format('d/m/Y') . "* a las $clockEmoji *" . $date->format('h:i A') . "* aproximadamente"; + // $formattedDate = "*" . $date->format('d/m/Y') . "* a las $clockEmoji *" . $date->format('h:i A') . "* aproximadamente"; + $formattedDate = sprintf("*%s*", $date->format('d/m/Y')); // $this->logger->debug('Valor de $formattedDate en verifyJobActionToDo: ' . $formattedDate . PHP_EOL); @@ -586,7 +587,7 @@ abstract class AbstractMessageNotifierFacade // Construir el array asociativo con los datos de la notificación para el instalador nuevo $jsonInstallerJobNotificationData = [ "installerName" => $installerFullName, - "clientFullName" => sprintf("[%s] %s", $arrayClientCRM['id'], $clientFullName), + "clientFullName" => sprintf("%s [ID:%s]", $clientFullName, $arrayClientCRM['id']), "jobId" => $jobId, "clientAddress" => $safeAddress, "clientWhatsApp" => $resultadoFinalNumerosCliente, @@ -609,7 +610,7 @@ abstract class AbstractMessageNotifierFacade $jsonInstallerJobNotificationData, false, false, - $this->getVaultCredentials($arrayClientCRM['id']) + $this->getVaultCredentialsByClientId($arrayClientCRM['id']) ); if ($result === false) { @@ -624,7 +625,7 @@ abstract class AbstractMessageNotifierFacade // Construir el array asociativo con los datos de la notificación $jsonInstallerJobNotificationData = [ "installerName" => $installerFullName, - "clientFullName" => sprintf("[%s] %s", $arrayClientCRM['id'], $clientFullName), + "clientFullName" => sprintf("%s [ID:%s]", $clientFullName, $arrayClientCRM['id']), "jobId" => $jobId, "clientAddress" => $safeAddress, "clientWhatsApp" => $resultadoFinalNumerosCliente, @@ -646,7 +647,7 @@ abstract class AbstractMessageNotifierFacade $jsonInstallerJobNotificationData, $reprogramming, $changeInstaller, - $this->getVaultCredentials($arrayClientCRM['id']) + $this->getVaultCredentialsByClientId($arrayClientCRM['id']) ); if ($result === false) { @@ -1175,7 +1176,7 @@ abstract class AbstractMessageNotifierFacade } function getVaultCredentials($dataToSearch): string { - $logger = \Ubnt\UcrmPluginSdk\Service\PluginLogManager::create(); + $configManager = \Ubnt\UcrmPluginSdk\Service\PluginConfigManager::create(); $config = $configManager->loadConfig(); $ucrmBaseUri = $config['ipserver']; @@ -1202,9 +1203,15 @@ abstract class AbstractMessageNotifierFacade //validar si dataToSearch es una dirección IP o una dirección MAC if (filter_var($dataToSearch, FILTER_VALIDATE_IP)) { + // La variable es una dirección IP válida - // $logger->appendLog('Consulta por dirección IP: ' . $dataToSearch); - print ('Consulta por dirección IP: ' . $dataToSearch . PHP_EOL); + //$logger->appendLog('Consulta por dirección IP: ' . $dataToSearch); + $this->logger->info('Consulta por dirección IP: ' . $dataToSearch . PHP_EOL); + + + if ($ucrmBaseUri === '172.16.5.134') { //opción solo para el servidor de pruebas + return 'gYAIEK:Be}SK*01z5+/V'; + } $IpAddressClientId = filter_var($dataToSearch, FILTER_VALIDATE_IP); @@ -1225,15 +1232,14 @@ abstract class AbstractMessageNotifierFacade $siteId = $datasSitesByIP[0]['id']; // print_r('ID DEL SITIO: ' . $siteId . PHP_EOL); // ID del sitio } else { - // $logger->appendLog('No se encontró ningún sitio para la IP proporcionada: ' . $dataToSearch); - print_r('No se encontró ningún sitio para la IP proporcionada: ' . $dataToSearch . PHP_EOL); + + $this->logger->error('No se encontró ningún sitio para la IP proporcionada: ' . $dataToSearch . PHP_EOL); return 'Error: No se encontró ningún sitio para la IP proporcionada: ' . $dataToSearch; // Return early if no site is found } } else { - //echo "Error en la solicitud. Código de estado HTTP: " . $responseSitesByIP->getStatusCode() . PHP_EOL; - // $logger->appendLog('Error en la solicitud. Código de estado HTTP: ' . $responseSitesByIP->getStatusCode()); - print_r('Error en la solicitud. Código de estado HTTP: ' . $responseSitesByIP->getStatusCode() . PHP_EOL); + + $this->logger->error('Falla en la solicitud. Código de estado HTTP: ' . $responseSitesByIP->getStatusCode() . PHP_EOL); return 'Error: Falla en la solicitud. Código de estado HTTP: ' . $responseSitesByIP->getStatusCode(); // Return early if the request fails } @@ -1257,23 +1263,18 @@ abstract class AbstractMessageNotifierFacade break; // Salir del ciclo si se encuentra la IP } } else { - // $logger->appendLog('No se encontró la IP del dispositivo en la respuesta de la API.'); - print_r('No se encontró la IP del dispositivo en la respuesta de la API.' . PHP_EOL); + $this->logger->error('No se encontró la IP del dispositivo en la respuesta de la API.' . PHP_EOL); return 'Error: No se encontró la IP del dispositivo en la respuesta de la API.'; // Return early if the IP is not found } } if ($deviceID == null) { - //echo "No se encontró el dispositivo con la IP proporcionada." . PHP_EOL; - // $logger->appendLog('No se encontró el dispositivo con la IP proporcionada: ' . $IpAddressClientId); - print_r('No se encontró el dispositivo con la IP proporcionada: ' . $IpAddressClientId . PHP_EOL); + $this->logger->error('No se encontró el dispositivo con la IP proporcionada: ' . $IpAddressClientId . PHP_EOL); return 'Error: No se encontró el dispositivo con la IP proporcionada: ' . $IpAddressClientId; // Return early if no device is found } } else { - // echo "Error en la solicitud. Código de estado HTTP: " . $devicesBySiteId->getStatusCode() . PHP_EOL; - // $logger->appendLog('Error en la solicitud. Código de estado HTTP: ' . $devicesBySiteId->getStatusCode()); - print_r('Error en la solicitud. Código de estado HTTP: ' . $devicesBySiteId->getStatusCode() . PHP_EOL); + $this->logger->error('Falla en la solicitud. Código de estado HTTP: ' . $devicesBySiteId->getStatusCode() . PHP_EOL); return 'Error: Falla en la solicitud. Código de estado HTTP: ' . $devicesBySiteId->getStatusCode(); // Return early if the request fails } @@ -1291,17 +1292,13 @@ abstract class AbstractMessageNotifierFacade if (isset($dataPasswordVault['credentials']['password'])) { $dataPasswordVault = $dataPasswordVault['credentials']['password']; } else { - // echo "No se encontró la contraseña en la respuesta de la API." . PHP_EOL; - // $logger->appendLog('No se encontró una contraseña en la bóveda para la antena de este cliente, es altamente probable que conserve una contraseña conocida.'); - print_r('No se encontró una contraseña en la bóveda para la antena de este cliente, es altamente probable que conserve una contraseña conocida.' . PHP_EOL); + $this->logger->error('No se encontró una contraseña en la bóveda para la antena de este cliente, es altamente probable que conserve una contraseña conocida.' . PHP_EOL); return "Error: No se encontró una contraseña en la bóveda para la antena de este cliente, es altamente probable que conserve una contraseña conocida."; // Return early if the password is not found } return $dataPasswordVault; } else { - // echo "Error en la solicitud. Código de estado HTTP: " . $responsePasswordVault->getStatusCode() . PHP_EOL; - // $logger->appendLog('Error en la solicitud. Código de estado HTTP: ' . $responsePasswordVault->getStatusCode()); - print_r('Error en la solicitud. Código de estado HTTP: ' . $responsePasswordVault->getStatusCode() . PHP_EOL); + $this->logger->error('Falla en la solicitud. Código de estado HTTP: ' . $responsePasswordVault->getStatusCode() . PHP_EOL); return 'Error: Falla en la solicitud. Código de estado HTTP: ' . $responsePasswordVault->getStatusCode(); // Return early if the request fails } @@ -1311,19 +1308,14 @@ abstract class AbstractMessageNotifierFacade $response = $requestException->getResponse(); $statusCode = $response->getStatusCode(); $reason = $response->getReasonPhrase(); - // echo "Error: {$statusCode} - {$reason}" . PHP_EOL; - // echo $response->getBody(); + if ($statusCode == 404) { - // echo "No se encontró el cliente con la dirección IP proporcionada." . PHP_EOL; - // $logger->appendLog('No se encontró el cliente con la dirección IP proporcionada: ' . $IpAddressClientId); - print_r('No se encontró el cliente con la dirección IP proporcionada: ' . $IpAddressClientId . PHP_EOL); + $this->logger->error('No se encontró el cliente con la dirección IP proporcionada: ' . $IpAddressClientId . PHP_EOL); return 'Error: No se encontró el cliente con la dirección IP proporcionada: ' . $IpAddressClientId; // Return early if the client is not found } return 'Error: ' . $reason; // Return early if the request fails } else { - // echo "Error: " . $requestException->getMessage() . PHP_EOL; - // $logger->appendLog('Error: ' . $requestException->getMessage()); - print_r('Error: ' . $requestException->getMessage() . PHP_EOL); + $this->logger->error('Error al realizar la solicitud: ' . $requestException->getMessage() . PHP_EOL); return 'Error: ' . $requestException->getMessage(); // Return early if the request fails } @@ -1331,8 +1323,12 @@ abstract class AbstractMessageNotifierFacade } else if (preg_match('/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/', $dataToSearch)) { // La variable es una dirección MAC válida - // $logger->appendLog('Consulta por dirección MAC: ' . $dataToSearch); - print ('Consulta por dirección MAC: ' . $dataToSearch . PHP_EOL); + + $this->logger->info('Consulta por dirección MAC: ' . $dataToSearch . PHP_EOL); + + if ($ucrmBaseUri === '172.16.5.134') { //opción solo para el servidor de pruebas + return 'gYAIEK:Be}SK*01z5+/V'; + } try { // //para mandarla al endpoint de dispositivos por MAC se necesita convertir la cadena de la direccion mac en un formato como el siguiente ejemplo: para la dirección mac 60:22:32:c8:b2:c3 quedaría como 60%3A22%3A32%3Ac8%3Ab2%3Ac3 @@ -1357,9 +1353,7 @@ abstract class AbstractMessageNotifierFacade $deviceId = $dataDeviceByMAC['id']; // print_r('ID DEL DISPOSITIVO: ' . $deviceId . PHP_EOL); // ID del dispositivo } else { - // echo "No se encontró el dispositivo con la dirección MAC proporcionada." . PHP_EOL; - // $logger->appendLog('No se encontró el dispositivo con la dirección MAC proporcionada: ' . $dataToSearch); - print_r('No se encontró el dispositivo con la dirección MAC proporcionada: ' . $dataToSearch . PHP_EOL); + $this->logger->error('No se encontró el dispositivo con la dirección MAC proporcionada: ' . $dataToSearch . PHP_EOL); return 'Error: No se encontró el dispositivo con la dirección MAC proporcionada: ' . $dataToSearch; // Return early if no device is found } @@ -1373,23 +1367,17 @@ abstract class AbstractMessageNotifierFacade if ($responsePasswordVault->getStatusCode() === 200) { $dataPasswordVault = json_decode((string) $responsePasswordVault->getBody(), true); - // $jsonPasswordVault = json_encode($dataPasswordVault, JSON_PRETTY_PRINT); - //print_r($jsonPasswordVault . PHP_EOL); //Credenciales del dispositivo if (isset($dataPasswordVault['credentials']['password'])) { $dataPasswordVault = $dataPasswordVault['credentials']['password']; } else { - // echo "No se encontró la contraseña en la respuesta de la API." . PHP_EOL; - // $logger->appendLog('No se encontró una contraseña en la bóveda para la antena de este cliente, es altamente probable que conserve una contraseña conocida.'); - print_r('No se encontró una contraseña en la bóveda para la antena de este cliente, es altamente probable que conserve una contraseña conocida.' . PHP_EOL); + $this->logger->error('No se encontró una contraseña en la bóveda para la antena de este cliente, es altamente probable que conserve una contraseña conocida.' . PHP_EOL); return "Error: No se encontró una contraseña en la bóveda para la antena de este cliente, es altamente probable que conserve una contraseña conocida."; // Return early if the password is not found } return $dataPasswordVault; } else { - // echo "Error en la solicitud. Código de estado HTTP: " . $responsePasswordVault->getStatusCode() . PHP_EOL; - // $logger->appendLog('Error en la solicitud. Código de estado HTTP: ' . $responsePasswordVault->getStatusCode()); - print_r('Error en la solicitud. Código de estado HTTP: ' . $responsePasswordVault->getStatusCode() . PHP_EOL); + $this->logger->error('Falla en la solicitud. Código de estado HTTP: ' . $responsePasswordVault->getStatusCode() . PHP_EOL); return 'Error: Falla en la solicitud. Código de estado HTTP: ' . $responsePasswordVault->getStatusCode(); // Return early if the request fails } @@ -1399,19 +1387,15 @@ abstract class AbstractMessageNotifierFacade $response = $requestException->getResponse(); $statusCode = $response->getStatusCode(); $reason = $response->getReasonPhrase(); - // echo "Error: {$statusCode} - {$reason}" . PHP_EOL; - // echo $response->getBody(); + if ($statusCode == 404) { - // echo "No se encontró el cliente con la dirección MAC proporcionada." . PHP_EOL; - // $logger->appendLog('No se encontró ninguna antena de cliente o dispositivo en la red con la dirección MAC proporcionada: ' . $dataToSearch); - print_r('No se encontró ninguna antena de cliente o dispositivo en la red con la dirección MAC proporcionada: ' . $dataToSearch . PHP_EOL); + $this->logger->error('No se encontró ninguna antena de cliente o dispositivo en la red con la dirección MAC proporcionada: ' . $dataToSearch . PHP_EOL); return 'Error: No se encontró ninguna antena de cliente o dispositivo en la red con la dirección MAC proporcionada: ' . $dataToSearch; // Return early if the client is not found } + $this->logger->error('Error: ' . $reason . PHP_EOL); return 'Error: ' . $reason; // Return early if the request fails } else { - // echo "Error: " . $requestException->getMessage() . PHP_EOL; - // $logger->appendLog('Error: ' . $requestException->getMessage()); - print_r('Error: ' . $requestException->getMessage() . PHP_EOL); + $this->logger->error('Error al realizar la solicitud: ' . $requestException->getMessage() . PHP_EOL); return 'Error: ' . $requestException->getMessage(); // Return early if the request fails } @@ -1421,6 +1405,8 @@ abstract class AbstractMessageNotifierFacade // La variable no es una dirección IP válida, se asume que es un ID $IpAddressClientId = filter_var($dataToSearch, FILTER_SANITIZE_NUMBER_INT); //print ('Consulta por ID: ' . $dataToSearch . PHP_EOL); + $this->logger->info('Consulta por ID: ' . $dataToSearch . PHP_EOL); + try { //Obtener id del sitio por medio del servicio @@ -1439,17 +1425,13 @@ abstract class AbstractMessageNotifierFacade $reason = $response->getReasonPhrase(); //si el statusCode es 404 significa que no se encontró el cliente if ($statusCode == 404) { - echo "No se encontró el cliente con el ID proporcionado." . PHP_EOL; - $logger->appendLog('No se encontró el cliente con el ID proporcionado: ' . $IpAddressClientId); - // print_r('No se encontró el cliente con el ID proporcionado: ' . $IpAddressClientId . PHP_EOL); + $this->logger->error('No se encontró el cliente con el ID proporcionado: ' . $IpAddressClientId . PHP_EOL); return 'Error: No se encontró el cliente con el ID proporcionado: ' . $IpAddressClientId; // Return early if the client is not found } return 'Error: ' . $reason; // Return early if the request fails } else { - // echo "Error: " . $requestException->getMessage() . PHP_EOL; - $logger->appendLog('Error: ' . $requestException->getMessage()); - // print_r('Error: ' . $requestException->getMessage() . PHP_EOL); + $this->logger->error('Error: ' . $requestException->getMessage() . PHP_EOL); return 'Error: ' . $requestException->getMessage(); // Return early if the request fails } @@ -1458,21 +1440,16 @@ abstract class AbstractMessageNotifierFacade if ($responseServices->getStatusCode() === 200) { $dataServices = json_decode($responseServices->getBody()->getContents(), true); - // $jsonServices = json_encode($dataServices, JSON_PRETTY_PRINT); - // print_r($jsonServices . PHP_EOL); + if (isset($dataServices[0])) { $unmsSiteID = $dataServices[0]['unmsClientSiteId']; // Example: 9c6798f3-0254-4e5b-bc3b-9da82fe16e46 } else { - // echo "No se encontraron servicios para el cliente proporcionado." . PHP_EOL; - $logger->appendLog('No se encontraron servicios para el cliente proporcionado: ' . $IpAddressClientId); - // print_r('No se encontraron servicios para el cliente proporcionado: ' . $IpAddressClientId . PHP_EOL); + $this->logger->error('No se encontraron servicios para el cliente proporcionado: ' . $IpAddressClientId . PHP_EOL); return "Error: No se encontraron servicios para el cliente proporcionado: " . $IpAddressClientId; // Return early if no services are found } } else { - // echo "Error en la solicitud. Código de estado HTTP: " . $responseServices->getStatusCode() . PHP_EOL; - $logger->appendLog('Error en la solicitud. Código de estado HTTP: ' . $responseServices->getStatusCode()); - // print_r('Error en la solicitud. Código de estado HTTP: ' . $responseServices->getStatusCode() . PHP_EOL); + $this->logger->error('Falla en la solicitud. Código de estado HTTP: ' . $responseServices->getStatusCode() . PHP_EOL); return "Error: En la solicitud. Código de estado HTTP: " . $responseServices->getStatusCode(); } @@ -1490,17 +1467,14 @@ abstract class AbstractMessageNotifierFacade $reason = $response->getReasonPhrase(); //si el statusCode es 404 significa que no se encontró el cliente if ($statusCode == 404) { - // echo "No se encontró el cliente con el ID proporcionado." . PHP_EOL; - $logger->appendLog('No se encontró el cliente con el ID proporcionado: ' . $IpAddressClientId); - // print_r('No se encontró el devicie con el ID proporcionado: ' . $IpAddressClientId . PHP_EOL); + $this->logger->error('No se encontró el devicie con el ID proporcionado: ' . $IpAddressClientId . PHP_EOL); return 'Error: No se encontró el devicie con el ID proporcionado: ' . $IpAddressClientId; // Return early if the client is not found } + $this->logger->error('Error: ' . $reason . PHP_EOL); return 'Error: ' . $reason; // Return early if the request fails } else { - // echo "Error: " . $requestException->getMessage() . PHP_EOL; - $logger->appendLog('Error: ' . $requestException->getMessage()); - // print_r('Error: ' . $requestException->getMessage() . PHP_EOL); + $this->logger->error('Error: ' . $requestException->getMessage() . PHP_EOL); return 'Error: ' . $requestException->getMessage(); // Return early if the request fails } @@ -1519,23 +1493,17 @@ abstract class AbstractMessageNotifierFacade $idClientDevice = $dataDevicesBySite[0]['identification']['id']; $deviceID = $dataDevicesBySite[0]['attributes']['apDevice']['id']; } else { - // echo "No se encontró la clave 'identification' o 'apDevice' en la respuesta." . PHP_EOL; - $logger->appendLog('No se encontró la clave \'identification\' o \'apDevice\' en la respuesta.'); - // print_r('Este cliente es un repetidor.' . PHP_EOL); + $this->logger->error('No se encontró el dispositivo con el ID proporcionado: ' . $IpAddressClientId . PHP_EOL); return "Este cliente es un repetidor."; // Return early if the key is not found } } else { - // echo "No se encontraron dispositivos para el sitio proporcionado." . PHP_EOL; - $logger->appendLog('No se encontraron dispositivos para el sitio proporcionado: ' . $unmsSiteID); - // print_r('No se encontraron dispositivos para el sitio proporcionado: ' . $unmsSiteID . PHP_EOL); + $this->logger->error('No se encontraron dispositivos para el sitio proporcionado: ' . $unmsSiteID . PHP_EOL); return "Error: No se encontraron dispositivos para el sitio proporcionado."; // Return early if no devices are found } } else { - // echo "Error en la solicitud. Código de estado HTTP: " . $responseDevicesBySite->getStatusCode() . PHP_EOL; - $logger->appendLog('Error en la solicitud. Código de estado HTTP: ' . $responseDevicesBySite->getStatusCode()); - // print_r('Error en la solicitud. Código de estado HTTP: ' . $responseDevicesBySite->getStatusCode() . PHP_EOL); + $this->logger->error('Falla en la solicitud. Código de estado HTTP: ' . $responseDevicesBySite->getStatusCode() . PHP_EOL); return "Error: Falla en la solicitud. Código de estado HTTP: " . $responseDevicesBySite->getStatusCode(); } @@ -1553,17 +1521,13 @@ abstract class AbstractMessageNotifierFacade $reason = $response->getReasonPhrase(); //si el statusCode es 404 significa que no se encontró el cliente if ($statusCode == 404) { - // echo "No se encontró el cliente con el ID proporcionado." . PHP_EOL; - $logger->appendLog('No se encontró el cliente con el ID proporcionado: ' . $IpAddressClientId); - // print_r('No se encontró el device con el ID proporcionado: ' . $IpAddressClientId . PHP_EOL); + $this->logger->error('No se encontró el device con el ID proporcionado: ' . $IpAddressClientId . PHP_EOL); return 'Error: No se encontró el device con el ID proporcionado: ' . $IpAddressClientId; // Return early if the client is not found } return 'Error: ' . $reason; // Return early if the request fails } else { - // echo "Error: " . $requestException->getMessage() . PHP_EOL; - $logger->appendLog('Error: ' . $requestException->getMessage()); - // print_r('Error: ' . $requestException->getMessage() . PHP_EOL); + $this->logger->error('Error: ' . $requestException->getMessage() . PHP_EOL); return 'Error: ' . $requestException->getMessage(); // Return early if the request fails } @@ -1590,17 +1554,14 @@ abstract class AbstractMessageNotifierFacade $reason = $response->getReasonPhrase(); //si el statusCode es 404 significa que no se encontró el cliente if ($statusCode == 404) { - // echo "No se encontró el cliente con el ID proporcionado." . PHP_EOL; - $logger->appendLog('No se encontró el cliente con el ID proporcionado: ' . $IpAddressClientId); - // print_r('No se encontró el device con el ID proporcionado: ' . $IpAddressClientId . PHP_EOL); + $this->logger->error('No se encontró el device con el ID proporcionado: ' . $IpAddressClientId . PHP_EOL); return 'Error: No se encontró el device con el ID proporcionado: ' . $IpAddressClientId; // Return early if the client is not found } + $this->logger->error('Error: ' . $reason . PHP_EOL); return 'Error: ' . $reason; // Return early if the request fails } else { - // echo "Error: " . $requestException->getMessage() . PHP_EOL; - $logger->appendLog('Error: ' . $requestException->getMessage()); - // print_r('Error: ' . $requestException->getMessage() . PHP_EOL); + $this->logger->error('Error: ' . $requestException->getMessage() . PHP_EOL); return 'Error: ' . $requestException->getMessage(); // Return early if the request fails } } @@ -1612,28 +1573,237 @@ abstract class AbstractMessageNotifierFacade $passwordVault = $dataPasswordVault['credentials']['password']; return $passwordVault; } else { - // echo "No se encontró la contraseña en la respuesta de la API." . PHP_EOL; - $logger->appendLog('No se encontró una contraseña en la bóveda para la antena de este cliente, es altamente probable que conserve una contraseña conocida.'); - // print_r('No se encontró una contraseña en la bóveda para la antena de este cliente, es altamente probable que conserve una contraseña conocida.' . PHP_EOL); + $this->logger->error('No se encontró una contraseña en la bóveda para la antena de este cliente, es altamente probable que conserve una contraseña conocida.' . PHP_EOL); return "Error: No se encontró una contraseña en la bóveda para la antena de este cliente, es altamente probable que conserve una contraseña conocida."; // Return early if the password is not found } } else { - // echo "Error en la solicitud. Código de estado HTTP: " . $responsePasswordVault->getStatusCode() . PHP_EOL; - $logger->appendLog('Error en la solicitud. Código de estado HTTP: ' . $responsePasswordVault->getStatusCode()); - // print_r('Error en la solicitud. Código de estado HTTP: ' . $responsePasswordVault->getStatusCode() . PHP_EOL); + $this->logger->error('Falla en la solicitud. Código de estado HTTP: ' . $responsePasswordVault->getStatusCode() . PHP_EOL); return 'Error: Falla en la solicitud. Código de estado HTTP: ' . $responsePasswordVault->getStatusCode(); // Return early if the request fails } } else { - // echo "Error en la solicitud. Código de estado HTTP: " . $responseDevicesBySite->getStatusCode() . PHP_EOL; - $logger->appendLog('Error en la solicitud. Código de estado HTTP: ' . $responseDevicesBySite->getStatusCode()); - // print_r('Error en la solicitud. Código de estado HTTP: ' . $responseDevicesBySite->getStatusCode() . PHP_EOL); + $this->logger->error('Falla en la solicitud. Código de estado HTTP: ' . $responseDevicesBySite->getStatusCode() . PHP_EOL); return 'Error: Falla en la solicitud. Código de estado HTTP: ' . $responseDevicesBySite->getStatusCode(); // Return early if the request fails } } + + } + function getVaultCredentialsByClientId($clientId): string + { + + $configManager = \Ubnt\UcrmPluginSdk\Service\PluginConfigManager::create(); + $config = $configManager->loadConfig(); + $ucrmBaseUri = $config['ipserver']; + $authToken = $config['apitoken']; + + if ($ucrmBaseUri === '172.16.5.134') { //opción solo para el servidor de pruebas + return 'gYAIEK:Be}SK*01z5+/V'; + } + + $unmsBaseUri = 'https://' . $ucrmBaseUri . '/nms/api/v2.1/'; + $ucrmBaseUri = 'https://' . $ucrmBaseUri . '/crm/api/v1.0/'; + //$authToken = '7adc9198-50b1-41d0-9bfa-d4946902ed89'; + + // Crear una instancia del cliente Guzzle + $clientUnms = new Client([ + 'base_uri' => $unmsBaseUri, + 'verify' => false, // Deshabilitar la verificación del certificado SSL + ]); + + $clientUcrm = new Client([ + 'base_uri' => $ucrmBaseUri, + 'verify' => false, // Deshabilitar la verificación del certificado SSL + ]); + + + $this->logger->info('Consulta por ID: ' . $clientId . PHP_EOL); + + + try { + //Obtener id del sitio por medio del servicio + $responseServices = $clientUcrm->get('clients/services?clientId=' . $clientId, [ + 'headers' => [ + 'X-Auth-Token' => $authToken, + 'Content-Type: application/json', + ], + ]); + + } catch (RequestException $requestException) { + // Manejar errores de la solicitud + if ($requestException->hasResponse()) { + $response = $requestException->getResponse(); + $statusCode = $response->getStatusCode(); + $reason = $response->getReasonPhrase(); + //si el statusCode es 404 significa que no se encontró el cliente + if ($statusCode == 404) { + $this->logger->error('No se encontró el cliente con el ID proporcionado: ' . $clientId . PHP_EOL); + return 'Error: No se encontró el cliente con el ID proporcionado: ' . $clientId; // Return early if the client is not found + } + return 'Error: ' . $reason; // Return early if the request fails + + } else { + $this->logger->error('Error: ' . $requestException->getMessage() . PHP_EOL); + return 'Error: ' . $requestException->getMessage(); // Return early if the request fails + } + + } + + if ($responseServices->getStatusCode() === 200) { + + $dataServices = json_decode($responseServices->getBody()->getContents(), true); + + if (isset($dataServices[0])) { + $unmsSiteID = $dataServices[0]['unmsClientSiteId']; // Example: 9c6798f3-0254-4e5b-bc3b-9da82fe16e46 + } else { + $this->logger->error('No se encontraron servicios para el cliente proporcionado: ' . $clientId . PHP_EOL); + return "Error: No se encontraron servicios para el cliente proporcionado: " . $clientId; // Return early if no services are found + } + + } else { + $this->logger->error('Falla en la solicitud. Código de estado HTTP: ' . $responseServices->getStatusCode() . PHP_EOL); + return "Error: En la solicitud. Código de estado HTTP: " . $responseServices->getStatusCode(); + } + + try { + $responseDevicesBySite = $clientUnms->request('GET', 'devices?siteId=' . $unmsSiteID, [ + 'headers' => [ + 'X-Auth-Token' => $authToken, + ], + ]); + } catch (RequestException $requestException) { + // Manejar errores de la solicitud + if ($requestException->hasResponse()) { + $response = $requestException->getResponse(); + $statusCode = $response->getStatusCode(); + $reason = $response->getReasonPhrase(); + //si el statusCode es 404 significa que no se encontró el cliente + if ($statusCode == 404) { + $this->logger->error('No se encontró el devicie con el ID proporcionado: ' . $clientId . PHP_EOL); + return 'Error: No se encontró el devicie con el ID proporcionado: ' . $clientId; // Return early if the client is not found + } + $this->logger->error('Error: ' . $reason . PHP_EOL); + return 'Error: ' . $reason; // Return early if the request fails + + } else { + $this->logger->error('Error: ' . $requestException->getMessage() . PHP_EOL); + return 'Error: ' . $requestException->getMessage(); // Return early if the request fails + } + + } + + if ($responseDevicesBySite->getStatusCode() === 200) { + + $dataDevicesBySite = json_decode($responseDevicesBySite->getBody()->getContents(), true); + $jsonDevicesBySite = json_encode($dataDevicesBySite, JSON_PRETTY_PRINT); + //print_r($jsonDevicesBySite . PHP_EOL); //Devices por ID del sitio + + //id del device al que está conectado el cliente + if (isset($dataDevicesBySite[0])) { + //verificar con iiset si existe la clave 'identification' y 'apDevice' en el primer elemento del array + if (isset($dataDevicesBySite[0]['identification']) && isset($dataDevicesBySite[0]['attributes']['apDevice'])) { + $idClientDevice = $dataDevicesBySite[0]['identification']['id']; + $deviceID = $dataDevicesBySite[0]['attributes']['apDevice']['id']; + } else { + $this->logger->error('No se encontró el dispositivo con el ID proporcionado: ' . $clientId . PHP_EOL); + return "Este cliente es un repetidor."; // Return early if the key is not found + } + + } else { + $this->logger->error('No se encontraron dispositivos para el sitio proporcionado: ' . $unmsSiteID . PHP_EOL); + return "Error: No se encontraron dispositivos para el sitio proporcionado."; // Return early if no devices are found + } + + } else { + $this->logger->error('Falla en la solicitud. Código de estado HTTP: ' . $responseDevicesBySite->getStatusCode() . PHP_EOL); + return "Error: Falla en la solicitud. Código de estado HTTP: " . $responseDevicesBySite->getStatusCode(); + } + + try { + $responseDevicesBySite = $clientUnms->request('GET', 'devices/' . $deviceID, [ + 'headers' => [ + 'X-Auth-Token' => $authToken, + ], + ]); + } catch (RequestException $requestException) { + // Manejar errores de la solicitud + if ($requestException->hasResponse()) { + $response = $requestException->getResponse(); + $statusCode = $response->getStatusCode(); + $reason = $response->getReasonPhrase(); + //si el statusCode es 404 significa que no se encontró el cliente + if ($statusCode == 404) { + $this->logger->error('No se encontró el device con el ID proporcionado: ' . $clientId . PHP_EOL); + return 'Error: No se encontró el device con el ID proporcionado: ' . $clientId; // Return early if the client is not found + } + return 'Error: ' . $reason; // Return early if the request fails + + } else { + $this->logger->error('Error: ' . $requestException->getMessage() . PHP_EOL); + return 'Error: ' . $requestException->getMessage(); // Return early if the request fails + } + + } + + if ($responseDevicesBySite->getStatusCode() === 200) { + + $dataDevices = json_decode($responseDevicesBySite->getBody()->getContents(), true); + $jsonDevices = json_encode($dataDevices, JSON_PRETTY_PRINT); + //print_r($jsonDevices . PHP_EOL); + + try { + //print_r('ID del device al que está conectado el cliente: ' . $idDevice . PHP_EOL); + $responsePasswordVault = $clientUnms->request('GET', 'vault/' . $idClientDevice . '/credentials', [ + 'headers' => [ + 'X-Auth-Token' => $authToken, + ], + ]); + } catch (RequestException $requestException) { + // Manejar errores de la solicitud + if ($requestException->hasResponse()) { + $response = $requestException->getResponse(); + $statusCode = $response->getStatusCode(); + $reason = $response->getReasonPhrase(); + //si el statusCode es 404 significa que no se encontró el cliente + if ($statusCode == 404) { + $this->logger->error('No se encontró el device con el ID proporcionado: ' . $clientId . PHP_EOL); + return 'Error: No se encontró el device con el ID proporcionado: ' . $clientId; // Return early if the client is not found + } + $this->logger->error('Error: ' . $reason . PHP_EOL); + return 'Error: ' . $reason; // Return early if the request fails + + } else { + $this->logger->error('Error: ' . $requestException->getMessage() . PHP_EOL); + return 'Error: ' . $requestException->getMessage(); // Return early if the request fails + } + } + + if ($responsePasswordVault->getStatusCode() === 200) { + $dataPasswordVault = json_decode($responsePasswordVault->getBody()->getContents(), true); + $jsonPasswordVault = json_encode($dataPasswordVault, JSON_PRETTY_PRINT); + if (isset($dataPasswordVault['credentials']['password'])) { + $passwordVault = $dataPasswordVault['credentials']['password']; + return $passwordVault; + } else { + $this->logger->error('No se encontró una contraseña en la bóveda para la antena de este cliente, es altamente probable que conserve una contraseña conocida.' . PHP_EOL); + return "Error: No se encontró una contraseña en la bóveda para la antena de este cliente, es altamente probable que conserve una contraseña conocida."; // Return early if the password is not found + } + + } else { + $this->logger->error('Falla en la solicitud. Código de estado HTTP: ' . $responsePasswordVault->getStatusCode() . PHP_EOL); + return 'Error: Falla en la solicitud. Código de estado HTTP: ' . $responsePasswordVault->getStatusCode(); // Return early if the request fails + } + + } else { + $this->logger->error('Falla en la solicitud. Código de estado HTTP: ' . $responseDevicesBySite->getStatusCode() . PHP_EOL); + return 'Error: Falla en la solicitud. Código de estado HTTP: ' . $responseDevicesBySite->getStatusCode(); // Return early if the request fails + + } + + + } } diff --git a/src/Facade/ClientCallBellAPI.php b/src/Facade/ClientCallBellAPI.php index d4b593ad..e9b8b8bc 100755 --- a/src/Facade/ClientCallBellAPI.php +++ b/src/Facade/ClientCallBellAPI.php @@ -247,7 +247,7 @@ class ClientCallBellAPI if (!$reprogramming && $changeInstaller) { $campo2 = $jobInstallerNotificationData['subjectOfChange']; $campo3 = sprintf("#️⃣%s", $jobInstallerNotificationData['jobId']); - $campo4 = '👤 *Cliente:* ' . $jobInstallerNotificationData['clientFullName']; + $campo4 = sprintf('*👤%s* ', $jobInstallerNotificationData['clientFullName']); $campo5 = $jobInstallerNotificationData['additionalChangeData']; } else { $campo2 = sprintf("#️⃣%s", $jobInstallerNotificationData['jobId']); @@ -255,9 +255,9 @@ class ClientCallBellAPI // $campo4 = $jobInstallerNotificationData['clientAddress']; $campo4 = '☎️ ' . $jobInstallerNotificationData['clientWhatsApp']; $campo5 = '🗓️ ' . $jobInstallerNotificationData['date']; - $campo6 = '🛠️ ' . $jobInstallerNotificationData['jobDescription']; - $campo7 = '📌 ' . $jobInstallerNotificationData['gmapsLocation']; - $campo8 = '🔐 ' . $passwordAntenaCliente; + // $campo6 = '🛠️ ' . $jobInstallerNotificationData['jobDescription']; + // $campo7 = '📌 ' . $jobInstallerNotificationData['gmapsLocation']; + // $campo8 = '🔐 ' . $passwordAntenaCliente; } if ($reprogramming && !$changeInstaller) { @@ -276,7 +276,7 @@ class ClientCallBellAPI $curl_string = "{\n \"to\": \"$installerWhatsAppNumber\",\n \"from\": \"whatsapp\",\n \"type\": \"text\",\n \"content\": {\n \"text\": \"S/M\"\n },\n \"template_values\": [\"$campo1_combinado\", \"$campo2\", \"$campo3\", \"$campo4\"],\n \"template_uuid\": \"88eeb6420a214fd8870dd28d741021c4\",\n \"optin_contact\": true\n }"; } else if (!$reprogramming && $changeInstaller) { //Enviar notificación de cambio de instalador - $log->appendLog("Enviando notificación de cambio de instalador al instalador anterior, valor de reprogramming $reprogramming y valor de changeInstaller $changeInstaller " . PHP_EOL); + $log->appendLog("Enviando notificación de cambio de instalador al instalador anterior (desasignación), valor de reprogramming $reprogramming y valor de changeInstaller $changeInstaller " . PHP_EOL); $curl_string = "{\n \"to\": \"$installerWhatsAppNumber\",\n \"from\": \"whatsapp\",\n \"type\": \"text\",\n \"content\": {\n \"text\": \"S/M\"\n },\n \"template_values\": [\"$campo1\", \"$campo2\", \"$campo3\", \"$campo4\", \"$campo5\"],\n \"template_uuid\": \"e1aa2b0fd3884595918f4ac2676acd29\",\n \"optin_contact\": true\n }"; } else if ($reprogramming && $changeInstaller) { //Enviar notificación de cambio de instalador @@ -290,7 +290,7 @@ class ClientCallBellAPI $date = sprintf("🗓️ %s", $jobInstallerNotificationData['date']); $installerName = sprintf("👷🏻‍♂️ *%s*", $jobInstallerNotificationData['installerName']); - $campo1_combinado = "$installerName se te ha asignado una tarea con folio $jobId para el cliente $clientFullName, para el $date"; + $campo1_combinado = "$installerName se te ha asignado una tarea con folio $jobId, del cliente $clientFullName, para el $date"; $campo2 = $jobInstallerNotificationData['clientWhatsApp']; $campo3 = $jobInstallerNotificationData['gmapsLocation']; $campo4 = $passwordAntenaCliente; diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 533e1e6d..918cbac7 100755 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -5,7 +5,7 @@ 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => 'e34b3ec0f84e1274c6c6bbed67f8aacd933f0807', + 'reference' => 'e899945ca3c057b898046cd8f2c8c6ccc2aa7c82', 'name' => 'ucrm-plugins/sms-twilio', 'dev' => false, ), @@ -307,7 +307,7 @@ 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => 'e34b3ec0f84e1274c6c6bbed67f8aacd933f0807', + 'reference' => 'e899945ca3c057b898046cd8f2c8c6ccc2aa7c82', 'dev_requirement' => false, ), ),