From d2c6a30ee47b6e0b33356b5a35fe7b597033edb5 Mon Sep 17 00:00:00 2001 From: DANYDHSV Date: Wed, 18 Mar 2026 15:43:05 -0600 Subject: [PATCH] =?UTF-8?q?reeemplazo=20de=20archivos=20desde=20el=20servi?= =?UTF-8?q?dor=20de=20producci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 13 + data/plugin.log | 1438 +++++++ manifest.json | 7 +- public.php | 42 +- siip_full_structure/.DS_Store | Bin 0 -> 6148 bytes siip_full_structure/CHANGELOG.md | 310 ++ siip_full_structure/README.md | 115 + siip_full_structure/manifest.json | 299 ++ siip_full_structure/public.php | 3307 +++++++++++++++++ .../Facade/AbstractMessageNotifierFacade.php | 531 +++ .../src/Facade/ClientCallBellAPI.php | 1460 ++++++++ src/Facade/ClientCallBellAPI.php | 45 +- 12 files changed, 7547 insertions(+), 20 deletions(-) create mode 100644 siip_full_structure/.DS_Store create mode 100644 siip_full_structure/CHANGELOG.md create mode 100644 siip_full_structure/README.md create mode 100644 siip_full_structure/manifest.json create mode 100644 siip_full_structure/public.php create mode 100644 siip_full_structure/src/Facade/AbstractMessageNotifierFacade.php create mode 100644 siip_full_structure/src/Facade/ClientCallBellAPI.php diff --git a/CHANGELOG.md b/CHANGELOG.md index d2efafd2..f56d3027 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # CHANGELOG - SIIP WhatsApp Notifications Plugin +## VERSIÓN 4.5.0 - 13-03-2026 + +### ⚠️ Requisito Técnico (Update) +- **PHP**: Se requiere **PHP 8.1 o superior** para soportar las nuevas dependencias de AWS. (Habilitado en servidor de pruebas). + +### ✨ Nuevas Características (Features) + +1️⃣ **Gestión de Instaladores**: Módulo para visualizar tareas en curso y realizar el reenvío manual de notificaciones de asignación. + +### 🐛 Correcciones (Bug Fixes) + +1️⃣ **Fix Notificaciones**: Corregido bug que enviaba mensajes de desasignación al cambiar de técnico en tareas activas. + ## VERSIÓN 4.4.0 - 10-03-2026 ### ✨ Nuevas Características (Features) diff --git a/data/plugin.log b/data/plugin.log index cfe6fa43..21dcc649 100755 --- a/data/plugin.log +++ b/data/plugin.log @@ -277,3 +277,1441 @@ La notificación fue enviada correctamente con estado: enqueued [2026-03-10 23:37:33.000449] [debug] Validando claves dentro de entityBeforeEdit y entity [2026-03-10 23:37:33.000463] [debug] Edición de trabajo "En curso" sin cambios de fecha o técnico relevantes para notificación +[2026-03-10 23:48:03.339730] [notice] Logging level set to:debug +[2026-03-10 23:48:03.339818] [debug] Payload recibido: {"uuid":"manual-trigger","changeType":"update","entity":"job","entityId":69,"eventName":"job.edit","extraData":{"entity":{"id":69,"title":"[NOTIFICACION-PENDIENTE]El chido servicio","description":"Revisi\u00f3n de alambres","assignedUserId":1184,"assignedUserFullName":"Jos\u00e9 Luis Enrique S\u00e1nchez","clientId":2,"date":"2026-03-14T14:00:59-0600","duration":60,"status":1,"address":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":69,"title":"El chido servicio","description":"Revisi\u00f3n de alambres","assignedUserId":1184,"assignedUserFullName":"Jos\u00e9 Luis Enrique S\u00e1nchez","clientId":2,"date":"2026-03-14T14:00:59-0600","duration":60,"status":0,"address":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2026-03-10 23:48:03.339890] [debug] Evento recibido: job.edit +[2026-03-10 23:48:03.339957] [debug] Se actualiza un trabajo + +[2026-03-10 23:48:03.339973] [debug] Validando claves dentro de entityBeforeEdit y entity +[2026-03-10 23:48:03.339984] [debug] Trabajo iniciado o asignado: Notificando... +[2026-03-10 23:48:03.340010] [info] Iniciando verifyJobActionToDo +Enviando mensaje de trabajo para el cliente + +Datos de la notificación de trabajo: {"clientFullName":"Daniel Humberto Soto Villegas","jobId":69,"date":"*14\/03\/2026*","installerName":"Jos\u00e9 Luis Enrique S\u00e1nchez"} + +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": "5214181878106", + "from": "whatsapp", + "type": "text", + "content": { + "text": "S/M" + }, + "template_values": ["👤 *Daniel Humberto Soto Villegas*", "*#️⃣69*", "🗓️ *14/03/2026*", "👷🏻‍♂️➡️ *José Luis Enrique Sánchez*", "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":"783fd88384b5437bba16265581ac2c65","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":"Jos\u00e9 Luis Enrique S\u00e1nchez","clientFullName":"Daniel Humberto Soto Villegas [ID:2]","jobId":69,"clientAddress":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","clientWhatsApp":"5214181878106, 5214181148783","date":"*14\/03\/2026*","jobDescription":"Revisi\u00f3n de alambres","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564414,-100.9383654","passwordAntenaCliente":"Servicio 1: n#Cx89qC#r64LPR# Servicio 2: b@2zMYxSQR2BdkG9"} + +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": "524181878106", + "from": "whatsapp", + "type": "text", + "content": { + "text": "S/M" + }, + "template_values": ["👷🏻‍♂️ *José Luis Enrique Sánchez* se te ha asignado una tarea con folio #️⃣ *69*, del cliente 👤 *Daniel Humberto Soto Villegas [ID:2]*, para el 🗓️ *14/03/2026*", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564414,-100.9383654", "Servicio 1: n#Cx89qC#r64LPR# Servicio 2: b@2zMYxSQR2BdkG9"], + "template_uuid": "88eeb6420a214fd8870dd28d741021c4", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"67f6f154f5a74d37973cabd57900daf9","status":"enqueued"}} +La notificación fue enviada correctamente con estado: enqueued + +[2026-03-10 23:48:05.859431] [notice] Logging level set to:debug +[2026-03-10 23:48:05.859622] [debug] Payload recibido: {"uuid":"51bf7a20-a504-42ef-9c07-30a5f3e3c50d","changeType":"edit","entity":"job","entityId":"69","eventName":"job.edit","extraData":{"entity":{"id":69,"title":"El chido servicio","description":"Revisi\u00f3n de alambres","assignedUserId":1184,"assignedUserFullName":"Jos\u00e9 Luis Enrique S\u00e1nchez","clientId":2,"date":"2026-03-14T14:00:59-0600","duration":60,"status":1,"address":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":69,"title":"El chido servicio","description":"Revisi\u00f3n de alambres","assignedUserId":1184,"assignedUserFullName":"Jos\u00e9 Luis Enrique S\u00e1nchez","clientId":2,"date":"2026-03-14T14:00:59-0600","duration":60,"status":1,"address":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2026-03-10 23:48:05.904643] [debug] Evento recibido: job.edit +[2026-03-10 23:48:05.904879] [debug] Se actualiza un trabajo + +[2026-03-10 23:48:05.904963] [debug] Validando claves dentro de entityBeforeEdit y entity +[2026-03-10 23:48:05.905009] [debug] Edición de trabajo "En curso" sin cambios de fecha o técnico relevantes para notificación +[2026-03-10 23:48:50.648689] [notice] Logging level set to:debug +[2026-03-10 23:48:50.648775] [debug] Payload recibido: {"uuid":"manual-trigger","changeType":"insert","entity":"payment","entityId":990,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"Chiapas 31","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente especial, el m\u00e1s chido del siip internet 2026 yeah xD hola dfg","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"ciber.dhsv@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":178,"clientId":2,"customAttributeId":15,"name":"Site","key":"site","value":"VENUS","clientZoneVisible":false},{"id":179,"clientId":2,"customAttributeId":16,"name":"Antena\/Sectorial","key":"antenaSectorial","value":"Sectorial de pruebas 172.16.5.134","clientZoneVisible":false},{"id":309,"clientId":2,"customAttributeId":21,"name":"RUTA DE COBRANZA","key":"rutaDeCobranza","value":"GUSANO","clientZoneVisible":true},{"id":428,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"Servicio 1: n#Cx89qC#r64LPR# Servicio 2: b@2zMYxSQR2BdkG9","clientZoneVisible":false}],"accountBalance":910,"accountCredit":910,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564414,"addressGpsLon":-100.9383654,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"paymentData":{"id":990,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2026-03-10T00:31:50-0600","amount":280,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":280,"userId":1180,"attributes":[{"id":"56a35c9a-5073-4ec2-9372-b2dbe504f7c2","paymentId":990,"customAttributeId":20,"name":"Tipo Pago Stripe","key":"tipoPagoStripe","value":"OXXO Pay","clientZoneVisible":true}]}} + +[2026-03-10 23:48:50.789560] [debug] Evento recibido: payment.add +[2026-03-10 23:48:50.789784] [debug] Notification encodificado en JSON:{"uuid":"manual-trigger","changeType":"insert","entity":"payment","entityId":990,"message":null,"clientId":2,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"Chiapas 31","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente especial, el m\u00e1s chido del siip internet 2026 yeah xD hola dfg","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"ciber.dhsv@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":178,"clientId":2,"customAttributeId":15,"name":"Site","key":"site","value":"VENUS","clientZoneVisible":false},{"id":179,"clientId":2,"customAttributeId":16,"name":"Antena\/Sectorial","key":"antenaSectorial","value":"Sectorial de pruebas 172.16.5.134","clientZoneVisible":false},{"id":309,"clientId":2,"customAttributeId":21,"name":"RUTA DE COBRANZA","key":"rutaDeCobranza","value":"GUSANO","clientZoneVisible":true},{"id":428,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"Servicio 1: n#Cx89qC#r64LPR# Servicio 2: b@2zMYxSQR2BdkG9","clientZoneVisible":false}],"accountBalance":910,"accountCredit":910,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564414,"addressGpsLon":-100.9383654,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":990,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2026-03-10T00:31:50-0600","amount":280,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":280,"userId":1180,"attributes":[{"id":"56a35c9a-5073-4ec2-9372-b2dbe504f7c2","paymentId":990,"customAttributeId":20,"name":"Tipo Pago Stripe","key":"tipoPagoStripe","value":"OXXO Pay","clientZoneVisible":true}]}} + +[2026-03-10 23:48:50.789870] [info] Verificando existencia de atributo 'tipoPagoStripe' para Payment ID: 990 +[2026-03-10 23:48:50.823232] [info] Microservice found metadata: tipoPago = 'OXXO' +[2026-03-10 23:48:50.912811] [debug] Payment 990 already has User ID: 1180 +[2026-03-10 23:48:50.994245] [info] Payment 990 has wrong Method ID (1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae). Patching to b01c0b35-b42c-48d9-9ad9-ea6591adfbbb via Microservice. +[2026-03-10 23:48:50.996715] [error] Failed to patch Payment Method ID via microservice: Client error: `PATCH http://172.16.5.134:4100/payments/990/method` resulted in a `404 Not Found` response: + + + + +Error + + +
Cannot PATCH /pa (truncated...)
+
+[2026-03-10 23:48:51.086834] [debug] Attribute already matches target 'OXXO Pay'. Skipping patch.
+Eviando comprobante de pago al cliente: 2 con número: 5214181878106
+
+El archivo PDF se ha descargado y guardado correctamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.pdf
+
+El archivo PDF es válido y tiene contenido: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.pdf
+
+Procesando PDF con microservicio: http://pdf-cropper-service:8000/process
+
+Imagen generada por microservicio guardada en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.jpg
+
+[2026-03-10 23:48:51.750202] [info] Archivo subido exitosamente a MinIO: https://aws-venus.siip.mx/vouchers-oxxo/Comprobante_Daniel_Humberto_Soto_Villegas_1773186531.jpg
+Imagen subida a MinIO: https://aws-venus.siip.mx/vouchers-oxxo/Comprobante_Daniel_Humberto_Soto_Villegas_1773186531.jpg
+
+Archivos temporales (PDF/JPG) eliminados tras subida exitosa.
+
+Proceso de obtención de imagen finalizado.
+
+La cadena CURL que se envia es: {
+    "to": "5214181878106",
+    "from": "whatsapp",
+    "type": "document",
+    "content": {
+      "text": "S/M",
+     "url": "https://aws-venus.siip.mx/vouchers-oxxo/Comprobante_Daniel_Humberto_Soto_Villegas_1773186531.jpg"
+    },
+    "template_values": ["Daniel Humberto Soto Villegas", "$280", "$910 a favor"],
+    "template_uuid": "57ead79cebd14902921477922403093b",
+    "optin_contact": true
+  }
+Response del CallBell: {"message":{"uuid":"92b185c0e1b74543862ac7d3c7644646","status":"enqueued"}}
+Hay menos de 100 archivos en el directorio. No se eliminarán archivos.
+
+La notificación fue enviada correctamente con estado: enqueued
+
+Notificacion data: {"uuid":"manual-trigger","changeType":"insert","entity":"payment","entityId":990,"message":null,"clientId":2,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"Chiapas 31","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente especial, el m\u00e1s chido del siip internet 2026 yeah xD hola dfg","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"ciber.dhsv@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":178,"clientId":2,"customAttributeId":15,"name":"Site","key":"site","value":"VENUS","clientZoneVisible":false},{"id":179,"clientId":2,"customAttributeId":16,"name":"Antena\/Sectorial","key":"antenaSectorial","value":"Sectorial de pruebas 172.16.5.134","clientZoneVisible":false},{"id":309,"clientId":2,"customAttributeId":21,"name":"RUTA DE COBRANZA","key":"rutaDeCobranza","value":"GUSANO","clientZoneVisible":true},{"id":428,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"Servicio 1: n#Cx89qC#r64LPR# Servicio 2: b@2zMYxSQR2BdkG9","clientZoneVisible":false}],"accountBalance":910,"accountCredit":910,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564414,"addressGpsLon":-100.9383654,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":990,"clientId":2,"methodId":"b01c0b35-b42c-48d9-9ad9-ea6591adfbbb","checkNumber":null,"createdDate":"2026-03-10T00:31:50-0600","amount":280,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":280,"userId":1180,"attributes":[{"id":"56a35c9a-5073-4ec2-9372-b2dbe504f7c2","paymentId":990,"customAttributeId":20,"name":"Tipo Pago Stripe","key":"tipoPagoStripe","value":"OXXO Pay","clientZoneVisible":true}]}}
+
+Dentro del proceso del patch: 
+
+Datos traidos con payment api: [{"id":990,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2026-03-10T00:31:50-0600","amount":280,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":280,"userId":1180,"attributes":[{"id":"56a35c9a-5073-4ec2-9372-b2dbe504f7c2","paymentId":990,"customAttributeId":20,"name":"Tipo Pago Stripe","key":"tipoPagoStripe","value":"OXXO Pay","clientZoneVisible":true}]}]
+
+Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas
+
+UUID: 74cc2bb45eb8409f92cd5dba99200d26
+
+JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Site":"VENUS","Estado":"\ud83d\udfe2 Activo ","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","Cliente":2,"Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 10\/03\/2026 17:48","Saldo Actual":"\ud83d\udcb2910 a favor","Monto Ultimo Pago":"\ud83d\udcb2 280","Clabe Interbancaria":null,"Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 10\/03\/2026 00:31 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Antena\/Sectorial":"Sectorial de pruebas 172.16.5.134","Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Resumen":"{\"Cliente\": \"2\",\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2910 a favor\",\"Monto Ultimo Pago\": \"$ 280\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 10\/03\/2026 00:31 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"10\/03\/2026 17:48\",\"Clabe Interbancaria\": \"\",\"Site\": \"VENUS\",\"Antena\/Sectorial\": \"Sectorial de pruebas 172.16.5.134\",\"Password Antena\": {\"Servicio 1\":\"n#Cx89qC#r64LPR#\",\"Servicio 2\":\"b@2zMYxSQR2BdkG9\"}}","password-antena":"{\"Servicio 1\":\"n#Cx89qC#r64LPR#\",\"Servicio 2\":\"b@2zMYxSQR2BdkG9\"}"}}
+
+DEBUG COMPARACIÓN - CallBell Saldo Actual: '💲20 a favor'
+
+DEBUG COMPARACIÓN - UCRM Saldo Actual: '💲910 a favor'
+
+DEBUG COMPARACIÓN - CallBell Estado: '🟢 Activo '
+
+DEBUG COMPARACIÓN - UCRM Estado: '🟢 Activo '
+
+EJECUTANDO PATCH - Se detectaron cambios
+
+Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2026-03-10T09:01:46Z","source":"whatsapp","funnelId":null,"href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":["ePA","PRUEBAS","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clabe Interbancaria":"124180650741646979","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas","URL":"🌐 https://sistema.siip.mx/crm/client/2","Site":"VENUS","Saldo Actual":"💲910 a favor","Fecha Ultima Actualizacion":"📆🔄️ 10/03/2026 17:48","user name":"Daniel Humberto","Resumen":"{\"Cliente\": \"2\",\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲910 a favor\",\"Monto Ultimo Pago\": \"$ 280\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 10/03/2026 00:31 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"10/03/2026 17:48\",\"Clabe Interbancaria\": \"\",\"Site\": \"VENUS\",\"Antena/Sectorial\": \"Sectorial de pruebas 172.16.5.134\",\"Password Antena\": {\"Servicio 1\":\"n#Cx89qC#r64LPR#\",\"Servicio 2\":\"b@2zMYxSQR2BdkG9\"}}","Fecha Ultimo Pago":"📆💸 10/03/2026 00:31 con Tarjeta de crédito Stripe 💳","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Cliente":"2","Monto Ultimo Pago":"💲 280","Antena/Sectorial":"Sectorial de pruebas 172.16.5.134","password-antena":"{\"Servicio 1\":\"n#Cx89qC#r64LPR#\",\"Servicio 2\":\"b@2zMYxSQR2BdkG9\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":5,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"discardedAt":null,"type":"whatsapp","main":true},"blockedAt":null}}
+
+[2026-03-11 6:25:03.346966] [notice] Logging level set to:debug
+[2026-03-11 6:25:03.347100] [debug] Payload recibido: {"uuid":"606efd13-458d-4cee-bbfc-d07e224446a5","changeType":"overdue","entity":"invoice","entityId":"3126","eventName":"invoice.overdue","extraData":{"entity":{"id":3126,"clientId":126,"number":"003072","createdDate":"2026-02-24T10:00:01-0600","dueDate":"2026-03-10T10:00:01-0600","emailSentDate":"2026-03-11T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2026-02-22T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3143,"type":"service","label":"PREMIUM 24\/01\/2026 \u2013 23\/02\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":108,"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":"DANIEL INNU","clientLastName":"RATA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-11 6:25:03.638971] [debug] Evento recibido: invoice.overdue
+[2026-03-11 6:25:03.639228] [debug] Factura vencida
+
+[2026-03-11 6:25:03.639348] [debug] datos del notification para el invoice overdue:{"uuid":"606efd13-458d-4cee-bbfc-d07e224446a5","changeType":"overdue","entity":"invoice","entityId":3126,"message":null,"clientId":126,"eventName":"invoice.overdue","clientData":{"id":126,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas, Centro, 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-05-24T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"DANIEL INNU","lastName":"RATA","username":"dhsv.141089@gmail.com","contacts":[{"id":130,"clientId":126,"email":"dhsv.141089@gmail.com","phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":127,"clientId":126,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_QASKG6Z0Hree1h","clientZoneVisible":true},{"id":128,"clientId":126,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180704572078989","clientZoneVisible":true},{"id":229,"clientId":126,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-10500,"accountCredit":0,"accountOutstanding":10500,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":"2024-06-07T00:00:00-0600","avatarColor":"#00695c","addressGpsLat":21.156773,"addressGpsLon":-100.9391642,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":3126,"clientId":126,"number":"003072","createdDate":"2026-02-24T10:00:01-0600","dueDate":"2026-03-10T10:00:01-0600","emailSentDate":"2026-03-11T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2026-02-22T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3143,"type":"service","label":"PREMIUM 24\/01\/2026 \u2013 23\/02\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":108,"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":"DANIEL INNU","clientLastName":"RATA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas","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,"printed":false},"paymentData":null}
+
+contac vacio
+[2026-03-12 6:25:03.106956] [notice] Logging level set to:debug
+[2026-03-12 6:25:03.107031] [debug] Payload recibido: {"uuid":"9575d94a-ba9f-47de-89b5-36069062e14e","changeType":"overdue","entity":"invoice","entityId":"3128","eventName":"invoice.overdue","extraData":{"entity":{"id":3128,"clientId":1,"number":"003074","createdDate":"2026-02-25T10:00:01-0600","dueDate":"2026-03-11T10:00:01-0600","emailSentDate":"2026-03-12T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2026-02-25T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3145,"type":"service","label":"PREMIUM 25\/02\/2026 \u2013 24\/03\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":132,"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":"Don Miguel \u00c1ngel","clientLastName":"Guerrero Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Calle Morelos 34","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-12 6:25:03.375833] [debug] Evento recibido: invoice.overdue
+[2026-03-12 6:25:03.375962] [debug] Factura vencida
+
+[2026-03-12 6:25:03.376018] [debug] datos del notification para el invoice overdue:{"uuid":"9575d94a-ba9f-47de-89b5-36069062e14e","changeType":"overdue","entity":"invoice","entityId":3128,"message":null,"clientId":1,"eventName":"invoice.overdue","clientData":{"id":1,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"Calle Morelos 34","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Calle Morelos 34, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"El jefe","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-15T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Don Miguel \u00c1ngel","lastName":"Guerrero Gonz\u00e1lez","username":"dguerrero01","contacts":[{"id":1,"clientId":1,"email":"mangelgg@gmail.com","phone":"5214181148554","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":110,"clientId":1,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PdQvAvQ2wipl5k","clientZoneVisible":true},{"id":111,"clientId":1,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180697144444854","clientZoneVisible":true},{"id":203,"clientId":1,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-6800,"accountCredit":0,"accountOutstanding":6800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.1572096,"addressGpsLon":-100.9377327,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":3128,"clientId":1,"number":"003074","createdDate":"2026-02-25T10:00:01-0600","dueDate":"2026-03-11T10:00:01-0600","emailSentDate":"2026-03-12T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2026-02-25T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3145,"type":"service","label":"PREMIUM 25\/02\/2026 \u2013 24\/03\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":132,"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":"Don Miguel \u00c1ngel","clientLastName":"Guerrero Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Calle Morelos 34","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"paymentData":null}
+
+[2026-03-12 20:27:00.325316] [notice] Logging level set to:debug
+[2026-03-12 20:27:00.326051] [debug] Payload recibido: {"uuid":"bcec019e-00b4-41d7-ab61-08231271fcfe","changeType":"edit","entity":"invoice","entityId":"3117","eventName":"invoice.edit","extraData":{"entity":{"id":3117,"clientId":131,"number":"003063","createdDate":"2026-02-19T10:00:02-0600","dueDate":"2026-03-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3134,"type":"service","label":"Basico 300 01\/02\/2026 \u2013 28\/02\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":160,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":300,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":1554,"invoiceId":3117,"paymentId":991,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Payaso","clientLastName":"Loco","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"15 Campeche","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,"printed":false},"entityBeforeEdit":{"id":3117,"clientId":131,"number":"003063","createdDate":"2026-02-19T10:00:02-0600","dueDate":"2026-03-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3134,"type":"service","label":"Basico 300 01\/02\/2026 \u2013 28\/02\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":160,"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":[{"id":1554,"invoiceId":3117,"paymentId":991,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Payaso","clientLastName":"Loco","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"15 Campeche","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,"printed":false}}}
+
+[2026-03-12 20:27:00.537815] [debug] Evento recibido: invoice.edit
+[2026-03-12 20:27:00.538016] [debug] Edición de Factura
+
+[2026-03-12 20:27:00.538165] [debug] onlyUpdate: Iniciando actualización para teléfono: 4181878106
+[2026-03-12 20:27:00.539246] [debug] onlyUpdate: Teléfono validado: 524181878106
+[2026-03-12 20:27:01.406066] [debug] onlyUpdate: Contacto obtenido de CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"MAY HUMBERTO SOTO VILLEGAS","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2026-03-10T09:01:46Z","source":"whatsapp","funnelId":null,"href":"https:\/\/dash.callbell.eu\/contacts\/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https:\/\/dash.callbell.eu\/chat\/53c8229c428c4081b197ab136feab73b","tags":["ePA","PRUEBAS","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clabe Interbancaria":"124180650741646979","Estado":"\ud83d\udfe2 Activo ","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/3201","Site":"0LOCS","Saldo Actual":"\ud83d\udcb220 a favor","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 11\/03\/2026 15:35","user name":"Daniel Humberto","Domicilio":"\ud83d\udccd CALLE CHIAPAS #31, ZONA CENTRO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Cliente":"3201","Resumen":"{\"Cliente\": \"3201\",\"Nombre\": \"MAY HUMBERTO SOTO VILLEGAS\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/3201\",\"Saldo Actual\": \"\ud83d\udcb220 a favor\",\"Monto Ultimo Pago\": \"$ 20\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 10\/03\/2026 15:35 con Tarjeta de cr\u00e9dito PayPal \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"11\/03\/2026 15:35\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\",\"Password Antena\": {\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\\/V\"}}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 10\/03\/2026 15:35 con Tarjeta de cr\u00e9dito PayPal \ud83d\udcb3","Nombre":"\ud83d\udc64 MAY HUMBERTO SOTO VILLEGAS","Monto Ultimo Pago":"\ud83d\udcb2 20","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24","password-antena":"{\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\\/V\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":5,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"discardedAt":null,"type":"whatsapp","main":true},"blockedAt":null}}
+[2026-03-12 20:27:01.406135] [info] onlyUpdate: Ejecutando patchWhatsapp para teléfono: 524181878106
+Notificacion data: {"uuid":"bcec019e-00b4-41d7-ab61-08231271fcfe","changeType":"edit","entity":"invoice","entityId":3117,"message":null,"clientId":131,"eventName":"invoice.edit","clientData":{"id":131,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"15 Campeche","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Campeche 15, Centro, 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":"Payaso","lastName":"Loco","username":null,"contacts":[{"id":135,"clientId":131,"email":"payasoloco@gmail.com","phone":"4181878106","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":208,"clientId":131,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false},{"id":279,"clientId":131,"customAttributeId":21,"name":"RUTA DE COBRANZA","key":"rutaDeCobranza","value":"GUSANO","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#d81b60","addressGpsLat":21.1582653,"addressGpsLon":-100.9371641,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":3117,"clientId":131,"number":"003063","createdDate":"2026-02-19T10:00:02-0600","dueDate":"2026-03-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3134,"type":"service","label":"Basico 300 01\/02\/2026 \u2013 28\/02\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":160,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":300,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":1554,"invoiceId":3117,"paymentId":991,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Payaso","clientLastName":"Loco","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"15 Campeche","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,"printed":false},"paymentData":null}
+
+Dentro del proceso del patch: 
+
+Datos traidos con payment api: [{"id":991,"clientId":131,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2026-03-12T14:26:59-0600","amount":300,"currencyCode":"MXN","note":"Cobrado por: danielhumberto","receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":1554,"invoiceId":3117,"paymentId":991,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}]
+
+Nombre del cliente que se va a actualizar: Payaso Loco
+
+UUID: 74cc2bb45eb8409f92cd5dba99200d26
+
+JSON con los datos a actualizar: {"name":"Payaso Loco","custom_fields":{"Site":"","Estado":"\ud83d\udfe2 Activo ","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/131","Nombre":"\ud83d\udc64 Payaso Loco","Cliente":131,"Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 12\/03\/2026 14:27","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 300","Clabe Interbancaria":"","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 12\/03\/2026 14:26 con Efectivo \ud83d\udcb5","Antena\/Sectorial":"","Domicilio":"\ud83d\udccd Campeche 15, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Resumen":"{\"Cliente\": \"131\",\"Nombre\": \"Payaso Loco\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/131\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 12\/03\/2026 14:26 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"12\/03\/2026 14:27\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena\/Sectorial\": \"\",\"Password Antena\": {\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\\/V\"}}","password-antena":"{\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\\/V\"}"}}
+
+DEBUG COMPARACIÓN - CallBell Saldo Actual: '💲20 a favor'
+
+DEBUG COMPARACIÓN - UCRM Saldo Actual: '💲0 está al corriente'
+
+DEBUG COMPARACIÓN - CallBell Estado: '🟢 Activo '
+
+DEBUG COMPARACIÓN - UCRM Estado: '🟢 Activo '
+
+DEBUG COMPARACIÓN - Diferencia en name. CallBell: 'MAY HUMBERTO SOTO VILLEGAS', UCRM: 'Payaso Loco'
+
+EJECUTANDO PATCH - Se detectaron cambios
+
+Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Payaso Loco","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2026-03-10T09:01:46Z","source":"whatsapp","funnelId":null,"href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":["ePA","PRUEBAS","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clabe Interbancaria":"124180650741646979","Estado":"🟢 Activo ","URL":"🌐 https://sistema.siip.mx/crm/client/131","Site":"0LOCS","Saldo Actual":"💲0 está al corriente","Fecha Ultima Actualizacion":"📆🔄️ 12/03/2026 14:27","user name":"Daniel Humberto","Domicilio":"📍 Campeche 15, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Cliente":"131","Fecha Ultimo Pago":"📆💸 12/03/2026 14:26 con Efectivo 💵","Monto Ultimo Pago":"💲 300","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","password-antena":"{\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\/V\"}","Resumen":"{\"Cliente\": \"131\",\"Nombre\": \"Payaso Loco\",\"URL\": \"https://sistema.siip.mx/crm/client/131\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 12/03/2026 14:26 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"12/03/2026 14:27\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\",\"Password Antena\": {\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\/V\"}}","Nombre":"👤 Payaso Loco"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":5,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"discardedAt":null,"type":"whatsapp","main":true},"blockedAt":null}}
+
+[2026-03-12 20:27:02.932813] [notice] Logging level set to:debug
+[2026-03-12 20:27:02.932975] [debug] Payload recibido: {"uuid":"e419918f-3f39-4d89-b3ca-510c24761c76","changeType":"insert","entity":"payment","entityId":"991","eventName":"payment.add","extraData":{"entity":{"id":991,"clientId":131,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2026-03-12T14:26:59-0600","amount":300,"currencyCode":"MXN","note":"Cobrado por: danielhumberto","receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":1554,"invoiceId":3117,"paymentId":991,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
+
+[2026-03-12 20:27:03.137767] [debug] Evento recibido: payment.add
+[2026-03-12 20:27:03.137995] [debug] Notification encodificado en JSON:{"uuid":"e419918f-3f39-4d89-b3ca-510c24761c76","changeType":"insert","entity":"payment","entityId":991,"message":null,"clientId":131,"eventName":"payment.add","clientData":{"id":131,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"15 Campeche","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Campeche 15, Centro, 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":"Payaso","lastName":"Loco","username":null,"contacts":[{"id":135,"clientId":131,"email":"payasoloco@gmail.com","phone":"4181878106","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":208,"clientId":131,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false},{"id":279,"clientId":131,"customAttributeId":21,"name":"RUTA DE COBRANZA","key":"rutaDeCobranza","value":"GUSANO","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#d81b60","addressGpsLat":21.1582653,"addressGpsLon":-100.9371641,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":991,"clientId":131,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2026-03-12T14:26:59-0600","amount":300,"currencyCode":"MXN","note":"Cobrado por: danielhumberto","receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":1554,"invoiceId":3117,"paymentId":991,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}}
+
+Eviando comprobante de pago al cliente: 131 con número: 524181878106
+
+El archivo PDF se ha descargado y guardado correctamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Payaso_Loco.pdf
+
+El archivo PDF es válido y tiene contenido: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Payaso_Loco.pdf
+
+Procesando PDF con microservicio: http://pdf-cropper-service:8000/process
+
+Imagen generada por microservicio guardada en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Payaso_Loco.jpg
+
+[2026-03-12 20:27:03.915844] [info] Archivo subido exitosamente a MinIO: https://aws-venus.siip.mx/vouchers-oxxo/Comprobante_Payaso_Loco_1773347223.jpg
+Imagen subida a MinIO: https://aws-venus.siip.mx/vouchers-oxxo/Comprobante_Payaso_Loco_1773347223.jpg
+
+Archivos temporales (PDF/JPG) eliminados tras subida exitosa.
+
+Proceso de obtención de imagen finalizado.
+
+La cadena CURL que se envia es: {
+    "to": "524181878106",
+    "from": "whatsapp",
+    "type": "document",
+    "content": {
+      "text": "S/M",
+     "url": "https://aws-venus.siip.mx/vouchers-oxxo/Comprobante_Payaso_Loco_1773347223.jpg"
+    },
+    "template_values": ["Payaso Loco", "$300", "$0 está al corriente"],
+    "template_uuid": "57ead79cebd14902921477922403093b",
+    "optin_contact": true
+  }
+Response del CallBell: {"message":{"uuid":"82b3b215cc164b95b6b1b64e3442de5e","status":"enqueued"}}
+Hay menos de 100 archivos en el directorio. No se eliminarán archivos.
+
+La notificación fue enviada correctamente con estado: enqueued
+
+Notificacion data: {"uuid":"e419918f-3f39-4d89-b3ca-510c24761c76","changeType":"insert","entity":"payment","entityId":991,"message":null,"clientId":131,"eventName":"payment.add","clientData":{"id":131,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"15 Campeche","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Campeche 15, Centro, 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":"Payaso","lastName":"Loco","username":null,"contacts":[{"id":135,"clientId":131,"email":"payasoloco@gmail.com","phone":"4181878106","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":208,"clientId":131,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false},{"id":279,"clientId":131,"customAttributeId":21,"name":"RUTA DE COBRANZA","key":"rutaDeCobranza","value":"GUSANO","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#d81b60","addressGpsLat":21.1582653,"addressGpsLon":-100.9371641,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":991,"clientId":131,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2026-03-12T14:26:59-0600","amount":300,"currencyCode":"MXN","note":"Cobrado por: danielhumberto","receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":1554,"invoiceId":3117,"paymentId":991,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}}
+
+Dentro del proceso del patch: 
+
+Datos traidos con payment api: [{"id":991,"clientId":131,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2026-03-12T14:26:59-0600","amount":300,"currencyCode":"MXN","note":"Cobrado por: danielhumberto","receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":1554,"invoiceId":3117,"paymentId":991,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}]
+
+Nombre del cliente que se va a actualizar: Payaso Loco
+
+UUID: 74cc2bb45eb8409f92cd5dba99200d26
+
+JSON con los datos a actualizar: {"name":"Payaso Loco","custom_fields":{"Site":"","Estado":"\ud83d\udfe2 Activo ","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/131","Nombre":"\ud83d\udc64 Payaso Loco","Cliente":131,"Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 12\/03\/2026 14:27","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 300","Clabe Interbancaria":"","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 12\/03\/2026 14:26 con Efectivo \ud83d\udcb5","Antena\/Sectorial":"","Domicilio":"\ud83d\udccd Campeche 15, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Resumen":"{\"Cliente\": \"131\",\"Nombre\": \"Payaso Loco\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/131\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 12\/03\/2026 14:26 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"12\/03\/2026 14:27\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena\/Sectorial\": \"\",\"Password Antena\": {\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\\/V\"}}","password-antena":"{\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\\/V\"}"}}
+
+DEBUG COMPARACIÓN - CallBell Saldo Actual: '💲0 está al corriente'
+
+DEBUG COMPARACIÓN - UCRM Saldo Actual: '💲0 está al corriente'
+
+DEBUG COMPARACIÓN - CallBell Estado: '🟢 Activo '
+
+DEBUG COMPARACIÓN - UCRM Estado: '🟢 Activo '
+
+DEBUG COMPARACIÓN - Diferencia encontrada en Site. CallBell: '0LOCS', UCRM: ''
+
+EJECUTANDO PATCH - Se detectaron cambios
+
+Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Payaso Loco","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2026-03-10T09:01:46Z","source":"whatsapp","funnelId":null,"href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":["ePA","PRUEBAS","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clabe Interbancaria":"124180650741646979","Estado":"🟢 Activo ","URL":"🌐 https://sistema.siip.mx/crm/client/131","Site":"0LOCS","Saldo Actual":"💲0 está al corriente","Fecha Ultima Actualizacion":"📆🔄️ 12/03/2026 14:27","user name":"Daniel Humberto","Domicilio":"📍 Campeche 15, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Cliente":"131","Fecha Ultimo Pago":"📆💸 12/03/2026 14:26 con Efectivo 💵","Monto Ultimo Pago":"💲 300","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","password-antena":"{\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\/V\"}","Resumen":"{\"Cliente\": \"131\",\"Nombre\": \"Payaso Loco\",\"URL\": \"https://sistema.siip.mx/crm/client/131\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 12/03/2026 14:26 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"12/03/2026 14:27\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\",\"Password Antena\": {\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\/V\"}}","Nombre":"👤 Payaso Loco"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":5,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"discardedAt":null,"type":"whatsapp","main":true},"blockedAt":null}}
+
+[2026-03-12 20:27:06.267983] [notice] Logging level set to:debug
+[2026-03-12 20:27:06.268165] [debug] Payload recibido: {"uuid":"5c610277-1bb5-42a5-9b44-3d328ca7289b","changeType":"unsuspend","entity":"service","entityId":"160","eventName":"service.suspend_cancel","extraData":{"entity":{"id":160,"prepaid":false,"clientId":131,"status":1,"name":"Basico 300","fullAddress":"Campeche 15, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"15 Campeche","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1582653,"addressGpsLon":-100.9371641,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-10-30T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-10-30T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2026-02-28T00:00:00-0600","unmsClientSiteId":"5c08ca14-61a2-4889-90cd-af514b74a546","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":185,"startDate":"2026-01-06T00:00:00-0600","endDate":"2026-01-19T00:00:00-0600"},{"id":203,"startDate":"2026-03-06T00:00:00-0600","endDate":"2026-03-12T14:27:00-0600"}],"surcharges":[]},"entityBeforeEdit":{"id":160,"prepaid":false,"clientId":131,"status":3,"name":"Basico 300","fullAddress":"Campeche 15, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"15 Campeche","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1582653,"addressGpsLon":-100.9371641,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-10-30T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-10-30T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2026-02-28T00:00:00-0600","unmsClientSiteId":"5c08ca14-61a2-4889-90cd-af514b74a546","attributes":[],"addressData":null,"suspensionReasonId":1,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":185,"startDate":"2026-01-06T00:00:00-0600","endDate":"2026-01-19T00:00:00-0600"},{"id":203,"startDate":"2026-03-06T00:00:00-0600","endDate":"2026-03-12T14:27:00-0600"}],"surcharges":[]}}}
+
+[2026-03-12 20:27:06.487914] [debug] Evento recibido: service.suspend_cancel
+[2026-03-12 20:27:06.488166] [debug] Se reactivó el servicio a un  cliente
+
+Actualizando estado del servicio 
+
+Nombre del cliente al que se va a actualizar el estado del servicio: Payaso Loco
+
+UUID: 74cc2bb45eb8409f92cd5dba99200d26
+
+JSON con los datos a actualizar: {"name":"Payaso Loco","custom_fields":{"Estado":"\ud83d\udfe2 Activo","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 12\/03\/2026 14:27"}}
+
+Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Payaso Loco","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2026-03-10T09:01:46Z","source":"whatsapp","funnelId":null,"href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":["ePA","PRUEBAS","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clabe Interbancaria":"124180650741646979","Estado":"🟢 Activo","URL":"🌐 https://sistema.siip.mx/crm/client/131","Site":"0LOCS","Saldo Actual":"💲0 está al corriente","Fecha Ultima Actualizacion":"📆🔄️ 12/03/2026 14:27","user name":"Daniel Humberto","Domicilio":"📍 Campeche 15, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Cliente":"131","Fecha Ultimo Pago":"📆💸 12/03/2026 14:26 con Efectivo 💵","Monto Ultimo Pago":"💲 300","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","password-antena":"{\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\/V\"}","Resumen":"{\"Cliente\": \"131\",\"Nombre\": \"Payaso Loco\",\"URL\": \"https://sistema.siip.mx/crm/client/131\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 12/03/2026 14:26 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"12/03/2026 14:27\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\",\"Password Antena\": {\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\/V\"}}","Nombre":"👤 Payaso Loco"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":5,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"discardedAt":null,"type":"whatsapp","main":true},"blockedAt":null}}
+
+[2026-03-12 20:27:07.931602] [notice] Logging level set to:debug
+[2026-03-12 20:27:07.931765] [debug] Payload recibido: {"uuid":"aedcf13b-7235-45fc-b94a-08fc24934c51","changeType":"edit","entity":"service","entityId":"160","eventName":"service.edit","extraData":{"entity":{"id":160,"prepaid":false,"clientId":131,"status":1,"name":"Basico 300","fullAddress":"Campeche 15, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"15 Campeche","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1582653,"addressGpsLon":-100.9371641,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-10-30T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-10-30T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2026-02-28T00:00:00-0600","unmsClientSiteId":"5c08ca14-61a2-4889-90cd-af514b74a546","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":185,"startDate":"2026-01-06T00:00:00-0600","endDate":"2026-01-19T00:00:00-0600"},{"id":203,"startDate":"2026-03-06T00:00:00-0600","endDate":"2026-03-12T14:27:00-0600"}],"surcharges":[]},"entityBeforeEdit":{"id":160,"prepaid":false,"clientId":131,"status":3,"name":"Basico 300","fullAddress":"Campeche 15, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"15 Campeche","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1582653,"addressGpsLon":-100.9371641,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-10-30T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-10-30T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2026-02-28T00:00:00-0600","unmsClientSiteId":"5c08ca14-61a2-4889-90cd-af514b74a546","attributes":[],"addressData":null,"suspensionReasonId":1,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":185,"startDate":"2026-01-06T00:00:00-0600","endDate":"2026-01-19T00:00:00-0600"},{"id":203,"startDate":"2026-03-06T00:00:00-0600","endDate":"2026-03-12T14:27:00-0600"}],"surcharges":[]}}}
+
+[2026-03-12 20:27:08.139012] [debug] Evento recibido: service.edit
+[2026-03-12 20:27:08.139121] [debug] Se editó el servicio a un  cliente
+
+Actualizando estado del servicio 
+
+Nombre del cliente al que se va a actualizar el estado del servicio: Payaso Loco
+
+UUID: 74cc2bb45eb8409f92cd5dba99200d26
+
+JSON con los datos a actualizar: {"name":"Payaso Loco","custom_fields":{"Estado":"\ud83d\udfe2 Activo","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 12\/03\/2026 14:27"}}
+
+No hay cambios en el estado del servicio que actualizar 
+
+[2026-03-12 20:27:08.536923] [info] Iniciando verificación/sincronización de contraseña para el cliente ID: 131
+[2026-03-12 20:27:08.856215] [notice] Logging level set to:debug
+[2026-03-12 20:27:08.856293] [debug] Payload recibido: {"uuid":"9653c4f5-ae01-44c9-8a9d-545fc8dfd820","changeType":"edit","entity":"payment","entityId":"991","eventName":"payment.edit","extraData":{"entity":{"id":991,"clientId":131,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2026-03-12T14:26:59-0600","amount":300,"currencyCode":"MXN","note":"Cobrado por: danielhumberto","receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":1554,"invoiceId":3117,"paymentId":991,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":991,"clientId":131,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2026-03-12T14:26:59-0600","amount":300,"currencyCode":"MXN","note":"Cobrado por: danielhumberto","receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":1554,"invoiceId":3117,"paymentId":991,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}}}
+
+[2026-03-12 20:27:09.029726] [debug] Evento recibido: payment.edit
+[2026-03-12 20:30:10.888449] [notice] Logging level set to:debug
+[2026-03-12 20:30:10.888642] [debug] Payload recibido: {"uuid":"e57d9d72-a639-41d6-bd83-b8eb5a555ef7","changeType":"edit","entity":"invoice","entityId":"3210","eventName":"invoice.edit","extraData":{"entity":{"id":3210,"clientId":49,"number":"003156","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3227,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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":300,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":1555,"invoiceId":3210,"paymentId":992,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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,"printed":false},"entityBeforeEdit":{"id":3210,"clientId":49,"number":"003156","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3227,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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":[{"id":1555,"invoiceId":3210,"paymentId":992,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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,"printed":false}}}
+
+[2026-03-12 20:30:11.124977] [debug] Evento recibido: invoice.edit
+[2026-03-12 20:30:11.125099] [debug] Edición de Factura
+
+[2026-03-12 20:30:11.342849] [notice] Logging level set to:debug
+[2026-03-12 20:30:11.342998] [debug] Payload recibido: {"uuid":"6902b59e-bba6-4bb3-8108-38df9b5869a6","changeType":"insert","entity":"payment","entityId":"992","eventName":"payment.add","extraData":{"entity":{"id":992,"clientId":49,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-12T14:30:10-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":"Manual","providerPaymentId":"1773347410229-49","providerPaymentTime":"2026-03-12T14:30:10-0600","paymentCovers":[{"id":1555,"invoiceId":3210,"paymentId":992,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
+
+[2026-03-12 20:30:11.515976] [debug] Evento recibido: payment.add
+[2026-03-12 20:30:11.516236] [debug] Notification encodificado en JSON:{"uuid":"6902b59e-bba6-4bb3-8108-38df9b5869a6","changeType":"insert","entity":"payment","entityId":992,"message":null,"clientId":49,"eventName":"payment.add","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":265,"clientId":49,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"CogaYu4RA5mABMH#","clientZoneVisible":false}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":10,"name":"PAGO ADRIANA","colorBackground":"#b7e281","colorText":"#444"}],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":992,"clientId":49,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-12T14:30:10-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":"Manual","providerPaymentId":"1773347410229-49","providerPaymentTime":"2026-03-12T14:30:10-0600","paymentCovers":[{"id":1555,"invoiceId":3210,"paymentId":992,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}}
+
+[2026-03-12 20:30:11.707573] [notice] Logging level set to:debug
+[2026-03-12 20:30:11.707700] [debug] Payload recibido: {"uuid":"7d3a4059-99c2-4d6e-90af-11d116e288fb","changeType":"edit","entity":"payment","entityId":"992","eventName":"payment.edit","extraData":{"entity":{"id":992,"clientId":49,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-12T14:30:10-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":"Manual","providerPaymentId":"1773347410229-49","providerPaymentTime":"2026-03-12T14:30:10-0600","paymentCovers":[{"id":1555,"invoiceId":3210,"paymentId":992,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":992,"clientId":49,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-12T14:30:10-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":"Manual","providerPaymentId":"1773347410229-49","providerPaymentTime":"2026-03-12T14:30:10-0600","paymentCovers":[{"id":1555,"invoiceId":3210,"paymentId":992,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}}}
+
+[2026-03-12 20:30:11.898602] [debug] Evento recibido: payment.edit
+[2026-03-12 20:30:46.731122] [notice] Logging level set to:debug
+[2026-03-12 20:30:46.731199] [debug] Payload recibido: {"uuid":"569f5647-2d8d-4a3b-b758-c6c0c849daca","changeType":"edit","entity":"invoice","entityId":"3151","eventName":"invoice.edit","extraData":{"entity":{"id":3151,"clientId":18,"number":"003097","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3168,"type":"service","label":"PREMIUM 31\/01\/2026 \u2013 27\/02\/2026","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":700,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":1556,"invoiceId":3151,"paymentId":993,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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,"printed":false},"entityBeforeEdit":{"id":3151,"clientId":18,"number":"003097","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3168,"type":"service","label":"PREMIUM 31\/01\/2026 \u2013 27\/02\/2026","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":[{"id":1556,"invoiceId":3151,"paymentId":993,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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,"printed":false}}}
+
+[2026-03-12 20:30:46.954145] [debug] Evento recibido: invoice.edit
+[2026-03-12 20:30:46.954399] [debug] Edición de Factura
+
+[2026-03-12 20:30:47.159121] [notice] Logging level set to:debug
+[2026-03-12 20:30:47.159249] [debug] Payload recibido: {"uuid":"6bc907d2-8139-434b-8439-48f7e7f4367d","changeType":"insert","entity":"payment","entityId":"993","eventName":"payment.add","extraData":{"entity":{"id":993,"clientId":18,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-12T14:30:46-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":"Manual","providerPaymentId":"1773347446223-18","providerPaymentTime":"2026-03-12T14:30:46-0600","paymentCovers":[{"id":1556,"invoiceId":3151,"paymentId":993,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
+
+[2026-03-12 20:30:47.356852] [debug] Evento recibido: payment.add
+[2026-03-12 20:30:47.357106] [debug] Notification encodificado en JSON:{"uuid":"6bc907d2-8139-434b-8439-48f7e7f4367d","changeType":"insert","entity":"payment","entityId":993,"message":null,"clientId":18,"eventName":"payment.add","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":[{"id":412,"clientId":18,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"xGzmNQi@@ccSHMC2","clientZoneVisible":false}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":12,"name":"PAGO ELI","colorBackground":"#0050a1","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#039be5","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":993,"clientId":18,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-12T14:30:46-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":"Manual","providerPaymentId":"1773347446223-18","providerPaymentTime":"2026-03-12T14:30:46-0600","paymentCovers":[{"id":1556,"invoiceId":3151,"paymentId":993,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}}
+
+[2026-03-12 20:30:47.618959] [notice] Logging level set to:debug
+[2026-03-12 20:30:47.619036] [debug] Payload recibido: {"uuid":"422f0323-6f8b-485c-9fd5-8a39a4f55933","changeType":"edit","entity":"payment","entityId":"993","eventName":"payment.edit","extraData":{"entity":{"id":993,"clientId":18,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-12T14:30:46-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":"Manual","providerPaymentId":"1773347446223-18","providerPaymentTime":"2026-03-12T14:30:46-0600","paymentCovers":[{"id":1556,"invoiceId":3151,"paymentId":993,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":993,"clientId":18,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-12T14:30:46-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":"Manual","providerPaymentId":"1773347446223-18","providerPaymentTime":"2026-03-12T14:30:46-0600","paymentCovers":[{"id":1556,"invoiceId":3151,"paymentId":993,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}}}
+
+[2026-03-12 20:30:47.793589] [debug] Evento recibido: payment.edit
+[2026-03-12 20:37:07.353776] [notice] Logging level set to:debug
+[2026-03-12 20:37:07.353928] [debug] Payload recibido: {"uuid":"44c17afa-7d64-4c2b-81da-850c573b6f8d","changeType":"edit","entity":"invoice","entityId":"3113","eventName":"invoice.edit","extraData":{"entity":{"id":3113,"clientId":161,"number":"003059","createdDate":"2026-02-19T10:00:02-0600","dueDate":"2026-03-05T10:00:02-0600","emailSentDate":"2026-03-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2026-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3130,"type":"service","label":"PREMIUM 01\/02\/2026 \u2013 28\/02\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":164,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":700,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":1557,"invoiceId":3113,"paymentId":994,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Cesar Antonio","clientLastName":"Juarez Garcia","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"S\/N Carretera a R\u00edo 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,"printed":false},"entityBeforeEdit":{"id":3113,"clientId":161,"number":"003059","createdDate":"2026-02-19T10:00:02-0600","dueDate":"2026-03-05T10:00:02-0600","emailSentDate":"2026-03-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2026-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3130,"type":"service","label":"PREMIUM 01\/02\/2026 \u2013 28\/02\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":164,"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":[{"id":1557,"invoiceId":3113,"paymentId":994,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Cesar Antonio","clientLastName":"Juarez Garcia","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"S\/N Carretera a R\u00edo 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,"printed":false}}}
+
+[2026-03-12 20:37:07.569158] [debug] Evento recibido: invoice.edit
+[2026-03-12 20:37:07.569415] [debug] Edición de Factura
+
+[2026-03-12 20:37:07.847034] [notice] Logging level set to:debug
+[2026-03-12 20:37:07.847976] [debug] Payload recibido: {"uuid":"804fbbae-d856-41b2-b85e-835233775f21","changeType":"insert","entity":"payment","entityId":"994","eventName":"payment.add","extraData":{"entity":{"id":994,"clientId":161,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-12T14:37:06-0600","amount":700,"currencyCode":"MXN","note":"El Gump","receiptSentDate":null,"providerName":"Manual","providerPaymentId":"1773347826734-161","providerPaymentTime":"2026-03-12T14:37:06-0600","paymentCovers":[{"id":1557,"invoiceId":3113,"paymentId":994,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
+
+[2026-03-12 20:37:08.088793] [debug] Evento recibido: payment.add
+[2026-03-12 20:37:08.089068] [debug] Notification encodificado en JSON:{"uuid":"804fbbae-d856-41b2-b85e-835233775f21","changeType":"insert","entity":"payment","entityId":994,"message":null,"clientId":161,"eventName":"payment.add","clientData":{"id":161,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"S\/N Carretera a R\u00edo Laja","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Quicktime Pizza Dolores Hidalgo, Carretera a R\u00edo Laja, Ejido San Jos\u00e9 de Badillo, Dolores Hidalgo, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"El Gump xd","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Cesar Antonio","lastName":"Juarez Garcia","username":"gump@gmail.com","contacts":[{"id":165,"clientId":161,"email":"gump@gmail.com","phone":"4236784563","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":253,"clientId":161,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":13,"name":"PAGO JUANITA","colorBackground":"#dc0083","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.184621,"addressGpsLon":-100.9322859,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":994,"clientId":161,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-12T14:37:06-0600","amount":700,"currencyCode":"MXN","note":"El Gump","receiptSentDate":null,"providerName":"Manual","providerPaymentId":"1773347826734-161","providerPaymentTime":"2026-03-12T14:37:06-0600","paymentCovers":[{"id":1557,"invoiceId":3113,"paymentId":994,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}}
+
+[2026-03-12 20:37:08.303721] [notice] Logging level set to:debug
+[2026-03-12 20:37:08.303910] [debug] Payload recibido: {"uuid":"10b501d6-2180-42ab-a53a-863188a21664","changeType":"unsuspend","entity":"service","entityId":"164","eventName":"service.suspend_cancel","extraData":{"entity":{"id":164,"prepaid":false,"clientId":161,"status":1,"name":"PREMIUM","fullAddress":"Quicktime Pizza Dolores Hidalgo, Carretera a R\u00edo Laja, Ejido San Jos\u00e9 de Badillo, Dolores Hidalgo, Gto., M\u00e9xico","street1":"S\/N Carretera a R\u00edo Laja","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.184621,"addressGpsLon":-100.9322859,"servicePlanId":4,"servicePlanPeriodId":19,"price":700,"hasIndividualPrice":false,"totalPrice":700,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2026-01-02T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2026-01-02T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"PREMIUM","servicePlanPrice":700,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":20,"uploadSpeed":20,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2026-02-28T00:00:00-0600","unmsClientSiteId":"6bcf3744-d8e7-492f-8bd6-2b4d334a92c8","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":190,"startDate":"2026-02-06T00:00:00-0600","endDate":"2026-02-09T00:00:00-0600"},{"id":199,"startDate":"2026-03-06T00:00:00-0600","endDate":"2026-03-12T14:37:07-0600"}],"surcharges":[]},"entityBeforeEdit":{"id":164,"prepaid":false,"clientId":161,"status":3,"name":"PREMIUM","fullAddress":"Quicktime Pizza Dolores Hidalgo, Carretera a R\u00edo Laja, Ejido San Jos\u00e9 de Badillo, Dolores Hidalgo, Gto., M\u00e9xico","street1":"S\/N Carretera a R\u00edo Laja","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.184621,"addressGpsLon":-100.9322859,"servicePlanId":4,"servicePlanPeriodId":19,"price":700,"hasIndividualPrice":false,"totalPrice":700,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2026-01-02T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2026-01-02T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"PREMIUM","servicePlanPrice":700,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":20,"uploadSpeed":20,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2026-02-28T00:00:00-0600","unmsClientSiteId":"6bcf3744-d8e7-492f-8bd6-2b4d334a92c8","attributes":[],"addressData":null,"suspensionReasonId":1,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":190,"startDate":"2026-02-06T00:00:00-0600","endDate":"2026-02-09T00:00:00-0600"},{"id":199,"startDate":"2026-03-06T00:00:00-0600","endDate":"2026-03-12T14:37:07-0600"}],"surcharges":[]}}}
+
+[2026-03-12 20:37:08.574193] [debug] Evento recibido: service.suspend_cancel
+[2026-03-12 20:37:08.574435] [debug] Se reactivó el servicio a un  cliente
+
+[2026-03-12 20:37:08.778902] [notice] Logging level set to:debug
+[2026-03-12 20:37:08.779057] [debug] Payload recibido: {"uuid":"0fe1a5de-8a53-475f-9723-9a5923596f4e","changeType":"edit","entity":"service","entityId":"164","eventName":"service.edit","extraData":{"entity":{"id":164,"prepaid":false,"clientId":161,"status":1,"name":"PREMIUM","fullAddress":"Quicktime Pizza Dolores Hidalgo, Carretera a R\u00edo Laja, Ejido San Jos\u00e9 de Badillo, Dolores Hidalgo, Gto., M\u00e9xico","street1":"S\/N Carretera a R\u00edo Laja","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.184621,"addressGpsLon":-100.9322859,"servicePlanId":4,"servicePlanPeriodId":19,"price":700,"hasIndividualPrice":false,"totalPrice":700,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2026-01-02T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2026-01-02T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"PREMIUM","servicePlanPrice":700,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":20,"uploadSpeed":20,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2026-02-28T00:00:00-0600","unmsClientSiteId":"6bcf3744-d8e7-492f-8bd6-2b4d334a92c8","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":190,"startDate":"2026-02-06T00:00:00-0600","endDate":"2026-02-09T00:00:00-0600"},{"id":199,"startDate":"2026-03-06T00:00:00-0600","endDate":"2026-03-12T14:37:07-0600"}],"surcharges":[]},"entityBeforeEdit":{"id":164,"prepaid":false,"clientId":161,"status":3,"name":"PREMIUM","fullAddress":"Quicktime Pizza Dolores Hidalgo, Carretera a R\u00edo Laja, Ejido San Jos\u00e9 de Badillo, Dolores Hidalgo, Gto., M\u00e9xico","street1":"S\/N Carretera a R\u00edo Laja","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.184621,"addressGpsLon":-100.9322859,"servicePlanId":4,"servicePlanPeriodId":19,"price":700,"hasIndividualPrice":false,"totalPrice":700,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2026-01-02T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2026-01-02T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"PREMIUM","servicePlanPrice":700,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":20,"uploadSpeed":20,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2026-02-28T00:00:00-0600","unmsClientSiteId":"6bcf3744-d8e7-492f-8bd6-2b4d334a92c8","attributes":[],"addressData":null,"suspensionReasonId":1,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":190,"startDate":"2026-02-06T00:00:00-0600","endDate":"2026-02-09T00:00:00-0600"},{"id":199,"startDate":"2026-03-06T00:00:00-0600","endDate":"2026-03-12T14:37:07-0600"}],"surcharges":[]}}}
+
+[2026-03-12 20:37:09.084918] [debug] Evento recibido: service.edit
+[2026-03-12 20:37:09.085160] [debug] Se editó el servicio a un  cliente
+
+[2026-03-12 20:37:09.085273] [info] Iniciando verificación/sincronización de contraseña para el cliente ID: 161
+[2026-03-12 20:37:09.597017] [notice] Logging level set to:debug
+[2026-03-12 20:37:09.597085] [debug] Payload recibido: {"uuid":"9fdde9c5-5af8-42ce-8ffb-5adece1904c5","changeType":"edit","entity":"payment","entityId":"994","eventName":"payment.edit","extraData":{"entity":{"id":994,"clientId":161,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-12T14:37:06-0600","amount":700,"currencyCode":"MXN","note":"El Gump","receiptSentDate":"2026-03-12T14:37:09-0600","providerName":"Manual","providerPaymentId":"1773347826734-161","providerPaymentTime":"2026-03-12T14:37:06-0600","paymentCovers":[{"id":1557,"invoiceId":3113,"paymentId":994,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":994,"clientId":161,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-12T14:37:06-0600","amount":700,"currencyCode":"MXN","note":"El Gump","receiptSentDate":null,"providerName":"Manual","providerPaymentId":"1773347826734-161","providerPaymentTime":"2026-03-12T14:37:06-0600","paymentCovers":[{"id":1557,"invoiceId":3113,"paymentId":994,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}}}
+
+[2026-03-12 20:37:09.839982] [debug] Evento recibido: payment.edit
+[2026-03-13 0:11:38.678016] [notice] Logging level set to:debug
+[2026-03-13 0:11:38.678201] [debug] Payload recibido: {
+  "id": "evt_1TAJKIEFY1WEUtgRq2p39ffb",
+  "object": "event",
+  "api_version": "2023-10-16",
+  "created": 1773360698,
+  "data": {
+    "object": {
+      "object": "balance",
+      "available": [
+        {
+          "amount": 43383,
+          "currency": "mxn",
+          "source_types": {
+            "card": 43383
+          }
+        }
+      ],
+      "connect_reserved": [
+        {
+          "amount": 0,
+          "currency": "mxn"
+        }
+      ],
+      "livemode": false,
+      "pending": [
+        {
+          "amount": 0,
+          "currency": "mxn",
+          "source_types": {
+            "card": 0
+          }
+        }
+      ],
+      "refund_and_dispute_prefunding": {
+        "available": [
+          {
+            "amount": 0,
+            "currency": "mxn"
+          }
+        ],
+        "pending": [
+          {
+            "amount": 0,
+            "currency": "mxn"
+          }
+        ]
+      }
+    }
+  },
+  "livemode": false,
+  "pending_webhooks": 2,
+  "request": {
+    "id": null,
+    "idempotency_key": null
+  },
+  "type": "balance.available"
+}
+
+[2026-03-13 0:11:38.678266] [info] No UUID found in the webhook data
+[2026-03-13 17:12:06.139533] [notice] Logging level set to:debug
+[2026-03-13 17:12:06.139616] [debug] Payload recibido: {"uuid":"daf7f962-e8b3-4632-858d-36d8007961b2","changeType":"edit","entity":"invoice","entityId":"3223","eventName":"invoice.edit","extraData":{"entity":{"id":3223,"clientId":110,"number":"003169","createdDate":"2026-03-07T10:00:02-0600","dueDate":"2026-03-21T10:00:02-0600","emailSentDate":"2026-03-07T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2026-03-05T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3240,"type":"service","label":"plan300 07\/02\/2026 \u2013 06\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":109,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":300,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":1558,"invoiceId":3223,"paymentId":995,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 la del Barrio","clientLastName":"Soy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"67 Morelos","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37805","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":{"id":3223,"clientId":110,"number":"003169","createdDate":"2026-03-07T10:00:02-0600","dueDate":"2026-03-21T10:00:02-0600","emailSentDate":"2026-03-07T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2026-03-05T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3240,"type":"service","label":"plan300 07\/02\/2026 \u2013 06\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":109,"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":[{"id":1558,"invoiceId":3223,"paymentId":995,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 la del Barrio","clientLastName":"Soy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"67 Morelos","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37805","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false}}}
+
+[2026-03-13 17:12:06.342612] [debug] Evento recibido: invoice.edit
+[2026-03-13 17:12:06.342727] [debug] Edición de Factura
+
+[2026-03-13 17:12:06.574217] [notice] Logging level set to:debug
+[2026-03-13 17:12:06.574423] [debug] Payload recibido: {"uuid":"f191a92d-afd0-432f-af4e-a25f6f8b23ec","changeType":"insert","entity":"payment","entityId":"995","eventName":"payment.add","extraData":{"entity":{"id":995,"clientId":110,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2026-03-13T11:12:05-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":1558,"invoiceId":3223,"paymentId":995,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
+
+[2026-03-13 17:12:06.747714] [debug] Evento recibido: payment.add
+[2026-03-13 17:12:06.747858] [debug] Notification encodificado en JSON:{"uuid":"f191a92d-afd0-432f-af4e-a25f6f8b23ec","changeType":"insert","entity":"payment","entityId":995,"message":null,"clientId":110,"eventName":"payment.add","clientData":{"id":110,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"67 Morelos","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37805","fullAddress":"Morelos 67, Dolores Hidalgo, 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-04-23T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Maria la del Barrio","lastName":"Soy","username":null,"contacts":[{"id":114,"clientId":110,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":239,"clientId":110,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false},{"id":299,"clientId":110,"customAttributeId":21,"name":"RUTA DE COBRANZA","key":"rutaDeCobranza","value":"GUSANO","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef6c00","addressGpsLat":21.1464449,"addressGpsLon":-100.9141442,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":995,"clientId":110,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2026-03-13T11:12:05-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":1558,"invoiceId":3223,"paymentId":995,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}}
+
+[2026-03-13 17:12:07.001449] [notice] Logging level set to:debug
+[2026-03-13 17:12:07.001514] [debug] Payload recibido: {"uuid":"099c1e61-2fd3-463d-be70-6da980c64507","changeType":"edit","entity":"payment","entityId":"995","eventName":"payment.edit","extraData":{"entity":{"id":995,"clientId":110,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2026-03-13T11:12:05-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":"2026-03-13T11:12:06-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":1558,"invoiceId":3223,"paymentId":995,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":995,"clientId":110,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2026-03-13T11:12:05-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":1558,"invoiceId":3223,"paymentId":995,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}}}
+
+[2026-03-13 17:12:07.236082] [debug] Evento recibido: payment.edit
+[2026-03-13 17:12:49.277467] [notice] Logging level set to:debug
+[2026-03-13 17:12:49.278898] [debug] Payload recibido: {"uuid":"e4a94b7d-89bc-46b9-825e-58b924b7844b","changeType":"edit","entity":"invoice","entityId":"3159","eventName":"invoice.edit","extraData":{"entity":{"id":3159,"clientId":77,"number":"003105","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3176,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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":300,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":1559,"invoiceId":3159,"paymentId":996,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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,"printed":false},"entityBeforeEdit":{"id":3159,"clientId":77,"number":"003105","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3176,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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":[{"id":1559,"invoiceId":3159,"paymentId":996,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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,"printed":false}}}
+
+[2026-03-13 17:12:49.496279] [debug] Evento recibido: invoice.edit
+[2026-03-13 17:12:49.496515] [debug] Edición de Factura
+
+[2026-03-13 17:12:49.691939] [notice] Logging level set to:debug
+[2026-03-13 17:12:49.692090] [debug] Payload recibido: {"uuid":"32f22407-14d1-45a4-bf30-9a3d574c0aa5","changeType":"insert","entity":"payment","entityId":"996","eventName":"payment.add","extraData":{"entity":{"id":996,"clientId":77,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-13T11:12:48-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":"Manual","providerPaymentId":"1773421968694-77","providerPaymentTime":"2026-03-13T11:12:48-0600","paymentCovers":[{"id":1559,"invoiceId":3159,"paymentId":996,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
+
+[2026-03-13 17:12:49.899528] [debug] Evento recibido: payment.add
+[2026-03-13 17:12:49.899804] [debug] Notification encodificado en JSON:{"uuid":"32f22407-14d1-45a4-bf30-9a3d574c0aa5","changeType":"insert","entity":"payment","entityId":996,"message":null,"clientId":77,"eventName":"payment.add","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":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":207,"clientId":77,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":10,"name":"PAGO ADRIANA","colorBackground":"#b7e281","colorText":"#444"}],"invitationEmailSentDate":null,"avatarColor":"#039be5","addressGpsLat":21.1145736,"addressGpsLon":-100.933729,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":996,"clientId":77,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-13T11:12:48-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":"Manual","providerPaymentId":"1773421968694-77","providerPaymentTime":"2026-03-13T11:12:48-0600","paymentCovers":[{"id":1559,"invoiceId":3159,"paymentId":996,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}}
+
+[2026-03-13 17:12:50.177607] [notice] Logging level set to:debug
+[2026-03-13 17:12:50.177664] [debug] Payload recibido: {"uuid":"fd5e6e11-2e42-4e69-a15e-a255bd69f0b4","changeType":"edit","entity":"payment","entityId":"996","eventName":"payment.edit","extraData":{"entity":{"id":996,"clientId":77,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-13T11:12:48-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":"Manual","providerPaymentId":"1773421968694-77","providerPaymentTime":"2026-03-13T11:12:48-0600","paymentCovers":[{"id":1559,"invoiceId":3159,"paymentId":996,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":996,"clientId":77,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-13T11:12:48-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":"Manual","providerPaymentId":"1773421968694-77","providerPaymentTime":"2026-03-13T11:12:48-0600","paymentCovers":[{"id":1559,"invoiceId":3159,"paymentId":996,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}}}
+
+[2026-03-13 17:12:50.340282] [debug] Evento recibido: payment.edit
+[2026-03-13 17:45:44.027237] [notice] Logging level set to:debug
+[2026-03-13 17:45:44.027311] [debug] Payload recibido: {"uuid":"32c6e75a-ceeb-463e-901d-1c4799dd5606","changeType":"insert","entity":"invoice","entityId":"3226","eventName":"invoice.add","extraData":{"entity":{"id":3226,"clientId":49,"number":"003172","createdDate":"2026-03-13T11:45:38-0600","dueDate":"2026-03-27T11:45:38-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-13T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3243,"type":"service","label":"plan300 28\/02\/2026 \u2013 30\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":48,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-13 17:45:44.276444] [debug] Evento recibido: invoice.add
+[2026-03-13 17:45:44.276587] [debug] Adición de Factura
+
+[2026-03-13 17:45:44.276642] [debug] datos del notification para el invoice add:{"uuid":"32c6e75a-ceeb-463e-901d-1c4799dd5606","changeType":"insert","entity":"invoice","entityId":3226,"message":null,"clientId":49,"eventName":"invoice.add","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":265,"clientId":49,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"CogaYu4RA5mABMH#","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":10,"name":"PAGO ADRIANA","colorBackground":"#b7e281","colorText":"#444"}],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":3226,"clientId":49,"number":"003172","createdDate":"2026-03-13T11:45:38-0600","dueDate":"2026-03-27T11:45:38-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-13T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3243,"type":"service","label":"plan300 28\/02\/2026 \u2013 30\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":48,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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,"printed":false},"paymentData":null}
+
+[2026-03-13 17:45:44.276669] [debug] Account Balance: -300
+
+[2026-03-13 17:45:58.642697] [notice] Logging level set to:debug
+[2026-03-13 17:45:58.642762] [debug] Payload recibido: {"uuid":"91c56170-5000-4665-b9ad-f325c3dc1c13","changeType":"edit","entity":"invoice","entityId":"3226","eventName":"invoice.edit","extraData":{"entity":{"id":3226,"clientId":49,"number":"003172","createdDate":"2026-03-13T11:45:38-0600","dueDate":"2026-03-27T11:45:38-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-13T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3243,"type":"service","label":"plan300 28\/02\/2026 \u2013 30\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":48,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":300,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":1560,"invoiceId":3226,"paymentId":997,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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,"printed":false},"entityBeforeEdit":{"id":3226,"clientId":49,"number":"003172","createdDate":"2026-03-13T11:45:38-0600","dueDate":"2026-03-27T11:45:38-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-13T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3243,"type":"service","label":"plan300 28\/02\/2026 \u2013 30\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":48,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[{"id":1560,"invoiceId":3226,"paymentId":997,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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,"printed":false}}}
+
+[2026-03-13 17:45:58.846935] [debug] Evento recibido: invoice.edit
+[2026-03-13 17:45:58.847162] [debug] Edición de Factura
+
+[2026-03-13 17:45:59.076730] [notice] Logging level set to:debug
+[2026-03-13 17:45:59.076883] [debug] Payload recibido: {"uuid":"319b156c-22c1-464d-9881-608dd4023ffd","changeType":"insert","entity":"payment","entityId":"997","eventName":"payment.add","extraData":{"entity":{"id":997,"clientId":49,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-13T11:45:58-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":"Manual","providerPaymentId":"1773423958128-49","providerPaymentTime":"2026-03-13T11:45:58-0600","paymentCovers":[{"id":1560,"invoiceId":3226,"paymentId":997,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
+
+[2026-03-13 17:45:59.260821] [debug] Evento recibido: payment.add
+[2026-03-13 17:45:59.261073] [debug] Notification encodificado en JSON:{"uuid":"319b156c-22c1-464d-9881-608dd4023ffd","changeType":"insert","entity":"payment","entityId":997,"message":null,"clientId":49,"eventName":"payment.add","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":265,"clientId":49,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"CogaYu4RA5mABMH#","clientZoneVisible":false}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":10,"name":"PAGO ADRIANA","colorBackground":"#b7e281","colorText":"#444"}],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":997,"clientId":49,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-13T11:45:58-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":"Manual","providerPaymentId":"1773423958128-49","providerPaymentTime":"2026-03-13T11:45:58-0600","paymentCovers":[{"id":1560,"invoiceId":3226,"paymentId":997,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}}
+
+[2026-03-13 17:45:59.480005] [notice] Logging level set to:debug
+[2026-03-13 17:45:59.480149] [debug] Payload recibido: {"uuid":"3cc41b55-2ff5-4f0c-b438-aad02549bb04","changeType":"edit","entity":"payment","entityId":"997","eventName":"payment.edit","extraData":{"entity":{"id":997,"clientId":49,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-13T11:45:58-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":"Manual","providerPaymentId":"1773423958128-49","providerPaymentTime":"2026-03-13T11:45:58-0600","paymentCovers":[{"id":1560,"invoiceId":3226,"paymentId":997,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":997,"clientId":49,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-13T11:45:58-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":"Manual","providerPaymentId":"1773423958128-49","providerPaymentTime":"2026-03-13T11:45:58-0600","paymentCovers":[{"id":1560,"invoiceId":3226,"paymentId":997,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}}}
+
+[2026-03-13 17:45:59.651410] [debug] Evento recibido: payment.edit
+[2026-03-13 17:52:03.507484] [notice] Logging level set to:debug
+[2026-03-13 17:52:03.507556] [debug] Payload recibido: {"uuid":"225ef7c7-0935-41d4-aeda-156e7fe98afa","changeType":"insert","entity":"invoice","entityId":"3227","eventName":"invoice.add","extraData":{"entity":{"id":3227,"clientId":49,"number":"003173","createdDate":"2026-03-13T11:51:57-0600","dueDate":"2026-03-27T11:51:57-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-13T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3244,"type":"service","label":"plan300 31\/03\/2026 \u2013 29\/04\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":48,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-13 17:52:03.717359] [debug] Evento recibido: invoice.add
+[2026-03-13 17:52:03.717571] [debug] Adición de Factura
+
+[2026-03-13 17:52:03.717673] [debug] datos del notification para el invoice add:{"uuid":"225ef7c7-0935-41d4-aeda-156e7fe98afa","changeType":"insert","entity":"invoice","entityId":3227,"message":null,"clientId":49,"eventName":"invoice.add","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":265,"clientId":49,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"CogaYu4RA5mABMH#","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":10,"name":"PAGO ADRIANA","colorBackground":"#b7e281","colorText":"#444"}],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":3227,"clientId":49,"number":"003173","createdDate":"2026-03-13T11:51:57-0600","dueDate":"2026-03-27T11:51:57-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-13T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3244,"type":"service","label":"plan300 31\/03\/2026 \u2013 29\/04\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":48,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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,"printed":false},"paymentData":null}
+
+[2026-03-13 17:52:03.717778] [debug] Account Balance: -300
+
+[2026-03-13 17:52:43.535437] [notice] Logging level set to:debug
+[2026-03-13 17:52:43.535557] [debug] Payload recibido: {"uuid":"f4601029-83d2-4329-9243-a32e78e5c911","changeType":"edit","entity":"invoice","entityId":"3227","eventName":"invoice.edit","extraData":{"entity":{"id":3227,"clientId":49,"number":"003173","createdDate":"2026-03-13T11:51:57-0600","dueDate":"2026-03-27T11:51:57-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-13T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3244,"type":"service","label":"plan300 31\/03\/2026 \u2013 29\/04\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":48,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":300,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":1561,"invoiceId":3227,"paymentId":998,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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,"printed":false},"entityBeforeEdit":{"id":3227,"clientId":49,"number":"003173","createdDate":"2026-03-13T11:51:57-0600","dueDate":"2026-03-27T11:51:57-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-13T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3244,"type":"service","label":"plan300 31\/03\/2026 \u2013 29\/04\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":48,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[{"id":1561,"invoiceId":3227,"paymentId":998,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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,"printed":false}}}
+
+[2026-03-13 17:52:43.789925] [debug] Evento recibido: invoice.edit
+[2026-03-13 17:52:43.790041] [debug] Edición de Factura
+
+[2026-03-13 17:52:44.021106] [notice] Logging level set to:debug
+[2026-03-13 17:52:44.021254] [debug] Payload recibido: {"uuid":"619f28b9-adbf-4d99-bc68-4a9f76728892","changeType":"insert","entity":"payment","entityId":"998","eventName":"payment.add","extraData":{"entity":{"id":998,"clientId":49,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-13T11:52:43-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":"Manual","providerPaymentId":"1773424362988-49","providerPaymentTime":"2026-03-13T11:52:43-0600","paymentCovers":[{"id":1561,"invoiceId":3227,"paymentId":998,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[{"id":"665de139-1ffb-4ce2-bcfd-2d4fa7cb9f9a","paymentId":998,"customAttributeId":6,"name":"Pagos De","key":"pagosDe","value":"Adriana","clientZoneVisible":true}]},"entityBeforeEdit":null}}
+
+[2026-03-13 17:52:44.235507] [debug] Evento recibido: payment.add
+[2026-03-13 17:52:44.235733] [debug] Notification encodificado en JSON:{"uuid":"619f28b9-adbf-4d99-bc68-4a9f76728892","changeType":"insert","entity":"payment","entityId":998,"message":null,"clientId":49,"eventName":"payment.add","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":265,"clientId":49,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"CogaYu4RA5mABMH#","clientZoneVisible":false}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":10,"name":"PAGO ADRIANA","colorBackground":"#b7e281","colorText":"#444"}],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":998,"clientId":49,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-13T11:52:43-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":"Manual","providerPaymentId":"1773424362988-49","providerPaymentTime":"2026-03-13T11:52:43-0600","paymentCovers":[{"id":1561,"invoiceId":3227,"paymentId":998,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[{"id":"665de139-1ffb-4ce2-bcfd-2d4fa7cb9f9a","paymentId":998,"customAttributeId":6,"name":"Pagos De","key":"pagosDe","value":"Adriana","clientZoneVisible":true}]}}
+
+[2026-03-13 17:52:44.583432] [notice] Logging level set to:debug
+[2026-03-13 17:52:44.583565] [debug] Payload recibido: {"uuid":"6311f9a8-b246-49a9-9f5c-93086cd4ee0c","changeType":"edit","entity":"payment","entityId":"998","eventName":"payment.edit","extraData":{"entity":{"id":998,"clientId":49,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-13T11:52:43-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":"Manual","providerPaymentId":"1773424362988-49","providerPaymentTime":"2026-03-13T11:52:43-0600","paymentCovers":[{"id":1561,"invoiceId":3227,"paymentId":998,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[{"id":"665de139-1ffb-4ce2-bcfd-2d4fa7cb9f9a","paymentId":998,"customAttributeId":6,"name":"Pagos De","key":"pagosDe","value":"Adriana","clientZoneVisible":true}]},"entityBeforeEdit":{"id":998,"clientId":49,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-13T11:52:43-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":"Manual","providerPaymentId":"1773424362988-49","providerPaymentTime":"2026-03-13T11:52:43-0600","paymentCovers":[{"id":1561,"invoiceId":3227,"paymentId":998,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[{"id":"665de139-1ffb-4ce2-bcfd-2d4fa7cb9f9a","paymentId":998,"customAttributeId":6,"name":"Pagos De","key":"pagosDe","value":"Adriana","clientZoneVisible":true}]}}}
+
+[2026-03-13 17:52:44.770579] [debug] Evento recibido: payment.edit
+[2026-03-13 17:53:05.878536] [notice] Logging level set to:debug
+[2026-03-13 17:53:05.878627] [debug] Payload recibido: {"uuid":"eba48499-e3e6-4f41-a140-03c4784f806d","changeType":"insert","entity":"invoice","entityId":"3228","eventName":"invoice.add","extraData":{"entity":{"id":3228,"clientId":49,"number":"003174","createdDate":"2026-03-13T11:53:00-0600","dueDate":"2026-03-27T11:53:00-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-13T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3245,"type":"service","label":"plan300 30\/04\/2026 \u2013 30\/05\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":48,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-13 17:53:06.101414] [debug] Evento recibido: invoice.add
+[2026-03-13 17:53:06.101562] [debug] Adición de Factura
+
+[2026-03-13 17:53:06.101619] [debug] datos del notification para el invoice add:{"uuid":"eba48499-e3e6-4f41-a140-03c4784f806d","changeType":"insert","entity":"invoice","entityId":3228,"message":null,"clientId":49,"eventName":"invoice.add","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":265,"clientId":49,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"CogaYu4RA5mABMH#","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":10,"name":"PAGO ADRIANA","colorBackground":"#b7e281","colorText":"#444"}],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":3228,"clientId":49,"number":"003174","createdDate":"2026-03-13T11:53:00-0600","dueDate":"2026-03-27T11:53:00-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-13T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3245,"type":"service","label":"plan300 30\/04\/2026 \u2013 30\/05\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":48,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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,"printed":false},"paymentData":null}
+
+[2026-03-13 17:53:06.101645] [debug] Account Balance: -300
+
+[2026-03-13 17:53:24.133358] [notice] Logging level set to:debug
+[2026-03-13 17:53:24.133445] [debug] Payload recibido: {"uuid":"37d8e28c-b3a7-4b0c-9e39-518b35db96ee","changeType":"edit","entity":"invoice","entityId":"3228","eventName":"invoice.edit","extraData":{"entity":{"id":3228,"clientId":49,"number":"003174","createdDate":"2026-03-13T11:53:00-0600","dueDate":"2026-03-27T11:53:00-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-13T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3245,"type":"service","label":"plan300 30\/04\/2026 \u2013 30\/05\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":48,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":300,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":1562,"invoiceId":3228,"paymentId":999,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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,"printed":false},"entityBeforeEdit":{"id":3228,"clientId":49,"number":"003174","createdDate":"2026-03-13T11:53:00-0600","dueDate":"2026-03-27T11:53:00-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-13T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3245,"type":"service","label":"plan300 30\/04\/2026 \u2013 30\/05\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":48,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[{"id":1562,"invoiceId":3228,"paymentId":999,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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,"printed":false}}}
+
+[2026-03-13 17:53:24.349464] [debug] Evento recibido: invoice.edit
+[2026-03-13 17:53:24.349729] [debug] Edición de Factura
+
+[2026-03-13 17:53:24.560141] [notice] Logging level set to:debug
+[2026-03-13 17:53:24.560215] [debug] Payload recibido: {"uuid":"dce99661-d45b-459f-a776-110e82dd52ca","changeType":"insert","entity":"payment","entityId":"999","eventName":"payment.add","extraData":{"entity":{"id":999,"clientId":49,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-13T11:53:23-0600","amount":300,"currencyCode":"MXN","note":"La prueba","receiptSentDate":null,"providerName":"Manual","providerPaymentId":"1773424403635-49","providerPaymentTime":"2026-03-13T11:53:23-0600","paymentCovers":[{"id":1562,"invoiceId":3228,"paymentId":999,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[{"id":"86e93599-acf1-49a2-a10d-17aad39355ec","paymentId":999,"customAttributeId":6,"name":"Pagos De","key":"pagosDe","value":"Adriana","clientZoneVisible":true}]},"entityBeforeEdit":null}}
+
+[2026-03-13 17:53:24.780020] [debug] Evento recibido: payment.add
+[2026-03-13 17:53:24.780294] [debug] Notification encodificado en JSON:{"uuid":"dce99661-d45b-459f-a776-110e82dd52ca","changeType":"insert","entity":"payment","entityId":999,"message":null,"clientId":49,"eventName":"payment.add","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":265,"clientId":49,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"CogaYu4RA5mABMH#","clientZoneVisible":false}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":10,"name":"PAGO ADRIANA","colorBackground":"#b7e281","colorText":"#444"}],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":999,"clientId":49,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-13T11:53:23-0600","amount":300,"currencyCode":"MXN","note":"La prueba","receiptSentDate":null,"providerName":"Manual","providerPaymentId":"1773424403635-49","providerPaymentTime":"2026-03-13T11:53:23-0600","paymentCovers":[{"id":1562,"invoiceId":3228,"paymentId":999,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[{"id":"86e93599-acf1-49a2-a10d-17aad39355ec","paymentId":999,"customAttributeId":6,"name":"Pagos De","key":"pagosDe","value":"Adriana","clientZoneVisible":true}]}}
+
+[2026-03-13 17:53:25.050252] [notice] Logging level set to:debug
+[2026-03-13 17:53:25.050313] [debug] Payload recibido: {"uuid":"3e250d7a-63a0-4843-b97b-539c96602b95","changeType":"edit","entity":"payment","entityId":"999","eventName":"payment.edit","extraData":{"entity":{"id":999,"clientId":49,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-13T11:53:23-0600","amount":300,"currencyCode":"MXN","note":"La prueba","receiptSentDate":null,"providerName":"Manual","providerPaymentId":"1773424403635-49","providerPaymentTime":"2026-03-13T11:53:23-0600","paymentCovers":[{"id":1562,"invoiceId":3228,"paymentId":999,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[{"id":"86e93599-acf1-49a2-a10d-17aad39355ec","paymentId":999,"customAttributeId":6,"name":"Pagos De","key":"pagosDe","value":"Adriana","clientZoneVisible":true}]},"entityBeforeEdit":{"id":999,"clientId":49,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-13T11:53:23-0600","amount":300,"currencyCode":"MXN","note":"La prueba","receiptSentDate":null,"providerName":"Manual","providerPaymentId":"1773424403635-49","providerPaymentTime":"2026-03-13T11:53:23-0600","paymentCovers":[{"id":1562,"invoiceId":3228,"paymentId":999,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[{"id":"86e93599-acf1-49a2-a10d-17aad39355ec","paymentId":999,"customAttributeId":6,"name":"Pagos De","key":"pagosDe","value":"Adriana","clientZoneVisible":true}]}}}
+
+[2026-03-13 17:53:25.225800] [debug] Evento recibido: payment.edit
+[2026-03-13 21:56:15.403222] [notice] Logging level set to:debug
+[2026-03-13 21:56:15.403294] [debug] Payload recibido: {"uuid":"manual-trigger","changeType":"update","entity":"job","entityId":69,"eventName":"job.edit","extraData":{"entity":{"id":69,"title":"[NOTIFICACION-PENDIENTE]El chido servicio","description":"Revisi\u00f3n de alambres","assignedUserId":1184,"assignedUserFullName":"Jos\u00e9 Luis Enrique  S\u00e1nchez","clientId":2,"date":"2026-03-14T14:00:59-0600","duration":60,"status":1,"address":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":69,"title":"El chido servicio","description":"Revisi\u00f3n de alambres","assignedUserId":1184,"assignedUserFullName":"Jos\u00e9 Luis Enrique  S\u00e1nchez","clientId":2,"date":"2026-03-14T14:00:59-0600","duration":60,"status":0,"address":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
+
+[2026-03-13 21:56:15.403354] [debug] Evento recibido: job.edit
+[2026-03-13 21:56:15.403409] [debug] Se actualiza un trabajo
+
+[2026-03-13 21:56:15.403428] [debug] Validando claves dentro de entityBeforeEdit y entity
+[2026-03-13 21:56:15.403443] [debug] Trabajo iniciado o asignado: Notificando...
+[2026-03-13 21:56:15.403466] [info] Iniciando verifyJobActionToDo
+Enviando mensaje de trabajo para el cliente
+
+Datos de la notificación de trabajo: {"clientFullName":"Daniel Humberto Soto Villegas","jobId":69,"date":"*14\/03\/2026*","installerName":"Jos\u00e9 Luis Enrique  S\u00e1nchez"}
+
+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": "5214181878106",
+    "from": "whatsapp",
+    "type": "text",
+    "content": {
+      "text": "S/M"
+    },
+    "template_values": ["👤  *Daniel Humberto Soto Villegas*", "*#️⃣69*", "🗓️ *14/03/2026*", "👷🏻‍♂️➡️ *José Luis Enrique  Sánchez*", "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":"306a5fc7195f4f37abbd1c369dfdaf71","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":"Jos\u00e9 Luis Enrique  S\u00e1nchez","clientFullName":"Daniel Humberto Soto Villegas [ID:2]","jobId":69,"clientAddress":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","clientWhatsApp":"5214181878106, 5214181148783","date":"*14\/03\/2026*","jobDescription":"Revisi\u00f3n de alambres","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564414,-100.9383654","passwordAntenaCliente":"Servicio 1: n#Cx89qC#r64LPR# Servicio 2: b@2zMYxSQR2BdkG9"}
+
+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": "524181878106",
+    "from": "whatsapp",
+    "type": "text",
+    "content": {
+      "text": "S/M"
+    },
+    "template_values": ["👷🏻‍♂️ *José Luis Enrique  Sánchez* se te ha asignado una tarea con folio #️⃣ *69*, del cliente 👤 *Daniel Humberto Soto Villegas [ID:2]*, para el 🗓️ *14/03/2026*", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564414,-100.9383654", "Servicio 1: n#Cx89qC#r64LPR# Servicio 2: b@2zMYxSQR2BdkG9"],
+    "template_uuid": "88eeb6420a214fd8870dd28d741021c4",
+    "optin_contact": true
+  }
+Response del CallBell: {"message":{"uuid":"56f1c37ce301419f856c05fc03b87d6a","status":"enqueued"}}
+La notificación fue enviada correctamente con estado: enqueued
+
+[2026-03-13 21:56:17.712306] [notice] Logging level set to:debug
+[2026-03-13 21:56:17.712465] [debug] Payload recibido: {"uuid":"14c35a55-b8fc-4dce-904a-cff66aa87cb0","changeType":"edit","entity":"job","entityId":"69","eventName":"job.edit","extraData":{"entity":{"id":69,"title":"El chido servicio","description":"Revisi\u00f3n de alambres","assignedUserId":1184,"assignedUserFullName":"Jos\u00e9 Luis Enrique  S\u00e1nchez","clientId":2,"date":"2026-03-14T14:00:59-0600","duration":60,"status":1,"address":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":69,"title":"El chido servicio","description":"Revisi\u00f3n de alambres","assignedUserId":1184,"assignedUserFullName":"Jos\u00e9 Luis Enrique  S\u00e1nchez","clientId":2,"date":"2026-03-14T14:00:59-0600","duration":60,"status":1,"address":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
+
+[2026-03-13 21:56:17.754946] [debug] Evento recibido: job.edit
+[2026-03-13 21:56:17.755152] [debug] Se actualiza un trabajo
+
+[2026-03-13 21:56:17.755207] [debug] Validando claves dentro de entityBeforeEdit y entity
+[2026-03-13 21:56:17.755258] [debug] Edición de trabajo "En curso" sin cambios de fecha o técnico relevantes para notificación
+[2026-03-13 21:57:56.289880] [notice] Logging level set to:debug
+[2026-03-13 21:57:56.289959] [debug] Payload recibido: {"uuid":"manual-trigger","changeType":"update","entity":"job","entityId":69,"eventName":"job.edit","extraData":{"entity":{"id":69,"title":"[NOTIFICACION-PENDIENTE]El chido servicio","description":"Revisi\u00f3n de alambres","assignedUserId":1184,"assignedUserFullName":"Jos\u00e9 Luis Enrique  S\u00e1nchez","clientId":2,"date":"2026-03-14T14:00:59-0600","duration":60,"status":1,"address":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":69,"title":"El chido servicio","description":"Revisi\u00f3n de alambres","assignedUserId":1184,"assignedUserFullName":"Jos\u00e9 Luis Enrique  S\u00e1nchez","clientId":2,"date":"2026-03-14T14:00:59-0600","duration":60,"status":0,"address":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
+
+[2026-03-13 21:57:56.290015] [debug] Evento recibido: job.edit
+[2026-03-13 21:57:56.290071] [debug] Se actualiza un trabajo
+
+[2026-03-13 21:57:56.290086] [debug] Validando claves dentro de entityBeforeEdit y entity
+[2026-03-13 21:57:56.290097] [debug] Trabajo iniciado o asignado: Notificando...
+[2026-03-13 21:57:56.290107] [info] Iniciando verifyJobActionToDo
+Enviando mensaje de trabajo para el cliente
+
+Datos de la notificación de trabajo: {"clientFullName":"Daniel Humberto Soto Villegas","jobId":69,"date":"*14\/03\/2026*","installerName":"Jos\u00e9 Luis Enrique  S\u00e1nchez"}
+
+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": "5214181878106",
+    "from": "whatsapp",
+    "type": "text",
+    "content": {
+      "text": "S/M"
+    },
+    "template_values": ["👤  *Daniel Humberto Soto Villegas*", "*#️⃣69*", "🗓️ *14/03/2026*", "👷🏻‍♂️➡️ *José Luis Enrique  Sánchez*", "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":"b910107ef6c44711898a1158695e97b1","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":"Jos\u00e9 Luis Enrique  S\u00e1nchez","clientFullName":"Daniel Humberto Soto Villegas [ID:2]","jobId":69,"clientAddress":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","clientWhatsApp":"5214181878106, 5214181148783","date":"*14\/03\/2026*","jobDescription":"Revisi\u00f3n de alambres","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564414,-100.9383654","passwordAntenaCliente":"Servicio 1: n#Cx89qC#r64LPR# Servicio 2: b@2zMYxSQR2BdkG9"}
+
+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": "524181878106",
+    "from": "whatsapp",
+    "type": "text",
+    "content": {
+      "text": "S/M"
+    },
+    "template_values": ["👷🏻‍♂️ *José Luis Enrique  Sánchez* se te ha asignado una tarea con folio #️⃣ *69*, del cliente 👤 *Daniel Humberto Soto Villegas [ID:2]*, para el 🗓️ *14/03/2026*", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564414,-100.9383654", "Servicio 1: n#Cx89qC#r64LPR# Servicio 2: b@2zMYxSQR2BdkG9"],
+    "template_uuid": "88eeb6420a214fd8870dd28d741021c4",
+    "optin_contact": true
+  }
+Response del CallBell: {"message":{"uuid":"db106d57387c4f369863b0ed51fc0b93","status":"enqueued"}}
+La notificación fue enviada correctamente con estado: enqueued
+
+[2026-03-13 21:57:58.632849] [notice] Logging level set to:debug
+[2026-03-13 21:57:58.633019] [debug] Payload recibido: {"uuid":"d819efa6-f3d6-4d56-9fbc-5070bbd305cb","changeType":"edit","entity":"job","entityId":"69","eventName":"job.edit","extraData":{"entity":{"id":69,"title":"El chido servicio","description":"Revisi\u00f3n de alambres","assignedUserId":1184,"assignedUserFullName":"Jos\u00e9 Luis Enrique  S\u00e1nchez","clientId":2,"date":"2026-03-14T14:00:59-0600","duration":60,"status":1,"address":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":69,"title":"El chido servicio","description":"Revisi\u00f3n de alambres","assignedUserId":1184,"assignedUserFullName":"Jos\u00e9 Luis Enrique  S\u00e1nchez","clientId":2,"date":"2026-03-14T14:00:59-0600","duration":60,"status":1,"address":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
+
+[2026-03-13 21:57:58.675668] [debug] Evento recibido: job.edit
+[2026-03-13 21:57:58.675930] [debug] Se actualiza un trabajo
+
+[2026-03-13 21:57:58.675997] [debug] Validando claves dentro de entityBeforeEdit y entity
+[2026-03-13 21:57:58.676039] [debug] Edición de trabajo "En curso" sin cambios de fecha o técnico relevantes para notificación
+[2026-03-13 22:00:20.798042] [notice] Logging level set to:debug
+[2026-03-13 22:00:20.798115] [debug] Payload recibido: {"uuid":"manual-trigger","changeType":"update","entity":"job","entityId":69,"eventName":"job.edit","extraData":{"entity":{"id":69,"title":"[NOTIFICACION-PENDIENTE]El chido servicio","description":"Revisi\u00f3n de alambres","assignedUserId":1184,"assignedUserFullName":"Jos\u00e9 Luis Enrique  S\u00e1nchez","clientId":2,"date":"2026-03-14T14:00:59-0600","duration":60,"status":1,"address":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":69,"title":"El chido servicio","description":"Revisi\u00f3n de alambres","assignedUserId":1184,"assignedUserFullName":"Jos\u00e9 Luis Enrique  S\u00e1nchez","clientId":2,"date":"2026-03-14T14:00:59-0600","duration":60,"status":0,"address":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
+
+[2026-03-13 22:00:20.798171] [debug] Evento recibido: job.edit
+[2026-03-13 22:00:20.798232] [debug] Se actualiza un trabajo
+
+[2026-03-13 22:00:20.798247] [debug] Validando claves dentro de entityBeforeEdit y entity
+[2026-03-13 22:00:20.798259] [debug] Trabajo iniciado o asignado: Notificando...
+[2026-03-13 22:00:20.798269] [info] Iniciando verifyJobActionToDo
+Enviando mensaje de trabajo para el cliente
+
+Datos de la notificación de trabajo: {"clientFullName":"Daniel Humberto Soto Villegas","jobId":69,"date":"*14\/03\/2026*","installerName":"Jos\u00e9 Luis Enrique  S\u00e1nchez"}
+
+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": "5214181878106",
+    "from": "whatsapp",
+    "type": "text",
+    "content": {
+      "text": "S/M"
+    },
+    "template_values": ["👤  *Daniel Humberto Soto Villegas*", "*#️⃣69*", "🗓️ *14/03/2026*", "👷🏻‍♂️➡️ *José Luis Enrique  Sánchez*", "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":"978887297c6340cca3fe970140f1cb69","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":"Jos\u00e9 Luis Enrique  S\u00e1nchez","clientFullName":"Daniel Humberto Soto Villegas [ID:2]","jobId":69,"clientAddress":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","clientWhatsApp":"5214181878106, 5214181148783","date":"*14\/03\/2026*","jobDescription":"Revisi\u00f3n de alambres","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564414,-100.9383654","passwordAntenaCliente":"Servicio 1: n#Cx89qC#r64LPR# Servicio 2: b@2zMYxSQR2BdkG9"}
+
+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": "524181878106",
+    "from": "whatsapp",
+    "type": "text",
+    "content": {
+      "text": "S/M"
+    },
+    "template_values": ["👷🏻‍♂️ *José Luis Enrique  Sánchez* se te ha asignado una tarea con folio #️⃣ *69*, del cliente 👤 *Daniel Humberto Soto Villegas [ID:2]*, para el 🗓️ *14/03/2026*", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564414,-100.9383654", "Servicio 1: n#Cx89qC#r64LPR# Servicio 2: b@2zMYxSQR2BdkG9"],
+    "template_uuid": "88eeb6420a214fd8870dd28d741021c4",
+    "optin_contact": true
+  }
+Response del CallBell: {"message":{"uuid":"ea6d37cd937740f5947c6018a608ad45","status":"enqueued"}}
+La notificación fue enviada correctamente con estado: enqueued
+
+[2026-03-13 22:00:22.850718] [notice] Logging level set to:debug
+[2026-03-13 22:00:22.851126] [debug] Payload recibido: {"uuid":"a3a10ecd-677f-4fa2-9f1c-78cafe67dbc2","changeType":"edit","entity":"job","entityId":"69","eventName":"job.edit","extraData":{"entity":{"id":69,"title":"El chido servicio","description":"Revisi\u00f3n de alambres","assignedUserId":1184,"assignedUserFullName":"Jos\u00e9 Luis Enrique  S\u00e1nchez","clientId":2,"date":"2026-03-14T14:00:59-0600","duration":60,"status":1,"address":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":69,"title":"El chido servicio","description":"Revisi\u00f3n de alambres","assignedUserId":1184,"assignedUserFullName":"Jos\u00e9 Luis Enrique  S\u00e1nchez","clientId":2,"date":"2026-03-14T14:00:59-0600","duration":60,"status":1,"address":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
+
+[2026-03-13 22:00:22.893168] [debug] Evento recibido: job.edit
+[2026-03-13 22:00:22.893367] [debug] Se actualiza un trabajo
+
+[2026-03-13 22:00:22.893419] [debug] Validando claves dentro de entityBeforeEdit y entity
+[2026-03-13 22:00:22.893461] [debug] Edición de trabajo "En curso" sin cambios de fecha o técnico relevantes para notificación
+[2026-03-14 6:25:03.390002] [notice] Logging level set to:debug
+[2026-03-14 6:25:03.390072] [debug] Payload recibido: {"uuid":"1413262a-4b98-49e1-8f61-8e8a26ed1e5c","changeType":"overdue","entity":"invoice","entityId":"3129","eventName":"invoice.overdue","extraData":{"entity":{"id":3129,"clientId":4,"number":"003075","createdDate":"2026-02-27T10:00:02-0600","dueDate":"2026-03-13T10:00:02-0600","emailSentDate":"2026-03-14T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2026-02-25T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3146,"type":"service","label":"plan300 27\/01\/2026 \u2013 26\/02\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":4,"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":"Griselda","clientLastName":"Avalos","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"23 Yucat\u00e1n","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-14 6:25:03.605905] [debug] Evento recibido: invoice.overdue
+[2026-03-14 6:25:03.606028] [debug] Factura vencida
+
+[2026-03-14 6:25:03.606076] [debug] datos del notification para el invoice overdue:{"uuid":"1413262a-4b98-49e1-8f61-8e8a26ed1e5c","changeType":"overdue","entity":"invoice","entityId":3129,"message":null,"clientId":4,"eventName":"invoice.overdue","clientData":{"id":4,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Yucat\u00e1n 23, Centro, 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-01-27T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Griselda","lastName":"Avalos","username":"gavalos04","contacts":[{"id":4,"clientId":4,"email":"chicarosa@gmail.com","phone":"4181156999","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":316,"clientId":4,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"Ydny7w8DP-V3ANg3RvPR","clientZoneVisible":false}],"accountBalance":-900,"accountCredit":0,"accountOutstanding":900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ff8f00","addressGpsLat":21.1542759,"addressGpsLon":-100.9379462,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":3129,"clientId":4,"number":"003075","createdDate":"2026-02-27T10:00:02-0600","dueDate":"2026-03-13T10:00:02-0600","emailSentDate":"2026-03-14T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2026-02-25T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3146,"type":"service","label":"plan300 27\/01\/2026 \u2013 26\/02\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":4,"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":"Griselda","clientLastName":"Avalos","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"23 Yucat\u00e1n","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,"printed":false},"paymentData":null}
+
+[2026-03-14 6:25:03.828674] [notice] Logging level set to:debug
+[2026-03-14 6:25:03.828746] [debug] Payload recibido: {"uuid":"4d08f448-e3e6-4d5b-a3c0-eff458b798e8","changeType":"overdue","entity":"invoice","entityId":"3130","eventName":"invoice.overdue","extraData":{"entity":{"id":3130,"clientId":1,"number":"003076","createdDate":"2026-02-27T10:00:02-0600","dueDate":"2026-03-13T10:00:02-0600","emailSentDate":"2026-03-14T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2026-02-27T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3147,"type":"service","label":"plan300 27\/02\/2026 \u2013 26\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":133,"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":"Don Miguel \u00c1ngel","clientLastName":"Guerrero Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Calle Morelos 34","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-14 6:25:04.074434] [debug] Evento recibido: invoice.overdue
+[2026-03-14 6:25:04.074544] [debug] Factura vencida
+
+[2026-03-14 6:25:04.074598] [debug] datos del notification para el invoice overdue:{"uuid":"4d08f448-e3e6-4d5b-a3c0-eff458b798e8","changeType":"overdue","entity":"invoice","entityId":3130,"message":null,"clientId":1,"eventName":"invoice.overdue","clientData":{"id":1,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"Calle Morelos 34","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Calle Morelos 34, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"El jefe","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-15T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Don Miguel \u00c1ngel","lastName":"Guerrero Gonz\u00e1lez","username":"dguerrero01","contacts":[{"id":1,"clientId":1,"email":"mangelgg@gmail.com","phone":"5214181148554","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":110,"clientId":1,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PdQvAvQ2wipl5k","clientZoneVisible":true},{"id":111,"clientId":1,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180697144444854","clientZoneVisible":true},{"id":203,"clientId":1,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-6800,"accountCredit":0,"accountOutstanding":6800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.1572096,"addressGpsLon":-100.9377327,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":3130,"clientId":1,"number":"003076","createdDate":"2026-02-27T10:00:02-0600","dueDate":"2026-03-13T10:00:02-0600","emailSentDate":"2026-03-14T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2026-02-27T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3147,"type":"service","label":"plan300 27\/02\/2026 \u2013 26\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":133,"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":"Don Miguel \u00c1ngel","clientLastName":"Guerrero Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Calle Morelos 34","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"paymentData":null}
+
+[2026-03-14 6:25:04.302011] [notice] Logging level set to:debug
+[2026-03-14 6:25:04.302061] [debug] Payload recibido: {"uuid":"70463a20-444a-45e5-bf5a-bf7e58944023","changeType":"overdue","entity":"invoice","entityId":"3131","eventName":"invoice.overdue","extraData":{"entity":{"id":3131,"clientId":3,"number":"003077","createdDate":"2026-02-27T10:00:02-0600","dueDate":"2026-03-13T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-27T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3148,"type":"service","label":"plan300 27\/02\/2026 \u2013 26\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":3,"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":"Lupita","clientLastName":"Morales","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"56 Oaxaca","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-14 6:25:04.486808] [debug] Evento recibido: invoice.overdue
+[2026-03-14 6:25:04.486910] [debug] Factura vencida
+
+[2026-03-14 6:25:04.486960] [debug] datos del notification para el invoice overdue:{"uuid":"70463a20-444a-45e5-bf5a-bf7e58944023","changeType":"overdue","entity":"invoice","entityId":3131,"message":null,"clientId":3,"eventName":"invoice.overdue","clientData":{"id":3,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"56 Oaxaca","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Oaxaca 56, Centro, 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":"cliente empleada del siip","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-27T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Lupita","lastName":"Morales","username":"lmorales03","contacts":[{"id":3,"clientId":3,"email":null,"phone":null,"name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":170,"clientId":3,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RfpyPlzb4OBIDe","clientZoneVisible":true},{"id":171,"clientId":3,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180299186033579","clientZoneVisible":true},{"id":244,"clientId":3,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false},{"id":306,"clientId":3,"customAttributeId":21,"name":"RUTA DE COBRANZA","key":"rutaDeCobranza","value":"RUTA 1","clientZoneVisible":true}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f9a825","addressGpsLat":21.16004,"addressGpsLon":-100.9368203,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":3131,"clientId":3,"number":"003077","createdDate":"2026-02-27T10:00:02-0600","dueDate":"2026-03-13T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-27T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3148,"type":"service","label":"plan300 27\/02\/2026 \u2013 26\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":3,"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":"Lupita","clientLastName":"Morales","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"56 Oaxaca","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,"printed":false},"paymentData":null}
+
+contac vacio
+[2026-03-14 18:30:04.014734] [notice] Logging level set to:debug
+[2026-03-14 18:30:04.014874] [debug] Payload recibido: {"uuid":"3c5d434a-b6e5-404c-9661-d9f7dbacc333","changeType":"suspend","entity":"service","entityId":"3","eventName":"service.suspend","extraData":{"entity":{"id":3,"prepaid":false,"clientId":3,"status":3,"name":"plan300","fullAddress":"Oaxaca 56, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"56 Oaxaca","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.16004,"addressGpsLon":-100.9368203,"servicePlanId":2,"servicePlanPeriodId":7,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2024-01-27T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2024-01-28T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":27,"nextInvoicingDayAdjustment":0,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"plan300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":6,"uploadSpeed":6,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2026-03-26T00:00:00-0600","unmsClientSiteId":"c4ea6c5c-0577-42bc-852e-e54cad6255b8","attributes":[],"addressData":null,"suspensionReasonId":1,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":43,"startDate":"2024-03-13T00:00:00-0600","endDate":"2024-12-11T00:00:00-0600"},{"id":133,"startDate":"2025-01-12T00:00:00-0600","endDate":"2025-11-28T00:00:00-0600"},{"id":183,"startDate":"2026-01-06T00:00:00-0600","endDate":"2026-01-27T00:00:00-0600"},{"id":206,"startDate":"2026-03-14T12:30:03-0600","endDate":null}],"surcharges":[]},"entityBeforeEdit":{"id":3,"prepaid":false,"clientId":3,"status":1,"name":"plan300","fullAddress":"Oaxaca 56, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"56 Oaxaca","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.16004,"addressGpsLon":-100.9368203,"servicePlanId":2,"servicePlanPeriodId":7,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2024-01-27T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2024-01-28T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":27,"nextInvoicingDayAdjustment":0,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"plan300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":6,"uploadSpeed":6,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2026-03-26T00:00:00-0600","unmsClientSiteId":"c4ea6c5c-0577-42bc-852e-e54cad6255b8","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":43,"startDate":"2024-03-13T00:00:00-0600","endDate":"2024-12-11T00:00:00-0600"},{"id":133,"startDate":"2025-01-12T00:00:00-0600","endDate":"2025-11-28T00:00:00-0600"},{"id":183,"startDate":"2026-01-06T00:00:00-0600","endDate":"2026-01-27T00:00:00-0600"},{"id":206,"startDate":"2026-03-14T12:30:03-0600","endDate":null}],"surcharges":[]}}}
+
+[2026-03-14 18:30:04.451363] [debug] Evento recibido: service.suspend
+[2026-03-14 18:30:04.451570] [debug] Se suspendió el servicio a un  cliente
+
+[2026-03-14 18:30:04.809326] [notice] Logging level set to:debug
+[2026-03-14 18:30:04.809479] [debug] Payload recibido: {"uuid":"a2142be3-133c-4a2b-b278-8760027d9507","changeType":"edit","entity":"service","entityId":"3","eventName":"service.edit","extraData":{"entity":{"id":3,"prepaid":false,"clientId":3,"status":3,"name":"plan300","fullAddress":"Oaxaca 56, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"56 Oaxaca","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.16004,"addressGpsLon":-100.9368203,"servicePlanId":2,"servicePlanPeriodId":7,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2024-01-27T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2024-01-28T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":27,"nextInvoicingDayAdjustment":0,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"plan300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":6,"uploadSpeed":6,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2026-03-26T00:00:00-0600","unmsClientSiteId":"c4ea6c5c-0577-42bc-852e-e54cad6255b8","attributes":[],"addressData":null,"suspensionReasonId":1,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":43,"startDate":"2024-03-13T00:00:00-0600","endDate":"2024-12-11T00:00:00-0600"},{"id":133,"startDate":"2025-01-12T00:00:00-0600","endDate":"2025-11-28T00:00:00-0600"},{"id":183,"startDate":"2026-01-06T00:00:00-0600","endDate":"2026-01-27T00:00:00-0600"},{"id":206,"startDate":"2026-03-14T12:30:03-0600","endDate":null}],"surcharges":[]},"entityBeforeEdit":{"id":3,"prepaid":false,"clientId":3,"status":1,"name":"plan300","fullAddress":"Oaxaca 56, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"56 Oaxaca","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.16004,"addressGpsLon":-100.9368203,"servicePlanId":2,"servicePlanPeriodId":7,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2024-01-27T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2024-01-28T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":27,"nextInvoicingDayAdjustment":0,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"plan300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":6,"uploadSpeed":6,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2026-03-26T00:00:00-0600","unmsClientSiteId":"c4ea6c5c-0577-42bc-852e-e54cad6255b8","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":43,"startDate":"2024-03-13T00:00:00-0600","endDate":"2024-12-11T00:00:00-0600"},{"id":133,"startDate":"2025-01-12T00:00:00-0600","endDate":"2025-11-28T00:00:00-0600"},{"id":183,"startDate":"2026-01-06T00:00:00-0600","endDate":"2026-01-27T00:00:00-0600"},{"id":206,"startDate":"2026-03-14T12:30:03-0600","endDate":null}],"surcharges":[]}}}
+
+[2026-03-14 18:30:05.126616] [debug] Evento recibido: service.edit
+[2026-03-14 18:30:05.126815] [debug] Se editó el servicio a un  cliente
+
+[2026-03-14 18:30:05.126909] [info] Iniciando verificación/sincronización de contraseña para el cliente ID: 3
+[2026-03-15 6:25:03.074330] [notice] Logging level set to:debug
+[2026-03-15 6:25:03.074393] [debug] Payload recibido: {"uuid":"567516ce-7920-4c6d-b942-ce26aecbc751","changeType":"overdue","entity":"invoice","entityId":"3217","eventName":"invoice.overdue","extraData":{"entity":{"id":3217,"clientId":47,"number":"003163","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3234,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:03.371511] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:03.371658] [debug] Factura vencida
+
+[2026-03-15 6:25:03.371707] [debug] datos del notification para el invoice overdue:{"uuid":"567516ce-7920-4c6d-b942-ce26aecbc751","changeType":"overdue","entity":"invoice","entityId":3217,"message":null,"clientId":47,"eventName":"invoice.overdue","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":347,"clientId":47,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"PJU5cZ282w#Hi4nM","clientZoneVisible":false}],"accountBalance":-7480,"accountCredit":0,"accountOutstanding":7480,"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":3217,"clientId":47,"number":"003163","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3234,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:03.592324] [notice] Logging level set to:debug
+[2026-03-15 6:25:03.592375] [debug] Payload recibido: {"uuid":"0fc3ff8f-33af-4101-b4ad-9dbe257a08ab","changeType":"overdue","entity":"invoice","entityId":"3165","eventName":"invoice.overdue","extraData":{"entity":{"id":3165,"clientId":19,"number":"003111","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3182,"type":"service","label":"INTERMEDIO 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:03.883788] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:03.885767] [debug] Factura vencida
+
+[2026-03-15 6:25:03.885833] [debug] datos del notification para el invoice overdue:{"uuid":"0fc3ff8f-33af-4101-b4ad-9dbe257a08ab","changeType":"overdue","entity":"invoice","entityId":3165,"message":null,"clientId":19,"eventName":"invoice.overdue","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":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":227,"clientId":19,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-14433.33,"accountCredit":0,"accountOutstanding":14433.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":3165,"clientId":19,"number":"003111","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3182,"type":"service","label":"INTERMEDIO 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+contac vacio
+[2026-03-15 6:25:04.129492] [notice] Logging level set to:debug
+[2026-03-15 6:25:04.129559] [debug] Payload recibido: {"uuid":"a26b13a9-0f71-4338-9976-065f38a29814","changeType":"overdue","entity":"invoice","entityId":"3166","eventName":"invoice.overdue","extraData":{"entity":{"id":3166,"clientId":8,"number":"003112","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3183,"type":"service","label":"INTERMEDIO 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:04.431107] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:04.431209] [debug] Factura vencida
+
+[2026-03-15 6:25:04.431253] [debug] datos del notification para el invoice overdue:{"uuid":"a26b13a9-0f71-4338-9976-065f38a29814","changeType":"overdue","entity":"invoice","entityId":3166,"message":null,"clientId":8,"eventName":"invoice.overdue","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":[{"id":245,"clientId":8,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-2000,"accountCredit":0,"accountOutstanding":2000,"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":3166,"clientId":8,"number":"003112","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3183,"type":"service","label":"INTERMEDIO 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+contac vacio
+[2026-03-15 6:25:04.651737] [notice] Logging level set to:debug
+[2026-03-15 6:25:04.651788] [debug] Payload recibido: {"uuid":"631202a7-b259-4db3-8de2-9198ce31ff4e","changeType":"overdue","entity":"invoice","entityId":"3171","eventName":"invoice.overdue","extraData":{"entity":{"id":3171,"clientId":7,"number":"003117","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3188,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:04.870311] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:04.870409] [debug] Factura vencida
+
+[2026-03-15 6:25:04.870452] [debug] datos del notification para el invoice overdue:{"uuid":"631202a7-b259-4db3-8de2-9198ce31ff4e","changeType":"overdue","entity":"invoice","entityId":3171,"message":null,"clientId":7,"eventName":"invoice.overdue","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":[{"id":318,"clientId":7,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"7X69S@Aar@ZYGLZu","clientZoneVisible":false}],"accountBalance":-7500,"accountCredit":0,"accountOutstanding":7500,"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":3171,"clientId":7,"number":"003117","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3188,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:05.067670] [notice] Logging level set to:debug
+[2026-03-15 6:25:05.067719] [debug] Payload recibido: {"uuid":"fb86131f-6e16-4c13-8aeb-dac28a38309e","changeType":"overdue","entity":"invoice","entityId":"3188","eventName":"invoice.overdue","extraData":{"entity":{"id":3188,"clientId":9,"number":"003134","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3205,"type":"service","label":"INTERMEDIO 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:05.299957] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:05.300067] [debug] Factura vencida
+
+[2026-03-15 6:25:05.300116] [debug] datos del notification para el invoice overdue:{"uuid":"fb86131f-6e16-4c13-8aeb-dac28a38309e","changeType":"overdue","entity":"invoice","entityId":3188,"message":null,"clientId":9,"eventName":"invoice.overdue","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":[{"id":319,"clientId":9,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"EY7CcHQkzp#PK5Xb","clientZoneVisible":false}],"accountBalance":-10000,"accountCredit":0,"accountOutstanding":10000,"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":3188,"clientId":9,"number":"003134","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3205,"type":"service","label":"INTERMEDIO 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:05.537458] [notice] Logging level set to:debug
+[2026-03-15 6:25:05.537508] [debug] Payload recibido: {"uuid":"6f5ee8b2-44b9-4c29-87e3-5bf6eb80f18f","changeType":"overdue","entity":"invoice","entityId":"3195","eventName":"invoice.overdue","extraData":{"entity":{"id":3195,"clientId":14,"number":"003141","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3212,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:05.727893] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:05.727999] [debug] Factura vencida
+
+[2026-03-15 6:25:05.728044] [debug] datos del notification para el invoice overdue:{"uuid":"6f5ee8b2-44b9-4c29-87e3-5bf6eb80f18f","changeType":"overdue","entity":"invoice","entityId":3195,"message":null,"clientId":14,"eventName":"invoice.overdue","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":[{"id":322,"clientId":14,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"2De7edLTJLic85#Z","clientZoneVisible":false}],"accountBalance":-6300,"accountCredit":0,"accountOutstanding":6300,"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":3195,"clientId":14,"number":"003141","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3212,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:05.922080] [notice] Logging level set to:debug
+[2026-03-15 6:25:05.922133] [debug] Payload recibido: {"uuid":"37606e42-356c-4b33-b6e3-2ea82f9b0c82","changeType":"overdue","entity":"invoice","entityId":"3132","eventName":"invoice.overdue","extraData":{"entity":{"id":3132,"clientId":91,"number":"003078","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3149,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:06.124512] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:06.124614] [debug] Factura vencida
+
+[2026-03-15 6:25:06.124656] [debug] datos del notification para el invoice overdue:{"uuid":"37606e42-356c-4b33-b6e3-2ea82f9b0c82","changeType":"overdue","entity":"invoice","entityId":3132,"message":null,"clientId":91,"eventName":"invoice.overdue","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":[{"id":385,"clientId":91,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"W:vu9X]f2[HKjcJ&Rvg4","clientZoneVisible":false}],"accountBalance":-10700,"accountCredit":0,"accountOutstanding":10700,"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":3132,"clientId":91,"number":"003078","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3149,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:06.339240] [notice] Logging level set to:debug
+[2026-03-15 6:25:06.339287] [debug] Payload recibido: {"uuid":"d4ee4688-d482-432a-af3d-3612395b7a9d","changeType":"overdue","entity":"invoice","entityId":"3133","eventName":"invoice.overdue","extraData":{"entity":{"id":3133,"clientId":45,"number":"003079","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3150,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:06.517234] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:06.517333] [debug] Factura vencida
+
+[2026-03-15 6:25:06.517376] [debug] datos del notification para el invoice overdue:{"uuid":"d4ee4688-d482-432a-af3d-3612395b7a9d","changeType":"overdue","entity":"invoice","entityId":3133,"message":null,"clientId":45,"eventName":"invoice.overdue","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":242,"clientId":45,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-7510,"accountCredit":0,"accountOutstanding":7510,"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":3133,"clientId":45,"number":"003079","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3150,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:06.706429] [notice] Logging level set to:debug
+[2026-03-15 6:25:06.706480] [debug] Payload recibido: {"uuid":"3f2081ef-c576-447b-a167-170659802260","changeType":"overdue","entity":"invoice","entityId":"3135","eventName":"invoice.overdue","extraData":{"entity":{"id":3135,"clientId":28,"number":"003081","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3152,"type":"service","label":"INTERMEDIO 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:06.916470] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:06.916577] [debug] Factura vencida
+
+[2026-03-15 6:25:06.916623] [debug] datos del notification para el invoice overdue:{"uuid":"3f2081ef-c576-447b-a167-170659802260","changeType":"overdue","entity":"invoice","entityId":3135,"message":null,"clientId":28,"eventName":"invoice.overdue","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":[{"id":333,"clientId":28,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"vwmit6H#Qt6Yn6Av","clientZoneVisible":false}],"accountBalance":-12983.33,"accountCredit":0,"accountOutstanding":12983.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":3135,"clientId":28,"number":"003081","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3152,"type":"service","label":"INTERMEDIO 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:07.112802] [notice] Logging level set to:debug
+[2026-03-15 6:25:07.112852] [debug] Payload recibido: {"uuid":"4dda9415-7501-49e7-af04-b98221d876bf","changeType":"overdue","entity":"invoice","entityId":"3137","eventName":"invoice.overdue","extraData":{"entity":{"id":3137,"clientId":35,"number":"003083","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3154,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:07.304996] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:07.305115] [debug] Factura vencida
+
+[2026-03-15 6:25:07.305320] [debug] datos del notification para el invoice overdue:{"uuid":"4dda9415-7501-49e7-af04-b98221d876bf","changeType":"overdue","entity":"invoice","entityId":3137,"message":null,"clientId":35,"eventName":"invoice.overdue","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":[{"id":340,"clientId":35,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"#YF88DygtGsVeQqq","clientZoneVisible":false}],"accountBalance":-7800,"accountCredit":0,"accountOutstanding":7800,"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":3137,"clientId":35,"number":"003083","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3154,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:07.519692] [notice] Logging level set to:debug
+[2026-03-15 6:25:07.519733] [debug] Payload recibido: {"uuid":"a18ceff4-b181-4dc2-b279-360e60ef0466","changeType":"overdue","entity":"invoice","entityId":"3138","eventName":"invoice.overdue","extraData":{"entity":{"id":3138,"clientId":22,"number":"003084","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3155,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:07.796986] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:07.797086] [debug] Factura vencida
+
+[2026-03-15 6:25:07.797131] [debug] datos del notification para el invoice overdue:{"uuid":"a18ceff4-b181-4dc2-b279-360e60ef0466","changeType":"overdue","entity":"invoice","entityId":3138,"message":null,"clientId":22,"eventName":"invoice.overdue","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":[{"id":327,"clientId":22,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"n4ZHZ@2aQgyM8unY","clientZoneVisible":false}],"accountBalance":-8130,"accountCredit":0,"accountOutstanding":8130,"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":3138,"clientId":22,"number":"003084","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3155,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:08.013196] [notice] Logging level set to:debug
+[2026-03-15 6:25:08.013247] [debug] Payload recibido: {"uuid":"26f1a227-d4a7-4578-9b26-7318fedacd0d","changeType":"overdue","entity":"invoice","entityId":"3139","eventName":"invoice.overdue","extraData":{"entity":{"id":3139,"clientId":40,"number":"003085","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3156,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:08.260040] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:08.260142] [debug] Factura vencida
+
+[2026-03-15 6:25:08.260185] [debug] datos del notification para el invoice overdue:{"uuid":"26f1a227-d4a7-4578-9b26-7318fedacd0d","changeType":"overdue","entity":"invoice","entityId":3139,"message":null,"clientId":40,"eventName":"invoice.overdue","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":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":228,"clientId":40,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-7510,"accountCredit":0,"accountOutstanding":7510,"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":3139,"clientId":40,"number":"003085","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3156,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+contac vacio
+[2026-03-15 6:25:08.455086] [notice] Logging level set to:debug
+[2026-03-15 6:25:08.455127] [debug] Payload recibido: {"uuid":"b4c6328e-1a3e-4784-9fde-3eff0ac5095e","changeType":"overdue","entity":"invoice","entityId":"3140","eventName":"invoice.overdue","extraData":{"entity":{"id":3140,"clientId":88,"number":"003086","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3157,"type":"service","label":"PREMIUM 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:08.645991] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:08.646095] [debug] Factura vencida
+
+[2026-03-15 6:25:08.646147] [debug] datos del notification para el invoice overdue:{"uuid":"b4c6328e-1a3e-4784-9fde-3eff0ac5095e","changeType":"overdue","entity":"invoice","entityId":3140,"message":null,"clientId":88,"eventName":"invoice.overdue","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":[{"id":383,"clientId":88,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"ot9vp3NmVy(oht>&d2XF","clientZoneVisible":false}],"accountBalance":-18000,"accountCredit":0,"accountOutstanding":18000,"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":3140,"clientId":88,"number":"003086","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3157,"type":"service","label":"PREMIUM 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:08.886847] [notice] Logging level set to:debug
+[2026-03-15 6:25:08.886894] [debug] Payload recibido: {"uuid":"5caaa824-1f60-4d53-ae7d-99470f2bfcea","changeType":"overdue","entity":"invoice","entityId":"3141","eventName":"invoice.overdue","extraData":{"entity":{"id":3141,"clientId":25,"number":"003087","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3158,"type":"service","label":"PREMIUM 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:09.099569] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:09.099679] [debug] Factura vencida
+
+[2026-03-15 6:25:09.099725] [debug] datos del notification para el invoice overdue:{"uuid":"5caaa824-1f60-4d53-ae7d-99470f2bfcea","changeType":"overdue","entity":"invoice","entityId":3141,"message":null,"clientId":25,"eventName":"invoice.overdue","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":[{"id":330,"clientId":25,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"bXkTm4Pf32@vr7uS","clientZoneVisible":false}],"accountBalance":-20300,"accountCredit":0,"accountOutstanding":20300,"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":3141,"clientId":25,"number":"003087","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3158,"type":"service","label":"PREMIUM 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:09.302167] [notice] Logging level set to:debug
+[2026-03-15 6:25:09.302220] [debug] Payload recibido: {"uuid":"fb93bd18-7e85-41ab-9b69-72141df9122e","changeType":"overdue","entity":"invoice","entityId":"3142","eventName":"invoice.overdue","extraData":{"entity":{"id":3142,"clientId":32,"number":"003088","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3159,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:09.490453] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:09.490551] [debug] Factura vencida
+
+[2026-03-15 6:25:09.490593] [debug] datos del notification para el invoice overdue:{"uuid":"fb93bd18-7e85-41ab-9b69-72141df9122e","changeType":"overdue","entity":"invoice","entityId":3142,"message":null,"clientId":32,"eventName":"invoice.overdue","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":[{"id":337,"clientId":32,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"J6TAzL26UDjmwr#V","clientZoneVisible":false}],"accountBalance":-8740,"accountCredit":0,"accountOutstanding":8740,"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":3142,"clientId":32,"number":"003088","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3159,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:09.686978] [notice] Logging level set to:debug
+[2026-03-15 6:25:09.687025] [debug] Payload recibido: {"uuid":"62369978-992c-4ad1-9701-c4f49fdc329d","changeType":"overdue","entity":"invoice","entityId":"3143","eventName":"invoice.overdue","extraData":{"entity":{"id":3143,"clientId":53,"number":"003089","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3160,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:09.910165] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:09.910270] [debug] Factura vencida
+
+[2026-03-15 6:25:09.910314] [debug] datos del notification para el invoice overdue:{"uuid":"62369978-992c-4ad1-9701-c4f49fdc329d","changeType":"overdue","entity":"invoice","entityId":3143,"message":null,"clientId":53,"eventName":"invoice.overdue","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":[{"id":352,"clientId":53,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"aHwG@SpbS9YFjZg@","clientZoneVisible":false}],"accountBalance":-7500,"accountCredit":0,"accountOutstanding":7500,"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":3143,"clientId":53,"number":"003089","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3160,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:10.096149] [notice] Logging level set to:debug
+[2026-03-15 6:25:10.096194] [debug] Payload recibido: {"uuid":"98de3d49-8222-48e4-ac5b-9f236679b540","changeType":"overdue","entity":"invoice","entityId":"3144","eventName":"invoice.overdue","extraData":{"entity":{"id":3144,"clientId":87,"number":"003090","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3161,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:10.280839] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:10.280941] [debug] Factura vencida
+
+[2026-03-15 6:25:10.280985] [debug] datos del notification para el invoice overdue:{"uuid":"98de3d49-8222-48e4-ac5b-9f236679b540","changeType":"overdue","entity":"invoice","entityId":3144,"message":null,"clientId":87,"eventName":"invoice.overdue","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":[{"id":382,"clientId":87,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"@Tv4GLjuLMBS*eB!=}2H","clientZoneVisible":false}],"accountBalance":-7800,"accountCredit":0,"accountOutstanding":7800,"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":3144,"clientId":87,"number":"003090","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3161,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:10.479130] [notice] Logging level set to:debug
+[2026-03-15 6:25:10.479180] [debug] Payload recibido: {"uuid":"1ca4fcc2-d0cc-4da1-bfc3-17d07dd664b4","changeType":"overdue","entity":"invoice","entityId":"3145","eventName":"invoice.overdue","extraData":{"entity":{"id":3145,"clientId":73,"number":"003091","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3162,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:10.655605] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:10.655697] [debug] Factura vencida
+
+[2026-03-15 6:25:10.655755] [debug] datos del notification para el invoice overdue:{"uuid":"1ca4fcc2-d0cc-4da1-bfc3-17d07dd664b4","changeType":"overdue","entity":"invoice","entityId":3145,"message":null,"clientId":73,"eventName":"invoice.overdue","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":[{"id":371,"clientId":73,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"@27N)#_%%!2j-:Q?}ZWh","clientZoneVisible":false}],"accountBalance":-7500,"accountCredit":0,"accountOutstanding":7500,"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":3145,"clientId":73,"number":"003091","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3162,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:10.882494] [notice] Logging level set to:debug
+[2026-03-15 6:25:10.882544] [debug] Payload recibido: {"uuid":"205fad2a-7919-4418-833c-071d7f361c3f","changeType":"overdue","entity":"invoice","entityId":"3146","eventName":"invoice.overdue","extraData":{"entity":{"id":3146,"clientId":5,"number":"003092","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-28T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3163,"type":"service","label":"INTERMEDIO 28\/02\/2026 \u2013 30\/03\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:11.087074] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:11.087187] [debug] Factura vencida
+
+[2026-03-15 6:25:11.087232] [debug] datos del notification para el invoice overdue:{"uuid":"205fad2a-7919-4418-833c-071d7f361c3f","changeType":"overdue","entity":"invoice","entityId":3146,"message":null,"clientId":5,"eventName":"invoice.overdue","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":[{"id":246,"clientId":5,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-2500,"accountCredit":0,"accountOutstanding":2500,"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":3146,"clientId":5,"number":"003092","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-28T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3163,"type":"service","label":"INTERMEDIO 28\/02\/2026 \u2013 30\/03\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:11.291256] [notice] Logging level set to:debug
+[2026-03-15 6:25:11.291309] [debug] Payload recibido: {"uuid":"cafe31c7-4ec7-4def-a244-2e5f115a4a7a","changeType":"overdue","entity":"invoice","entityId":"3147","eventName":"invoice.overdue","extraData":{"entity":{"id":3147,"clientId":31,"number":"003093","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3164,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:11.489370] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:11.489479] [debug] Factura vencida
+
+[2026-03-15 6:25:11.489521] [debug] datos del notification para el invoice overdue:{"uuid":"cafe31c7-4ec7-4def-a244-2e5f115a4a7a","changeType":"overdue","entity":"invoice","entityId":3147,"message":null,"clientId":31,"eventName":"invoice.overdue","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":[{"id":336,"clientId":31,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"L2P#f5v7jQ8gS3Ur","clientZoneVisible":false}],"accountBalance":-7480,"accountCredit":0,"accountOutstanding":7480,"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":3147,"clientId":31,"number":"003093","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3164,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:11.683001] [notice] Logging level set to:debug
+[2026-03-15 6:25:11.683049] [debug] Payload recibido: {"uuid":"ca4d6683-4470-4350-939e-a6c8e8dc9b0c","changeType":"overdue","entity":"invoice","entityId":"3148","eventName":"invoice.overdue","extraData":{"entity":{"id":3148,"clientId":80,"number":"003094","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3165,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:11.893732] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:11.893836] [debug] Factura vencida
+
+[2026-03-15 6:25:11.893881] [debug] datos del notification para el invoice overdue:{"uuid":"ca4d6683-4470-4350-939e-a6c8e8dc9b0c","changeType":"overdue","entity":"invoice","entityId":3148,"message":null,"clientId":80,"eventName":"invoice.overdue","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":[{"id":376,"clientId":80,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"vSZTVQ*FmS8uo&pk)6{r","clientZoneVisible":false}],"accountBalance":-7500,"accountCredit":0,"accountOutstanding":7500,"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":3148,"clientId":80,"number":"003094","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3165,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:12.096086] [notice] Logging level set to:debug
+[2026-03-15 6:25:12.096137] [debug] Payload recibido: {"uuid":"ad250a4f-3067-4682-8eed-f49dc5928c8e","changeType":"overdue","entity":"invoice","entityId":"3149","eventName":"invoice.overdue","extraData":{"entity":{"id":3149,"clientId":29,"number":"003095","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3166,"type":"service","label":"INTERMEDIO 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:12.291526] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:12.291627] [debug] Factura vencida
+
+[2026-03-15 6:25:12.291671] [debug] datos del notification para el invoice overdue:{"uuid":"ad250a4f-3067-4682-8eed-f49dc5928c8e","changeType":"overdue","entity":"invoice","entityId":3149,"message":null,"clientId":29,"eventName":"invoice.overdue","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":[{"id":334,"clientId":29,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"s@k7Z9S4hjeR8B#k","clientZoneVisible":false}],"accountBalance":-12816.67,"accountCredit":0,"accountOutstanding":12816.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":3149,"clientId":29,"number":"003095","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3166,"type":"service","label":"INTERMEDIO 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:12.575234] [notice] Logging level set to:debug
+[2026-03-15 6:25:12.575289] [debug] Payload recibido: {"uuid":"b045b2f5-2f8d-4098-bd04-ae0ae005988e","changeType":"overdue","entity":"invoice","entityId":"3150","eventName":"invoice.overdue","extraData":{"entity":{"id":3150,"clientId":101,"number":"003096","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3167,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:12.766166] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:12.766274] [debug] Factura vencida
+
+[2026-03-15 6:25:12.766319] [debug] datos del notification para el invoice overdue:{"uuid":"b045b2f5-2f8d-4098-bd04-ae0ae005988e","changeType":"overdue","entity":"invoice","entityId":3150,"message":null,"clientId":101,"eventName":"invoice.overdue","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":[{"id":393,"clientId":101,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"K2MM5A}Zip3%>s!JB8]L","clientZoneVisible":false}],"accountBalance":-7800,"accountCredit":0,"accountOutstanding":7800,"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":3150,"clientId":101,"number":"003096","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3167,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:12.979257] [notice] Logging level set to:debug
+[2026-03-15 6:25:12.979306] [debug] Payload recibido: {"uuid":"e44c7f87-d8f6-4f70-b1fd-32439188014d","changeType":"overdue","entity":"invoice","entityId":"3152","eventName":"invoice.overdue","extraData":{"entity":{"id":3152,"clientId":27,"number":"003098","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3169,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:13.181230] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:13.181340] [debug] Factura vencida
+
+[2026-03-15 6:25:13.181385] [debug] datos del notification para el invoice overdue:{"uuid":"e44c7f87-d8f6-4f70-b1fd-32439188014d","changeType":"overdue","entity":"invoice","entityId":3152,"message":null,"clientId":27,"eventName":"invoice.overdue","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":[{"id":332,"clientId":27,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"MdSP@vfqaXKFQ7##","clientZoneVisible":false}],"accountBalance":-7510,"accountCredit":0,"accountOutstanding":7510,"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":3152,"clientId":27,"number":"003098","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3169,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:13.373229] [notice] Logging level set to:debug
+[2026-03-15 6:25:13.373280] [debug] Payload recibido: {"uuid":"368212e6-8820-4eac-bfe6-73a6ff019500","changeType":"overdue","entity":"invoice","entityId":"3154","eventName":"invoice.overdue","extraData":{"entity":{"id":3154,"clientId":23,"number":"003100","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3171,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:13.559015] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:13.559128] [debug] Factura vencida
+
+[2026-03-15 6:25:13.559175] [debug] datos del notification para el invoice overdue:{"uuid":"368212e6-8820-4eac-bfe6-73a6ff019500","changeType":"overdue","entity":"invoice","entityId":3154,"message":null,"clientId":23,"eventName":"invoice.overdue","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":[{"id":328,"clientId":23,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"rZ@Rdk@3BYJT4Jcb","clientZoneVisible":false}],"accountBalance":-7800,"accountCredit":0,"accountOutstanding":7800,"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":3154,"clientId":23,"number":"003100","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3171,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:13.758429] [notice] Logging level set to:debug
+[2026-03-15 6:25:13.758469] [debug] Payload recibido: {"uuid":"e2a6cfaf-578a-48aa-8503-7fa686450dea","changeType":"overdue","entity":"invoice","entityId":"3155","eventName":"invoice.overdue","extraData":{"entity":{"id":3155,"clientId":95,"number":"003101","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3172,"type":"service","label":"INTERMEDIO 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:13.952121] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:13.952229] [debug] Factura vencida
+
+[2026-03-15 6:25:13.952275] [debug] datos del notification para el invoice overdue:{"uuid":"e2a6cfaf-578a-48aa-8503-7fa686450dea","changeType":"overdue","entity":"invoice","entityId":3155,"message":null,"clientId":95,"eventName":"invoice.overdue","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":[{"id":293,"clientId":95,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"z5YcTQ3pF5b@fz#t","clientZoneVisible":false},{"id":289,"clientId":95,"customAttributeId":21,"name":"RUTA DE COBRANZA","key":"rutaDeCobranza","value":"GUSANO","clientZoneVisible":true}],"accountBalance":-1000,"accountCredit":0,"accountOutstanding":1000,"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":3155,"clientId":95,"number":"003101","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3172,"type":"service","label":"INTERMEDIO 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:14.148083] [notice] Logging level set to:debug
+[2026-03-15 6:25:14.148128] [debug] Payload recibido: {"uuid":"e376435b-4d9d-4e03-bd28-8338a03613eb","changeType":"overdue","entity":"invoice","entityId":"3156","eventName":"invoice.overdue","extraData":{"entity":{"id":3156,"clientId":62,"number":"003102","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3173,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:14.336384] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:14.336487] [debug] Factura vencida
+
+[2026-03-15 6:25:14.336530] [debug] datos del notification para el invoice overdue:{"uuid":"e376435b-4d9d-4e03-bd28-8338a03613eb","changeType":"overdue","entity":"invoice","entityId":3156,"message":null,"clientId":62,"eventName":"invoice.overdue","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":[{"id":361,"clientId":62,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"o>v7H&+f@p)-Sepa5x{?","clientZoneVisible":false}],"accountBalance":-7500,"accountCredit":0,"accountOutstanding":7500,"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":3156,"clientId":62,"number":"003102","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3173,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:14.538656] [notice] Logging level set to:debug
+[2026-03-15 6:25:14.538707] [debug] Payload recibido: {"uuid":"30f601ed-0e71-45e6-a5dd-20742ce935c3","changeType":"overdue","entity":"invoice","entityId":"3157","eventName":"invoice.overdue","extraData":{"entity":{"id":3157,"clientId":57,"number":"003103","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3174,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:14.737293] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:14.737399] [debug] Factura vencida
+
+[2026-03-15 6:25:14.737443] [debug] datos del notification para el invoice overdue:{"uuid":"30f601ed-0e71-45e6-a5dd-20742ce935c3","changeType":"overdue","entity":"invoice","entityId":3157,"message":null,"clientId":57,"eventName":"invoice.overdue","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":[{"id":356,"clientId":57,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"yCFh&8wG+6{bGgy}h-Ud","clientZoneVisible":false}],"accountBalance":-7500,"accountCredit":0,"accountOutstanding":7500,"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":3157,"clientId":57,"number":"003103","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3174,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:14.934559] [notice] Logging level set to:debug
+[2026-03-15 6:25:14.934608] [debug] Payload recibido: {"uuid":"8e3ab19b-b094-415d-b769-f6888003a968","changeType":"overdue","entity":"invoice","entityId":"3158","eventName":"invoice.overdue","extraData":{"entity":{"id":3158,"clientId":58,"number":"003104","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3175,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:15.125158] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:15.125258] [debug] Factura vencida
+
+[2026-03-15 6:25:15.125302] [debug] datos del notification para el invoice overdue:{"uuid":"8e3ab19b-b094-415d-b769-f6888003a968","changeType":"overdue","entity":"invoice","entityId":3158,"message":null,"clientId":58,"eventName":"invoice.overdue","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":[{"id":357,"clientId":58,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"_>43asT(#Sv=[&E){h{T","clientZoneVisible":false}],"accountBalance":-7500,"accountCredit":0,"accountOutstanding":7500,"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":3158,"clientId":58,"number":"003104","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3175,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:15.325707] [notice] Logging level set to:debug
+[2026-03-15 6:25:15.325762] [debug] Payload recibido: {"uuid":"152cefcc-49b2-4bd5-bc5b-b5270d0c9496","changeType":"overdue","entity":"invoice","entityId":"3160","eventName":"invoice.overdue","extraData":{"entity":{"id":3160,"clientId":99,"number":"003106","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3177,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:15.520373] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:15.520478] [debug] Factura vencida
+
+[2026-03-15 6:25:15.520519] [debug] datos del notification para el invoice overdue:{"uuid":"152cefcc-49b2-4bd5-bc5b-b5270d0c9496","changeType":"overdue","entity":"invoice","entityId":3160,"message":null,"clientId":99,"eventName":"invoice.overdue","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":[{"id":392,"clientId":99,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"jnS?T(vb)E*?U>Cs8LfV","clientZoneVisible":false}],"accountBalance":-9000,"accountCredit":0,"accountOutstanding":9000,"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":3160,"clientId":99,"number":"003106","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3177,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:15.723448] [notice] Logging level set to:debug
+[2026-03-15 6:25:15.723493] [debug] Payload recibido: {"uuid":"7b172a5b-71b8-4d83-9900-df7ae58c41d7","changeType":"overdue","entity":"invoice","entityId":"3161","eventName":"invoice.overdue","extraData":{"entity":{"id":3161,"clientId":15,"number":"003107","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3178,"type":"service","label":"PREMIUM 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:15.909091] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:15.909198] [debug] Factura vencida
+
+[2026-03-15 6:25:15.909246] [debug] datos del notification para el invoice overdue:{"uuid":"7b172a5b-71b8-4d83-9900-df7ae58c41d7","changeType":"overdue","entity":"invoice","entityId":3161,"message":null,"clientId":15,"eventName":"invoice.overdue","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":[{"id":323,"clientId":15,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"6WMsDQzBxV27U9@H","clientZoneVisible":false}],"accountBalance":-18900,"accountCredit":0,"accountOutstanding":18900,"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":3161,"clientId":15,"number":"003107","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3178,"type":"service","label":"PREMIUM 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:16.101141] [notice] Logging level set to:debug
+[2026-03-15 6:25:16.101183] [debug] Payload recibido: {"uuid":"4ca2f60d-2d07-4c95-8981-85ba6eb4651b","changeType":"overdue","entity":"invoice","entityId":"3162","eventName":"invoice.overdue","extraData":{"entity":{"id":3162,"clientId":67,"number":"003108","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3179,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:16.289391] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:16.289505] [debug] Factura vencida
+
+[2026-03-15 6:25:16.289570] [debug] datos del notification para el invoice overdue:{"uuid":"4ca2f60d-2d07-4c95-8981-85ba6eb4651b","changeType":"overdue","entity":"invoice","entityId":3162,"message":null,"clientId":67,"eventName":"invoice.overdue","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":[{"id":365,"clientId":67,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"tx499D=@hFYP].eq6oe4","clientZoneVisible":false}],"accountBalance":-7500,"accountCredit":0,"accountOutstanding":7500,"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":3162,"clientId":67,"number":"003108","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3179,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:16.485377] [notice] Logging level set to:debug
+[2026-03-15 6:25:16.485424] [debug] Payload recibido: {"uuid":"4123ed26-71f4-492f-8e23-ddc03a09b38f","changeType":"overdue","entity":"invoice","entityId":"3163","eventName":"invoice.overdue","extraData":{"entity":{"id":3163,"clientId":43,"number":"003109","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3180,"type":"service","label":"PREMIUM 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:16.681287] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:16.681396] [debug] Factura vencida
+
+[2026-03-15 6:25:16.681442] [debug] datos del notification para el invoice overdue:{"uuid":"4123ed26-71f4-492f-8e23-ddc03a09b38f","changeType":"overdue","entity":"invoice","entityId":3163,"message":null,"clientId":43,"eventName":"invoice.overdue","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":[{"id":345,"clientId":43,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"Nyf2uWazpKkhv@od","clientZoneVisible":false}],"accountBalance":-17523.33,"accountCredit":0,"accountOutstanding":17523.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":3163,"clientId":43,"number":"003109","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3180,"type":"service","label":"PREMIUM 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:16.883797] [notice] Logging level set to:debug
+[2026-03-15 6:25:16.883856] [debug] Payload recibido: {"uuid":"86e3b407-ef20-40d6-b513-0e3afca7abab","changeType":"overdue","entity":"invoice","entityId":"3164","eventName":"invoice.overdue","extraData":{"entity":{"id":3164,"clientId":89,"number":"003110","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3181,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:17.091742] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:17.091846] [debug] Factura vencida
+
+[2026-03-15 6:25:17.091895] [debug] datos del notification para el invoice overdue:{"uuid":"86e3b407-ef20-40d6-b513-0e3afca7abab","changeType":"overdue","entity":"invoice","entityId":3164,"message":null,"clientId":89,"eventName":"invoice.overdue","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":[{"id":384,"clientId":89,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"&S>3$7YXu3+*Xm]]$f7=","clientZoneVisible":false}],"accountBalance":-7500,"accountCredit":0,"accountOutstanding":7500,"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":3164,"clientId":89,"number":"003110","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3181,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:17.290915] [notice] Logging level set to:debug
+[2026-03-15 6:25:17.290992] [debug] Payload recibido: {"uuid":"2916a528-d530-4948-b2ef-075da69ceee9","changeType":"overdue","entity":"invoice","entityId":"3167","eventName":"invoice.overdue","extraData":{"entity":{"id":3167,"clientId":76,"number":"003113","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3184,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:17.478693] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:17.478796] [debug] Factura vencida
+
+[2026-03-15 6:25:17.478854] [debug] datos del notification para el invoice overdue:{"uuid":"2916a528-d530-4948-b2ef-075da69ceee9","changeType":"overdue","entity":"invoice","entityId":3167,"message":null,"clientId":76,"eventName":"invoice.overdue","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":[{"id":276,"clientId":76,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"pcMkZ@bQ@fhKHUh6","clientZoneVisible":false},{"id":275,"clientId":76,"customAttributeId":21,"name":"RUTA DE COBRANZA","key":"rutaDeCobranza","value":"GUSANO","clientZoneVisible":true}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"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":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":3167,"clientId":76,"number":"003113","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3184,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:17.673249] [notice] Logging level set to:debug
+[2026-03-15 6:25:17.673294] [debug] Payload recibido: {"uuid":"a37497b0-3381-4906-b54a-e5aa78fd50fb","changeType":"overdue","entity":"invoice","entityId":"3168","eventName":"invoice.overdue","extraData":{"entity":{"id":3168,"clientId":60,"number":"003114","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3185,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:17.861161] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:17.861268] [debug] Factura vencida
+
+[2026-03-15 6:25:17.861313] [debug] datos del notification para el invoice overdue:{"uuid":"a37497b0-3381-4906-b54a-e5aa78fd50fb","changeType":"overdue","entity":"invoice","entityId":3168,"message":null,"clientId":60,"eventName":"invoice.overdue","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":[{"id":359,"clientId":60,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"sB*V+PBm6cWgNxYwh{??","clientZoneVisible":false}],"accountBalance":-7500,"accountCredit":0,"accountOutstanding":7500,"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":3168,"clientId":60,"number":"003114","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3185,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:18.058382] [notice] Logging level set to:debug
+[2026-03-15 6:25:18.058433] [debug] Payload recibido: {"uuid":"fdd4925d-0e49-4b9c-b6af-7bf4ec808c58","changeType":"overdue","entity":"invoice","entityId":"3169","eventName":"invoice.overdue","extraData":{"entity":{"id":3169,"clientId":59,"number":"003115","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3186,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:18.249111] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:18.249208] [debug] Factura vencida
+
+[2026-03-15 6:25:18.249252] [debug] datos del notification para el invoice overdue:{"uuid":"fdd4925d-0e49-4b9c-b6af-7bf4ec808c58","changeType":"overdue","entity":"invoice","entityId":3169,"message":null,"clientId":59,"eventName":"invoice.overdue","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":[{"id":358,"clientId":59,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"o%P8aWK%5cDezxy<+Q7!","clientZoneVisible":false}],"accountBalance":-7800,"accountCredit":0,"accountOutstanding":7800,"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":3169,"clientId":59,"number":"003115","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3186,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:18.446860] [notice] Logging level set to:debug
+[2026-03-15 6:25:18.446903] [debug] Payload recibido: {"uuid":"de5f0e0d-2558-484e-bbd6-b4778d84a9fa","changeType":"overdue","entity":"invoice","entityId":"3170","eventName":"invoice.overdue","extraData":{"entity":{"id":3170,"clientId":63,"number":"003116","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3187,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:18.631714] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:18.631863] [debug] Factura vencida
+
+[2026-03-15 6:25:18.631927] [debug] datos del notification para el invoice overdue:{"uuid":"de5f0e0d-2558-484e-bbd6-b4778d84a9fa","changeType":"overdue","entity":"invoice","entityId":3170,"message":null,"clientId":63,"eventName":"invoice.overdue","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":[{"id":362,"clientId":63,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"%:pKRkEa5=+UFph<&HR}","clientZoneVisible":false}],"accountBalance":-7500,"accountCredit":0,"accountOutstanding":7500,"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":3170,"clientId":63,"number":"003116","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3187,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:18.827801] [notice] Logging level set to:debug
+[2026-03-15 6:25:18.827850] [debug] Payload recibido: {"uuid":"24b9ba4e-fec9-41ff-b191-1fe6f12857a8","changeType":"overdue","entity":"invoice","entityId":"3172","eventName":"invoice.overdue","extraData":{"entity":{"id":3172,"clientId":86,"number":"003118","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3189,"type":"service","label":"PREMIUM 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:19.011126] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:19.011235] [debug] Factura vencida
+
+[2026-03-15 6:25:19.011286] [debug] datos del notification para el invoice overdue:{"uuid":"24b9ba4e-fec9-41ff-b191-1fe6f12857a8","changeType":"overdue","entity":"invoice","entityId":3172,"message":null,"clientId":86,"eventName":"invoice.overdue","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":[{"id":381,"clientId":86,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"7)hyJmR(:2tUQA%JKMAz","clientZoneVisible":false}],"accountBalance":-14500,"accountCredit":0,"accountOutstanding":14500,"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":3172,"clientId":86,"number":"003118","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3189,"type":"service","label":"PREMIUM 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:19.207242] [notice] Logging level set to:debug
+[2026-03-15 6:25:19.207293] [debug] Payload recibido: {"uuid":"59b1df6a-0b16-4ec7-b213-72bb658abba2","changeType":"overdue","entity":"invoice","entityId":"3173","eventName":"invoice.overdue","extraData":{"entity":{"id":3173,"clientId":41,"number":"003119","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3190,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:19.385890] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:19.386001] [debug] Factura vencida
+
+[2026-03-15 6:25:19.386051] [debug] datos del notification para el invoice overdue:{"uuid":"59b1df6a-0b16-4ec7-b213-72bb658abba2","changeType":"overdue","entity":"invoice","entityId":3173,"message":null,"clientId":41,"eventName":"invoice.overdue","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":[{"id":343,"clientId":41,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"ZZjfiGbL2#JNAaco","clientZoneVisible":false}],"accountBalance":-7510,"accountCredit":0,"accountOutstanding":7510,"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":3173,"clientId":41,"number":"003119","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3190,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:19.580976] [notice] Logging level set to:debug
+[2026-03-15 6:25:19.581017] [debug] Payload recibido: {"uuid":"e77e7b21-b2c2-4974-908b-e4cdac9ba638","changeType":"overdue","entity":"invoice","entityId":"3174","eventName":"invoice.overdue","extraData":{"entity":{"id":3174,"clientId":52,"number":"003120","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3191,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:19.764343] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:19.764446] [debug] Factura vencida
+
+[2026-03-15 6:25:19.764492] [debug] datos del notification para el invoice overdue:{"uuid":"e77e7b21-b2c2-4974-908b-e4cdac9ba638","changeType":"overdue","entity":"invoice","entityId":3174,"message":null,"clientId":52,"eventName":"invoice.overdue","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":[{"id":351,"clientId":52,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"K8VR#tJkCmJhAgX7","clientZoneVisible":false}],"accountBalance":-7500,"accountCredit":0,"accountOutstanding":7500,"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":3174,"clientId":52,"number":"003120","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3191,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:19.961441] [notice] Logging level set to:debug
+[2026-03-15 6:25:19.961488] [debug] Payload recibido: {"uuid":"aa42bcb2-6bc5-455d-b3c4-2e8b9f9e220c","changeType":"overdue","entity":"invoice","entityId":"3175","eventName":"invoice.overdue","extraData":{"entity":{"id":3175,"clientId":75,"number":"003121","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3192,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:20.172346] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:20.172456] [debug] Factura vencida
+
+[2026-03-15 6:25:20.172501] [debug] datos del notification para el invoice overdue:{"uuid":"aa42bcb2-6bc5-455d-b3c4-2e8b9f9e220c","changeType":"overdue","entity":"invoice","entityId":3175,"message":null,"clientId":75,"eventName":"invoice.overdue","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":[{"id":373,"clientId":75,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"5cq8(wL:.%]DA(}s,E7y","clientZoneVisible":false}],"accountBalance":-7500,"accountCredit":0,"accountOutstanding":7500,"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":3175,"clientId":75,"number":"003121","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3192,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:20.378586] [notice] Logging level set to:debug
+[2026-03-15 6:25:20.378635] [debug] Payload recibido: {"uuid":"5c951387-09cf-4b37-ae2a-2ba36781adae","changeType":"overdue","entity":"invoice","entityId":"3176","eventName":"invoice.overdue","extraData":{"entity":{"id":3176,"clientId":21,"number":"003122","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3193,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:20.568402] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:20.568517] [debug] Factura vencida
+
+[2026-03-15 6:25:20.568567] [debug] datos del notification para el invoice overdue:{"uuid":"5c951387-09cf-4b37-ae2a-2ba36781adae","changeType":"overdue","entity":"invoice","entityId":3176,"message":null,"clientId":21,"eventName":"invoice.overdue","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":[{"id":326,"clientId":21,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"hc9RTMYn9iJ@3MEP","clientZoneVisible":false}],"accountBalance":-8100,"accountCredit":0,"accountOutstanding":8100,"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":3176,"clientId":21,"number":"003122","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3193,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+contac vacio
+[2026-03-15 6:25:20.770699] [notice] Logging level set to:debug
+[2026-03-15 6:25:20.770771] [debug] Payload recibido: {"uuid":"6337db02-772e-4596-8d49-c2c1fbb508c2","changeType":"overdue","entity":"invoice","entityId":"3177","eventName":"invoice.overdue","extraData":{"entity":{"id":3177,"clientId":54,"number":"003123","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3194,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:20.965389] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:20.965501] [debug] Factura vencida
+
+[2026-03-15 6:25:20.965619] [debug] datos del notification para el invoice overdue:{"uuid":"6337db02-772e-4596-8d49-c2c1fbb508c2","changeType":"overdue","entity":"invoice","entityId":3177,"message":null,"clientId":54,"eventName":"invoice.overdue","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":[{"id":353,"clientId":54,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"jQx;fJoeN4JA,3YR4GpN","clientZoneVisible":false}],"accountBalance":-7500,"accountCredit":0,"accountOutstanding":7500,"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":3177,"clientId":54,"number":"003123","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3194,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:21.167067] [notice] Logging level set to:debug
+[2026-03-15 6:25:21.167144] [debug] Payload recibido: {"uuid":"cc3205f5-0211-4dbe-9562-c9f4a822015a","changeType":"overdue","entity":"invoice","entityId":"3178","eventName":"invoice.overdue","extraData":{"entity":{"id":3178,"clientId":69,"number":"003124","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3195,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:21.368262] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:21.368366] [debug] Factura vencida
+
+[2026-03-15 6:25:21.368417] [debug] datos del notification para el invoice overdue:{"uuid":"cc3205f5-0211-4dbe-9562-c9f4a822015a","changeType":"overdue","entity":"invoice","entityId":3178,"message":null,"clientId":69,"eventName":"invoice.overdue","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":[{"id":367,"clientId":69,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"k7re]dV5zS!i;-=FYk]f","clientZoneVisible":false}],"accountBalance":-7500,"accountCredit":0,"accountOutstanding":7500,"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":3178,"clientId":69,"number":"003124","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3195,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:21.571868] [notice] Logging level set to:debug
+[2026-03-15 6:25:21.571939] [debug] Payload recibido: {"uuid":"5016447c-f7d3-4d8b-bc35-e8005495dad5","changeType":"overdue","entity":"invoice","entityId":"3179","eventName":"invoice.overdue","extraData":{"entity":{"id":3179,"clientId":68,"number":"003125","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3196,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:21.756438] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:21.756541] [debug] Factura vencida
+
+[2026-03-15 6:25:21.756586] [debug] datos del notification para el invoice overdue:{"uuid":"5016447c-f7d3-4d8b-bc35-e8005495dad5","changeType":"overdue","entity":"invoice","entityId":3179,"message":null,"clientId":68,"eventName":"invoice.overdue","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":[{"id":366,"clientId":68,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"L8:+Juymtp(yG;n9","clientZoneVisible":false}],"accountBalance":-7500,"accountCredit":0,"accountOutstanding":7500,"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":3196,"clientId":72,"number":"003142","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3213,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:29.275886] [notice] Logging level set to:debug
+[2026-03-15 6:25:29.275930] [debug] Payload recibido: {"uuid":"e4ca7e4f-d4a3-4d15-a4cc-c70a8c2f3ed1","changeType":"overdue","entity":"invoice","entityId":"3197","eventName":"invoice.overdue","extraData":{"entity":{"id":3197,"clientId":55,"number":"003143","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3214,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:29.483006] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:29.483113] [debug] Factura vencida
+
+[2026-03-15 6:25:29.483158] [debug] datos del notification para el invoice overdue:{"uuid":"e4ca7e4f-d4a3-4d15-a4cc-c70a8c2f3ed1","changeType":"overdue","entity":"invoice","entityId":3197,"message":null,"clientId":55,"eventName":"invoice.overdue","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":[{"id":354,"clientId":55,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"*a)h2]h{[{D8j7j)R[_s","clientZoneVisible":false}],"accountBalance":-7500,"accountCredit":0,"accountOutstanding":7500,"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":3197,"clientId":55,"number":"003143","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3214,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:29.683069] [notice] Logging level set to:debug
+[2026-03-15 6:25:29.683120] [debug] Payload recibido: {"uuid":"c2ae9580-0f03-42f5-8c67-2e51b7918201","changeType":"overdue","entity":"invoice","entityId":"3198","eventName":"invoice.overdue","extraData":{"entity":{"id":3198,"clientId":17,"number":"003144","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3215,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:29.869149] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:29.869260] [debug] Factura vencida
+
+[2026-03-15 6:25:29.869302] [debug] datos del notification para el invoice overdue:{"uuid":"c2ae9580-0f03-42f5-8c67-2e51b7918201","changeType":"overdue","entity":"invoice","entityId":3198,"message":null,"clientId":17,"eventName":"invoice.overdue","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":[{"id":325,"clientId":17,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"DncVVY8B@hG9WRmJ","clientZoneVisible":false}],"accountBalance":-8390,"accountCredit":0,"accountOutstanding":8390,"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":3198,"clientId":17,"number":"003144","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3215,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:30.068779] [notice] Logging level set to:debug
+[2026-03-15 6:25:30.068830] [debug] Payload recibido: {"uuid":"1d1f591b-c9c2-4e28-a566-e004b11cd0f3","changeType":"overdue","entity":"invoice","entityId":"3199","eventName":"invoice.overdue","extraData":{"entity":{"id":3199,"clientId":36,"number":"003145","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3216,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:30.266561] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:30.266674] [debug] Factura vencida
+
+[2026-03-15 6:25:30.266722] [debug] datos del notification para el invoice overdue:{"uuid":"1d1f591b-c9c2-4e28-a566-e004b11cd0f3","changeType":"overdue","entity":"invoice","entityId":3199,"message":null,"clientId":36,"eventName":"invoice.overdue","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":[{"id":341,"clientId":36,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"qp4vfgXL8@RQqGbL","clientZoneVisible":false}],"accountBalance":-9290,"accountCredit":0,"accountOutstanding":9290,"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":3199,"clientId":36,"number":"003145","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3216,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:30.463953] [notice] Logging level set to:debug
+[2026-03-15 6:25:30.464009] [debug] Payload recibido: {"uuid":"2aeb6ae0-93ec-42da-98ef-012ebd58aa68","changeType":"overdue","entity":"invoice","entityId":"3200","eventName":"invoice.overdue","extraData":{"entity":{"id":3200,"clientId":97,"number":"003146","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3217,"type":"service","label":"INTERMEDIO 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:30.638190] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:30.638319] [debug] Factura vencida
+
+[2026-03-15 6:25:30.638375] [debug] datos del notification para el invoice overdue:{"uuid":"2aeb6ae0-93ec-42da-98ef-012ebd58aa68","changeType":"overdue","entity":"invoice","entityId":3200,"message":null,"clientId":97,"eventName":"invoice.overdue","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":[{"id":390,"clientId":97,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"[gx25m5.8YnkiajUhuy:","clientZoneVisible":false}],"accountBalance":-13000,"accountCredit":0,"accountOutstanding":13000,"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":3200,"clientId":97,"number":"003146","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3217,"type":"service","label":"INTERMEDIO 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:30.850627] [notice] Logging level set to:debug
+[2026-03-15 6:25:30.850676] [debug] Payload recibido: {"uuid":"a66adbc5-ab45-4411-9cb0-e6fb0d67931d","changeType":"overdue","entity":"invoice","entityId":"3201","eventName":"invoice.overdue","extraData":{"entity":{"id":3201,"clientId":42,"number":"003147","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3218,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:31.072470] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:31.072572] [debug] Factura vencida
+
+[2026-03-15 6:25:31.072617] [debug] datos del notification para el invoice overdue:{"uuid":"a66adbc5-ab45-4411-9cb0-e6fb0d67931d","changeType":"overdue","entity":"invoice","entityId":3201,"message":null,"clientId":42,"eventName":"invoice.overdue","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":[{"id":344,"clientId":42,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"6fzFGiW@Hn@KqY9#","clientZoneVisible":false}],"accountBalance":-7810,"accountCredit":0,"accountOutstanding":7810,"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":3201,"clientId":42,"number":"003147","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3218,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:31.281773] [notice] Logging level set to:debug
+[2026-03-15 6:25:31.281821] [debug] Payload recibido: {"uuid":"16b9d6ad-5138-433d-a19e-40025174e839","changeType":"overdue","entity":"invoice","entityId":"3202","eventName":"invoice.overdue","extraData":{"entity":{"id":3202,"clientId":24,"number":"003148","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3219,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:31.469996] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:31.470103] [debug] Factura vencida
+
+[2026-03-15 6:25:31.470158] [debug] datos del notification para el invoice overdue:{"uuid":"16b9d6ad-5138-433d-a19e-40025174e839","changeType":"overdue","entity":"invoice","entityId":3202,"message":null,"clientId":24,"eventName":"invoice.overdue","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":[{"id":329,"clientId":24,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"XX#aj3KqkxDaQ8wx","clientZoneVisible":false}],"accountBalance":-7780,"accountCredit":0,"accountOutstanding":7780,"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":3202,"clientId":24,"number":"003148","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3219,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:31.672935] [notice] Logging level set to:debug
+[2026-03-15 6:25:31.672993] [debug] Payload recibido: {"uuid":"1c904979-1797-43c0-a961-77118324015b","changeType":"overdue","entity":"invoice","entityId":"3203","eventName":"invoice.overdue","extraData":{"entity":{"id":3203,"clientId":26,"number":"003149","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3220,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:31.877248] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:31.877360] [debug] Factura vencida
+
+[2026-03-15 6:25:31.877404] [debug] datos del notification para el invoice overdue:{"uuid":"1c904979-1797-43c0-a961-77118324015b","changeType":"overdue","entity":"invoice","entityId":3203,"message":null,"clientId":26,"eventName":"invoice.overdue","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":[{"id":331,"clientId":26,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"osApTh2@Jv485i2o","clientZoneVisible":false}],"accountBalance":-8380,"accountCredit":0,"accountOutstanding":8380,"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":3203,"clientId":26,"number":"003149","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3220,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:32.086394] [notice] Logging level set to:debug
+[2026-03-15 6:25:32.086446] [debug] Payload recibido: {"uuid":"47e63e90-a87d-407b-ade9-529e3dbf8a2c","changeType":"overdue","entity":"invoice","entityId":"3204","eventName":"invoice.overdue","extraData":{"entity":{"id":3204,"clientId":81,"number":"003150","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3221,"type":"service","label":"PREMIUM 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:32.284339] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:32.284475] [debug] Factura vencida
+
+[2026-03-15 6:25:32.284533] [debug] datos del notification para el invoice overdue:{"uuid":"47e63e90-a87d-407b-ade9-529e3dbf8a2c","changeType":"overdue","entity":"invoice","entityId":3204,"message":null,"clientId":81,"eventName":"invoice.overdue","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":[{"id":377,"clientId":81,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"7HuVed;ymQvXEUcVvz9<","clientZoneVisible":false}],"accountBalance":-7800,"accountCredit":0,"accountOutstanding":7800,"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":3212,"clientId":94,"number":"003158","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3229,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:34.872653] [notice] Logging level set to:debug
+[2026-03-15 6:25:34.872708] [debug] Payload recibido: {"uuid":"2f5f95b8-4500-49c4-9d19-1f265e49cb34","changeType":"overdue","entity":"invoice","entityId":"3213","eventName":"invoice.overdue","extraData":{"entity":{"id":3213,"clientId":79,"number":"003159","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3230,"type":"service","label":"INTERMEDIO 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:35.062840] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:35.062952] [debug] Factura vencida
+
+[2026-03-15 6:25:35.062994] [debug] datos del notification para el invoice overdue:{"uuid":"2f5f95b8-4500-49c4-9d19-1f265e49cb34","changeType":"overdue","entity":"invoice","entityId":3213,"message":null,"clientId":79,"eventName":"invoice.overdue","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":[{"id":375,"clientId":79,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"Bg9v[%Xe$q$48x=G:X","clientZoneVisible":false}],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"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":3214,"clientId":96,"number":"003160","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3231,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:35.659719] [notice] Logging level set to:debug
+[2026-03-15 6:25:35.659766] [debug] Payload recibido: {"uuid":"95e7f12f-67ba-4d16-8bb2-2adfe1c5a134","changeType":"overdue","entity":"invoice","entityId":"3215","eventName":"invoice.overdue","extraData":{"entity":{"id":3215,"clientId":39,"number":"003161","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3232,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:35.867899] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:35.868011] [debug] Factura vencida
+
+[2026-03-15 6:25:35.868057] [debug] datos del notification para el invoice overdue:{"uuid":"95e7f12f-67ba-4d16-8bb2-2adfe1c5a134","changeType":"overdue","entity":"invoice","entityId":3215,"message":null,"clientId":39,"eventName":"invoice.overdue","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":[{"id":342,"clientId":39,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"D5S#iq87eRKYcW2H","clientZoneVisible":false}],"accountBalance":-7810,"accountCredit":0,"accountOutstanding":7810,"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":3215,"clientId":39,"number":"003161","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3232,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:36.072676] [notice] Logging level set to:debug
+[2026-03-15 6:25:36.072732] [debug] Payload recibido: {"uuid":"e6ff6b26-567a-48c3-a804-2527aa5b80c5","changeType":"overdue","entity":"invoice","entityId":"3216","eventName":"invoice.overdue","extraData":{"entity":{"id":3216,"clientId":56,"number":"003162","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3233,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:36.261672] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:36.261782] [debug] Factura vencida
+
+[2026-03-15 6:25:36.261826] [debug] datos del notification para el invoice overdue:{"uuid":"e6ff6b26-567a-48c3-a804-2527aa5b80c5","changeType":"overdue","entity":"invoice","entityId":3216,"message":null,"clientId":56,"eventName":"invoice.overdue","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":[{"id":355,"clientId":56,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"[_s.k6T*h)?+Ur+,fXTS","clientZoneVisible":false}],"accountBalance":-7500,"accountCredit":0,"accountOutstanding":7500,"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":3216,"clientId":56,"number":"003162","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3233,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:36.453866] [notice] Logging level set to:debug
+[2026-03-15 6:25:36.453923] [debug] Payload recibido: {"uuid":"f53935e1-70c4-4e0b-854f-158e0354e887","changeType":"overdue","entity":"invoice","entityId":"3218","eventName":"invoice.overdue","extraData":{"entity":{"id":3218,"clientId":82,"number":"003164","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3235,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:36.638991] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:36.639101] [debug] Factura vencida
+
+[2026-03-15 6:25:36.639147] [debug] datos del notification para el invoice overdue:{"uuid":"f53935e1-70c4-4e0b-854f-158e0354e887","changeType":"overdue","entity":"invoice","entityId":3218,"message":null,"clientId":82,"eventName":"invoice.overdue","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":[{"id":378,"clientId":82,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"zyPjmL_&G@]Q4@#f7e@[=Xg+SFJHh5","clientZoneVisible":false}],"accountBalance":-7500,"accountCredit":0,"accountOutstanding":7500,"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":3219,"clientId":61,"number":"003165","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3236,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:37.250560] [notice] Logging level set to:debug
+[2026-03-15 6:25:37.250612] [debug] Payload recibido: {"uuid":"f11eb5a2-6d9b-4a8a-bd93-37fc322b26a8","changeType":"overdue","entity":"invoice","entityId":"3220","eventName":"invoice.overdue","extraData":{"entity":{"id":3220,"clientId":64,"number":"003166","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3237,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:37.456542] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:37.456655] [debug] Factura vencida
+
+[2026-03-15 6:25:37.456697] [debug] datos del notification para el invoice overdue:{"uuid":"f11eb5a2-6d9b-4a8a-bd93-37fc322b26a8","changeType":"overdue","entity":"invoice","entityId":3220,"message":null,"clientId":64,"eventName":"invoice.overdue","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":[{"id":363,"clientId":64,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"G)gaHtX$iL)rX)w%3YN?","clientZoneVisible":false}],"accountBalance":-7800,"accountCredit":0,"accountOutstanding":7800,"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":3220,"clientId":64,"number":"003166","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3237,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 6:25:37.652949] [notice] Logging level set to:debug
+[2026-03-15 6:25:37.653001] [debug] Payload recibido: {"uuid":"e193cd82-e1b8-448f-a451-de8acf4a252e","changeType":"overdue","entity":"invoice","entityId":"3221","eventName":"invoice.overdue","extraData":{"entity":{"id":3221,"clientId":6,"number":"003167","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3238,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-15 6:25:37.841866] [debug] Evento recibido: invoice.overdue
+[2026-03-15 6:25:37.841979] [debug] Factura vencida
+
+[2026-03-15 6:25:37.842024] [debug] datos del notification para el invoice overdue:{"uuid":"e193cd82-e1b8-448f-a451-de8acf4a252e","changeType":"overdue","entity":"invoice","entityId":3221,"message":null,"clientId":6,"eventName":"invoice.overdue","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":[{"id":317,"clientId":6,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"WJAn(#8tQ?k_f#(b,Qo%","clientZoneVisible":false}],"accountBalance":-7480,"accountCredit":0,"accountOutstanding":7480,"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":3221,"clientId":6,"number":"003167","createdDate":"2026-02-28T10:00:01-0600","dueDate":"2026-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3238,"type":"service","label":"plan300 31\/01\/2026 \u2013 27\/02\/2026","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,"printed":false},"paymentData":null}
+
+[2026-03-15 18:30:03.392093] [notice] Logging level set to:debug
+[2026-03-15 18:30:03.392174] [debug] Payload recibido: {"uuid":"009bbe07-73f4-4566-9d66-5f9df021edf4","changeType":"suspend","entity":"service","entityId":"75","eventName":"service.suspend","extraData":{"entity":{"id":75,"prepaid":false,"clientId":76,"status":3,"name":"plan300","fullAddress":"TRANCAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","street1":"TRANCAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"servicePlanId":2,"servicePlanPeriodId":7,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2024-01-31T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2024-01-31T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":31,"nextInvoicingDayAdjustment":0,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"plan300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":6,"uploadSpeed":6,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2026-02-27T00:00:00-0600","unmsClientSiteId":"199829fc-2652-48c6-8114-f82cc4375084","attributes":[],"addressData":null,"suspensionReasonId":1,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":62,"startDate":"2024-03-15T00:00:00-0600","endDate":"2026-01-19T00:00:00-0600"},{"id":207,"startDate":"2026-03-15T12:30:02-0600","endDate":null}],"surcharges":[]},"entityBeforeEdit":{"id":75,"prepaid":false,"clientId":76,"status":1,"name":"plan300","fullAddress":"TRANCAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","street1":"TRANCAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"servicePlanId":2,"servicePlanPeriodId":7,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2024-01-31T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2024-01-31T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":31,"nextInvoicingDayAdjustment":0,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"plan300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":6,"uploadSpeed":6,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2026-02-27T00:00:00-0600","unmsClientSiteId":"199829fc-2652-48c6-8114-f82cc4375084","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":62,"startDate":"2024-03-15T00:00:00-0600","endDate":"2026-01-19T00:00:00-0600"},{"id":207,"startDate":"2026-03-15T12:30:02-0600","endDate":null}],"surcharges":[]}}}
+
+[2026-03-15 18:30:03.723160] [debug] Evento recibido: service.suspend
+[2026-03-15 18:30:03.723270] [debug] Se suspendió el servicio a un  cliente
+
+[2026-03-15 18:30:03.924199] [notice] Logging level set to:debug
+[2026-03-15 18:30:03.924251] [debug] Payload recibido: {"uuid":"e0854e79-248c-42f7-a808-0c97d92e3941","changeType":"edit","entity":"service","entityId":"75","eventName":"service.edit","extraData":{"entity":{"id":75,"prepaid":false,"clientId":76,"status":3,"name":"plan300","fullAddress":"TRANCAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","street1":"TRANCAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"servicePlanId":2,"servicePlanPeriodId":7,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2024-01-31T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2024-01-31T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":31,"nextInvoicingDayAdjustment":0,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"plan300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":6,"uploadSpeed":6,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2026-02-27T00:00:00-0600","unmsClientSiteId":"199829fc-2652-48c6-8114-f82cc4375084","attributes":[],"addressData":null,"suspensionReasonId":1,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":62,"startDate":"2024-03-15T00:00:00-0600","endDate":"2026-01-19T00:00:00-0600"},{"id":207,"startDate":"2026-03-15T12:30:02-0600","endDate":null}],"surcharges":[]},"entityBeforeEdit":{"id":75,"prepaid":false,"clientId":76,"status":1,"name":"plan300","fullAddress":"TRANCAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","street1":"TRANCAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"servicePlanId":2,"servicePlanPeriodId":7,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2024-01-31T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2024-01-31T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":31,"nextInvoicingDayAdjustment":0,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"plan300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":6,"uploadSpeed":6,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2026-02-27T00:00:00-0600","unmsClientSiteId":"199829fc-2652-48c6-8114-f82cc4375084","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":62,"startDate":"2024-03-15T00:00:00-0600","endDate":"2026-01-19T00:00:00-0600"},{"id":207,"startDate":"2026-03-15T12:30:02-0600","endDate":null}],"surcharges":[]}}}
+
+[2026-03-15 18:30:04.192723] [debug] Evento recibido: service.edit
+[2026-03-15 18:30:04.192840] [debug] Se editó el servicio a un  cliente
+
+[2026-03-15 18:30:04.192903] [info] Iniciando verificación/sincronización de contraseña para el cliente ID: 76
+[2026-03-16 6:25:03.239377] [notice] Logging level set to:debug
+[2026-03-16 6:25:03.239450] [debug] Payload recibido: {"uuid":"377ce134-9c0f-4eb9-9bae-373cc9a3db17","changeType":"overdue","entity":"invoice","entityId":"3222","eventName":"invoice.overdue","extraData":{"entity":{"id":3222,"clientId":132,"number":"003168","createdDate":"2026-03-01T10:00:02-0600","dueDate":"2026-03-15T10:00:02-0600","emailSentDate":"2026-03-16T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2026-02-27T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3239,"type":"service","label":"plan300 01\/02\/2026 \u2013 28\/02\/2026","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,"printed":false},"entityBeforeEdit":null}}
+
+[2026-03-16 6:25:03.512641] [debug] Evento recibido: invoice.overdue
+[2026-03-16 6:25:03.512754] [debug] Factura vencida
+
+[2026-03-16 6:25:03.512801] [debug] datos del notification para el invoice overdue:{"uuid":"377ce134-9c0f-4eb9-9bae-373cc9a3db17","changeType":"overdue","entity":"invoice","entityId":3222,"message":null,"clientId":132,"eventName":"invoice.overdue","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":[{"id":402,"clientId":132,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":",wD*$JLJD>kzfwdv5Vpo","clientZoneVisible":false}],"accountBalance":-6000,"accountCredit":0,"accountOutstanding":6000,"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":3222,"clientId":132,"number":"003168","createdDate":"2026-03-01T10:00:02-0600","dueDate":"2026-03-15T10:00:02-0600","emailSentDate":"2026-03-16T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2026-02-27T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3239,"type":"service","label":"plan300 01\/02\/2026 \u2013 28\/02\/2026","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,"printed":false},"paymentData":null}
+
+contac vacio
diff --git a/manifest.json b/manifest.json
index f98bc5e8..a3f1871b 100755
--- a/manifest.json
+++ b/manifest.json
@@ -5,13 +5,18 @@
     "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": "4.4.0",
+    "version": "5.0.0",
     "unmsVersionCompliancy": {
       "min": "2.1.0",
       "max": null
     },
     "author": "SIIP INTERNET",
     "changelog": [
+      {
+        "version": "4.5.0",
+        "date": "2026-03-13",
+        "changes": "Actualización: Implementado reenvío manual de notificaciones de instaladores, fix de lógica de asignación técnica y optimización de AWS SDK (Requiere PHP 8.1+)."
+      },
       {
         "version": "4.4.0",
         "date": "2026-03-10",
diff --git a/public.php b/public.php
index 8dcb6fbb..ec01e3b9 100644
--- a/public.php
+++ b/public.php
@@ -7,8 +7,7 @@ chdir(__DIR__);
 use Ubnt\UcrmPluginSdk\Service\PluginConfigManager;
 use Ubnt\UcrmPluginSdk\Service\UcrmApi;
 use Ubnt\UcrmPluginSdk\Service\UcrmSecurity;
-
-// Eliminado: PaymentIntentService ya no se usa aquí
+use SmsNotifier\Service\PaymentIntentService;
 
 if (!file_exists(__DIR__ . '/data/config.json')) {
     die('Acceso denegado o configuración no encontrada.');
@@ -46,8 +45,7 @@ $httpClient = new \GuzzleHttp\Client([
 ]);
 
 $ucrmApi = new UcrmApi($httpClient, $config['apitoken'] ?? '');
-
-$ucrmApi = new UcrmApi($httpClient, $config['apitoken'] ?? '');
+$paymentIntentService = new PaymentIntentService($ucrmApi, $config['tokenstripe'] ?? '');
 
 // Admins Logic
 $admins = [];
@@ -322,6 +320,42 @@ if (isset($_GET['action'])) {
         exit;
     }
 
+    if ($_GET['action'] === 'search_stripe') {
+        $q = $_GET['q'] ?? '';
+        echo json_encode($paymentIntentService->searchClients($q));
+        exit;
+    }
+
+    if ($_GET['action'] === 'get_stripe_details') {
+        $id = $_GET['id'] ?? null;
+        if ($id) {
+            echo json_encode($paymentIntentService->getClientDetails($id));
+        } else {
+            echo json_encode(['error' => 'Missing ID']);
+        }
+        exit;
+    }
+
+    if ($_GET['action'] === 'get_stripe_history') {
+        $stripeCustomerId = $_GET['stripeCustomerId'] ?? null;
+        if ($stripeCustomerId) {
+            echo json_encode(['history' => $paymentIntentService->getLastPayments($stripeCustomerId, 10)]);
+        } else {
+            echo json_encode(['error' => 'Missing customer id']);
+        }
+        exit;
+    }
+
+    if ($_GET['action'] === 'get_oxxo_history') {
+        $stripeCustomerId = $_GET['stripeCustomerId'] ?? null;
+        if ($stripeCustomerId) {
+            echo json_encode(['history' => $paymentIntentService->getLastOxxoPayments($stripeCustomerId, 5)]);
+        } else {
+            echo json_encode(['error' => 'Missing customer id']);
+        }
+        exit;
+    }
+
     if ($_GET['action'] === 'get_installer_jobs') {
         $installerId = $_GET['installerId'] ?? null;
         if (!$installerId) {
diff --git a/siip_full_structure/.DS_Store b/siip_full_structure/.DS_Store
new file mode 100644
index 0000000000000000000000000000000000000000..1c0a0615fa63213d5bbc7c3d0db1c21e04d91ca6
GIT binary patch
literal 6148
zcmeHKJ5Iwu5S<|@EYYN-LE0YF92CA(woiE$X)}xsJ%8Wab
zTe*?t`l`==eE7_4+NN2o+XW)k+v&yK)645wKfC%NyS?tO`V1P43Qz$mKn1A4K`W3w
zx;j2+6?k|mKn1>1!2S;fZdfOFf&S~j;7i16>;e&iX;6Vd)qG-T
z&=D_LS0{FXK^OI%u}}S;pTrpzpaTC&
z0UbB Servicio 2:  ...`.
+2️⃣ **Validación Granular de Provisionamiento**: Se implementó una lógica de detección por etapas (Servicio -> Sitio UISP -> Dispositivo) para evitar generar contraseñas en sitios "Location Inactive".
+3️⃣ **Lazy Loading & Optimización de Recursos**: Implementación de un "Lazy Check" que detecta si ya hay una contraseña válida en el CRM para omitir llamadas innecesarias a la API de UISP, mejorando la velocidad y reduciendo el consumo de CPU.
+
+### 🔵 Mejoras
+
+1️⃣ **Etiquetado Inteligente de Servicios**: Las etiquetas `Servicio 1:`, `Servicio 2:` ahora solo aparecen si el cliente tiene múltiples servicios; para un solo servicio, la contraseña se muestra directamente.
+2️⃣ **Sincronización Avanzada con CallBell**: - Nuevo campo `Password Antena` enviado en formato JSON estructurado. - Unificación de peticiones PATCH (Resumen + Campos) en una sola llamada para mayor eficiencia.
+3️⃣ **Contraseñas "Printer-Friendly"**: El generador de contraseñas ahora utiliza un set de caracteres optimizado para mini-impresoras térmicas (Alfanumérico + `@`, `#`), eliminando caracteres ambiguos como `l`, `I`, `0`, `O`.
+4️⃣ **Mensajes de Estado en CRM**: Se agregaron alertas visuales en el campo de contraseña para indicar estados de provisión: `⚠️ Sin sitio vinculado`, `⚠️ Sin antena vinculada`, `⚠️ Cliente sin servicios`.
+5️⃣ **Robustez en Entornos de Prueba**: Refinamiento del bypass de desarrollo para mantener la estabilidad de las claves generadas y evitar bucles infinitos de webhooks.
+
+### 🟡 Bugs Resueltos
+
+1️⃣ **Sincronización de Saldo**: Se corrigió la discrepancia de nombres entre `Saldo Actual` y `Saldo` que causaba actualizaciones redundantes infinitas con CallBell.
+2️⃣ **Parseo de Passwords**: Refinamiento de expresiones regulares para capturar correctamente contraseñas multi-servicio.
+3️⃣ Se solucionó el bucle infinito de actualizaciones en el atributo `passwordAntenaCliente` que ocurría al detectar cambios en servicios sin dispositivos vinculados.
+
+## VERSIÓN 2.9.3 - 23-12-2025
+
+### 🟢 Novedades
+
+1️⃣ Resolución dinámica del ID del método de pago ("Transferencia bancaria") mediante consulta a la API de UISP, mejorando la portabilidad del plugin entre distintos servidores.
+2️⃣ Implementación de registro de pago automático desde Webhook Stripe para eventos de tipo `customer_cash_balance_transaction.created` (Saldo aplicado).
+
+### 🟡 Bugs Resueltos
+
+1️⃣ Se corrigió el error de validación de la API de UCRM (422) mediante el cast explícito de `clientId` a integer y el uso de `methodId` como string.
+
+## VERSIÓN 2.9.2
+
+### 🟡 Bugs Resueltos
+
+1️⃣ Se solucionó un bug que impedía obtener la contraseñas de la bóveda, ya que el response de la API cambió en la última actualización y la esstructura nueva impedía acceder al dato del password
+
+## VERSIÓN 2.8.8
+
+### 🟡 Bugs Resueltos
+
+1️⃣ Se solucionó un bug que impedía al BOT del CallBell mostrar el monto de la referencia de OXXO en el mensaje donde se le entrega el voucher al cliente, para el caso donde el cliente elegía crear su referencia con la CANTIDAD TOTAL.
+
+## VERSIÓN 2.8.7
+
+### 🟢 Novedades
+
+1️⃣ Ahora las referencias de **OXXO Pago** han cambiado, en lugar de enviarse la URL o link de pago al cliente será la imagen del código de barras y la información que aparece en el link directamente en el mensaje, de esta manera será más cómodo para el cliente tener la imagen en su chat a tener que abrir una URL o link externo.
+
+### 🔵 Mejoras
+
+1️⃣ Se modificaron nodos del bot **_OXXO_BOT_** para poder adaptar esta actualización correctamente.
+2️⃣ Mejoras en el código fuente del flujo de trabajo para las referencias de OXXO PAGO.
+
+## VERSIÓN 2.8.6
+
+### 🔵 Mejoras
+
+1️⃣ Se modificó la información para el envío de notificaciones a llos instaladores en el flujo de trabajo para la desasignación de tareas que hacía que no se viera correctamente la información
+
+## 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.
+
+## VERSIÓN 2.8.2
+
+### 🟡 Bugs Resueltos
+
+1️⃣ No se enviaban las notificaciones de las tareas al instalador. Se cambió la plantilla de CallBell o WhatsApp con 3 variables en lugar de 8.
+2️⃣ Se agregó un nuevo tipo de pago ("applied_to_payment") en las propiedades de los Webhooks recibidos mediante Stripe por concepto de transferencias bancarias. Ya que sólo se revisaba el tipo de pago "funded" y eso hacía que no enviara los comprobantes de pago a los clientes para todos los casos.
+
+## VERSIÓN 2.8.1
+
+### 🟡 Bugs Resueltos
+
+1️⃣ No se enviaban las notificaciones de las tareas al instalador.
+
+## VERSIÓN 2.8.0
+
+### 🟢 Novedades
+
+1️⃣ Envío de contraseña de antena en el mensaje que se manda al instalador cuando se le asigna una tarea/servicio.
+2️⃣ Para clientes nuevos o que no tengan el campo personalizado de “Password Antena Cliente” al actualizarlos se les asignará ese campo o cuando se les actualice su servicio.
+3️⃣ Ahora se puede modificar tantas veces sea necesaria una tarea o servicio como su fecha o el instalador mientras la tarea permanezca en estado “Abiertos” SIN que se envíen notificaciones a los clientes o instaladores.
+4️⃣ Se agregó un prefijo al título de la tarea/servicio agendado cuando recién se da de alta para identificar que esta no ha sido notificada aún y se pueden realizar ajustes.
+
+### 🔵 Mejoras
+
+1️⃣ Se modificó el flujo de trabajo para el envío de notificaciones a los clientes para su visita técnica, ahora son cuatro distintos tipos de flujo, anteriormente tres.
+2️⃣ Se reemplazaron algunas plantillas de mensajes de CallBell.
+3️⃣ Se renombró el uso de la etiqueta “CREARCLABESTRIPE” por “CREAR CLABE STRIPE” para un mejor entendimiento de su uso.
+
+### 🟡 Bugs Resueltos
+
+1️⃣ Envío de notificaciones a los clientes y a los instaladores al CERRAR una tarea/servicio (Se mandaban mensajes de asignación y de visita del técnico ) haciendo no posible cerrar las tareas.
diff --git a/siip_full_structure/README.md b/siip_full_structure/README.md
new file mode 100644
index 00000000..261795c8
--- /dev/null
+++ b/siip_full_structure/README.md
@@ -0,0 +1,115 @@
+# SIIP - WhatsApp Notifications & Integrated Payment Portal
+
+![Version](https://img.shields.io/badge/version-4.5.0-blue.svg?style=for-the-badge)
+![UCRM Compatibility](https://img.shields.io/badge/UCRM-v2.1.0%2B-green.svg?style=for-the-badge)
+![Status](https://img.shields.io/badge/status-PRODUCTION-success.svg?style=for-the-badge)
+![Author](https://img.shields.io/badge/author-SIIP_INTERNET-orange.svg?style=for-the-badge)
+
+Este plugin es una solución integral que transforma tu UCRM en un **Portal Administrativo de Última Generación**. No solo automatiza la comunicación por WhatsApp, sino que integra un Dashboard completo para la gestión de pagos online (Stripe/OXXO), visualización de comprobantes y coordinación de equipos técnicos.
+
+## 🚀 Novedades v4.5.0 (Manual Resend & Fixes)
+
+- **📨 Reenvío Manual**: Nuevo botón dentro de "Gestión de Instaladores" para reenviar notificaciones de tareas asignadas.
+- **🔧 Fix Notificaciones**: Corregido bug crítico en la lógica de asignación/desasignación de técnicos.
+- **⚙️ Dependencias**: Optimización de AWS SDK (Requiere PHP 8.1+).
+
+## 🐛 Hotfix v4.3.1 (Installer Notification Fix)
+
+- **🔧 Fix Cambio de Instalador**: Corregido bug donde el nuevo técnico recibía mensaje de desasignación en vez de asignación al cambiar instalador en una tarea "En curso".
+
+## 🔐 Novedades v4.3.0 (Security & Premium UI)
+
+- **🛡️ Sistema de Acceso Seguro**: Implementada validación híbrida (Server + Client). El plugin ahora protege las URLs públicas mediante una pantalla de inicio de sesión que requiere credenciales de Administrador de UCRM o autenticación 2FA.
+- **💎 Autenticación Premium (Glassmorphism)**: Nueva pantalla de inicio de sesión con una interfaz elegante y de lujo basada en Glassmorphism interactivo (esferas flotantes, desenfoques profundos, switch animado tipo iOS para modo oscuro).
+- **🚀 Single-Sign-On Ciego**: Si el administrador ya ingresó desde el portal interno UCRM, la capa de seguridad detecta la sesión local y le otorga acceso sin pedir credenciales, optimizando el flujo de trabajo.
+
+## 🚀 Novedades v4.2.0 (Analytics & Sync)
+
+- **📊 Visualizador de Pagos Mensuales**: Nueva herramienta de análisis que permite seleccionar cualquier mes y visualizar gráficamente:
+  - Estadísticas de clientes activos vs clientes que pagaron
+  - Gráfica de dona interactiva con Chart.js
+  - Listado detallado de clientes pendientes con saldos
+  - Porcentajes de cobranza en tiempo real
+- **🔄 Sincronización Mejorada CallBell**: Fix crítico que garantiza la actualización automática del saldo y estado del cliente en CallBell cuando se agregan facturas o se modifican servicios.
+- **🎯 Categorización Inteligente de Pagos**: Nuevo microservicio con acceso directo a la base de datos para obtener metadata de Stripe (tipo de pago) y asignar correctamente los atributos incluso cuando la API de UCRM no tiene la información.
+- **⚙️ Configuración para Producción**: Sistema de `.env` implementado para gestión segura de credenciales de base de datos.
+
+## 🚀 Novedades v4.1.0 (Performance & Storage)
+
+- **⚡ Microservicio PDF (`pdf-cropper`)**: Nuevo motor de renderizado externo (Python/FastAPI) que reemplaza librerías legacy, aumentando la velocidad y eliminando problemas de memoria en el servidor principal.
+- **📦 MinIO / S3 Storage**: Migración completa del almacenamiento de comprobantes. Adiós FTP, hola almacenamiento de objetos seguro y escalable con URLs firmadas y limpieza automática.
+- **🖼️ Smart Image Processing**: Generación de imágenes "Full Mode" (sin recortes) y capacidad de **Edición Dinámica de Texto** (Overlay) para personalizar métodos de pago en los comprobantes.
+
+## 🚀 Novedades v4.0.0 (Portal Dashboard)
+
+- **🖥️ Dashboard de Pagos Integrado**: Nueva interfaz visual dentro de UCRM para gestionar cobros de Stripe y OXXO sin salir de la plataforma.
+- **🏪 OXXO Pay Híbrido & Visual**: Generación de fichas OXXO con dos modos inteligentes:
+  - **Inline (Admin)**: Visualización inmediata del voucher (local) para máxima velocidad.
+  - **FTP (Webhook)**: Carga automática a servidor externo para compartir links públicos.
+- **🌑 UI/UX Premium**: Interfaz rediseñada con Sidebar expandible, cabecera global "Sticky", Modo Oscuro automático y componentes responsivos.
+
+---
+
+## ⚡ Funcionalidades Principales
+
+### 1. Gestión de Cobranza Avanzada
+
+- **Pagos SPEI**: Instrucciones inmediatas con CLABE personalizada.
+- **Vouchers OXXO**: Generación instantánea de códigos de barras con vista previa "Split-Screen" (Datos + Imagen).
+- **Historial en Tiempo Real**: Consulta los últimos 10 pagos de cualquier cliente al instante.
+
+### 2. Automatización WhatsApp (CallBell)
+
+- **Notificaciones Dinámicas**: Envío automático de facturas, recordatorios de pago y avisos de corte.
+- **Re-envío Manual**: Herramienta para disparar notificaciones específicas desde el Dashboard si el proceso automático falla.
+- **Sincronización Total**: Mantiene los contactos de CallBell siempre actualizados con los datos del CRM.
+
+### 3. Coordinación Técnica (Jobs/Tasks)
+
+- **Agenda Inteligente**: Notifica a instaladores sobre nuevas tareas y reprogramaciones.
+- **Datos para Técnicos**: Envía coordenadas GPS y contraseñas de equipos (formato impresora térmica) directamente al WhatsApp del técnico.
+
+---
+
+## 🏗️ Arquitectura del Sistema
+
+El plugin utiliza una arquitectura modular basada en **Facades** y **Servicios** para garantizar estabilidad y escalabilidad.
+
+### Componentes Clave
+
+- **Frontend (`public.php`)**: Una Single Page Application (SPA) ligera incrustada en UCRM, construida con Vanilla JS y CSS moderno (Variables, Flexbox/Grid).
+- **Despachador (`Plugin.php`)**: Router de eventos que delega acciones a los controladores específicos.
+- **Motor de Pagos (`PaymentIntentStripe`)**: Servicio robusto que se comunica con la API de Stripe para crear intenciones de pago y métodos.
+- **Generador OXXO (`AbstractOxxoOperationsFacade`)**: Orquesta el flujo complejo: Stripe -> Puppeteer (Screenshot) -> FTP/Local Storage -> Respuesta JSON.
+
+---
+
+## 🛠️ Requisitos e Integraciones
+
+Para desbloquear todo el potencial, el plugin requiere:
+
+1.  **UISP/UCRM**: Versión 2.1.0 o superior.
+2.  **PHP**: Versión **8.1 o superior** (Recomendado Ubuntu 22.04 LTS).
+3.  **Stripe API**: Keys de producción/test para procesar pagos.
+3.  **CallBell API**: Token para el envío de mensajes de WhatsApp.
+4.  **Microservicio Puppeteer**: Contenedor Docker para renderizar los vouchers de OXXO a imagen.
+5.  **Servidor FTP (Opcional)**: Requerido solo si se desea generar URLs públicas para compartir los vouchers externamente.
+
+---
+
+## 🏷️ Configuración Rápida
+
+El plugin se configura directamente desde el panel de UCRM (`Ajustes -> Plugins -> siip-whatsapp-notifications`).
+
+### Parámetros Críticos
+
+- `ipserver`: Tu dominio UCRM.
+- `tokenstripe`: Tu Secret Key de Stripe.
+- `tokencallbell`: Tu API Key de CallBell.
+- `hostServerFTP` / `user` / `pass`: Credenciales para el almacenamiento de vouchers remotos.
+
+---
+
+## 📝 Registro de Cambios
+
+Para consultar la evolución detallada del proyecto, ver el archivo [CHANGELOG.md](./CHANGELOG.md).
diff --git a/siip_full_structure/manifest.json b/siip_full_structure/manifest.json
new file mode 100644
index 00000000..a3f1871b
--- /dev/null
+++ b/siip_full_structure/manifest.json
@@ -0,0 +1,299 @@
+{
+  "version": "1",
+  "information": {
+    "name": "siip-whatsapp-notifications",
+    "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": "5.0.0",
+    "unmsVersionCompliancy": {
+      "min": "2.1.0",
+      "max": null
+    },
+    "author": "SIIP INTERNET",
+    "changelog": [
+      {
+        "version": "4.5.0",
+        "date": "2026-03-13",
+        "changes": "Actualización: Implementado reenvío manual de notificaciones de instaladores, fix de lógica de asignación técnica y optimización de AWS SDK (Requiere PHP 8.1+)."
+      },
+      {
+        "version": "4.4.0",
+        "date": "2026-03-10",
+        "changes": "Nueva funcionalidad: Reenvío manual de notificaciones de tareas a instaladores desde el módulo Gestión de Instaladores. Tabla de jobs activos por técnico con botón de reenvío."
+      },
+      {
+        "version": "4.3.1",
+        "date": "2026-03-10",
+        "changes": "Hotfix: Corregido bug donde al cambiar de instalador en una tarea En Curso, el nuevo técnico recibía mensaje de desasignación en vez de asignación."
+      },
+      {
+        "version": "4.3.0",
+        "date": "2026-02-23",
+        "changes": "Implementación de Sistema de Login Seguro con validación de sesiones UCRM y Rediseño Premium Glassmorphism UI."
+      },
+      {
+        "version": "4.1.0",
+        "date": "2026-01-15",
+        "changes": "Implementación de Microservicio PDF, Integración MinIO, Fix Recorte y Soporte overlay textos."
+      },
+      {
+        "version": "4.0.0",
+        "date": "2026-01-10",
+        "changes": "Re-diseño completo de UI, integración total de Stripe (SPEI/OXXO), visualización inline de vouchers, optimización de seguridad FTP y modo oscuro."
+      },
+      {
+        "version": "3.1.0",
+        "date": "2026-01-07",
+        "changes": "Añadida funcionalidad de re-envío manual de notificaciones de pago."
+      },
+      {
+        "version": "3.0.0",
+        "date": "2026-01-02",
+        "changes": "Soporte multi-servicio y optimizaciones de rendimiento."
+      }
+    ]
+  },
+  "configuration": [
+    {
+      "key": "ipserver",
+      "label": "Dirección IP o dominio del servidor",
+      "description": "La dirección IP del servidor o dominio donde se ejecuta el sistema UISP CRM. Ejemplo: 192.168.1.120 o sistema.empresa.com",
+      "required": 1,
+      "type": "text"
+    },
+    {
+      "key": "apitoken",
+      "label": "Token de la API UCRM",
+      "description": "Token de autenticación necesario para el uso de la API del sistema UISP UCRM, se utiliza para gestionar cualquier información de los clientes. Contiene 64 caracteres y se genera desde el módulo de Ajustes del UISP CRM en la opción de 'Seguridad' y en la sección de 'Claves app'.",
+      "required": 1,
+      "type": "text"
+    },
+    {
+      "key": "unmsApiToken",
+      "label": "Token de la API UNMS",
+      "description": "Token de autenticación necesario para el uso de la API del sistema UISP UNMS, se utiliza para gestionar información de antenas u otros dispositivos de red. Contiene 34 caracteres y se genera desde el módulo de Ajustes del UISP Network en la opción de 'Usuarios' y en apartado de 'API tokens'.",
+      "required": 0,
+      "type": "text"
+    },
+    {
+      "key": "tokencallbell",
+      "label": "Token de la API de CallBell",
+      "description": "Token de autenticación para el uso de la API de CallBell que maneja las funciones realacionadas con WhatsApp. El token es de tipo 'Bearer' y contiene 97 caracteres, ejemplo: g9thcZkXGd3xBj2g2TtYNYFMH1fuesbJ.b6a947ea7d78cf6c8e42f067a21c8daf91e9fa2a9e310bfd0c7c7c4d7fa36f68",
+      "required": 1,
+      "type": "text"
+    },
+    {
+      "key": "tokenstripe",
+      "label": "Token de la API de Stripe",
+      "description": "Token de autenticación para el uso de la API de Stripe que maneja las funciones realacionadas con los pagos en línea (Transferencia y OXXO PAGO). ",
+      "required": 1,
+      "type": "text"
+    },
+    {
+      "key": "hostServerFTP",
+      "label": "IP o dominio del servidor FTP",
+      "description": "Dirección IP o dominio del sitio del servidor FTP para la carga de comprobantes de pago del sistema y su posterior envío",
+      "required": 1,
+      "type": "text"
+    },
+    {
+      "key": "usernameServerFTP",
+      "label": "Usuario FTP",
+      "description": "Nombre de usuario para inicio de sesión el servidor FTP, necesario para la carga de comprobantes de pago del sistema y su posterior envío",
+      "required": 1,
+      "type": "text"
+    },
+    {
+      "key": "passServerFTP",
+      "label": "Password FTP",
+      "description": "Contraseña para inicio de sesión en el servidor FTP, necesario para la carga de comprobantes de pago del sistema y su posterior envío",
+      "required": 1,
+      "type": "text"
+    },
+    {
+      "key": "ipPuppeteer",
+      "label": "Dirección IP del servicio de Puppeteer",
+      "description": "Dirección IP del contenedor docker que ejecuta el servicio de Puppeteer para la generación de comprobantes de pago en formato imagen PNG",
+      "required": 1,
+      "type": "text"
+    },
+    {
+      "key": "portPuppeteer",
+      "label": "Puerto del servicio de Puppeteer",
+      "description": "Puerto del contenedor docker que ejecuta el servicio de Puppeteer, por defecto es el 3000",
+      "required": 1,
+      "type": "text"
+    },
+    {
+      "key": "idPaymentAdminCRM",
+      "label": "ID del usuario para pagos en línea",
+      "description": "ID del usuario administrador del CRM asigando para realizar pagos en línea con Stripe. Todos los pagos que llegan desde Stripe se asignan a este usuario. Se recomienda crear un usuario exclusivo para este fin.",
+      "required": 1,
+      "type": "text"
+    },
+    {
+      "key": "cashPaymentMethodId",
+      "label": "Envío de Comprobante por pago en efectivo",
+      "description": "Habilita el envío de comprobantes  en formato de imagen por WhatsApp cuando el método de pago es en efectivo",
+      "required": 0,
+      "type": "checkbox"
+    },
+    {
+      "key": "courtesyPaymentMethodId",
+      "label": "Envío de Comprobante por pago de cortesía",
+      "description": "Habilita el envío de comprobantes  en formato de imagen por WhatsApp cuando el método de pago es por crédito de cortesía",
+      "required": 0,
+      "type": "checkbox"
+    },
+    {
+      "key": "bankTransferPaymentMethodId",
+      "label": "Envío de Comprobante por pago con Transferencia Bancaria",
+      "description": "Habilita el envío de comprobantes  en formato de imagen por WhatsApp cuando el método de pago es por Transferencia Bancaria",
+      "required": 0,
+      "type": "checkbox"
+    },
+    {
+      "key": "paypalPaymentMethodId",
+      "label": "Envío de Comprobante por pago con PayPal",
+      "description": "Habilita el envío de comprobantes  en formato de imagen por WhatsApp cuando el método de pago es por PayPal",
+      "required": 0,
+      "type": "checkbox"
+    },
+    {
+      "key": "creditCardPaypalPaymentMethodId",
+      "label": "Envío de Comprobante por pago de Tarjeta de Crédito o Débito con PayPal",
+      "description": "Habilita el envío de comprobantes  en formato de imagen por WhatsApp cuando el método de pago es con Tarjeta de Credito o Débito con PayPal",
+      "required": 0,
+      "type": "checkbox"
+    },
+    {
+      "key": "creditCardStripePaymentMethodId",
+      "label": "Envío de Comprobante por pago de Tarjeta de Crédito o Débito por medio de Stripe",
+      "description": "Habilita el envío de comprobantes  en formato de imagen por WhatsApp cuando el método de pago es con Tarjeta de Crédito o Débito por medio de Stripe",
+      "required": 0,
+      "type": "checkbox"
+    },
+    {
+      "key": "stripeSubscriptionCreditCardPaymentMethodId",
+      "label": "Envío de Comprobante por pago con una Suscripción de Stripe (tarjeta de crédito)",
+      "description": "Habilita el envío de comprobantes  en formato de imagen por WhatsApp cuando el método de pago es por una Suscripción de Stripe (tarjeta de crédito)",
+      "required": 0,
+      "type": "checkbox"
+    },
+    {
+      "key": "paypalSubscriptionPaymentMethodId",
+      "label": "Envío de Comprobante por pago con Suscripción de PayPal",
+      "description": "Habilita el envío de comprobantes  en formato de imagen por WhatsApp cuando el método de pago es por Suscripción de PayPal",
+      "required": 0,
+      "type": "checkbox"
+    },
+    {
+      "key": "mercadopagoPaymentMethodId",
+      "label": "Envío de Comprobante por pago de MercadoPago",
+      "description": "Habilita el envío de comprobantes  en formato de imagen por WhatsApp cuando el método de pago es por MercadoPago",
+      "required": 0,
+      "type": "checkbox"
+    },
+    {
+      "key": "checkPaymentMethodId",
+      "label": "Envío de Comprobante por pago de Cheque",
+      "description": "Habilita el envío de comprobantes  en formato de imagen por WhatsApp cuando el método de pago es por Cheque",
+      "required": 0,
+      "type": "checkbox"
+    },
+    {
+      "key": "customPaymentMethodId",
+      "label": "Envío de Comprobante por pago Personalizado",
+      "description": "Habilita el envío de comprobantes  en formato de imagen por WhatsApp cuando el método de pago es Personalizado",
+      "required": 0,
+      "type": "checkbox"
+    },
+    {
+      "key": "oxxoPayPaymentMethodId",
+      "label": "Envío de Comprobante por pago de OXXO Pay",
+      "description": "Habilita el envío de comprobantes  en formato de imagen por WhatsApp cuando el método de pago es OXXO Pay",
+      "required": 0,
+      "type": "checkbox"
+    },
+    {
+      "key": "creditDebitCardPaymentMethodId",
+      "label": "Envío de Comprobante por pago de Tarjeta de Crédito/Débito (Genérico)",
+      "description": "Habilita el envío de comprobantes en formato de imagen por WhatsApp cuando el método de pago es Tarjeta de Crédito/Débito (Genérico)",
+      "required": 0,
+      "type": "checkbox"
+    },
+    {
+      "key": "notificationTypeText",
+      "label": "Envío de Comprobante por medio de plantilla de texto",
+      "description": "Habilita el envío de comprobantes  en formato TEXTO por WhatsApp, si está deshabilitado se utiliza el formato de imagen.",
+      "required": 0,
+      "type": "checkbox"
+    },
+    {
+      "key": "installersDataWhatsApp",
+      "label": "Datos de los instaladores en formato JSON",
+      "description": "El número identificador (id) del instalador se obtiene desde la API del CRM en su ednpoint \"/api/v1.0/user\" y se debe de obtener el campo 'id' de cada instalador para agregarlo en este campo en formato JSON",
+      "required": 1,
+      "type": "textarea"
+    },
+    {
+      "key": "debugMode",
+      "label": "Debug Mode?",
+      "description": "More detailed log info - Informacion de log mas detallada",
+      "required": 0,
+      "type": "checkbox"
+    },
+    {
+      "key": "minioEndpoint",
+      "label": "MinIO Endpoint (Internal)",
+      "description": "URL interna para subir archivos (ej: http://localhost:9002)",
+      "required": 1,
+      "type": "text"
+    },
+    {
+      "key": "minioPublicUrl",
+      "label": "MinIO Public URL (External)",
+      "description": "URL externa para generar enlaces públicos (ej: https://aws-venus.siip.mx)",
+      "required": 1,
+      "type": "text"
+    },
+    {
+      "key": "minioAccessKey",
+      "label": "MinIO Access Key",
+      "description": "Clave de acceso de MinIO",
+      "required": 1,
+      "type": "text"
+    },
+    {
+      "key": "minioSecretKey",
+      "label": "MinIO Secret Key",
+      "description": "Clave secreta de MinIO",
+      "required": 1,
+      "type": "text"
+    },
+    {
+      "key": "minioBucket",
+      "label": "MinIO Bucket",
+      "description": "Nombre del bucket (ej: vouchers-oxxo)",
+      "required": 1,
+      "type": "text"
+    },
+    {
+      "key": "logging_level",
+      "label": "enable debug logs",
+      "description": "Make the plugin more verbose.",
+      "type": "checkbox",
+      "required": 0
+    }
+  ],
+  "menu": [
+    {
+      "key": "Reports",
+      "label": "Portal Administrativo de Pagos de STRIPE y Notificaciones WhatsApp",
+      "type": "admin",
+      "target": "iframe"
+    }
+  ],
+  "supportsWebhookEvents": true
+}
diff --git a/siip_full_structure/public.php b/siip_full_structure/public.php
new file mode 100644
index 00000000..ec01e3b9
--- /dev/null
+++ b/siip_full_structure/public.php
@@ -0,0 +1,3307 @@
+loadConfig();
+
+// LOG DE EMERGENCIA
+$debugLogPath = __DIR__ . '/data/debug_public.log';
+
+if ($_SERVER['REQUEST_METHOD'] === 'POST') {
+    $input = file_get_contents('php://input');
+    $jsonData = json_decode((string)$input, true);
+
+    if ($jsonData && (isset($jsonData['uuid']) || isset($jsonData['eventName']) || isset($jsonData['type']))) {
+        file_put_contents($debugLogPath, "[" . date('Y-m-d H:i:s') . "] Webhook in public.php. Delegating..." . PHP_EOL, FILE_APPEND);
+
+        $builder = new \DI\ContainerBuilder();
+        $container = $builder->build();
+        $plugin = $container->get(\SmsNotifier\Plugin::class);
+        $plugin->run();
+        exit;
+    }
+}
+
+$ipServer = $config['ipserver'] ?? 'localhost';
+$ucrmApiUrl = 'https://' . $ipServer . '/crm/api/v1.0/';
+$ucrmPublicUrl = 'https://' . $ipServer . '/crm';
+
+$httpClient = new \GuzzleHttp\Client([
+    'base_uri' => $ucrmApiUrl,
+    'verify' => false,
+    'timeout' => 15
+]);
+
+$ucrmApi = new UcrmApi($httpClient, $config['apitoken'] ?? '');
+$paymentIntentService = new PaymentIntentService($ucrmApi, $config['tokenstripe'] ?? '');
+
+// Admins Logic
+$admins = [];
+$defaultStripeAdminId = null;
+try {
+    $adminsRaw = $ucrmApi->get('users/admins');
+    foreach ($adminsRaw as $admin) {
+        $nombre = trim(($admin['firstName'] ?? '') . ' ' . ($admin['lastName'] ?? ''));
+        $admins[] = ['id' => $admin['id'], 'nombre' => $nombre];
+        if (strtolower($nombre) === 'stripe' || strtolower($admin['username'] ?? '') === 'stripe') {
+            $defaultStripeAdminId = $admin['id'];
+        }
+    }
+    if ($defaultStripeAdminId === null && !empty($admins)) $defaultStripeAdminId = $admins[0]['id'];
+} catch (\Exception $e) {
+}
+
+
+
+// ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
+// 0. LOGIN SCREEN SUPPORT & AUTHENTICATION
+// ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
+
+// Determinar si el usuario necesita login (si no tiene sesión UCRM activa)
+$security = UcrmSecurity::create();
+$currentUser = $security->getUser();
+$needsLogin = !$currentUser;
+
+$nmsBaseUrl = "https://{$ipServer}/nms/api/v2.1";
+
+// 0a. NMS Login (POST username + password)
+if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_GET['action']) && $_GET['action'] === 'nms_login') {
+    header('Content-Type: application/json');
+    $input = json_decode(file_get_contents('php://input'), true);
+    $username = $input['username'] ?? '';
+    $password = $input['password'] ?? '';
+
+    if (!$username || !$password) {
+        http_response_code(400);
+        echo json_encode(['error' => 'Se requieren usuario y contraseña.']);
+        exit;
+    }
+
+    try {
+        $nmsClient = new \GuzzleHttp\Client(['verify' => false, 'http_errors' => false]);
+        $resp = $nmsClient->post("{$nmsBaseUrl}/user/login", [
+            'json' => ['username' => $username, 'password' => $password],
+            'headers' => ['Content-Type' => 'application/json'],
+        ]);
+
+        $statusCode = $resp->getStatusCode();
+        $body = json_decode($resp->getBody()->getContents(), true);
+        $authToken = $resp->getHeaderLine('x-auth-token');
+
+        if ($statusCode === 200 && $authToken) {
+            echo json_encode(['success' => true, 'token' => $authToken, 'user' => $body]);
+        } elseif ($statusCode === 201) {
+            http_response_code(201);
+            echo json_encode(['requires2FA' => true, 'twoFactorToken' => $body]);
+        } else {
+            http_response_code($statusCode ?: 401);
+            echo json_encode(['error' => $body['message'] ?? 'Credenciales inválidas.', 'statusCode' => $statusCode]);
+        }
+    } catch (\Exception $e) {
+        http_response_code(500);
+        echo json_encode(['error' => 'Error de conexión con el servidor UISP.']);
+    }
+    exit;
+}
+
+// 0b. NMS TOTP Login
+if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_GET['action']) && $_GET['action'] === 'nms_login_totp') {
+    header('Content-Type: application/json');
+    $input = json_decode(file_get_contents('php://input'), true);
+
+    try {
+        $nmsClient = new \GuzzleHttp\Client(['verify' => false, 'http_errors' => false]);
+        $resp = $nmsClient->post("{$nmsBaseUrl}/user/login/totpauth", [
+            'json' => $input,
+            'headers' => ['Content-Type' => 'application/json'],
+        ]);
+
+        $statusCode = $resp->getStatusCode();
+        $body = json_decode($resp->getBody()->getContents(), true);
+        $authToken = $resp->getHeaderLine('x-auth-token');
+
+        if ($statusCode === 200 && $authToken) {
+            echo json_encode(['success' => true, 'token' => $authToken, 'user' => $body]);
+        } else {
+            http_response_code($statusCode ?: 401);
+            echo json_encode(['error' => $body['message'] ?? 'Código TOTP inválido.']);
+        }
+    } catch (\Exception $e) {
+        http_response_code(500);
+        echo json_encode(['error' => 'Error de conexión con el servidor UISP.']);
+    }
+    exit;
+}
+
+// 0c. NMS Verify Session
+if ($_SERVER['REQUEST_METHOD'] === 'GET' && isset($_GET['action']) && $_GET['action'] === 'nms_verify_session') {
+    header('Content-Type: application/json');
+    $token = $_SERVER['HTTP_X_AUTH_TOKEN'] ?? '';
+    if (!$token) {
+        http_response_code(401);
+        echo json_encode(['error' => 'No token provided.']);
+        exit;
+    }
+    try {
+        $nmsClient = new \GuzzleHttp\Client(['verify' => false, 'http_errors' => false]);
+        $resp = $nmsClient->get("{$nmsBaseUrl}/user", [
+            'headers' => ['x-auth-token' => $token],
+        ]);
+        if ($resp->getStatusCode() === 200) {
+            echo json_encode(['success' => true, 'user' => json_decode($resp->getBody()->getContents(), true)]);
+        } else {
+            http_response_code(401);
+            echo json_encode(['error' => 'Sesión inválida o expirada.']);
+        }
+    } catch (\Exception $e) {
+        http_response_code(500);
+        echo json_encode(['error' => 'Error verificando sesión.']);
+    }
+    exit;
+}
+
+// API HANDLERS
+if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['action'])) {
+    if ($_POST['action'] === 'save_installers') {
+        $installersJson = $_POST['installers_data'] ?? '';
+        if (json_decode($installersJson) !== null) {
+            $configPath = __DIR__ . '/data/config.json';
+            $currentConfig = json_decode(file_get_contents($configPath), true);
+            $currentConfig['installersDataWhatsApp'] = $installersJson;
+            file_put_contents($configPath, json_encode($currentConfig, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE));
+            echo json_encode(['success' => true]);
+            exit;
+        }
+        echo json_encode(['success' => false]);
+        exit;
+    }
+
+    if ($_POST['action'] === 'resend_payment') {
+        $paymentId = $_POST['paymentId'] ?? null;
+        try {
+            $payment = $ucrmApi->get("payments/$paymentId");
+            $client = $ucrmApi->get("clients/{$payment['clientId']}");
+
+            $payload = [
+                'uuid' => 'manual-trigger',
+                'changeType' => 'insert',
+                'entity' => 'payment',
+                'entityId' => (int)$paymentId,
+                'eventName' => 'payment.add',
+                'clientData' => $client,
+                'paymentData' => $payment
+            ];
+
+            // Internal Loopback
+            $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
+            $selfUrl = $protocol . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
+
+            $debugLogPath = __DIR__ . '/data/debug_public.log';
+            file_put_contents($debugLogPath, "[" . date('Y-m-d H:i:s') . "] RESEND PAYMENT. URL: $selfUrl" . PHP_EOL, FILE_APPEND);
+
+            $ch = curl_init($selfUrl);
+            curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
+            curl_setopt($ch, CURLOPT_POST, true);
+            curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+            curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
+            curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
+            curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
+            curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
+            curl_setopt($ch, CURLOPT_POSTREDIR, 3); // Mantener POST y payload en redirects 301/302
+            curl_setopt($ch, CURLOPT_TIMEOUT, 5);
+            $res = curl_exec($ch);
+            $err = curl_error($ch);
+            $code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
+            curl_close($ch);
+
+            file_put_contents($debugLogPath, "[" . date('Y-m-d H:i:s') . "] RESEND CURL RESULT - Code: $code - Error: $err - Body: $res" . PHP_EOL, FILE_APPEND);
+
+            echo json_encode(['success' => true, 'message' => 'Notificación disparada.']);
+        } catch (\Exception $e) {
+            echo json_encode(['success' => false, 'message' => $e->getMessage()]);
+        }
+        exit;
+    }
+
+    if ($_POST['action'] === 'resend_job_notification') {
+        $jobId = $_POST['jobId'] ?? null;
+        if (!$jobId) {
+            echo json_encode(['success' => false, 'message' => 'jobId requerido']);
+            exit;
+        }
+        try {
+            $job = $ucrmApi->get("scheduling/jobs/$jobId");
+            $client = $ucrmApi->get("clients/{$job['clientId']}");
+
+            // Simular webhook job.edit con activación (status 0→1)
+            $entityBeforeEdit = $job;
+            $entityBeforeEdit['status'] = 0; // Simular que estaba en "Abierto"
+            $entity = $job;
+            $entity['status'] = 1; // Estado actual: "En curso"
+            // Agregar prefijo para que verifyJobActionToDo reconozca que debe notificar
+            $entity['title'] = '[NOTIFICACION-PENDIENTE]' . ($entity['title'] ?? '');
+
+            $payload = [
+                'uuid' => 'manual-trigger',
+                'changeType' => 'update',
+                'entity' => 'job',
+                'entityId' => (int)$jobId,
+                'eventName' => 'job.edit',
+                'extraData' => [
+                    'entity' => $entity,
+                    'entityBeforeEdit' => $entityBeforeEdit
+                ]
+            ];
+
+            $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
+            $selfUrl = $protocol . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
+
+            $ch = curl_init($selfUrl);
+            curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
+            curl_setopt($ch, CURLOPT_POST, true);
+            curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
+            curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
+            curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
+            curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
+            curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
+            curl_setopt($ch, CURLOPT_POSTREDIR, 3);
+            curl_setopt($ch, CURLOPT_TIMEOUT, 10);
+            $res = curl_exec($ch);
+            $err = curl_error($ch);
+            curl_close($ch);
+
+            echo json_encode(['success' => true, 'message' => 'Notificación reenviada para job #' . $jobId]);
+        } catch (\Exception $e) {
+            echo json_encode(['success' => false, 'message' => $e->getMessage()]);
+        }
+        exit;
+    }
+}
+
+if (isset($_GET['action'])) {
+    header('Content-Type: application/json');
+
+    if ($_GET['action'] === 'search_clients') {
+        $q = $_GET['q'] ?? '';
+        try {
+            $clients = $ucrmApi->get('clients', ['query' => $q, 'limit' => 6]);
+            echo json_encode($clients);
+        } catch (\Exception $e) {
+            echo json_encode([]);
+        }
+        exit;
+    }
+
+    if ($_GET['action'] === 'get_payments') {
+        $clientId = $_GET['clientId'] ?? null;
+        try {
+            $payments = $ucrmApi->get('payments', ['clientId' => $clientId, 'limit' => 20, 'order' => 'createdDate', 'direction' => 'DESC']);
+            $methods = $ucrmApi->get('payment-methods');
+            $methodMap = [];
+            foreach ($methods as $m) $methodMap[$m['id']] = $m['name'];
+            $formatted = array_slice($payments, 0, 10);
+            foreach ($formatted as &$p) $p['methodName'] = $methodMap[$p['methodId']] ?? 'N/A';
+            echo json_encode($formatted);
+        } catch (\Exception $e) {
+            echo json_encode([]);
+        }
+        exit;
+    }
+
+    if ($_GET['action'] === 'search_stripe') {
+        $q = $_GET['q'] ?? '';
+        echo json_encode($paymentIntentService->searchClients($q));
+        exit;
+    }
+
+    if ($_GET['action'] === 'get_stripe_details') {
+        $id = $_GET['id'] ?? null;
+        if ($id) {
+            echo json_encode($paymentIntentService->getClientDetails($id));
+        } else {
+            echo json_encode(['error' => 'Missing ID']);
+        }
+        exit;
+    }
+
+    if ($_GET['action'] === 'get_stripe_history') {
+        $stripeCustomerId = $_GET['stripeCustomerId'] ?? null;
+        if ($stripeCustomerId) {
+            echo json_encode(['history' => $paymentIntentService->getLastPayments($stripeCustomerId, 10)]);
+        } else {
+            echo json_encode(['error' => 'Missing customer id']);
+        }
+        exit;
+    }
+
+    if ($_GET['action'] === 'get_oxxo_history') {
+        $stripeCustomerId = $_GET['stripeCustomerId'] ?? null;
+        if ($stripeCustomerId) {
+            echo json_encode(['history' => $paymentIntentService->getLastOxxoPayments($stripeCustomerId, 5)]);
+        } else {
+            echo json_encode(['error' => 'Missing customer id']);
+        }
+        exit;
+    }
+
+    if ($_GET['action'] === 'get_installer_jobs') {
+        $installerId = $_GET['installerId'] ?? null;
+        if (!$installerId) {
+            echo json_encode([]);
+            exit;
+        }
+        try {
+            $jobs = $ucrmApi->get('scheduling/jobs', [
+                'assignedUserId' => $installerId,
+                'statuses[]' => 1,
+                'limit' => 50
+            ]);
+            $result = [];
+            foreach ($jobs as $job) {
+                $clientName = 'Sin cliente';
+                if (!empty($job['clientId'])) {
+                    try {
+                        $client = $ucrmApi->get("clients/{$job['clientId']}");
+                        $clientName = trim(($client['firstName'] ?? '') . ' ' . ($client['lastName'] ?? ''));
+                    } catch (\Exception $e) {
+                        $clientName = 'Cliente #' . $job['clientId'];
+                    }
+                }
+                $result[] = [
+                    'id' => $job['id'],
+                    'title' => $job['title'] ?? 'Sin título',
+                    'date' => $job['date'] ?? '',
+                    'clientName' => $clientName,
+                    'clientId' => $job['clientId'] ?? null,
+                    'description' => mb_substr($job['description'] ?? '', 0, 80)
+                ];
+            }
+            echo json_encode($result);
+        } catch (\Exception $e) {
+            echo json_encode([]);
+        }
+        exit;
+    }
+
+    if ($_GET['action'] === 'image' || $_GET['action'] === 'get_image') {
+        // Image Handler
+        if (ob_get_level()) ob_end_clean();
+        $filename = basename($_GET['file'] ?? $_GET['name'] ?? '');
+        $paths = [__DIR__ . '/img/' . $filename, __DIR__ . '/img/webp/' . $filename, __DIR__ . '/vouchers_oxxo/' . $filename];
+        $finalPath = null;
+        foreach ($paths as $p) {
+            if (file_exists($p)) {
+                $finalPath = $p;
+                break;
+            }
+        }
+
+        if ($finalPath) {
+            $ext = strtolower(pathinfo($filename, PATHINFO_EXTENSION));
+            $type = ($ext === 'png') ? 'image/png' : (($ext === 'webp') ? 'image/webp' : 'image/jpeg');
+            header("Content-Type: $type");
+            header("Content-Length: " . filesize($finalPath));
+            readfile($finalPath);
+        } else {
+            http_response_code(404);
+            echo "Not Found";
+        }
+        exit;
+    }
+}
+
+// POST Actions for Intents
+if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['action'])) {
+    header('Content-Type: application/json');
+    if ($_POST['action'] === 'create_oxxo_intent') {
+        try {
+            $builder = new \DI\ContainerBuilder();
+            $container = $builder->build();
+            $oxxoService = $container->get(\SmsNotifier\Facade\PluginOxxoNotifierFacade::class);
+            if (ob_get_length()) ob_clean();
+            $result = $oxxoService->createOxxoPaymentIntent(['client_id' => $_POST['clientId']], $_POST['amount'], false);
+            if (ob_get_length()) ob_clean();
+            echo json_encode(['success' => true, 'data' => $result]);
+        } catch (\Exception $e) {
+            echo json_encode(['success' => false, 'error' => $e->getMessage()]);
+        }
+        exit;
+    }
+}
+
+$installersData = json_decode($config['installersDataWhatsApp'] ?? '{"instaladores":[]}', true);
+?>
+
+
+
+
+    
+    
+    SIIP - Notificaciones y Pagos
+    
+    
+
+
+
+    
+    
+ + + +
+ +
+ +
+
+ +
+ +

Portal Administrativo de Pagos de STRIPE y Notificaciones WhatsApp

+

Administración de Notificaciones vía WhatsApp, Intenciones de pago con Stripe y Fichas de OXXO Pay

+
+
+
+ + + + + + + +
+
+ + + + + + + + + +
+
+
+

+ Pagos OXXO +

+

🏪 Genera fichas de pago OXXO para que tus clientes paguen en tiendas de conveniencia

+
+ + +
+
+ +
+ + + + + +
+
+
+
+ + +
+ 🏪 +

Selecciona un cliente para generar una ficha OXXO Pay

+
+
+ + + + + + +
+
+ + + +
+

+ Plugin Desarrollado por SIIP INTERNET - Todos los derechos reservados. +

+

+ © SIIP Internet. Versión 4.2.1 +

+
+ + + + + + + +
+ + + + + + \ No newline at end of file diff --git a/siip_full_structure/src/Facade/AbstractMessageNotifierFacade.php b/siip_full_structure/src/Facade/AbstractMessageNotifierFacade.php new file mode 100644 index 00000000..9734de8f --- /dev/null +++ b/siip_full_structure/src/Facade/AbstractMessageNotifierFacade.php @@ -0,0 +1,531 @@ +logger = $logger; + $this->messageTextFactory = $messageTextFactory; + $this->clientPhoneNumber = $clientPhoneNumber; + + $config = PluginConfigManager::create()->loadConfig(); + $ipServer = $config['ipserver'] ?? 'localhost'; + $apiUrl = "https://$ipServer/crm/api/v1.0/"; + + $client = new Client([ + 'base_uri' => $apiUrl, + 'verify' => false, + ]); + + $this->ucrmApi = new UcrmApi($client, $config['apitoken'] ?? ''); + } + + public function verifyPaymentActionToDo(NotificationData $notificationData): void + { + $arrayPhones = $this->clientPhoneNumber->getUcrmClientNumbers($notificationData, null); + foreach ($arrayPhones as $type => $phones) { + $type = trim(strtolower($type)); + if (!is_array($phones)) continue; + foreach ($phones as $phone) { + switch ($type) { + case 'whatsapp': + $this->notifyAndUpdate($notificationData, $phone); + break; + case 'whatsnotifica': + $this->notify($notificationData, $phone); + break; + case 'whatsactualiza': + $this->onlyUpdate($notificationData, $phone); + break; + } + } + } + } + + public function verifyClientActionToDo(NotificationData $notificationData): void + { + $arrayPhones = $this->clientPhoneNumber->getUcrmClientNumbers($notificationData, null); + foreach ($arrayPhones as $type => $phones) { + $type = trim(strtolower($type)); + if (!is_array($phones)) continue; + foreach ($phones as $phone) { + if ($type === 'whatsapp' || $type === 'whatsactualiza') $this->onlyUpdate($notificationData, $phone); + } + } + } + + public function verifyServiceActionToDo(NotificationData $notificationData): void + { + $arrayPhones = $this->clientPhoneNumber->getUcrmClientNumbers($notificationData, null); + foreach ($arrayPhones as $type => $phones) { + $type = trim(strtolower($type)); + if (!is_array($phones)) continue; + foreach ($phones as $phone) { + if ($type === 'whatsapp' || $type === 'whatsactualiza') $this->onlyUpdateService($notificationData, $phone); + } + } + } + + public function verifyJobActionToDo($jsonNotificationData, $reprogramming = null, $changeInstaller = null): void + { + $this->logger->info('Iniciando verifyJobActionToDo'); + $clientId = $jsonNotificationData['extraData']['entity']['clientId']; + $installerId = $jsonNotificationData['extraData']['entity']['assignedUserId']; + $jobId = $jsonNotificationData['entityId']; + + $dateString = $jsonNotificationData['extraData']['entity']['date'] ?? null; + $formattedDate = $dateString ? sprintf("*%s*", (new DateTime($dateString))->format('d/m/Y')) : ''; + + $config = PluginConfigManager::create()->loadConfig(); + $admin = $this->ucrmApi->get("users/admins/$installerId", []); + $installerName = trim(($admin['firstName'] ?? '') . ' ' . ($admin['lastName'] ?? '')); + + $installerWhatsApp = ''; + $installers = json_decode($config['installersDataWhatsApp'] ?? '{"instaladores":[]}', true); + foreach ($installers['instaladores'] as $inst) { + if ($inst['id'] == $installerId) { + $installerWhatsApp = $inst['whatsapp']; + break; + } + } + + if (empty($installerWhatsApp)) $this->logger->warning("No se encontró número de WhatsApp para el instalador ID: $installerId"); + + $clientCRM = $this->ucrmApi->get("clients/$clientId", []); + $clientName = trim(($clientCRM['firstName'] ?? '') . ' ' . ($clientCRM['lastName'] ?? '')); + $passCRM = ''; + foreach ($clientCRM['attributes'] as $attr) { + if ($attr['key'] === 'passwordAntenaCliente') { + $passCRM = $attr['value']; + break; + } + } + + $allPhones = $this->clientPhoneNumber->getAllUcrmClientNumbers($clientCRM); + $phonesStr = implode(', ', array_map(fn($n) => $this->validarNumeroTelefono($n), $allPhones)); + + $api = new ClientCallBellAPI($config['apitoken'], $config['ipserver'], $config['tokencallbell']); + + $title = $jsonNotificationData['extraData']['entity']['title'] ?? ''; + $isPending = (stripos($title, '[NOTIFICACION-PENDIENTE]') !== false); + $isNoWhatsApp = (stripos($title, '[CLIENTE-SIN-WHATSAPP]') !== false); + + $reprogramming = filter_var($reprogramming, FILTER_VALIDATE_BOOLEAN); + $changeInstaller = filter_var($changeInstaller, FILTER_VALIDATE_BOOLEAN); + + $clientPhones = $this->clientPhoneNumber->getUcrmClientNumbers(null, $clientCRM); + $hasClientWhatsApp = false; + foreach ($clientPhones as $type => $phones) { + $type = trim(strtolower($type)); + if (($type === 'whatsapp' || $type === 'whatsnotifica') && !empty($phones)) { + $hasClientWhatsApp = true; + break; + } + } + + $shouldNotifyTech = ($isPending || $reprogramming || $changeInstaller); + $shouldNotifyClient = ($isPending || $isNoWhatsApp || $reprogramming || $changeInstaller); + + // 1. Notificar al Instalador Anterior (Desasignación) + if ($changeInstaller) { + $prevId = $jsonNotificationData['extraData']['entityBeforeEdit']['assignedUserId']; + $prevAdmin = $this->ucrmApi->get("users/admins/$prevId", []); + $prevWhatsApp = ''; + foreach ($installers['instaladores'] as $inst) { + if ($inst['id'] == $prevId) { + $prevWhatsApp = $inst['whatsapp']; + break; + } + } + if ($prevWhatsApp) { + $api->sendJobNotificationWhatsAppToInstaller($this->validarNumeroTelefono($prevWhatsApp), [ + "installerName" => "👷🏻‍♂️" . trim(($prevAdmin['firstName'] ?? '') . ' ' . ($prevAdmin['lastName'] ?? '')), + "subjectOfChange" => self::SUBJECT_OF_INSTALLER_CHANGE[1], + "jobId" => $jobId, + "clientFullName" => "[$clientId] $clientName", + "additionalChangeData" => self::ADDITIONAL_CHANGE_DATA[1] . ' *' . $installerName . '*', + ], $reprogramming, $changeInstaller); + sleep(1); + } + } + + // 2. Notificar al Cliente (si aplica) + $clientNotified = false; + if ($shouldNotifyClient && $hasClientWhatsApp) { + foreach ($clientPhones as $type => $phones) { + $type = trim(strtolower($type)); + if (!is_array($phones) || ($type !== 'whatsapp' && $type !== 'whatsnotifica')) continue; + foreach ($phones as $phone) { + if ($api->sendJobNotificationWhatsAppToClient($this->validarNumeroTelefono($phone), ["clientFullName" => $clientName, "jobId" => $jobId, "date" => $formattedDate, "installerName" => $installerName], $reprogramming, $changeInstaller)) { + $clientNotified = true; + } + } + } + } + + // 2. Notificar al Técnico (si aplica) + if ($shouldNotifyTech) { + $passVault = $this->getVaultCredentialsByClientId($clientId); + $api->sendJobNotificationWhatsAppToInstaller($this->validarNumeroTelefono($installerWhatsApp), [ + "installerName" => $installerName, + "clientFullName" => "$clientName [ID:$clientId]", + "jobId" => $jobId, + "clientAddress" => $clientCRM['fullAddress'] ?? 'N/A', + "clientWhatsApp" => !empty($phonesStr) ? $phonesStr : 'Sin WhatsApp', + "date" => $formattedDate, + "jobDescription" => $jsonNotificationData['extraData']['entity']['description'] ?? 'S/D', + "gmapsLocation" => ($clientCRM['addressGpsLat'] && $clientCRM['addressGpsLon']) ? "https://www.google.com/maps?q={$clientCRM['addressGpsLat']},{$clientCRM['addressGpsLon']}" : 'N/A', + "passwordAntenaCliente" => $this->comparePasswords($passCRM, $passVault) + ], $reprogramming, false); + } + + // 3. Gestión del Título / Prefijos + if ($isPending) { + if ($clientNotified || $reprogramming || $changeInstaller) { + $newTitle = str_ireplace('[NOTIFICACION-PENDIENTE]', '', $title); + $this->ucrmApi->patch("scheduling/jobs/$jobId", ['title' => trim($newTitle)]); + } else if (!$hasClientWhatsApp) { + $newTitle = str_ireplace('[NOTIFICACION-PENDIENTE]', '[CLIENTE-SIN-WHATSAPP]', $title); + $this->ucrmApi->patch("scheduling/jobs/$jobId", ['title' => trim($newTitle)]); + } + } else if ($isNoWhatsApp && ($clientNotified || $reprogramming || $changeInstaller)) { + $newTitle = str_ireplace('[CLIENTE-SIN-WHATSAPP]', '', $title); + $this->ucrmApi->patch("scheduling/jobs/$jobId", ['title' => trim($newTitle)]); + } + } + + public function verifyInvoiceActionToDo(NotificationData $notificationData): void + { + $arrayPhones = $this->clientPhoneNumber->getUcrmClientNumbers($notificationData, null); + foreach ($arrayPhones as $type => $phones) { + $type = trim(strtolower($type)); + if (!is_array($phones)) continue; + foreach ($phones as $phone) { + if ($type === 'whatsapp' || $type === 'whatsactualiza') $this->onlyUpdate($notificationData, $phone, false); + } + } + } + + public function notify(NotificationData $notificationData, $phoneToNotify = null): void + { + $config = PluginConfigManager::create()->loadConfig(); + $api = new ClientCallBellAPI($config['apitoken'], $config['ipserver'], $config['tokencallbell']); + $phone = $this->validarNumeroTelefono($phoneToNotify); + if (!$phone) return; + if ($config['notificationTypeText'] ?? false) $api->sendTextPaymentNotificationWhatsApp($phone, $notificationData); + else $api->sendPaymentNotificationWhatsApp($phone, $notificationData); + } + + public function notifyAndUpdate(NotificationData $notificationData, $phoneToNotifyAndUpdate = null): void + { + $config = PluginConfigManager::create()->loadConfig(); + $api = new ClientCallBellAPI($config['apitoken'], $config['ipserver'], $config['tokencallbell']); + $phone = $this->validarNumeroTelefono($phoneToNotifyAndUpdate); + if (!$phone) return; + if ($config['notificationTypeText'] ?? false) { + if ($api->sendTextPaymentNotificationWhatsApp($phone, $notificationData)) { + $contact = json_decode($api->getContactWhatsapp($phone), true); + if ($contact) $api->patchWhatsapp($contact, $notificationData); + } + } else { + if ($api->sendPaymentNotificationWhatsApp($phone, $notificationData)) { + $contact = json_decode($api->getContactWhatsapp($phone), true); + if ($contact) $api->patchWhatsapp($contact, $notificationData); + } + } + } + + public function notifyOverDue(NotificationData $notificationData): void + { + $config = PluginConfigManager::create()->loadConfig(); + $api = new ClientCallBellAPI($config['apitoken'], $config['ipserver'], $config['tokencallbell']); + $phone = $this->clientPhoneNumber->getUcrmClientNumber($notificationData); + if ($phone) $api->sendOverdueNotificationWhatsApp($phone, $notificationData); + } + + public function onlyUpdate(NotificationData $notificationData, $phoneToUpdate): void + { + $this->logger->debug("onlyUpdate: Iniciando actualización para teléfono: $phoneToUpdate"); + $config = PluginConfigManager::create()->loadConfig(); + $api = new ClientCallBellAPI($config['apitoken'], $config['ipserver'], $config['tokencallbell']); + $phone = $this->validarNumeroTelefono($phoneToUpdate); + $this->logger->debug("onlyUpdate: Teléfono validado: $phone"); + $contact = json_decode($api->getContactWhatsapp($phone), true); + $this->logger->debug("onlyUpdate: Contacto obtenido de CallBell: " . json_encode($contact)); + if ($contact) { + $this->logger->info("onlyUpdate: Ejecutando patchWhatsapp para teléfono: $phone"); + $api->patchWhatsapp($contact, $notificationData); + } else { + $this->logger->warning("onlyUpdate: No se encontró contacto en CallBell para teléfono: $phone"); + } + } + + public function onlyUpdateService(NotificationData $notificationData, $phoneToUpdate): void + { + $config = PluginConfigManager::create()->loadConfig(); + $api = new ClientCallBellAPI($config['apitoken'], $config['ipserver'], $config['tokencallbell']); + $phone = $this->validarNumeroTelefono($phoneToUpdate); + $contact = json_decode($api->getContactWhatsapp($phone), true); + if ($contact) $api->patchServiceStatusWhatsApp($contact, $notificationData); + } + + protected function getVaultCredentialsByClientId($clientId): string + { + $config = PluginConfigManager::create()->loadConfig(); + $ipServer = $config['ipserver'] ?? ''; + $crm = new Client(['base_uri' => "https://{$ipServer}/crm/api/v1.0/", 'verify' => false]); + + try { + // OPT: Lazy Check - Si ya tiene pass válido en CRM, no hace falta procesar nada + $respClient = $crm->get("clients/$clientId", ['headers' => ['X-Auth-Token' => $config['apitoken']]]); + $clientData = json_decode($respClient->getBody()->getContents(), true); + $passCRM = ''; + if (isset($clientData['attributes'])) { + foreach ($clientData['attributes'] as $attr) { + if ($attr['key'] === 'passwordAntenaCliente') { + $passCRM = $attr['value'] ?? ''; + break; + } + } + } + + // Si el campo no está vacío y no tiene advertencias, usamos el actual para ahorrar recursos + if (!empty($passCRM) && strpos($passCRM, '⚠️') === false) { + return $passCRM; + } + + // 1. Obtener los servicios del cliente + $respSvc = $crm->get('clients/services?clientId=' . $clientId, [ + 'headers' => ['X-Auth-Token' => $config['apitoken']] + ]); + $svcs = json_decode($respSvc->getBody()->getContents(), true); + + if (empty($svcs)) { + $msg = '⚠️ Cliente sin servicios/antenas'; + $this->syncPasswordWithCrm((int)$clientId, $msg); + return $msg; + } + + $unms = new Client(['base_uri' => "https://{$ipServer}/nms/api/v2.1/", 'verify' => false]); + $allServicePasswords = []; + $isTestEnv = ($ipServer === '172.16.5.134' || $ipServer === 'pruebas.internet.mx' || $ipServer === 'venus.siip.mx'); + + $numServices = count($svcs); + foreach ($svcs as $index => $svc) { + $label = ($numServices > 1) ? "Servicio " . ($index + 1) . ":" : ""; + $siteId = $svc['unmsClientSiteId'] ?? null; + $passwordValue = ""; + + if (!$siteId) { + $passwordValue = "⚠️ Sin sitio"; + } else { + if ($isTestEnv) { + // Lógica de bypass: intentar recuperar de la cadena existente + $foundInCRM = false; + if (!empty($passCRM)) { + if ($numServices > 1) { + if (preg_match('/Servicio ' . ($index + 1) . ':\s*([^⚠️\s]+)/', $passCRM, $matches)) { + $passwordValue = $matches[1]; + $foundInCRM = true; + } + } else { + // Caso de un solo servicio: si no tiene advertencias ni etiquetas, la tomamos a secas + if (strpos($passCRM, '⚠️') === false && strpos($passCRM, 'Servicio') === false) { + $passwordValue = trim($passCRM); + $foundInCRM = true; + } + } + } + + if (!$foundInCRM) { + $passwordValue = $this->generateStrongPassword(16); + } + } else { + // Lógica de producción + try { + $respDev = $unms->get("devices?siteId=$siteId", [ + 'headers' => ['X-Auth-Token' => $config['unmsApiToken']] + ]); + $devs = json_decode($respDev->getBody()->getContents(), true); + + if (empty($devs)) { + $passwordValue = "⚠️ Sin antena"; + } else { + $passVault = null; + $firstDeviceId = null; + foreach ($devs as $dev) { + $deviceId = $dev['identification']['id'] ?? null; + if (!$deviceId) continue; + if (!$firstDeviceId) $firstDeviceId = $deviceId; + try { + $respVault = $unms->get("vault/$deviceId/credentials", [ + 'headers' => ['X-Auth-Token' => $config['unmsApiToken']] + ]); + $vault = json_decode($respVault->getBody()->getContents(), true); + if (isset($vault['credentials'][0]['password'])) { + $passVault = $vault['credentials'][0]['password']; + break; + } + } catch (\Exception $e) { + continue; + } + } + + if ($passVault) { + $passwordValue = $passVault; + } else if ($firstDeviceId) { + // Regenerar + $newPass = $this->generateStrongPassword(16); + try { + $unms->post("vault/$firstDeviceId/credentials/regenerate", [ + 'headers' => ['X-Auth-Token' => $config['unmsApiToken']], + 'json' => [['username' => 'ubnt', 'password' => $newPass, 'readOnly' => true]] + ]); + $passwordValue = $newPass; + } catch (\Exception $e) { + $passwordValue = $newPass; + } + } else { + $passwordValue = "⚠️ Sin antena"; + } + } + } catch (\Exception $e) { + $passwordValue = "⚠️ Error API"; + } + } + } + $allServicePasswords[] = trim("$label $passwordValue"); + } + + $finalValue = implode(' ', $allServicePasswords); + + // Evitar sincronización redundante + if ($finalValue === $passCRM) { + return $finalValue; + } + + $this->syncPasswordWithCrm((int)$clientId, $finalValue); + return $finalValue; + } catch (\Exception $e) { + $this->logger->error("Error en getVaultCredentialsByClientId: " . $e->getMessage()); + return 'Error: ' . $e->getMessage(); + } + } + + private function syncPasswordWithCrm(int $clientId, string $passVault): void + { + $config = PluginConfigManager::create()->loadConfig(); + $crm = new Client(['base_uri' => "https://{$config['ipserver']}/crm/api/v1.0/", 'verify' => false]); + try { + $respClient = $crm->get("clients/$clientId", [ + 'headers' => ['X-Auth-Token' => $config['apitoken']] + ]); + $clientData = json_decode($respClient->getBody()->getContents(), true); + $passCRM = ''; + $attributeId = 17; + if (isset($clientData['attributes'])) { + foreach ($clientData['attributes'] as $attr) { + if ($attr['key'] === 'passwordAntenaCliente') { + $passCRM = $attr['value'] ?? ''; + $attributeId = $attr['customAttributeId']; + break; + } + } + } + if (empty($passCRM) || $passCRM !== $passVault) { + $this->logger->info("Sincronizando pass CRM cliente $clientId."); + $this->patchClientCustomAttribute($clientId, (int)$attributeId, $passVault); + } + } catch (\Exception $e) { + $this->logger->warning("Fallo sincronización pass CRM: " . $e->getMessage()); + } + } + + protected function generateStrongPassword(int $length = 16): string + { + $lower = 'abcdefghijkmnopqrstuvwxyz'; // Eliminamos 'l' + $upper = 'ABCDEFGHJKLMNPQRSTUVWXYZ'; // Eliminamos 'I', 'O' + $digits = '23456789'; // Eliminamos '1', '0' + $symbols = '@#'; // Solo símbolos amigables para impresoras térmicas + + $all = $lower . $upper . $digits . $symbols; + $pwChars = []; + + // Asegurar que tenga al menos uno de cada tipo si es posible + $pwChars[] = $lower[random_int(0, strlen($lower) - 1)]; + $pwChars[] = $upper[random_int(0, strlen($upper) - 1)]; + $pwChars[] = $digits[random_int(0, strlen($digits) - 1)]; + $pwChars[] = $symbols[random_int(0, strlen($symbols) - 1)]; + + for ($i = count($pwChars); $i < $length; $i++) { + $pwChars[] = $all[random_int(0, strlen($all) - 1)]; + } + + // Mezclar Fisher-Yates + $n = count($pwChars); + for ($i = $n - 1; $i > 0; $i--) { + $j = random_int(0, $i); + $tmp = $pwChars[$i]; + $pwChars[$i] = $pwChars[$j]; + $pwChars[$j] = $tmp; + } + + return implode('', $pwChars); + } + + protected function patchClientCustomAttribute(int $clientId, int $attributeId, string $value): bool + { + $config = PluginConfigManager::create()->loadConfig(); + $crm = new Client(['base_uri' => "https://{$config['ipserver']}/crm/api/v1.0/", 'verify' => false]); + try { + $crm->patch("clients/$clientId", [ + 'headers' => ['X-Auth-Token' => $config['apitoken']], + 'json' => [ + "attributes" => [['value' => $value, 'customAttributeId' => $attributeId]] + ] + ]); + return true; + } catch (\Exception $e) { + $this->logger->error("Error patching custom attribute for client $clientId: " . $e->getMessage()); + return false; + } + } + + protected function comparePasswords(?string $crm, ?string $vault): string + { + if ($vault && strpos($vault, 'Error') !== 0) return $vault; + if ($crm && strpos($crm, 'Error') !== 0) return $crm; + return '⚠️ Probar pass conocida.'; + } + + protected function validarNumeroTelefono($n): string + { + if (!$n) return ''; + $n = preg_replace('/\D/', '', (string)$n); + return (strlen($n) === 10) ? '52' . $n : $n; + } + + abstract protected function sendWhatsApp(NotificationData $notificationData, string $clientSmsNumber): void; +} diff --git a/siip_full_structure/src/Facade/ClientCallBellAPI.php b/siip_full_structure/src/Facade/ClientCallBellAPI.php new file mode 100644 index 00000000..140751ac --- /dev/null +++ b/siip_full_structure/src/Facade/ClientCallBellAPI.php @@ -0,0 +1,1460 @@ +UCRMAPIToken = $UCRMAPIToken; + $this->IPServer = $IPServer; + $this->CallBellAPIToken = $CallBellAPIToken; + } + + public function updateContact($client_uuid) {} + + public function printPrueba($clientWhatsAppNumber, $notificationData) + { + $log = PluginLogManager::create(); //Initialize Logger + $log->appendLog("Ejecutando metodo print prueba: " . $clientWhatsAppNumber); + // $logger = new Logger(); + // $logger->debug('Ejecutando metodo print prueba con Logger'); + } + + public function sendMessageWhatsApp($clientWhatsAppNumber, $notificationData) + { + + $log = PluginLogManager::create(); //Initialize Logger + $log->appendLog("Entrando al metodo sendMessageWhatsApp" . PHP_EOL); + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, 'https://api.callbell.eu/v1/messages/send'); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); + curl_setopt($ch, CURLOPT_HTTPHEADER, [ + 'Authorization: Bearer g8thcZkXGd3xBj2g3TtYNYFMH1fuesbJ.b6a940ea7d78cf6c9e42f067b21c8ddf96e9fa2a9e307bfd0c7c7c4d7fa38f79', + 'Content-Type: application/json', + ]); + + // $jsonString = json_encode($notificationData); + // $log->appendLog($jsonString); + + $campo1 = sprintf("😀 *%s %s*", $notificationData->clientData['firstName'], $notificationData->clientData['lastName']); + $log->appendLog("Valor del campo1: " . $campo1); + $estado_service = ($notificationData->clientData['hasSuspendedService']) ? 'Suspendido 🔴' : 'Activo 🟢'; + $log->appendLog("Valor del estado_service: " . $estado_service); + $domicilio = ($notificationData->clientData['fullAddress'] == null) ? 'Sin domicilio' : $notificationData->clientData['fullAddress']; + $log->appendLog("Valor del domicilio: " . $domicilio); + $campo2 = sprintf("📡 Su servicio está: %s 📍Su dirección es: *%s* ", $estado_service, $domicilio); + $log->appendLog("Valor del campo2 " . $campo2); + + $curl_string = "{\n \"to\": \"$clientWhatsAppNumber\",\n \"from\": \"whatsapp\",\n \"type\": \"text\",\n \"content\": {\n \"text\": \"S/M\"\n },\n \"template_values\": [\"$campo1\", \"$campo2\"],\n \"template_uuid\": \"55705f1fe4e24bab80104dc2643fe11c\",\n \"optin_contact\": true\n }"; + $log->appendLog("La cadena CURL que se envia es: " . $curl_string); + curl_setopt($ch, CURLOPT_POSTFIELDS, $curl_string); + + $response = curl_exec($ch); + $log->appendLog("Response del CallBell: " . $response); + + curl_close($ch); + } + + public function sendJobNotificationWhatsAppToClient($clientWhatsAppNumber, $jobNotificationData, $reprogramming, $changeInstaller): bool + { + + $log = PluginLogManager::create(); //Initialize Logger + $log->appendLog("Enviando mensaje de trabajo para el cliente" . PHP_EOL); + $jsonJobNotificationData = json_encode($jobNotificationData, true); + $log->appendLog("Datos de la notificación de trabajo: " . $jsonJobNotificationData . PHP_EOL); + + // --- ¡AÑADE ESTAS LÍNEAS PARA CONVERTIR A BOOLEANO REAL! --- + $reprogramming = filter_var($reprogramming, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE); + $changeInstaller = filter_var($changeInstaller, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE); + // ----------------------------------------------------------- + + // Puedes volver a loggear los valores para confirmar la conversión (opcional) + $log->appendLog("DEBUG: Valores después de conversión - Reprogramming: " . var_export($reprogramming, true) . ", ChangeInstaller: " . var_export($changeInstaller, true) . PHP_EOL); + + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, 'https://api.callbell.eu/v1/messages/send'); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); + curl_setopt($ch, CURLOPT_HTTPHEADER, [ + 'Authorization: Bearer ' . $this->CallBellAPIToken, + 'Content-Type: application/json', + ]); + + $campo1 = '👤 ' . sprintf(' *%s*', $jobNotificationData['clientFullName']); + if ($changeInstaller && !$reprogramming) { + $campo2 = sprintf('se ha hecho un cambio de técnico 👷🏻‍♂️🔄 para su visita con el folio *#️⃣%s*', $jobNotificationData['jobId']); + } else { + $campo2 = sprintf('*#️⃣%s*', $jobNotificationData['jobId']); + } + $campo3 = '🗓️ ' . sprintf('%s', $jobNotificationData['date']); + if ($changeInstaller && $reprogramming) { + $campo4 = 'Además se ha hecho un cambio de técnico por el siguiente 👷🏻‍♂️➡️ ' . sprintf('*%s*', $jobNotificationData['installerName']); + } else { + $campo4 = '👷🏻‍♂️➡️ ' . sprintf('*%s*', $jobNotificationData['installerName']); + } + + $campo5 = "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."; + + $log->appendLog("DEBUG: Valores antes de la estructura IF - Reprogramming: " . var_export($reprogramming, true) . ", ChangeInstaller: " . var_export($changeInstaller, true) . PHP_EOL); + + if ($reprogramming && !$changeInstaller) { + //{{1}}, se ha reprogramado su visita técnica con el folio {{2}} + + $campo3 = '🗓️➡️ ' . sprintf('%s', $jobNotificationData['date']); + $campo1_combinado = "Estimado cliente $campo1 se ha reprogramado su visita técnica con folio $campo2"; + + // Case: true, false + //Enviar notificación de reprogramación al cliente + $log->appendLog("Enviando notificación de reprogramación al cliente, valor de reprogramming $reprogramming y valor de changeInstaller $changeInstaller " . PHP_EOL); + $curl_string = "{\n \"to\": \"$clientWhatsAppNumber\",\n \"from\": \"whatsapp\",\n \"type\": \"text\",\n \"content\": {\n \"text\": \"S/M\"\n },\n \"template_values\": [\"$campo1_combinado\", \"$campo3\", \"$campo4\", \"$campo5\"],\n \"template_uuid\": \"715eed9d6f2d4d90853f25e296202e00\",\n \"optin_contact\": true\n }"; + } else if (!$reprogramming && $changeInstaller) { + // Case: false, true + //Enviar notificación de cambio de instalador + $log->appendLog("Enviando notificación de cambio de instalador al cliente, valor de reprogramming $reprogramming y valor de changeInstaller $changeInstaller " . PHP_EOL); + $curl_string = "{\n \"to\": \"$clientWhatsAppNumber\",\n \"from\": \"whatsapp\",\n \"type\": \"text\",\n \"content\": {\n \"text\": \"S/M\"\n },\n \"template_values\": [\"$campo1\", \"$campo2\", \"$campo3\", \"$campo4\", \"$campo5\"],\n \"template_uuid\": \"d684e6fa2ba24593a86c98be1815831d\",\n \"optin_contact\": true\n }"; + } else if (!$reprogramming && !$changeInstaller) { // <--- Ahora este else if está correctamente encadenado + // Case: false, false + //Enviar notificación normal de visita técnica al cliente + $log->appendLog("Enviando notificación normal de visita técnica al cliente, valor de reprogramming $reprogramming y valor de changeInstaller $changeInstaller " . PHP_EOL); + $curl_string = "{\n \"to\": \"$clientWhatsAppNumber\",\n \"from\": \"whatsapp\",\n \"type\": \"text\",\n \"content\": {\n \"text\": \"S/M\"\n },\n \"template_values\": [\"$campo1\", \"$campo2\", \"$campo3\", \"$campo4\", \"$campo5\"],\n \"template_uuid\": \"07cfbc6e394044608485b530a27177d0\",\n \"optin_contact\": true\n }"; + } else if ($reprogramming && $changeInstaller) { // <--- Ahora este else if está correctamente encadenado + // Case: true, true + //Enviar notificación de cambio de instalador y reprogramación al cliente + $log->appendLog("Enviando notificación de cambio de instalador y reprogramación al cliente, valor de reprogramming $reprogramming y valor de changeInstaller $changeInstaller " . PHP_EOL); + $curl_string = "{\n \"to\": \"$clientWhatsAppNumber\",\n \"from\": \"whatsapp\",\n \"type\": \"text\",\n \"content\": {\n \"text\": \"S/M\"\n },\n \"template_values\": [\"$campo1\", \"$campo2\", \"$campo3\", \"$campo4\", \"$campo5\"],\n \"template_uuid\": \"145885d15323414f978f1e3f249c2ae1\",\n \"optin_contact\": true\n }"; + } else { + // Case: true, true (la única combinación restante con booleanos) + $log->appendLog("No se encontró una opción válida para enviar la notificación (reprogramming y changeInstaller son true)." . PHP_EOL); + // Decide qué hacer aquí, ¿Quizás devolver false? ¿O manejar esta combinación? + return false; // O el manejo adecuado para true/true + } + + $log->appendLog("La cadena CURL que se envia es: " . $curl_string); + curl_setopt($ch, CURLOPT_POSTFIELDS, $curl_string); + + $response = curl_exec($ch); + $log->appendLog("Response del CallBell: " . $response); + + curl_close($ch); + + // Validar la respuesta de Callbell + $jsonResponse = json_decode($response, true); + + if (json_last_error() === JSON_ERROR_NONE) { + // Evaluar si contiene "message" con "status": "enqueued" + if (isset($jsonResponse['message']) && $jsonResponse['message']['status'] === 'enqueued') { + $log->appendLog("La notificación fue enviada correctamente con estado: enqueued" . PHP_EOL); + return true; + } + + // Evaluar si contiene "error" + if (isset($jsonResponse['error'])) { + $log->appendLog("Error al enviar la notificación: " . json_encode($jsonResponse['error']) . PHP_EOL); + return false; + } + } else { + // Manejo de error en caso de que la respuesta no sea un JSON válido + $log->appendLog("La respuesta no es un JSON válido." . PHP_EOL); + return false; + } + + // Valor de retorno predeterminado en caso de que ninguna condición se cumpla + $log->appendLog("Ruta no prevista en la función." . PHP_EOL); + return false; + } + + public function sendJobNotificationWhatsAppToInstaller($installerWhatsAppNumber, $jobInstallerNotificationData, $reprogramming, $changeInstaller): bool + { + + $log = PluginLogManager::create(); //Initialize Logger + $log->appendLog("Enviando mensaje de tarea al instalador" . PHP_EOL); + $jsonJobNotificationData = json_encode($jobInstallerNotificationData, true); + $log->appendLog("Datos de la notificación de tarea: " . $jsonJobNotificationData . PHP_EOL); + + // --- ¡AÑADE ESTAS LÍNEAS PARA CONVERTIR A BOOLEANO REAL! --- + $reprogramming = filter_var($reprogramming, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE); + $changeInstaller = filter_var($changeInstaller, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE); + // ----------------------------------------------------------- + + // Puedes volver a loggear los valores para confirmar la conversión (opcional) + $log->appendLog("DEBUG: Valores después de conversión - Reprogramming: " . var_export($reprogramming, true) . ", ChangeInstaller: " . var_export($changeInstaller, true) . PHP_EOL); + + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, 'https://api.callbell.eu/v1/messages/send'); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); + curl_setopt($ch, CURLOPT_HTTPHEADER, [ + 'Authorization: Bearer ' . $this->CallBellAPIToken, + 'Content-Type: application/json', + ]); + + + if (!$reprogramming && $changeInstaller) { + $campo1 = $jobInstallerNotificationData['installerName']; + $campo2 = $jobInstallerNotificationData['subjectOfChange']; + $campo3 = sprintf("#️⃣%s", $jobInstallerNotificationData['jobId']); + $campo4 = sprintf('*👤%s* ', $jobInstallerNotificationData['clientFullName']); + $campo5 = $jobInstallerNotificationData['additionalChangeData']; + } else { + $campo1 = '👷🏻‍♂️ ' . $jobInstallerNotificationData['installerName']; + $campo2 = sprintf("#️⃣%s", $jobInstallerNotificationData['jobId']); + $campo3 = '👤 *' . $jobInstallerNotificationData['clientFullName'] . '*'; + // $campo4 = $jobInstallerNotificationData['clientAddress']; + $campo4 = '☎️ ' . $jobInstallerNotificationData['clientWhatsApp']; + $campo5 = '🗓️ ' . $jobInstallerNotificationData['date']; + // $campo6 = '🛠️ ' . $jobInstallerNotificationData['jobDescription']; + // $campo7 = '📌 ' . $jobInstallerNotificationData['gmapsLocation']; + // $campo8 = '🔐 ' . $passwordAntenaCliente; + } + + if ($reprogramming && !$changeInstaller) { + $jobId = sprintf("#️⃣ *%s*", $jobInstallerNotificationData['jobId']); + $clientFullName = sprintf("👤 *%s*", $jobInstallerNotificationData['clientFullName']); + $date = sprintf("🗓️➡️ %s", $jobInstallerNotificationData['date']); + $installerName = sprintf("👷🏻‍♂️ *%s*", $jobInstallerNotificationData['installerName']); + + $campo1_combinado = "$installerName se reprogramó una tarea con el folio $jobId para el cliente $clientFullName, la nueva fecha será el $date"; + $campo2 = $jobInstallerNotificationData['clientWhatsApp']; + $campo3 = $jobInstallerNotificationData['gmapsLocation']; + $campo4 = $jobInstallerNotificationData['passwordAntenaCliente']; + + //Enviar notificación de reprogramación + $log->appendLog("Enviando notificación de reprogramación al instalador, 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_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 (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 + $log->appendLog("Enviando notificación de cambio de instalador al instalador y notificación de reprogramación al instalador, 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) { + + //combinar el campo3, campo4, campo5, campo6, campo7 y campo8 en un solo campo con saltos de línea + $jobId = sprintf("#️⃣ *%s*", $jobInstallerNotificationData['jobId']); + $clientFullName = sprintf("👤 *%s*", $jobInstallerNotificationData['clientFullName']); + $date = sprintf("🗓️ %s", $jobInstallerNotificationData['date']); + $installerName = sprintf("👷🏻‍♂️ *%s*", $jobInstallerNotificationData['installerName']); + + $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 = $jobInstallerNotificationData['passwordAntenaCliente']; + + $log->appendLog("Enviando notificación normal de tarea al instalador, 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_combinado\", \"$campo2\", \"$campo3\", \"$campo4\"],\n \"template_uuid\": \"88eeb6420a214fd8870dd28d741021c4\",\n \"optin_contact\": true\n }"; + } + + $log->appendLog("La cadena CURL que se envia es: " . $curl_string); + curl_setopt($ch, CURLOPT_POSTFIELDS, $curl_string); + + $response = curl_exec($ch); + $log->appendLog("Response del CallBell: " . $response); + + curl_close($ch); + + + + + // Validar la respuesta de Callbell + $jsonResponse = json_decode($response, true); + + if (json_last_error() === JSON_ERROR_NONE) { + // Evaluar si contiene "message" con "status": "enqueued" + if (isset($jsonResponse['message']) && $jsonResponse['message']['status'] === 'enqueued') { + $log->appendLog("La notificación fue enviada correctamente con estado: enqueued" . PHP_EOL); + return true; + } + + // Evaluar si contiene "error" + if (isset($jsonResponse['error'])) { + $log->appendLog("Error al enviar la notificación: " . json_encode($jsonResponse['error']) . PHP_EOL); + return false; + } + } else { + // Manejo de error en caso de que la respuesta no sea un JSON válido + $log->appendLog("La respuesta no es un JSON válido." . PHP_EOL); + return false; + } + + // Valor de retorno predeterminado en caso de que ninguna condición se cumpla + $log->appendLog("Ruta no prevista en la función." . PHP_EOL); + return false; + } + + public function sendPaymentNotificationWhatsApp($clientWhatsAppNumber, $notificationData): bool + { + + $log = PluginLogManager::create(); //Initialize Logger + + $log->appendLog("Eviando comprobante de pago al cliente: " . $notificationData->clientData['id'] . ' con número: ' . $clientWhatsAppNumber . PHP_EOL); + + // URL base de la API + $baseUri = 'https://' . $this->IPServer . '/crm/api/v1.0/'; + // Token de autenticación + $token = $this->UCRMAPIToken; + //Path base del comprobante de pago + $pdf_payment_path = ''; + + $config = PluginConfigManager::create()->loadConfig(); + $gClient = new Client(['base_uri' => "https://{$this->IPServer}/crm/api/v1.0/", 'verify' => false]); + $this->ucrmApi = new UcrmApi($gClient, $this->UCRMAPIToken ?? ''); + $payment_id = $notificationData->paymentData['id']; + $payment_amount = '$' . $notificationData->paymentData['amount']; + + // We already have the payment data in $notificationData, no need to fetch 'payments/' again to get the ID. + // However, if we need the 'note' field for the overlay which might not be in notificationData (depending on richness), + // we should try to use what we have or fetch SPECIFICALLY this payment. + + // Let's verify if 'note' is in paymentData. Usually UCRM webhook payload has it. + // But to be safe and consistent with previous logic, if we need 'note', we can fetch THIS payment. + + // $payments = $this->ucrmApi->get('payments/'.$payment_id); // This would be better if we need details. + + // The previous code did: + // $payments = $this->ucrmApi->get('payments/', ['clientId' => ..., 'limit' => 1 ...]); + // $payment_id = $payments[0]['id']; <-- THIS WAS THE BUG. Always getting latest. + + // Fix: Use the ID passed in notificationData. + + // If we need the NOTE for the Overlay (OXXO/Transfer check later in code), we should ensure we have it. + // $notificationData->paymentData usually contains 'note'. + $note = $notificationData->paymentData['note'] ?? ''; + + // Let's keep $payments array structure if downstream code expects it, OR refactor downstream. + // Downstream uses $payments[0]['note']. + + // Let's just mock $payments[0] with our data OR fetch the correct single payment. + // Fetching single payment is safer to ensure we have the Note. + try { + $fetchedPayment = $this->ucrmApi->get('payments/' . $payment_id); + $payments = [$fetchedPayment]; + } catch (\Exception $e) { + // Fallback if fetch fails (unlikely if ID is valid) + $payments = [$notificationData->paymentData]; + } + + // $payment_id is already set above. + + $payment_amount = '$' . $payments[0]['amount']; + //$saldo = '$' . $notificationData->clientData['accountBalance']; + $nombre_cliente = sprintf("%s %s", $notificationData->clientData['firstName'], $notificationData->clientData['lastName']); + + $accountBalance = $notificationData->clientData['accountBalance']; + $saldoTexto = ''; + + if ($accountBalance < 0) { + // Si el saldo es negativo, quitar el signo y poner "Pendientes" + $saldoTexto = '$' . abs($accountBalance) . ' pendientes'; + } elseif ($accountBalance > 0) { + // Si el saldo es positivo, poner "a favor" + $saldoTexto = '$' . $accountBalance . ' a favor'; + } else { + // Si el saldo es 0, poner "está al corriente" + $saldoTexto = '$' . $accountBalance . ' está al corriente'; + } + + // Configuración del cliente GuzzleHttp + $clientGuzzleHttp = new Client([ + 'base_uri' => $baseUri, + 'headers' => [ + 'X-Auth-App-Key' => $token, // Cambia el nombre de la cabecera de autorización + 'Accept' => 'application/pdf', // Indica que esperamos una respuesta en formato JSON + ], + 'verify' => false, + ]); + + try { + // Hacer la solicitud GET para obtener el PDF + $response = $clientGuzzleHttp->request('GET', "payments/$payment_id/pdf"); + + // Leer el contenido del PDF de la respuesta + $contenidoArchivo = $response->getBody()->getContents(); + + // Construir el nombre del archivo PDF basado en el cliente + $unwanted_array = array( 'Š'=>'S', 'š'=>'s', 'Ž'=>'Z', 'ž'=>'z', 'À'=>'A', 'Á'=>'A', 'Â'=>'A', 'Ã'=>'A', 'Ä'=>'A', 'Å'=>'A', 'Æ'=>'A', 'Ç'=>'C', 'È'=>'E', 'É'=>'E', + 'Ê'=>'E', 'Ë'=>'E', 'Ì'=>'I', 'Í'=>'I', 'Î'=>'I', 'Ï'=>'I', 'Ñ'=>'N', 'Ò'=>'O', 'Ó'=>'O', 'Ô'=>'O', 'Õ'=>'O', 'Ö'=>'O', 'Ø'=>'O', 'Ù'=>'U', + 'Ú'=>'U', 'Û'=>'U', 'Ü'=>'U', 'Ý'=>'Y', 'Þ'=>'B', 'ß'=>'Ss', 'à'=>'a', 'á'=>'a', 'â'=>'a', 'ã'=>'a', 'ä'=>'a', 'å'=>'a', 'æ'=>'a', 'ç'=>'c', + 'è'=>'e', 'é'=>'e', 'ê'=>'e', 'ë'=>'e', 'ì'=>'i', 'í'=>'i', 'î'=>'i', 'ï'=>'i', 'ð'=>'o', 'ñ'=>'n', 'ò'=>'o', 'ó'=>'o', 'ô'=>'o', 'õ'=>'o', + 'ö'=>'o', 'ø'=>'o', 'ù'=>'u', 'ú'=>'u', 'û'=>'u', 'ü'=>'u', 'ý'=>'y', 'þ'=>'b', 'ÿ'=>'y' ); + $clean_name = strtr($nombre_cliente, $unwanted_array); + $clean_name = preg_replace('/[^A-Za-z0-9_\-]/', '', str_replace(' ', '_', $clean_name)); + + $fileNameComprobante = 'Comprobante_' . $clean_name . '.pdf'; + $rutaArchivo = __DIR__ . '/../../comprobantes/' . $fileNameComprobante; + + // Guardar el contenido del PDF en un archivo local + if (file_put_contents($rutaArchivo, $contenidoArchivo) !== false) { + $log->appendLog("El archivo PDF se ha descargado y guardado correctamente en: $rutaArchivo" . PHP_EOL); + } else { + $log->appendLog("Error al guardar el archivo PDF en la ruta: $rutaArchivo" . PHP_EOL); + return false; + } + + if (!file_exists($rutaArchivo)) { + $log->appendLog("El archivo PDF no existe: $rutaArchivo" . PHP_EOL); + return false; + } + + if (filesize($rutaArchivo) === 0) { + $log->appendLog("El archivo PDF está vacío: $rutaArchivo" . PHP_EOL); + return false; + } + + $log->appendLog("El archivo PDF es válido y tiene contenido: $rutaArchivo" . PHP_EOL); + $rutaImagen = __DIR__ . '/../../comprobantes/' . str_replace('.pdf', '.png', $fileNameComprobante); + } catch (\Exception $e) { + $log->appendLog("Error al manejar el comprobante de pago: " . $e->getMessage() . PHP_EOL); + return false; + } + + // --- NUEVO FLUJO: Microservicio PDF->IMG + MinIO --- + $url_file = ''; + $rutaImagen = str_replace('.pdf', '.jpg', $rutaArchivo); // Usamos .jpg para la salida del microservicio + + try { + // 1. Instanciar Logger y MinioService + $loggerService = new Logger(); // Servicio de Logging propio del namespace + $minioService = new MinioStorageService($loggerService); + + // 2. Configurar Microservicio + $ipMicroservice = $config['ipMicroservice'] ?? 'pdf-cropper-service'; + $portMicroservice = $config['portMicroservice'] ?? '8000'; + $microserviceUrl = "http://{$ipMicroservice}:{$portMicroservice}/process"; + + $log->appendLog("Procesando PDF con microservicio: $microserviceUrl" . PHP_EOL); + + // 2. DETECTAR METODO DE PAGO (Overlay) + $overlayText = ''; + $note = $payments[0]['note'] ?? ''; + + // Si la nota dice OXXO o Transferencia, preparamos el reemplazo + if (stripos($note, 'OXXO') !== false) { + $overlayText = 'OXXO Pay'; + } elseif (stripos($note, 'Transferencia') !== false) { + $overlayText = 'Transferencia Bancaria'; + } + + // Coordenadas APROXIMADAS para el template default de UCRM (Ajustar si es necesario) + // Asumiendo PDF a 200dpi (ancho ~1600px). + // "Método" suele estar alineado a la izquierda, valor a la derecha. + // X=500, Y=650 (ejemplo). W=800, H=40. + $overlayX = 450; + $overlayY = 665; // Ajustar probando + $overlayW = 1000; + $overlayH = 50; + + // 3. Llamar al Microservicio (PDF -> JPG) + $multipartData = [ + [ + 'name' => 'file', + 'contents' => fopen($rutaArchivo, 'r'), + 'filename' => basename($rutaArchivo) + ], + [ + 'name' => 'mode', + 'contents' => 'full' + ] + ]; + + if ($overlayText) { + $log->appendLog("Aplicando Overlay: $overlayText en ($overlayX, $overlayY)" . PHP_EOL); + $multipartData[] = ['name' => 'overlay_text', 'contents' => $overlayText]; + $multipartData[] = ['name' => 'overlay_x', 'contents' => (string)$overlayX]; + $multipartData[] = ['name' => 'overlay_y', 'contents' => (string)$overlayY]; + $multipartData[] = ['name' => 'overlay_w', 'contents' => (string)$overlayW]; + $multipartData[] = ['name' => 'overlay_h', 'contents' => (string)$overlayH]; + } + + $guzzleParams = [ + 'multipart' => $multipartData, + 'timeout' => 30 + ]; + + $httpClient = new Client(); + $responseMs = $httpClient->post($microserviceUrl, $guzzleParams); + + if ($responseMs->getStatusCode() === 200) { + $jpgContent = $responseMs->getBody()->getContents(); + if (file_put_contents($rutaImagen, $jpgContent) !== false) { + $log->appendLog("Imagen generada por microservicio guardada en: $rutaImagen" . PHP_EOL); + + // 4. Subir a MinIO + $fileNameComprobanteImage = str_replace('.jpg', '_' . time() . '.jpg', basename($rutaImagen)); + $url_file = $minioService->uploadFile($rutaImagen, $fileNameComprobanteImage); + + if ($url_file) { + $log->appendLog("Imagen subida a MinIO: $url_file" . PHP_EOL); + + // 5. LIMPIEZA AUTOMÁTICA (Consistencia con req. de usuario) + if (file_exists($rutaArchivo)) { + unlink($rutaArchivo); + //$log->appendLog("Archivo PDF temporal eliminado." . PHP_EOL); + } + if (file_exists($rutaImagen)) { + unlink($rutaImagen); + //$log->appendLog("Archivo JPG temporal eliminado." . PHP_EOL); + } + $log->appendLog("Archivos temporales (PDF/JPG) eliminados tras subida exitosa." . PHP_EOL); + } else { + $log->appendLog("Error: Falló la subida a MinIO." . PHP_EOL); + return false; + } + } else { + $log->appendLog("Error guardando imagen del microservicio." . PHP_EOL); + return false; + } + } else { + $log->appendLog("Error microservicio PDF: HTTP " . $responseMs->getStatusCode() . PHP_EOL); + return false; + } + } catch (\Exception $e) { + $log->appendLog("Excepción en flujo Microservicio/MinIO: " . $e->getMessage() . PHP_EOL); + return false; + } + + // Legacy FTP eliminado + // $url_file = $this->UploadReceiptToWordpressByImageFileName($fileNameComprobanteImage); + + $log->appendLog("Proceso de obtención de imagen finalizado." . PHP_EOL); + + //$log->appendLog("Entrando al metodo sendPaymentNotificationWhatsAp" . PHP_EOL); + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, 'https://api.callbell.eu/v1/messages/send'); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); + curl_setopt($ch, CURLOPT_HTTPHEADER, [ + 'Authorization: Bearer ' . $this->CallBellAPIToken, + 'Content-Type: application/json', + ]); + + $curl_string = "{\n \"to\": \"$clientWhatsAppNumber\",\n \"from\": \"whatsapp\",\n \"type\": \"document\",\n \"content\": {\n \"text\": \"S/M\",\n \"url\": \"$url_file\"\n },\n \"template_values\": [\"$nombre_cliente\", \"$payment_amount\", \"$saldoTexto\"],\n \"template_uuid\": \"57ead79cebd14902921477922403093b\",\n \"optin_contact\": true\n }"; + $log->appendLog("La cadena CURL que se envia es: " . $curl_string); + curl_setopt($ch, CURLOPT_POSTFIELDS, $curl_string); + + $response = curl_exec($ch); + $log->appendLog("Response del CallBell: " . $response); + + //Enviar notificación adicional si es transferencia + // if($transferNotify){ + // curl_setopt($ch, CURLOPT_POSTFIELDS, "{\n \"to\": \"$clientWhatsAppNumber\",\n \"from\": \"whatsapp\",\n \"type\": \"text\",\n \"content\": {\n \"text\": \"John Doe\"\n },\n \"template_uuid\": \"41783c020cd84881bc27cb9e7e1da348\",\n \"optin_contact\": true\n }"); + // $response2 = curl_exec($ch); + // $log->appendLog("Response del CallBell aviso adicional: " . $response2); + // } + + curl_close($ch); + $this->deleteFilesExceptLastHundred(); + //return $fileNameComprobante; + + // Validar la respuesta de Callbell + $jsonResponse = json_decode($response, true); + + if (json_last_error() === JSON_ERROR_NONE) { + // Evaluar si contiene "message" con "status": "enqueued" + if (isset($jsonResponse['message']) && $jsonResponse['message']['status'] === 'enqueued') { + $log->appendLog("La notificación fue enviada correctamente con estado: enqueued" . PHP_EOL); + return true; + } + + // Evaluar si contiene "error" + if (isset($jsonResponse['error'])) { + $log->appendLog("Error al enviar la notificación: " . json_encode($jsonResponse['error']) . PHP_EOL); + return false; + } + } else { + // Manejo de error en caso de que la respuesta no sea un JSON válido + $log->appendLog("La respuesta no es un JSON válido." . PHP_EOL); + return false; + } + + // Valor de retorno predeterminado en caso de que ninguna condición se cumpla + $log->appendLog("Ruta no prevista en la función." . PHP_EOL); + return false; + } + public function sendTextPaymentNotificationWhatsApp($clientWhatsAppNumber, $notificationData): bool + { + + $nombre_cliente = sprintf("%s %s", $notificationData->clientData['firstName'], $notificationData->clientData['lastName']); + $folio = $notificationData->paymentData['id']; + $client_id = $notificationData->clientData['id']; + $fecha_pago = ''; + $cantidad_pagada = $notificationData->paymentData['amount']; + $metodo_pago = ''; + //$invoice_id= null; + $total_factura = null; + $pago_factura = $notificationData->paymentData['amount']; + // $saldoTexto= null; + $creditoPorPago = $notificationData->paymentData['creditAmount']; + $texto_credito = null; + $creditoClienteBase = $notificationData->clientData['accountCredit']; + + switch ($notificationData->paymentData['methodId']) { + case '11721cdf-a498-48be-903e-daa67552e4f6': + $metodo_pago = 'Cheque 📄'; + break; + case '6efe0fa8-36b2-4dd1-b049-427bffc7d369': + $metodo_pago = 'Efectivo 💵'; + break; + case '4145b5f5-3bbc-45e3-8fc5-9cda970c62fb': + $metodo_pago = 'Transferencia bancaria 📱🏦'; + break; + case '78e84000-9b5b-44a4-8367-da43df86ce34': + $metodo_pago = 'PayPal 🌐💳'; + break; + case '6da98bb9-6df7-4c41-8608-5cdd7fde7d5d': + $metodo_pago = 'Tarjeta de crédito PayPal 💳'; + break; + case '1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae': + $metodo_pago = 'Tarjeta de crédito Stripe 💳'; + break; + case 'b9e1e9d1-5c7b-41d2-b6b2-3e568d700290': + $metodo_pago = 'Suscripción de Stripe (tarjeta de crédito) 🌐💳'; + break; + case '939f7701-00b7-4676-9b1e-17afb268c8ba': + $metodo_pago = 'Suscripción de PayPal 🌐💳'; + break; + case '1c963e35-df24-444d-95d2-12592d5107e8': + $metodo_pago = 'MercadoPago 🌐💳'; + break; + case 'd8c1eae9-d41d-479f-aeaf-38497975d7b3': + $metodo_pago = 'Personalizado 📝💸'; + break; + default: + $metodo_pago = 'Desconocido, revisar metodos de pago no contemplados'; + break; + } + + $log = PluginLogManager::create(); //Initialize Logger + + $log->appendLog("Eviando comprobante de pago al cliente: " . $notificationData->clientData['id'] . ' con número: ' . $clientWhatsAppNumber . PHP_EOL); + + // URL base de la API + $baseUri = 'https://' . $this->IPServer . '/crm/api/v1.0/'; + // Token de autenticación + $token = $this->UCRMAPIToken; + //Path base del comprobante de pago + $pdf_payment_path = ''; + + $config = PluginConfigManager::create()->loadConfig(); + $gClient = new Client(['base_uri' => "https://{$this->IPServer}/crm/api/v1.0/", 'verify' => false]); + $this->ucrmApi = new UcrmApi($gClient, $this->UCRMAPIToken ?? ''); + $payments = $this->ucrmApi->get( + 'payments/', + [ + 'clientId' => $notificationData->clientData['id'], + 'limit' => 1, + 'direction' => 'DESC', + + ] + ); + + //$datos_payment_array = json_decode($response->getBody()->getContents(), true); + $datos_paymentJsonText = json_encode($payments, true); + $log->appendLog("Datos traidos con payment api: " . $datos_paymentJsonText . PHP_EOL); + + // $log->appendLog("Check 1" . PHP_EOL); + $paymentDate = new DateTime($fecha_pago); + + // Restar 6 horas + $paymentDate->modify('-6 hours'); + + // Formatear la fecha como "d/m/Y g:ia" (día/mes/año hora:minutos am/pm) + $fecha_pago = $paymentDate->format('d/m/Y g:ia'); + + $accountBalance = $notificationData->clientData['accountBalance']; + $saldoTexto = ''; + + if ($accountBalance < 0) { + // Si el saldo es negativo, quitar el signo y poner "Pendientes" + $saldoTexto = '$' . abs($accountBalance) . ' pendientes'; + } elseif ($accountBalance > 0) { + // Si el saldo es positivo, poner "a favor" + $saldoTexto = '$' . $accountBalance . ' a favor'; + } else { + // Si el saldo es 0, poner "está al corriente" + $saldoTexto = '$' . $accountBalance . ' está al corriente'; + } + + $log->appendLog("Datos client data credit amount: " . $notificationData->paymentData['creditAmount'] . PHP_EOL); + + $cantidad_pagadaFormateada = '$' . number_format($cantidad_pagada, 2, ',', '.') . ' MXN'; + $creditoPorPagoFormateado = '$' . number_format($creditoPorPago, 2, ',', '.') . ' MXN'; + + if ($creditoClienteBase > 0 && empty($notificationData->paymentData['paymentCovers'])) { + + $texto_credito = "La cantidad que sobra de $creditoPorPagoFormateado se ha convertido a crédito"; + $log->appendLog("La cantidad que sobra de $creditoPorPagoFormateado se ha convertido a crédito" . PHP_EOL); + + $curl_string = "{\n \"to\": \"$clientWhatsAppNumber\",\n \"from\": \"whatsapp\",\n \"type\": \"text\",\n \"content\": {\n \"text\": \"John Doe\"\n },\n \"template_values\": [\"$nombre_cliente\", \"$folio\", \"$client_id\", \"$fecha_pago\", \"$cantidad_pagadaFormateada\", \"$metodo_pago\", \"$saldoTexto\", \"$texto_credito\"],\n \"template_uuid\": \"4ac9dc060cf746b6ad7f2e8acad355e0\",\n \"optin_contact\": true\n }"; + } else { + + if ($creditoPorPago > 0) { + $texto_credito = "La cantidad que sobra de $creditoPorPagoFormateado se ha convertido a crédito"; + $log->appendLog("La cantidad que sobra de $creditoPorPagoFormateado se ha convertido a crédito" . PHP_EOL); + } else { + $texto_credito = '_________________________'; + } + + // Configuración del cliente GuzzleHttp + $clientGuzzleHttp = new Client([ + 'base_uri' => $baseUri, + 'headers' => [ + 'X-Auth-App-Key' => $token, // Cambia el nombre de la cabecera de autorización + 'Accept' => 'application/pdf', // Indica que esperamos una respuesta en formato JSON + ], + 'verify' => false, + ]); + + $log->appendLog("Verificar paymentCovers " . PHP_EOL); + + $log->appendLog("payment covers" . json_encode($notificationData->paymentData['paymentCovers']) . PHP_EOL); + + if (!empty($notificationData->paymentData['paymentCovers'])) { + $log->appendLog('Datos del payment covers:' . PHP_EOL); + + $invoiceIds = ''; // Variable para almacenar los invoiceId + $amounts = ''; // Variable para almacenar los amounts formateados + + foreach ($notificationData->paymentData['paymentCovers'] as $paymentCover) { + $log->appendLog('Invoice ID pagado: ' . $paymentCover['invoiceId'] . ' de esta cantidad: ' . $paymentCover['amount'] . PHP_EOL); + + // Concatenar cada invoiceId seguido de una coma + $invoiceIds .= $paymentCover['invoiceId'] . ', '; + + // Formatear el amount con punto para miles y coma para decimales + $formattedAmount = number_format($paymentCover['amount'], 2, ',', '.'); + + // Concatenar el amount formateado seguido de una coma + $amounts .= $formattedAmount . ', '; + } + + // Eliminar la última coma y el espacio extra usando substr + $invoiceIds = substr($invoiceIds, 0, -2); // Elimina los últimos dos caracteres (coma y espacio) + $amounts = substr($amounts, 0, -2); // Elimina los últimos dos caracteres (coma y espacio) + + // Mostrar las cadenas finales + $log->appendLog('Todos los Invoice IDs: ' . $invoiceIds . PHP_EOL); + $log->appendLog('Todas las cantidades: ' . $amounts . PHP_EOL); + + try { + + // Hacer la solicitud GET + $response = $clientGuzzleHttp->request('GET', "invoices/$invoiceIds"); + + // Realizar la solicitud a la API y guardar el contenido en un archivo local + $responseInvoices = $response->getBody()->getContents(); + $responseInvoicesJSON = json_decode($responseInvoices, true); + $log->appendLog('Numero de factura: ' . $responseInvoicesJSON['number'] . PHP_EOL); + $log->appendLog('TOTAL de factura: ' . $responseInvoicesJSON['total'] . PHP_EOL); + $total_factura = $responseInvoicesJSON['total']; + } catch (\Exception $e) { + $log->appendLog("Error con un problema al obtener alguna factura del cliente: " . $e->getMessage() . PHP_EOL); + return false; + } + } else { + $log->appendLog("no hay datos en payment covers" . PHP_EOL); + $invoiceIds = $notificationData->paymentData['id']; + $amounts = $notificationData->paymentData['amount']; + $total_factura = 0; + } + //$cantidad_pagadaFormateada = '$' . number_format($cantidad_pagada, 2, ',', '.') . ' MXN'; + $log->appendLog("Se terminó de verificar payment covers" . PHP_EOL); + $total_facturaFormateada = '$' . number_format($total_factura, 2, ',', '.') . ' MXN'; + $pagoFacturaFormateado = '$' . $amounts . ' MXN'; + + $curl_string = "{\n \"to\": \"$clientWhatsAppNumber\",\n \"from\": \"whatsapp\",\n \"type\": \"text\",\n \"content\": {\n \"text\": \"John Doe\"\n },\n \"template_values\": [\"$nombre_cliente\", \"$folio\", \"$client_id\", \"$fecha_pago\", \"$cantidad_pagadaFormateada\", \"$metodo_pago\", \"$invoiceIds\", \"$total_facturaFormateada\", \"$pagoFacturaFormateado\", \"$saldoTexto\", \"$texto_credito\"],\n \"template_uuid\": \"c1396a6ad3cb4192916d4ac2bfb782a5\",\n \"optin_contact\": true\n }"; + } + + //$log->appendLog("Entrando al metodo sendPaymentNotificationWhatsAp" . PHP_EOL); + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, 'https://api.callbell.eu/v1/messages/send'); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); + curl_setopt($ch, CURLOPT_HTTPHEADER, [ + 'Authorization: Bearer ' . $this->CallBellAPIToken, + 'Content-Type: application/json', + ]); + + //$curl_string = "{\n \"to\": \"$clientWhatsAppNumber\",\n \"from\": \"whatsapp\",\n \"type\": \"document\",\n \"content\": {\n \"text\": \"S/M\",\n \"url\": \"$url_file\"\n },\n \"template_values\": [\"$nombre_cliente\", \"$payment_amount\", \"$saldo\"],\n \"template_uuid\": \"6c0df98317b44f7b8666375a6cc8454c\",\n \"optin_contact\": true\n }"; + + // $curl_string = "{\n \"to\": \"$clientWhatsAppNumber\",\n \"from\": \"whatsapp\",\n \"type\": \"text\",\n \"content\": {\n \"text\": \"S/M\"\n },\n \"template_values\": [\"$campo1\", \"$campo2\"],\n \"template_uuid\": \"55705f1fe4e24bab80104dc2643fe11c\",\n \"optin_contact\": true\n }"; + $log->appendLog("La cadena CURL que se envia es: " . $curl_string); + //curl_setopt($ch, CURLOPT_POSTFIELDS, $curl_string); + curl_setopt($ch, CURLOPT_POSTFIELDS, $curl_string); + $response = curl_exec($ch); + $log->appendLog("Response del CallBell: " . $response); + + //Enviar notificación adicional si es transferencia + // if($transferNotify){ + // curl_setopt($ch, CURLOPT_POSTFIELDS, "{\n \"to\": \"$clientWhatsAppNumber\",\n \"from\": \"whatsapp\",\n \"type\": \"text\",\n \"content\": {\n \"text\": \"John Doe\"\n },\n \"template_uuid\": \"41783c020cd84881bc27cb9e7e1da348\",\n \"optin_contact\": true\n }"); + // $response2 = curl_exec($ch); + // $log->appendLog("Response del CallBell aviso adicional: " . $response2); + // } + + curl_close($ch); + //$this->deleteFilesExceptLastFifty(); + //return $fileNameComprobante; + // Validar la respuesta de Callbell + $jsonResponse = json_decode($response, true); + + if (json_last_error() === JSON_ERROR_NONE) { + // Evaluar si contiene "message" con "status": "enqueued" + if (isset($jsonResponse['message']) && $jsonResponse['message']['status'] === 'enqueued') { + $log->appendLog("La notificación fue enviada correctamente con estado: enqueued" . PHP_EOL); + return true; + } + + // Evaluar si contiene "error" + if (isset($jsonResponse['error'])) { + $log->appendLog("Error al enviar la notificación: " . json_encode($jsonResponse['error']) . PHP_EOL); + return false; + } + } else { + // Manejo de error en caso de que la respuesta no sea un JSON válido + $log->appendLog("La respuesta no es un JSON válido." . PHP_EOL); + return false; + } + + // Valor de retorno predeterminado en caso de que ninguna condición se cumpla + $log->appendLog("Ruta no prevista en la función." . PHP_EOL); + return false; + } + + public function sendOverdueNotificationWhatsApp($clientWhatsAppNumber, $notificationData): void + { + + $log = PluginLogManager::create(); //Initialize Logger + + // URL base de la API + //$baseUri = 'https://' . $this->IPServer . '/crm/api/v1.0/'; + // Token de autenticación + //$token = $this->UCRMAPIToken; + //Path base del comprobante de pago + //$pdf_payment_path = ''; + + // $this->ucrmApi = UcrmApi::create(); + // $invoices = $this->ucrmApi->get( + // 'invoices/', + // [ + // 'clientId' => $notificationData->clientData['id'], + // 'limit' => 1, + // 'direction' => 'DESC' + + // ] + // ); + + //$datos_payment_array = json_decode($payments,true); + //$datos_invoices = json_encode($invoices); + + //$log->appendLog("Datos traidos con invoices api: " . $datos_invoices . PHP_EOL); + //$log->appendLog("Esto es lo que trae la fecha mas reciente de los pagos: " . $notificationData->paymentData[0]['createdDate']. PHP_EOL); + // $log->appendLog("Esto es lo que trae la fecha mas reciente de los pagos opcion 2: " . $payments[0]['createdDate'] . PHP_EOL); + + // $invoice_id = $invoices[0]['id']; + // $invoices_amount = '$' . $invoices[0]['amount']; + $saldo = '$' . $notificationData->clientData['accountBalance']; + $nombre_cliente = sprintf("%s %s", $notificationData->clientData['firstName'], $notificationData->clientData['lastName']); + + // Configuración del cliente GuzzleHttp + // $clientGuzzleHttp = new Client([ + // 'base_uri' => $baseUri, + // 'headers' => [ + // 'X-Auth-App-Key' => $token, // Cambia el nombre de la cabecera de autorización + // 'Accept' => 'application/pdf', // Indica que esperamos una respuesta en formato JSON + // ], + // 'verify' => false, + // ]); + + // if (empty($notificationData->clientData['contacts'][0]['email'])) { + // $log->appendLog("El cliente no tiene correo" . PHP_EOL); + // } else { + // // $log->appendLog("El cliente SI tiene correo y es: ".$notificationData->clientData['contacts'][0]['email'] . PHP_EOL); + // // Hacer la solicitud PATCH para enviar correo electronico con el comprobante de pago + // $response = $clientGuzzleHttp->request('PATCH', "invoices/$invoice_id/send"); + + // } + + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, 'https://api.callbell.eu/v1/messages/send'); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); + curl_setopt($ch, CURLOPT_HTTPHEADER, [ + 'Authorization: Bearer ' . $this->CallBellAPIToken, + 'Content-Type: application/json', + ]); + + // Verificar si la ruta es válida + // if ($realPath = realpath('/data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/Comprobante.pdf')) { + // $log->appendLog("La ruta es válida: $realPath" . PHP_EOL); + // $log->appendLog(var_export($realPath,true) . PHP_EOL); + + // } else { + // $log->appendLog("La ruta no es válida o no existe" . PHP_EOL); + // } + + $curl_string = "{\n \"to\": \"$clientWhatsAppNumber\",\n \"from\": \"SIIP INTERNET\",\n \"type\": \"text\",\n \"content\": {\n \"text\": \"S/M\",\n },\n \"template_values\": [\"$nombre_cliente\", \"$saldo\"],\n \"template_uuid\": \"9e7024c0a61a4c49b382150d26888dc2\",\n \"optin_contact\": true\n }"; + //$curl_string = "{\n \"to\": \"$clientWhatsAppNumber\",\n \"from\": \"whatsapp\",\n \"type\": \"document\",\n \"content\": {\n \"text\": \"S/M\",\n \"url\": \"$url_file\"\n },\n \"template_values\": [\"$nombre_cliente\", \"$payment_amount\", \"$saldo\"],\n \"template_uuid\": \"57ead79cebd14902921477922403093b\",\n \"optin_contact\": true\n }"; + //$curl_string = "{\n \"to\": \"$clientWhatsAppNumber\",\n \"from\": \"whatsapp\",\n \"type\": \"document\",\n \"content\": {\n \"text\": \"S/M\",\n \"url\": \"$url_file\"\n },\n \"template_values\": [\"$nombre_cliente\", \"$payment_amount\", \"$saldo\"],\n \"template_uuid\": \"6c0df98317b44f7b8666375a6cc8454c\",\n \"optin_contact\": true\n }"; + + // $curl_string = "{\n \"to\": \"$clientWhatsAppNumber\",\n \"from\": \"whatsapp\",\n \"type\": \"text\",\n \"content\": {\n \"text\": \"S/M\"\n },\n \"template_values\": [\"$campo1\", \"$campo2\"],\n \"template_uuid\": \"55705f1fe4e24bab80104dc2643fe11c\",\n \"optin_contact\": true\n }"; + $log->appendLog("La cadena CURL que se envia es: " . $curl_string); + curl_setopt($ch, CURLOPT_POSTFIELDS, $curl_string); + + $response = curl_exec($ch); + $log->appendLog("Response del CallBell: " . $response); + + curl_close($ch); + } + + public function getContactWhatsapp($cellphone_number): string + { + // URL de la API REST + $apiUrl = 'https://api.callbell.eu/v1/contacts/phone/' . $cellphone_number; + + // Inicializar cURL + $ch = curl_init(); + + // Configurar las opciones de cURL + curl_setopt($ch, CURLOPT_URL, $apiUrl); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch, CURLOPT_HTTPHEADER, [ + 'Authorization: Bearer ' . $this->CallBellAPIToken, + 'Content-Type: application/json', + ]); + + // Ejecutar la solicitud y obtener la respuesta + $response = curl_exec($ch); + + // Verificar si hay errores en la solicitud cURL + if (curl_errno($ch)) { + return 'Error al realizar la solicitud cURL: ' . curl_error($ch); + } else { + // Cerrar la sesión cURL + curl_close($ch); + return $response; + } + } + + public function patchWhatsapp($response_getContactCallBell, $notificationData, $clabeInterbancaria = null) + { + + $log = PluginLogManager::create(); //Initialize Logger + //imprimir notificacionData + $log->appendLog("Notificacion data: " . json_encode($notificationData) . PHP_EOL); + //ejemplo de $notificationData: {"uuid":"cad4fa25-176e-4823-9f4c-1421d05d2a31","changeType":"edit","entity":"client","entityId":2,"message":null,"clientId":2,"eventName":"client.edit","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, 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":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Pollerias2","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true},{"id":178,"clientId":2,"customAttributeId":15,"name":"Site","key":"site","value":"0LOCS","clientZoneVisible":false},{"id":179,"clientId":2,"customAttributeId":16,"name":"Antena\/Sectorial","key":"antenaSectorial","value":"Sectorial-4b 172.16.13.16\/24","clientZoneVisible":false}],"accountBalance":1553.33,"accountCredit":1553.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null} + + //buscar el attribute con el key site y antenaSectorial + $attributes = $notificationData->clientData['attributes'] ?? []; //Obtener los atributos del cliente + $site = ''; + $antenaSectorial = ''; + $passAntenaUCRM = ''; + $clabeAttr = ''; + + // Iterar sobre los atributos + foreach ($attributes as $attribute) { + // Verificar si el key es "site" + if ($attribute['key'] === 'site') { + $site = $attribute['value'] ?? ''; + } + // Verificar si el key es "antenaSectorial" + if ($attribute['key'] === 'antenaSectorial') { + $antenaSectorial = $attribute['value'] ?? ''; + } + if ($attribute['key'] === 'passwordAntenaCliente') { + $passAntenaUCRM = $attribute['value'] ?? ''; + } + if ($attribute['key'] === 'clabeInterbancaria') { + $clabeAttr = $attribute['value'] ?? ''; + } + } + + if (empty($clabeInterbancaria)) { + $clabeInterbancaria = $clabeAttr; + } + + // Parsear contraseñas multi-servicio a JSON + $passAntenaJSON = []; + if (!empty($passAntenaUCRM)) { + if (strpos($passAntenaUCRM, 'Servicio') !== false) { + // Buscamos patrones "Servicio X: " + // Usamos una expresión más robusta para capturar hasta el siguiente "Servicio" o el final de la cadena + preg_match_all('/Servicio (\d+):\s*(.*?)(?=\s*Servicio \d+:|$)/', $passAntenaUCRM, $matches, PREG_SET_ORDER); + foreach ($matches as $match) { + $numServicio = "Servicio " . $match[1]; + $passAntenaJSON[$numServicio] = trim($match[2]); + } + } else { + // Un solo servicio sin etiqueta (o con advertencia ⚠️) + $passAntenaJSON["Servicio 1"] = trim($passAntenaUCRM); + } + } + $passAntenaFinal = !empty($passAntenaJSON) ? json_encode($passAntenaJSON) : ""; + + $log->appendLog("Dentro del proceso del patch: " . PHP_EOL); + $config = PluginConfigManager::create()->loadConfig(); + $gClient = new Client(['base_uri' => "https://{$this->IPServer}/crm/api/v1.0/", 'verify' => false]); + $this->ucrmApi = new UcrmApi($gClient, $this->UCRMAPIToken ?? ''); + $payments = $this->ucrmApi->get( + 'payments/', + [ + 'clientId' => $notificationData->clientData['id'], + 'limit' => 1, + 'direction' => 'DESC', + + ] + ); + + //$datos_payment_array = json_decode($payments,true); + $datos_payment = json_encode($payments); + + $log->appendLog("Datos traidos con payment api: " . $datos_payment . PHP_EOL); + //$log->appendLog("Esto es lo que trae la fecha mas reciente de los pagos: " . $notificationData->paymentData[0]['createdDate']. PHP_EOL); + // $log->appendLog("Esto es lo que trae la fecha mas reciente de los pagos opcion 2: " . $payments[0]['createdDate'] . PHP_EOL); + + $uuid = $response_getContactCallBell['contact']['uuid']; + $ch = curl_init(); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PATCH'); + curl_setopt($ch, CURLOPT_HTTPHEADER, [ + 'Authorization: Bearer ' . $this->CallBellAPIToken, + 'Content-Type: application/json', + ]); + + $UrlChatCallBell = 'https://api.callbell.eu/v1/contacts/' . $uuid; + curl_setopt($ch, CURLOPT_URL, $UrlChatCallBell); + + $nombre_cliente = sprintf("%s %s", $notificationData->clientData['firstName'], $notificationData->clientData['lastName']); + $log->appendLog("Nombre del cliente que se va a actualizar: " . $nombre_cliente . PHP_EOL); + $log->appendLog("UUID: " . $uuid . PHP_EOL); + + $payment_method_id = $payments[0]['methodId']; + $payment_method = ''; + + switch ($payment_method_id) { + case '11721cdf-a498-48be-903e-daa67552e4f6': + $payment_method = 'Cheque 📄'; + break; + case '6efe0fa8-36b2-4dd1-b049-427bffc7d369': + $payment_method = 'Efectivo 💵'; + break; + case '4145b5f5-3bbc-45e3-8fc5-9cda970c62fb': + $payment_method = 'Transferencia bancaria 📱🏦'; + break; + case '78e84000-9b5b-44a4-8367-da43df86ce34': + $payment_method = 'PayPal 🌐💳'; + break; + case '6da98bb9-6df7-4c41-8608-5cdd7fde7d5d': + $payment_method = 'Tarjeta de crédito PayPal 💳'; + break; + case '1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae': + $payment_method = 'Tarjeta de crédito Stripe 💳'; + break; + case 'b9e1e9d1-5c7b-41d2-b6b2-3e568d700290': + $payment_method = 'Suscripción de Stripe (tarjeta de crédito) 🌐💳'; + break; + case '939f7701-00b7-4676-9b1e-17afb268c8ba': + $payment_method = 'Suscripción de PayPal 🌐💳'; + break; + case '1c963e35-df24-444d-95d2-12592d5107e8': + $payment_method = 'MercadoPago 🌐💳'; + break; + case 'd8c1eae9-d41d-479f-aeaf-38497975d7b3': + $payment_method = 'Personalizado 📝💸'; + break; + default: + $payment_method = 'Desconocido, revisar metodos de pago no contemplados'; + break; + } + + $fecha_actual = new DateTime(); + $fecha_actual->modify('-6 hours'); + $fecha_actual_ajustada = $fecha_actual->format("d/m/Y H:i"); + + $fecha_ultimoPago = new DateTime($payments[0]['createdDate']); + //$fecha_ultimoPago = $fecha_ultimoPago->modify('-6 hours'); + $fecha_ultimoPago_ajustada = $fecha_ultimoPago->format("d/m/Y H:i"); + + $accountBalance = $notificationData->clientData['accountBalance']; + $saldoTexto = ''; + + if ($accountBalance < 0) { + // Si el saldo es negativo, quitar el signo y poner "Pendientes" + $saldoTexto = '💲' . abs($accountBalance) . ' pendientes'; + } elseif ($accountBalance > 0) { + // Si el saldo es positivo, poner "a favor" + $saldoTexto = '💲' . $accountBalance . ' a favor'; + } else { + // Si el saldo es 0, poner "está al corriente" + $saldoTexto = '💲' . $accountBalance . ' está al corriente'; + } + + $resumenClienteJSON = '{' . + '"Cliente": "' . $notificationData->clientData['id'] . '",' . + '"Nombre": "' . sprintf("%s %s", $notificationData->clientData['firstName'], $notificationData->clientData['lastName']) . '",' . + '"URL": "https://sistema.siip.mx/crm/client/' . $notificationData->clientId . '",' . + '"Saldo Actual": "' . $saldoTexto . '",' . + '"Monto Ultimo Pago": "$ ' . $payments[0]['amount'] . '",' . + '"Estado": "' . + (($notificationData->clientData['hasSuspendedService']) ? 'Suspendido' : 'Activo') . '",' . + '"Fecha Ultimo Pago": " ' . $fecha_ultimoPago_ajustada . ' con ' . $payment_method . '",' . + '"Fecha Ultima Actualizacion": "' . $fecha_actual_ajustada . '",' . + '"Clabe Interbancaria": "' . $clabeInterbancaria . '",' . + '"Site": "' . $site . '",' . + '"Antena/Sectorial": "' . $antenaSectorial . '",' . + '"Password Antena": ' . (empty($passAntenaFinal) ? '""' : $passAntenaFinal) . + '}'; + + $data_CRM = [ + "name" => sprintf("%s %s", $notificationData->clientData['firstName'], $notificationData->clientData['lastName']), + + "custom_fields" => [ + "Site" => $site, + "Estado" => ($notificationData->clientData['hasSuspendedService']) ? '🟠 Suspendido' : '🟢 Activo ', + "URL" => '🌐 https://sistema.siip.mx/crm/client/' . $notificationData->clientId, + "Nombre" => sprintf("👤 %s %s", $notificationData->clientData['firstName'], $notificationData->clientData['lastName']), + "Cliente" => $notificationData->clientData['id'], + "Fecha Ultima Actualizacion" => '📆🔄️ ' . $fecha_actual_ajustada, + "Saldo Actual" => $saldoTexto, + "Monto Ultimo Pago" => '💲 ' . $payments[0]['amount'], + "Clabe Interbancaria" => $clabeInterbancaria, + "Fecha Ultimo Pago" => '📆💸 ' . $fecha_ultimoPago_ajustada . ' con ' . $payment_method, + "Antena/Sectorial" => $antenaSectorial, + "Domicilio" => ($notificationData->clientData['fullAddress'] == null) ? '📍❌ Sin domicilio' : '📍 ' . $notificationData->clientData['fullAddress'], + "Resumen" => $resumenClienteJSON, + "password-antena" => $passAntenaFinal, + ], + ]; + + $log->appendLog("JSON con los datos a actualizar: " . json_encode($data_CRM) . PHP_EOL); + + // OPT: Comparación inteligente para evitar patches innecesarios + // La respuesta de getContactWhatsapp viene envuelta en 'contact' y usa 'customFields' + $contact = $response_getContactCallBell['contact'] ?? []; + $contactCustomFields = $contact['customFields'] ?? []; + + $log->appendLog("DEBUG COMPARACIÓN - CallBell Saldo Actual: '" . ($contactCustomFields['Saldo Actual'] ?? 'NULL') . "'" . PHP_EOL); + $log->appendLog("DEBUG COMPARACIÓN - UCRM Saldo Actual: '" . $data_CRM['custom_fields']['Saldo Actual'] . "'" . PHP_EOL); + $log->appendLog("DEBUG COMPARACIÓN - CallBell Estado: '" . ($contactCustomFields['Estado'] ?? 'NULL') . "'" . PHP_EOL); + $log->appendLog("DEBUG COMPARACIÓN - UCRM Estado: '" . $data_CRM['custom_fields']['Estado'] . "'" . PHP_EOL); + + $hasChanges = false; + if (($contact['name'] ?? '') != $data_CRM['name']) { + $log->appendLog("DEBUG COMPARACIÓN - Diferencia en name. CallBell: '" . ($contact['name'] ?? 'NULL') . "', UCRM: '" . $data_CRM['name'] . "'" . PHP_EOL); + $hasChanges = true; + } else { + foreach ($data_CRM['custom_fields'] as $key => $value) { + if ($key === 'Fecha Ultima Actualizacion') { + continue; // Skip this as it always changes and shouldn't trigger a patch on its own + } + + $callBellValue = $contactCustomFields[$key] ?? ''; + if ((string)$callBellValue !== (string)$value) { + $log->appendLog("DEBUG COMPARACIÓN - Diferencia encontrada en $key. CallBell: '$callBellValue', UCRM: '$value'" . PHP_EOL); + $hasChanges = true; + break; + } + } + } + + if ($hasChanges) { + $log->appendLog("EJECUTANDO PATCH - Se detectaron cambios" . PHP_EOL); + curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data_CRM)); + $response = curl_exec($ch); + $log->appendLog("Response Patch CallBell: " . $response . PHP_EOL); + curl_close($ch); + } else { + $log->appendLog("NO SE EJECUTA PATCH - No hay cambios que actualizar" . PHP_EOL); + curl_close($ch); + } + } + + public function patchServiceStatusWhatsApp($response_getContactCallBell, $notificationData) + { + + $log = PluginLogManager::create(); //Initialize Logger + + $log->appendLog("Actualizando estado del servicio " . PHP_EOL); + + $uuid = $response_getContactCallBell['contact']['uuid']; + $ch = curl_init(); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PATCH'); + curl_setopt($ch, CURLOPT_HTTPHEADER, [ + 'Authorization: Bearer ' . $this->CallBellAPIToken, + 'Content-Type: application/json', + ]); + $UrlChatCallBell = 'https://api.callbell.eu/v1/contacts/' . $uuid; + curl_setopt($ch, CURLOPT_URL, $UrlChatCallBell); + $nombre_cliente = sprintf("%s %s", $notificationData->clientData['firstName'], $notificationData->clientData['lastName']); + $log->appendLog("Nombre del cliente al que se va a actualizar el estado del servicio: " . $nombre_cliente . PHP_EOL); + $log->appendLog("UUID: " . $uuid . PHP_EOL); + + $fecha_actual = new DateTime(); + $fecha_actual->modify('-6 hours'); + $fecha_actual_ajustada = $fecha_actual->format("d/m/Y H:i"); + + $data_CRM = [ + "name" => $nombre_cliente, + "custom_fields" => [ + "Estado" => ( + isset($notificationData->serviceData['status']) + && $notificationData->serviceData['status'] == 3 + ) ? '🟠 Suspendido' : ( + (isset($notificationData->serviceData['status']) + && $notificationData->serviceData['status'] == 1) + ? '🟢 Activo' : '🚫 Finalizado'), + "Fecha Ultima Actualizacion" => '📆🔄️ ' . $fecha_actual_ajustada, + ], + ]; + + $log->appendLog("JSON con los datos a actualizar: " . json_encode($data_CRM) . PHP_EOL); + + $contact = $response_getContactCallBell['contact'] ?? []; + $contactCustomFields = $contact['customFields'] ?? []; + + if (($contactCustomFields['Estado'] ?? '') != $data_CRM['custom_fields']['Estado']) { + curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data_CRM)); + $response = curl_exec($ch); + $log->appendLog("Response Patch CallBell: " . $response . PHP_EOL); + curl_close($ch); + } else { + $log->appendLog("No hay cambios en el estado del servicio que actualizar " . PHP_EOL); + } + } + + function UploadReceiptToWordpressByImageFileName($imageFileName): string + { + + $log = PluginLogManager::create(); //Initialize Logger + $configManager = PluginConfigManager::create(); + $config = $configManager->loadConfig(); + + // Configuración de conexión FTP + $ftp_server = $config['hostServerFTP']; + $ftp_username = $config['usernameServerFTP']; + $ftp_password = $config['passServerFTP']; + $remote_folder = "/public_html/wp/wp-content/uploads/img/"; + + $log->appendLog("Subiendo comprobante a worpdpress " . PHP_EOL); + // Configuración de conexión FTP + // $ftp_server = "siip.mx"; + // $ftp_username = "siip0001"; + // $ftp_password = '$spGiT,[wa)n'; + $remote_file = "/public_html/wp/wp-content/uploads/img/" . $imageFileName; + $file_to_upload = __DIR__ . '/../../comprobantes/' . $imageFileName; + $url = 'https://siip.mx/wp/wp-content/uploads/img/' . $imageFileName; + + $log->appendLog("file_to_upload: " . $file_to_upload . PHP_EOL); + + // Conexión FTP + $ftp_conn = ftp_connect($ftp_server) or die("No se pudo conectar al servidor FTP"); + $login = ftp_login($ftp_conn, $ftp_username, $ftp_password); + ftp_pasv($ftp_conn, true); + // Verificar conexión y login + if ($ftp_conn && $login) { + $log->appendLog("Conexión FTP exitosa" . PHP_EOL); + + // Cargar archivo + if (ftp_put($ftp_conn, $remote_file, $file_to_upload, FTP_BINARY)) { + $log->appendLog("El archivo ha sido cargado exitosamente." . PHP_EOL); + $log->appendLog("La URL es: " . $url . PHP_EOL); + + $this->deleteFilesWordpressExceptLastHundred($log, $ftp_conn, $remote_file); + // Cerrar conexión FTP + ftp_close($ftp_conn); //COMENTAR AQUÍ SI SE BORRAN LOS ARCHIVOS DE WORDPRESS DESCOMENTANDO EL CÓDIGO DE MÁS ABAJO + return $url; //COMENTAR AQUÍ SI SE BORRAN LOS ARCHIVOS DE WORDPRESS DESCOMENTANDO EL CÓDIGO DE MÁS ABAJO + + } else { + $log->appendLog("Error al cargar el archivo " . PHP_EOL); + ftp_close($ftp_conn); + return ''; + } + + //SI SE DECIDE VOLVER A ELIMINAR LOS COMPROBANTES ENTONCES DESCOMENTAR ESTA PARTE DE ABAJO Y COMENTAR LA SECCIÓN DE ARRIBA + + // Obtener lista de archivos en la carpeta + // $files = ftp_nlist($ftp_conn, $remote_folder); + // if (is_array($files)) { + // // Eliminar la ruta del directorio de los archivos + // $files = array_map(function ($file) use ($remote_folder) { + // return str_replace($remote_folder, '', $file); + // }, $files); + + // // Obtener fechas de modificación + // $filesWithTime = []; + // foreach ($files as $file) { + // $modifiedTime = ftp_mdtm($ftp_conn, $remote_folder . $file); + // if ($modifiedTime != -1) { + // $filesWithTime[$file] = $modifiedTime; + // } + // } + + // // Ordenar archivos por fecha de modificación, más recientes primero + // arsort($filesWithTime); + + // // Obtener los archivos a eliminar (todos menos los 50 más recientes) + // $filesToDelete = array_slice(array_keys($filesWithTime), 50); + + // // Eliminar archivos antiguos + // foreach ($filesToDelete as $file) { + // if (ftp_delete($ftp_conn, $remote_folder . $file)) { + // $log->appendLog("Comprobante eliminado de Wordpress: " . $file . PHP_EOL); + // } else { + // $log->appendLog('Error al borrar comprobante' . $file . PHP_EOL); + // } + // } + // $log->appendLog("Archivos eliminados" . PHP_EOL); + // ftp_close($ftp_conn); + // return $url; + // } else { + // $log->appendLog("No se pudo obtener la lista de archivos de la carpeta FTP" . PHP_EOL); + // ftp_close($ftp_conn); + // return $url; + // } + + } else { + $log->appendLog("No se pudo conectar o iniciar sesión en el servidor FTP." . PHP_EOL); + return ''; + } + } + + function deleteFilesWordpressExceptLastHundred($log, $ftp_conn, $remote_folder): bool + { + + // Obtener lista de archivos en la carpeta + $files = ftp_nlist($ftp_conn, $remote_folder); + if (is_array($files)) { + // Eliminar la ruta del directorio de los archivos + $files = array_map(function ($file) use ($remote_folder) { + return str_replace($remote_folder, '', $file); + }, $files); + + // Obtener fechas de modificación + $filesWithTime = []; + foreach ($files as $file) { + $modifiedTime = ftp_mdtm($ftp_conn, $remote_folder . $file); + if ($modifiedTime != -1) { + $filesWithTime[$file] = $modifiedTime; + } + } + + // Ordenar archivos por fecha de modificación, más recientes primero + arsort($filesWithTime); + + // Obtener los archivos a eliminar (todos menos los 50 más recientes) + $filesToDelete = array_slice(array_keys($filesWithTime), 50); + + // Eliminar archivos antiguos + foreach ($filesToDelete as $file) { + if (ftp_delete($ftp_conn, $remote_folder . $file)) { + $log->appendLog("Comprobante eliminado de Wordpress: " . $file . PHP_EOL); + } else { + $log->appendLog('Error al borrar comprobante' . $file . PHP_EOL); + } + } + $log->appendLog("Archivos eliminados" . PHP_EOL); + ftp_close($ftp_conn); + return true; + } else { + $log->appendLog("No se pudo obtener la lista de archivos de la carpeta FTP" . PHP_EOL); + ftp_close($ftp_conn); + return false; + } + } + + /** + * /Elimina los archivos del directorio de comprobantes de pago a excepción de los últimos 100 para evitar errores de envío + * @return void + */ + function deleteFilesExceptLastHundred() + { + $log = PluginLogManager::create(); //Initialize Logger + $directory = __DIR__ . '/../../comprobantes/'; + // Verificar si el directorio existe + if (!is_dir($directory)) { + $log->appendLog('El directorio no existe.'); + die("El directorio no existe."); + } + + // Obtener la lista de archivos en el directorio + $files = glob($directory . '/*'); + + // Ordenar los archivos por fecha de modificación, de más reciente a más antiguo + usort($files, function ($a, $b) { + return filemtime($b) - filemtime($a); + }); + + // Verificar que haya más de 100 archivos + if (count($files) > 100) { + // Obtener los archivos que deben ser eliminados (todos menos los 100 más recientes) + $filesToDelete = array_slice($files, 100); + + // Eliminar los archivos + foreach ($filesToDelete as $file) { + if (is_file($file)) { + unlink($file); + $log->appendLog("Archivo eliminado: $file" . PHP_EOL); + } + } + } else { + $log->appendLog("Hay menos de 100 archivos en el directorio. No se eliminarán archivos." . PHP_EOL); + } + } +} diff --git a/src/Facade/ClientCallBellAPI.php b/src/Facade/ClientCallBellAPI.php index 9ca8930c..140751ac 100644 --- a/src/Facade/ClientCallBellAPI.php +++ b/src/Facade/ClientCallBellAPI.php @@ -1001,24 +1001,32 @@ class ClientCallBellAPI //ejemplo de $notificationData: {"uuid":"cad4fa25-176e-4823-9f4c-1421d05d2a31","changeType":"edit","entity":"client","entityId":2,"message":null,"clientId":2,"eventName":"client.edit","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, 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":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Pollerias2","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true},{"id":178,"clientId":2,"customAttributeId":15,"name":"Site","key":"site","value":"0LOCS","clientZoneVisible":false},{"id":179,"clientId":2,"customAttributeId":16,"name":"Antena\/Sectorial","key":"antenaSectorial","value":"Sectorial-4b 172.16.13.16\/24","clientZoneVisible":false}],"accountBalance":1553.33,"accountCredit":1553.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null} //buscar el attribute con el key site y antenaSectorial - $attributes = $notificationData->clientData['attributes']; //Obtener los atributos del cliente + $attributes = $notificationData->clientData['attributes'] ?? []; //Obtener los atributos del cliente $site = ''; $antenaSectorial = ''; $passAntenaUCRM = ''; + $clabeAttr = ''; // Iterar sobre los atributos foreach ($attributes as $attribute) { // Verificar si el key es "site" if ($attribute['key'] === 'site') { - $site = $attribute['value']; + $site = $attribute['value'] ?? ''; } // Verificar si el key es "antenaSectorial" if ($attribute['key'] === 'antenaSectorial') { - $antenaSectorial = $attribute['value']; + $antenaSectorial = $attribute['value'] ?? ''; } if ($attribute['key'] === 'passwordAntenaCliente') { $passAntenaUCRM = $attribute['value'] ?? ''; } + if ($attribute['key'] === 'clabeInterbancaria') { + $clabeAttr = $attribute['value'] ?? ''; + } + } + + if (empty($clabeInterbancaria)) { + $clabeInterbancaria = $clabeAttr; } // Parsear contraseñas multi-servicio a JSON @@ -1186,19 +1194,26 @@ class ClientCallBellAPI $log->appendLog("DEBUG COMPARACIÓN - CallBell Estado: '" . ($contactCustomFields['Estado'] ?? 'NULL') . "'" . PHP_EOL); $log->appendLog("DEBUG COMPARACIÓN - UCRM Estado: '" . $data_CRM['custom_fields']['Estado'] . "'" . PHP_EOL); - if ( - ($contactCustomFields['Cliente'] ?? '') != $data_CRM['custom_fields']['Cliente'] - || ($contactCustomFields['Domicilio'] ?? '') != $data_CRM['custom_fields']['Domicilio'] - || ($contactCustomFields['Nombre'] ?? '') != $data_CRM['custom_fields']['Nombre'] - || ($contactCustomFields['URL'] ?? '') != $data_CRM['custom_fields']['URL'] - || ($contactCustomFields['Saldo Actual'] ?? '') != $data_CRM['custom_fields']['Saldo Actual'] - || ($contactCustomFields['Estado'] ?? '') != $data_CRM['custom_fields']['Estado'] - || ($contactCustomFields['Fecha Ultimo Pago'] ?? '') != $data_CRM['custom_fields']['Fecha Ultimo Pago'] - || ($contactCustomFields['Monto Ultimo Pago'] ?? '') != $data_CRM['custom_fields']['Monto Ultimo Pago'] - || ($contactCustomFields['password-antena'] ?? '') != $data_CRM['custom_fields']['password-antena'] - || ($contact['name'] ?? '') != $data_CRM['name'] + $hasChanges = false; + if (($contact['name'] ?? '') != $data_CRM['name']) { + $log->appendLog("DEBUG COMPARACIÓN - Diferencia en name. CallBell: '" . ($contact['name'] ?? 'NULL') . "', UCRM: '" . $data_CRM['name'] . "'" . PHP_EOL); + $hasChanges = true; + } else { + foreach ($data_CRM['custom_fields'] as $key => $value) { + if ($key === 'Fecha Ultima Actualizacion') { + continue; // Skip this as it always changes and shouldn't trigger a patch on its own + } + + $callBellValue = $contactCustomFields[$key] ?? ''; + if ((string)$callBellValue !== (string)$value) { + $log->appendLog("DEBUG COMPARACIÓN - Diferencia encontrada en $key. CallBell: '$callBellValue', UCRM: '$value'" . PHP_EOL); + $hasChanges = true; + break; + } + } + } - ) { + if ($hasChanges) { $log->appendLog("EJECUTANDO PATCH - Se detectaron cambios" . PHP_EOL); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data_CRM)); $response = curl_exec($ch);