diff --git a/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.pdf b/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.pdf index 3f2bd7d0..4aa90fc5 100755 Binary files a/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.pdf and b/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.pdf differ diff --git a/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.png b/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.png index 4fecb9f2..3a1e4c7b 100755 Binary files a/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.png and b/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.png differ diff --git a/data/config.json b/data/config.json index 3dc07d4e..769fdcdc 100755 --- a/data/config.json +++ b/data/config.json @@ -1 +1 @@ -{"ipserver":"172.16.5.134","apitoken":"6abef18c-783d-4dd0-b530-be6e6a7bbd1d","tokencallbell":"g8thcZkXGd3xBj2g3TtYNYFMH1fuesbJ.b6a940ea7d78cf6c9e42f067b21c8ddf96e9fa2a9e307bfd0c7c7c4d7fa38f79","tokenstripe":"sk_test_51OkG0REFY1WEUtgRH6UxBK5pu80Aq5Iy8EcdPnf0cOWzuVLQTpyLCd7CbPzqMsWMafZOHElCxhEHF7g8boURjWlJ00tBwE0W1M","unmsApiToken":null,"hostServerFTP":"siip.mx","usernameServerFTP":"siip0001","passServerFTP":"$spGiT,[wa)n","cashPaymentMethodId":false,"courtesyPaymentMethodId":false,"bankTransferPaymentMethodId":true,"paypalPaymentMethodId":true,"creditCardPaypalPaymentMethodId":true,"creditCardStripePaymentMethodId":true,"stripeSubscriptionCreditCardPaymentMethodId":true,"paypalSubscriptionPaymentMethodId":true,"mercadopagoPaymentMethodId":true,"checkPaymentMethodId":true,"customPaymentMethodId":true,"notificationTypeText":false,"installersDataWhatsApp":"{\r\n \"instaladores\": [\r\n {\r\n \"id\": 1019,\r\n \"nombre\": \"Mucio Robledo\",\r\n \"whatsapp\": \"4181878106\"\r\n },\r\n {\r\n \"id\": 1173,\r\n \"nombre\": \"Ángel Arvizu\",\r\n \"whatsapp\": \"4181878106\"\r\n },\r\n {\r\n \"id\": 1172,\r\n \"nombre\": \"Juan Rostro\",\r\n \"whatsapp\": \"4181878106\"\r\n },\r\n {\r\n \"id\": 1015,\r\n \"nombre\": \"Daniel Humberto\",\r\n \"whatsapp\": \"4181878106\"\r\n },\r\n {\r\n \"id\": 1131,\r\n \"nombre\": \"Gricelda Avalos\",\r\n \"whatsapp\": \"4181817609\"\r\n }\r\n ]\r\n}","debugMode":true,"logging_level":true} \ No newline at end of file +{"ipserver":"172.16.5.134","apitoken":"gvcnIJqXdUjneVSjhl6THLlQcYXJyIFCcwHKVba2bvIrNraanCTb5VeoWuJ0TFZ9","unmsApiToken":null,"tokencallbell":"g8thcZkXGd3xBj2g3TtYNYFMH1fuesbJ.b6a940ea7d78cf6c9e42f067b21c8ddf96e9fa2a9e307bfd0c7c7c4d7fa38f79","tokenstripe":"sk_test_51OkG0REFY1WEUtgRH6UxBK5pu80Aq5Iy8EcdPnf0cOWzuVLQTpyLCd7CbPzqMsWMafZOHElCxhEHF7g8boURjWlJ00tBwE0W1M","hostServerFTP":"siip.mx","usernameServerFTP":"siip0001","passServerFTP":"$spGiT,[wa)n","ipPuppeteer":"172.16.5.134","idPaymentAdminCRM":"1180","cashPaymentMethodId":false,"courtesyPaymentMethodId":false,"bankTransferPaymentMethodId":true,"paypalPaymentMethodId":true,"creditCardPaypalPaymentMethodId":true,"creditCardStripePaymentMethodId":true,"stripeSubscriptionCreditCardPaymentMethodId":true,"paypalSubscriptionPaymentMethodId":true,"mercadopagoPaymentMethodId":true,"checkPaymentMethodId":true,"customPaymentMethodId":true,"notificationTypeText":false,"installersDataWhatsApp":"{\r\n \"instaladores\": [\r\n {\r\n \"id\": 1019,\r\n \"nombre\": \"Mucio Robledo\",\r\n \"whatsapp\": \"4181878106\"\r\n },\r\n {\r\n \"id\": 1173,\r\n \"nombre\": \"Ángel Arvizu\",\r\n \"whatsapp\": \"4181878106\"\r\n },\r\n {\r\n \"id\": 1172,\r\n \"nombre\": \"Juan Rostro\",\r\n \"whatsapp\": \"4181878106\"\r\n },\r\n {\r\n \"id\": 1015,\r\n \"nombre\": \"Daniel Humberto\",\r\n \"whatsapp\": \"4181878106\"\r\n },\r\n {\r\n \"id\": 1131,\r\n \"nombre\": \"Gricelda Avalos\",\r\n \"whatsapp\": \"4181817609\"\r\n }\r\n ]\r\n}","debugMode":true,"logging_level":true} \ No newline at end of file diff --git a/data/plugin.log b/data/plugin.log index e133d687..54383c3d 100755 --- a/data/plugin.log +++ b/data/plugin.log @@ -1,5735 +1,95 @@ -[2025-05-30 16:52:19.327909] [notice] Logging level set to:debug -[2025-05-30 16:52:19.328277] [debug] valor del webhook: {"uuid":"b19e10db-9b25-447a-af1a-ff6780ce012c","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 16:52:19.366075] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 16:52:19.366137] [debug] Valor de JSON: {"uuid":"b19e10db-9b25-447a-af1a-ff6780ce012c","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 16:52:19.366355] [debug] Se actualiza un trabajo - -[2025-05-30 16:52:19.366375] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 16:52:26.508114] [notice] Logging level set to:debug -[2025-05-30 16:52:26.508213] [debug] valor del webhook: {"uuid":"6c6f75f4-7c3f-4550-8b6d-107242103f6c","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 16:52:26.537961] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 16:52:26.538105] [debug] Valor de JSON: {"uuid":"6c6f75f4-7c3f-4550-8b6d-107242103f6c","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 16:52:26.538249] [debug] Se actualiza un trabajo - -[2025-05-30 16:52:26.538295] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 16:52:29.724842] [notice] Logging level set to:debug -[2025-05-30 16:52:29.725030] [debug] valor del webhook: {"uuid":"c6a317b5-ca2e-466d-9349-98da2aa9bd5f","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 16:52:29.750267] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 16:52:29.750438] [debug] Valor de JSON: {"uuid":"c6a317b5-ca2e-466d-9349-98da2aa9bd5f","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 16:52:29.750653] [debug] Se actualiza un trabajo - -[2025-05-30 16:52:29.750716] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 16:52:29.750770] [debug] El instalador cambió de null a un valor -[2025-05-30 16:52:29.750823] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-05-30 16:52:29.750922] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"c6a317b5-ca2e-466d-9349-98da2aa9bd5f","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 16:52:29.751007] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"c6a317b5-ca2e-466d-9349-98da2aa9bd5f","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 16:52:29.751074] [debug] Valor de $reprogramming en verifyJobActionToDo: false - -[2025-05-30 16:52:29.751121] [debug] Valor de $changeInstaller en verifyJobActionToDo: false - -[2025-05-30 16:52:29.751177] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Angel Arvizu", - "whatsapp": "4181878106" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - } - ] +[2025-07-17 20:22:59.478171] [notice] Logging level set to:debug +[2025-07-17 20:22:59.478404] [debug] valor del webhook: { + "id": "evt_1RlyKUEFY1WEUtgRO32FAIMd", + "object": "event", + "api_version": "2023-10-16", + "created": 1752783778, + "data": { + "object": { + "id": "ccsbtxn_1RlyKUEFY1WEUtgRS1HIqH4l", + "object": "customer_cash_balance_transaction", + "created": 1752783778, + "currency": "mxn", + "customer": "cus_PetN1dhr4rx0kX", + "ending_balance": 25000, + "funded": { + "bank_transfer": { + "reference": "", + "type": "mx_bank_transfer" + } + }, + "livemode": false, + "net_amount": 25000, + "type": "funded" + } + }, + "livemode": false, + "pending_webhooks": 2, + "request": { + "id": "req_mT79JYOKMdUS37", + "idempotency_key": "fc969009-b716-4275-929c-fe4ec92a296d" + }, + "type": "customer_cash_balance_transaction.created" } -[2025-05-30 16:52:29.783698] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1172,"unmsId":"2ac31363-6037-40f3-8196-5cc7c71866b0","email":"amazonrostro@gmail.com","firstName":"Juan","lastName":"Rostro","username":"rostro","avatarColor":"#00695c","isActive":true} +[2025-07-17 20:22:59.478478] [info] No UUID found in the webhook data +[2025-07-17 20:22:59.478529] [info] Evento de transferencia de un cliente recibido: {"id":"evt_1RlyKUEFY1WEUtgRO32FAIMd","object":"event","api_version":"2023-10-16","created":1752783778,"data":{"object":{"id":"ccsbtxn_1RlyKUEFY1WEUtgRS1HIqH4l","object":"customer_cash_balance_transaction","created":1752783778,"currency":"mxn","customer":"cus_PetN1dhr4rx0kX","ending_balance":25000,"funded":{"bank_transfer":{"reference":"","type":"mx_bank_transfer"}},"livemode":false,"net_amount":25000,"type":"funded"}},"livemode":false,"pending_webhooks":2,"request":{"id":"req_mT79JYOKMdUS37","idempotency_key":"fc969009-b716-4275-929c-fe4ec92a296d"},"type":"customer_cash_balance_transaction.created"} -[2025-05-30 16:52:29.783832] [debug] Número de WhatsApp del Instalador: 4181878106 +[2025-07-17 20:22:59.478566] [info] Iniciando creación de PaymentIntent en Stripe. -[2025-05-30 16:52:29.814894] [debug] Valor de $installerFullName: Juan Rostro +[2025-07-17 20:22:59.480979] [info] Cantidad del PaymentIntent: 25000 -[2025-05-30 16:52:29.884972] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 +[2025-07-17 20:23:01.540266] [info] PaymentIntent creado: pi_3RlyKWEFY1WEUtgR1S7FKHQD -[2025-05-30 16:52:29.885087] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-30 16:52:29.885221] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-30 16:52:29.885307] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false - -DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: false - -Enviando notificación normal de visita técnica al cliente, valor de reprogramming y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "*#️⃣54*", "🗓️ *01/06/2025", "👷🏻‍♂️➡️ *Juan Rostro*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], - "template_uuid": "07cfbc6e394044608485b530a27177d0", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"a399de1c5ba64536b3b2ad40a15a57ca","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-30 16:52:30.644241] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-05-30 16:52:30.644471] [debug] Valor de $title en verifyJobActionToDo: [NOTIFICACION-PENDIENTE]Ir a checar instalación - -[2025-05-30 16:52:30.718312] [debug] Valor de $title después de quitar el prefijo en verifyJobActionToDo: Ir a checar instalación - -[2025-05-30 16:52:30.718440] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: false - -[2025-05-30 16:52:30.718487] [debug] No se cambió el instalador - -[2025-05-30 16:52:30.718544] [debug] Iniciando búsqueda de credenciales en el Vault para: 2 - -[2025-05-30 16:52:30.718647] [debug] La variable dataToSearch es un id de cliente: 2 - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"Juan Rostro","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*01\/06\/2025","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false - -Enviando notificación normal de tarea al instalador, valor de reprogramming y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ *Juan Rostro* se te ha asignado una tarea con folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, para el 🗓️ *01/06/2025", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], - "template_uuid": "88eeb6420a214fd8870dd28d741021c4", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"6fc5245cb988480fa54ec4c696d3fc71","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-30 16:52:31.624614] [notice] Logging level set to:debug -[2025-05-30 16:52:31.624766] [debug] valor del webhook: {"uuid":"3ffc204a-42dd-456b-9153-e5ab5cb68f9f","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 16:52:31.652760] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 16:52:31.652914] [debug] Valor de JSON: {"uuid":"3ffc204a-42dd-456b-9153-e5ab5cb68f9f","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 16:52:31.653043] [debug] Se actualiza un trabajo - -[2025-05-30 16:52:31.653090] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 16:52:31.653130] [debug] No hubo cambio en el instalador ni en la fecha -[2025-05-30 16:56:01.793137] [notice] Logging level set to:debug -[2025-05-30 16:56:01.793229] [debug] valor del webhook: {"uuid":"3f2f637a-ceb4-4996-8594-17cb7472fe41","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 16:56:01.828747] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 16:56:01.828800] [debug] Valor de JSON: {"uuid":"3f2f637a-ceb4-4996-8594-17cb7472fe41","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 16:56:01.829011] [debug] Se actualiza un trabajo - -[2025-05-30 16:56:01.829030] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 16:56:01.829041] [debug] No hay reprogramación de trabajo pero si hay cambio de instalador -[2025-05-30 16:56:01.829054] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-05-30 16:56:01.829099] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"3f2f637a-ceb4-4996-8594-17cb7472fe41","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 16:56:01.829121] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"3f2f637a-ceb4-4996-8594-17cb7472fe41","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 16:56:01.829130] [debug] Valor de $reprogramming en verifyJobActionToDo: false - -[2025-05-30 16:56:01.829138] [debug] Valor de $changeInstaller en verifyJobActionToDo: true - -[2025-05-30 16:56:01.829153] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Angel Arvizu", - "whatsapp": "4181878106" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - } - ] +[2025-07-17 20:23:01.921420] [notice] Logging level set to:debug +[2025-07-17 20:23:01.921534] [debug] valor del webhook: { + "id": "evt_1RlyKXEFY1WEUtgR8mx6Av1g", + "object": "event", + "api_version": "2023-10-16", + "created": 1752783780, + "data": { + "object": { + "id": "ccsbtxn_1RlyKWEFY1WEUtgRSIuS2zhn", + "object": "customer_cash_balance_transaction", + "applied_to_payment": { + "payment_intent": "pi_3RlyKWEFY1WEUtgR1S7FKHQD" + }, + "created": 1752783780, + "currency": "mxn", + "customer": "cus_PetN1dhr4rx0kX", + "ending_balance": 0, + "livemode": false, + "net_amount": -25000, + "type": "applied_to_payment" + } + }, + "livemode": false, + "pending_webhooks": 2, + "request": { + "id": "req_TBO3WK3TPubb61", + "idempotency_key": "8eb24082-fe31-444b-bbe7-ed08c5a89fcc" + }, + "type": "customer_cash_balance_transaction.created" } -[2025-05-30 16:56:01.862413] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1173,"unmsId":"5cb37ee8-e445-4b2a-87d4-6c83eebb8944","email":"hachi9801@gmail.com","firstName":"\u00c1ngel ","lastName":"Arvizu","username":"mamey","avatarColor":"#4caf50","isActive":true} +[2025-07-17 20:23:01.921582] [info] No UUID found in the webhook data +[2025-07-17 20:23:01.921648] [info] Se aplicó el saldo en Stripe de un pago: {"id":"evt_1RlyKXEFY1WEUtgR8mx6Av1g","object":"event","api_version":"2023-10-16","created":1752783780,"data":{"object":{"id":"ccsbtxn_1RlyKWEFY1WEUtgRSIuS2zhn","object":"customer_cash_balance_transaction","applied_to_payment":{"payment_intent":"pi_3RlyKWEFY1WEUtgR1S7FKHQD"},"created":1752783780,"currency":"mxn","customer":"cus_PetN1dhr4rx0kX","ending_balance":0,"livemode":false,"net_amount":-25000,"type":"applied_to_payment"}},"livemode":false,"pending_webhooks":2,"request":{"id":"req_TBO3WK3TPubb61","idempotency_key":"8eb24082-fe31-444b-bbe7-ed08c5a89fcc"},"type":"customer_cash_balance_transaction.created"} -[2025-05-30 16:56:01.862544] [debug] Número de WhatsApp del Instalador: 4181878106 +[2025-07-17 20:23:03.612502] [notice] Logging level set to:debug +[2025-07-17 20:23:03.612575] [debug] valor del webhook: {"uuid":"6fc47ad5-b8b3-45f9-884f-7d71d616cd42","changeType":"insert","entity":"payment","entityId":"669","eventName":"payment.add","extraData":{"entity":{"id":669,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-17T14:23:03-0600","amount":250,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":250,"userId":null,"attributes":[]},"entityBeforeEdit":null}} -[2025-05-30 16:56:01.895829] [debug] Valor de $installerFullName: Ángel Arvizu +[2025-07-17 20:23:03.776177] [debug] valor el evento recibido por webhook: payment.add -[2025-05-30 16:56:01.961401] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 +[2025-07-17 20:23:03.776357] [debug] Valor de JSON: {"uuid":"6fc47ad5-b8b3-45f9-884f-7d71d616cd42","changeType":"insert","entity":"payment","entityId":"669","eventName":"payment.add","extraData":{"entity":{"id":669,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-17T14:23:03-0600","amount":250,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":250,"userId":null,"attributes":[]},"entityBeforeEdit":null}} -[2025-05-30 16:56:01.961612] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] +[2025-07-17 20:23:03.776531] [debug] Notification encodificado en JSON:{"uuid":"6fc47ad5-b8b3-45f9-884f-7d71d616cd42","changeType":"insert","entity":"payment","entityId":669,"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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":1250,"accountCredit":1250,"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":669,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-17T14:23:03-0600","amount":250,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":250,"userId":null,"attributes":[]}} -[2025-05-30 16:56:01.961739] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] +[2025-07-17 20:23:03.776606] [debug] valor del payment data: {"id":669,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-17T14:23:03-0600","amount":250,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":250,"userId":null,"attributes":[]} -[2025-05-30 16:56:01.961812] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true - -DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: true - -Enviando notificación de cambio de instalador al cliente, valor de reprogramming y valor de changeInstaller 1 - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "se ha hecho un cambio de técnico 👷🏻‍♂️🔄 para su visita con el folio *#️⃣54*", "🗓️ *01/06/2025*", "👷🏻‍♂️➡️ *Ángel Arvizu*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], - "template_uuid": "d684e6fa2ba24593a86c98be1815831d", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"27a55ab2660a43599f3ad497fc9a44f8","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-30 16:56:02.969120] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-05-30 16:56:02.969361] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación - -[2025-05-30 16:56:02.969486] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación - -[2025-05-30 16:56:02.969607] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: true - -[2025-05-30 16:56:02.969713] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó - -[2025-05-30 16:56:03.007776] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106 - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"\ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0fJuan Rostro","subjectOfChange":"se te ha desasignado\u274c la tarea con el folio ","jobId":"54","clientFullName":"[2] Daniel Humberto Soto Villegas","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico \ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u27a1\ufe0f *\u00c1ngel Arvizu*"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true - -Enviando notificación de cambio de instalador al instalador anterior, valor de reprogramming y valor de changeInstaller 1 - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ 👷🏻‍♂️Juan Rostro", "se te ha desasignado❌ la tarea con el folio ", "#️⃣54", "👤 *Cliente:* [2] Daniel Humberto Soto Villegas", "En tu lugar asistirá el técnico 👷🏻‍♂️➡️ *Ángel Arvizu*"], - "template_uuid": "e1aa2b0fd3884595918f4ac2676acd29", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"1b44ce398b2844588477c4e502c81fd1","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-30 16:56:07.770865] [debug] Iniciando búsqueda de credenciales en el Vault para: 2 - -[2025-05-30 16:56:07.771228] [debug] La variable dataToSearch es un id de cliente: 2 - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"\u00c1ngel Arvizu","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*01\/06\/2025*","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false - -Enviando notificación normal de tarea al instalador, valor de reprogramming y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ *Ángel Arvizu* se te ha asignado una tarea con folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, para el 🗓️ *01/06/2025*", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], - "template_uuid": "88eeb6420a214fd8870dd28d741021c4", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"ceca17b75dfe45f3bdbb17f5162c98d9","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-30 16:56:40.596395] [notice] Logging level set to:debug -[2025-05-30 16:56:40.596731] [debug] valor del webhook: {"uuid":"01b78983-891b-4d44-89a8-38c2692e14ef","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 16:56:40.622116] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 16:56:40.622256] [debug] Valor de JSON: {"uuid":"01b78983-891b-4d44-89a8-38c2692e14ef","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 16:56:40.622483] [debug] Se actualiza un trabajo - -[2025-05-30 16:56:40.622538] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 16:56:40.622579] [debug] Se reprogramó el trabajo pero no hubo cambio de instalador -[2025-05-30 16:56:40.622622] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-05-30 16:56:40.622704] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"01b78983-891b-4d44-89a8-38c2692e14ef","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 16:56:40.622772] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"01b78983-891b-4d44-89a8-38c2692e14ef","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-01T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 16:56:40.622812] [debug] Valor de $reprogramming en verifyJobActionToDo: true - -[2025-05-30 16:56:40.622845] [debug] Valor de $changeInstaller en verifyJobActionToDo: false - -[2025-05-30 16:56:40.622888] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Angel Arvizu", - "whatsapp": "4181878106" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - } - ] -} - -[2025-05-30 16:56:40.661757] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1173,"unmsId":"5cb37ee8-e445-4b2a-87d4-6c83eebb8944","email":"hachi9801@gmail.com","firstName":"\u00c1ngel ","lastName":"Arvizu","username":"mamey","avatarColor":"#4caf50","isActive":true} - -[2025-05-30 16:56:40.661894] [debug] Número de WhatsApp del Instalador: 4181878106 - -[2025-05-30 16:56:40.703242] [debug] Valor de $installerFullName: Ángel Arvizu - -[2025-05-30 16:56:40.788870] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 - -[2025-05-30 16:56:40.791063] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-30 16:56:40.791266] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-30 16:56:40.791379] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false - -DEBUG: Valores antes de la estructura IF - Reprogramming: true, ChangeInstaller: false - -Enviando notificación de reprogramación al cliente, valor de reprogramming 1 y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["Estimado cliente 👤 *Daniel Humberto Soto Villegas* se ha reprogramado su visita técnica con folio *#️⃣54*", "🗓️➡️ *02/06/2025*", "👷🏻‍♂️➡️ *Ángel Arvizu*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], - "template_uuid": "715eed9d6f2d4d90853f25e296202e00", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"e5a8d289e81a45f38f11f52bed4d92c6","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-30 16:56:41.602298] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-05-30 16:56:41.602551] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación - -[2025-05-30 16:56:41.602678] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación - -[2025-05-30 16:56:41.602821] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: true, ChangeInstaller: false - -[2025-05-30 16:56:41.602926] [debug] No se cambió el instalador - -[2025-05-30 16:56:41.603122] [debug] Iniciando búsqueda de credenciales en el Vault para: 2 - -[2025-05-30 16:56:41.603341] [debug] La variable dataToSearch es un id de cliente: 2 - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"\u00c1ngel Arvizu","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*02\/06\/2025*","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} - -DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false - -Enviando notificación de reprogramación al instalador, valor de reprogramming 1 y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ *Ángel Arvizu* se reprogramó una tarea con el folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, la nueva fecha será el 🗓️➡️ *02/06/2025*", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], - "template_uuid": "88eeb6420a214fd8870dd28d741021c4", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"1afde7180b2848c9830809c8fb9922bc","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-30 17:50:15.875696] [notice] Logging level set to:debug -[2025-05-30 17:50:15.875781] [debug] valor del webhook: {"uuid":"78d33c27-b0a8-4f55-bf7b-0480c35b6341","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 17:50:15.903736] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 17:50:15.903790] [debug] Valor de JSON: {"uuid":"78d33c27-b0a8-4f55-bf7b-0480c35b6341","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 17:50:15.903990] [debug] Se actualiza un trabajo - -[2025-05-30 17:50:15.904011] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 17:50:28.096195] [notice] Logging level set to:debug -[2025-05-30 17:50:28.096456] [debug] valor del webhook: {"uuid":"8cafb1e8-0706-40da-918e-787ed7ed2578","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 17:50:28.139205] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 17:50:28.139349] [debug] Valor de JSON: {"uuid":"8cafb1e8-0706-40da-918e-787ed7ed2578","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 17:50:28.139581] [debug] Se actualiza un trabajo - -[2025-05-30 17:50:28.139642] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 17:50:32.211833] [notice] Logging level set to:debug -[2025-05-30 17:50:32.212199] [debug] valor del webhook: {"uuid":"16c7e94e-1c52-409c-bf6a-ce9336fa33ce","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 17:50:32.241657] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 17:50:32.241861] [debug] Valor de JSON: {"uuid":"16c7e94e-1c52-409c-bf6a-ce9336fa33ce","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 17:50:32.242043] [debug] Se actualiza un trabajo - -[2025-05-30 17:50:32.242095] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 17:50:32.242136] [debug] El instalador cambió de null a un valor -[2025-05-30 17:50:32.242197] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-05-30 17:50:32.242310] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"16c7e94e-1c52-409c-bf6a-ce9336fa33ce","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 17:50:32.242360] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"16c7e94e-1c52-409c-bf6a-ce9336fa33ce","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 17:50:32.242399] [debug] Valor de $reprogramming en verifyJobActionToDo: false - -[2025-05-30 17:50:32.242436] [debug] Valor de $changeInstaller en verifyJobActionToDo: false - -[2025-05-30 17:50:32.242480] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Angel Arvizu", - "whatsapp": "4181878106" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - } - ] -} - -[2025-05-30 17:50:32.274905] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1173,"unmsId":"5cb37ee8-e445-4b2a-87d4-6c83eebb8944","email":"hachi9801@gmail.com","firstName":"\u00c1ngel ","lastName":"Arvizu","username":"mamey","avatarColor":"#4caf50","isActive":true} - -[2025-05-30 17:50:32.275070] [debug] Número de WhatsApp del Instalador: 4181878106 - -[2025-05-30 17:50:32.309446] [debug] Valor de $installerFullName: Ángel Arvizu - -[2025-05-30 17:50:32.374001] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 - -[2025-05-30 17:50:32.374129] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-30 17:50:32.374245] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-30 17:50:32.374339] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false - -DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: false - -Enviando notificación normal de visita técnica al cliente, valor de reprogramming y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "*#️⃣54*", "🗓️ *02/06/2025*", "👷🏻‍♂️➡️ *Ángel Arvizu*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], - "template_uuid": "07cfbc6e394044608485b530a27177d0", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"eca914d6f6df492ba011094535af1dc7","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-30 17:50:33.462290] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-05-30 17:50:33.462625] [debug] Valor de $title en verifyJobActionToDo: [NOTIFICACION-PENDIENTE]Ir a checar instalación - -[2025-05-30 17:50:33.547179] [debug] Valor de $title después de quitar el prefijo en verifyJobActionToDo: Ir a checar instalación - -[2025-05-30 17:50:33.547319] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: false - -[2025-05-30 17:50:33.547364] [debug] No se cambió el instalador - -[2025-05-30 17:50:33.547420] [debug] Iniciando búsqueda de credenciales en el Vault para: 2 - -[2025-05-30 17:50:33.547533] [debug] La variable dataToSearch es un id de cliente: 2 - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"\u00c1ngel Arvizu","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*02\/06\/2025*","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false - -Enviando notificación normal de tarea al instalador, valor de reprogramming y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ *Ángel Arvizu* se te ha asignado una tarea con folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, para el 🗓️ *02/06/2025*", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "passowrdchida"], - "template_uuid": "88eeb6420a214fd8870dd28d741021c4", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"a62ec49092af4879a87e67a475172e1b","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-30 17:50:34.467987] [notice] Logging level set to:debug -[2025-05-30 17:50:34.468127] [debug] valor del webhook: {"uuid":"585b69c3-3a73-4f05-87e7-81beea274633","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 17:50:34.498147] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 17:50:34.498284] [debug] Valor de JSON: {"uuid":"585b69c3-3a73-4f05-87e7-81beea274633","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 17:50:34.498421] [debug] Se actualiza un trabajo - -[2025-05-30 17:50:34.498467] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 17:50:34.498507] [debug] No hubo cambio en el instalador ni en la fecha -[2025-05-30 17:56:59.547414] [notice] Logging level set to:debug -[2025-05-30 17:56:59.547497] [debug] valor del webhook: {"uuid":"9c013d77-2692-41f9-83d0-fa3880583dab","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 17:56:59.575588] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 17:56:59.575701] [debug] Valor de JSON: {"uuid":"9c013d77-2692-41f9-83d0-fa3880583dab","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 17:56:59.576179] [debug] Se actualiza un trabajo - -[2025-05-30 17:56:59.576227] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 17:57:05.390305] [notice] Logging level set to:debug -[2025-05-30 17:57:05.390623] [debug] valor del webhook: {"uuid":"6c349bdd-a635-4035-81e1-15d524afad4b","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 17:57:05.416486] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 17:57:05.417198] [debug] Valor de JSON: {"uuid":"6c349bdd-a635-4035-81e1-15d524afad4b","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 17:57:05.417366] [debug] Se actualiza un trabajo - -[2025-05-30 17:57:05.417386] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 18:00:58.630542] [notice] Logging level set to:debug -[2025-05-30 18:00:58.630752] [debug] valor del webhook: {"uuid":"a79d0d2f-e54d-448a-afea-171769c00766","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 18:00:58.657902] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 18:00:58.658049] [debug] Valor de JSON: {"uuid":"a79d0d2f-e54d-448a-afea-171769c00766","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 18:00:58.658301] [debug] Se actualiza un trabajo - -[2025-05-30 18:00:58.658360] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 18:00:58.658401] [debug] El instalador cambió de null a un valor -[2025-05-30 18:00:58.658449] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-05-30 18:00:58.658533] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"a79d0d2f-e54d-448a-afea-171769c00766","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 18:00:58.658586] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"a79d0d2f-e54d-448a-afea-171769c00766","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 18:00:58.658624] [debug] Valor de $reprogramming en verifyJobActionToDo: false - -[2025-05-30 18:00:58.658658] [debug] Valor de $changeInstaller en verifyJobActionToDo: false - -[2025-05-30 18:00:58.658698] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Angel Arvizu", - "whatsapp": "4181878106" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - } - ] -} - -[2025-05-30 18:00:58.691342] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1173,"unmsId":"5cb37ee8-e445-4b2a-87d4-6c83eebb8944","email":"hachi9801@gmail.com","firstName":"\u00c1ngel ","lastName":"Arvizu","username":"mamey","avatarColor":"#4caf50","isActive":true} - -[2025-05-30 18:00:58.691529] [debug] Número de WhatsApp del Instalador: 4181878106 - -[2025-05-30 18:00:58.722682] [debug] Valor de $installerFullName: Ángel Arvizu - -[2025-05-30 18:00:58.795244] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 - -[2025-05-30 18:00:58.795295] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-30 18:00:58.795404] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-30 18:00:58.795460] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false - -DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: false - -Enviando notificación normal de visita técnica al cliente, valor de reprogramming y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "*#️⃣54*", "🗓️ *02/06/2025*", "👷🏻‍♂️➡️ *Ángel Arvizu*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], - "template_uuid": "07cfbc6e394044608485b530a27177d0", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"8320575787e24a16865fadf5efe047be","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-30 18:00:59.247427] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-05-30 18:00:59.247566] [debug] Valor de $title en verifyJobActionToDo: [NOTIFICACION-PENDIENTE]Ir a checar instalación - -[2025-05-30 18:00:59.332540] [debug] Valor de $title después de quitar el prefijo en verifyJobActionToDo: Ir a checar instalación - -[2025-05-30 18:00:59.332591] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: false - -[2025-05-30 18:00:59.332612] [debug] No se cambió el instalador - -[2025-05-30 18:00:59.332650] [debug] Iniciando búsqueda de credenciales en el Vault para: 2 - -[2025-05-30 18:00:59.332740] [debug] La variable dataToSearch es un id de cliente: 2 - -[2025-05-30 18:00:59.480756] [notice] Logging level set to:debug -[2025-05-30 18:00:59.480845] [debug] valor del webhook: {"uuid":"79d10af6-9d78-4a89-97b1-22693ac86861","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 18:00:59.510859] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 18:00:59.510915] [debug] Valor de JSON: {"uuid":"79d10af6-9d78-4a89-97b1-22693ac86861","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 18:00:59.511106] [debug] Se actualiza un trabajo - -[2025-05-30 18:00:59.511131] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 18:00:59.511143] [debug] No hubo cambio en el instalador ni en la fecha -[2025-05-30 18:04:01.365423] [notice] Logging level set to:debug -[2025-05-30 18:04:01.365673] [debug] valor del webhook: {"uuid":"c494c48d-b734-4ca1-ab8c-d0ab1862fe26","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 18:04:01.394845] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 18:04:01.395174] [debug] Valor de JSON: {"uuid":"c494c48d-b734-4ca1-ab8c-d0ab1862fe26","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 18:04:01.395488] [debug] Se actualiza un trabajo - -[2025-05-30 18:04:01.395551] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 18:04:01.395595] [debug] Se reprogramó el trabajo pero no hubo cambio de instalador -[2025-05-30 18:04:01.395646] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-05-30 18:04:01.395733] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"c494c48d-b734-4ca1-ab8c-d0ab1862fe26","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 18:04:01.395777] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"c494c48d-b734-4ca1-ab8c-d0ab1862fe26","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-02T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 18:04:01.395821] [debug] Valor de $reprogramming en verifyJobActionToDo: true - -[2025-05-30 18:04:01.395858] [debug] Valor de $changeInstaller en verifyJobActionToDo: false - -[2025-05-30 18:04:01.397558] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Angel Arvizu", - "whatsapp": "4181878106" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - } - ] -} - -[2025-05-30 18:04:01.449029] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1173,"unmsId":"5cb37ee8-e445-4b2a-87d4-6c83eebb8944","email":"hachi9801@gmail.com","firstName":"\u00c1ngel ","lastName":"Arvizu","username":"mamey","avatarColor":"#4caf50","isActive":true} - -[2025-05-30 18:04:01.449181] [debug] Número de WhatsApp del Instalador: 4181878106 - -[2025-05-30 18:04:01.482623] [debug] Valor de $installerFullName: Ángel Arvizu - -[2025-05-30 18:04:01.565094] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 - -[2025-05-30 18:04:01.565138] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-30 18:04:01.565222] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-30 18:04:01.565268] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false - -DEBUG: Valores antes de la estructura IF - Reprogramming: true, ChangeInstaller: false - -Enviando notificación de reprogramación al cliente, valor de reprogramming 1 y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["Estimado cliente 👤 *Daniel Humberto Soto Villegas* se ha reprogramado su visita técnica con folio *#️⃣54*", "🗓️➡️ *03/06/2025*", "👷🏻‍♂️➡️ *Ángel Arvizu*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], - "template_uuid": "715eed9d6f2d4d90853f25e296202e00", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"abb996e5f7a64d4ca1d39aa24a481cb5","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-30 18:04:02.415726] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-05-30 18:04:02.415901] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación - -[2025-05-30 18:04:02.415937] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación - -[2025-05-30 18:04:02.415975] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: true, ChangeInstaller: false - -[2025-05-30 18:04:02.415997] [debug] No se cambió el instalador - -[2025-05-30 18:04:02.416063] [debug] Iniciando búsqueda de credenciales en el Vault para: 2 - -[2025-05-30 18:04:02.416268] [debug] La variable dataToSearch es un id de cliente: 2 - -[2025-05-30 18:04:21.188220] [notice] Logging level set to:debug -[2025-05-30 18:04:21.188319] [debug] valor del webhook: {"uuid":"cddddb72-4e63-4627-af2c-f7710a0d9e01","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 18:04:21.225929] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 18:04:21.225994] [debug] Valor de JSON: {"uuid":"cddddb72-4e63-4627-af2c-f7710a0d9e01","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 18:04:21.226211] [debug] Se actualiza un trabajo - -[2025-05-30 18:04:21.226232] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 18:04:21.226243] [debug] No hay reprogramación de trabajo pero si hay cambio de instalador -[2025-05-30 18:04:21.226263] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-05-30 18:04:21.226315] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"cddddb72-4e63-4627-af2c-f7710a0d9e01","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 18:04:21.226341] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"cddddb72-4e63-4627-af2c-f7710a0d9e01","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 18:04:21.226351] [debug] Valor de $reprogramming en verifyJobActionToDo: false - -[2025-05-30 18:04:21.226358] [debug] Valor de $changeInstaller en verifyJobActionToDo: true - -[2025-05-30 18:04:21.226372] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Angel Arvizu", - "whatsapp": "4181878106" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - } - ] -} - -[2025-05-30 18:04:21.264209] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1172,"unmsId":"2ac31363-6037-40f3-8196-5cc7c71866b0","email":"amazonrostro@gmail.com","firstName":"Juan","lastName":"Rostro","username":"rostro","avatarColor":"#00695c","isActive":true} - -[2025-05-30 18:04:21.264262] [debug] Número de WhatsApp del Instalador: 4181878106 - -[2025-05-30 18:04:21.300266] [debug] Valor de $installerFullName: Juan Rostro - -[2025-05-30 18:04:21.364789] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 - -[2025-05-30 18:04:21.364912] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-30 18:04:21.365034] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-30 18:04:21.365113] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true - -DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: true - -Enviando notificación de cambio de instalador al cliente, valor de reprogramming y valor de changeInstaller 1 - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "se ha hecho un cambio de técnico 👷🏻‍♂️🔄 para su visita con el folio *#️⃣54*", "🗓️ *03/06/2025*", "👷🏻‍♂️➡️ *Juan Rostro*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], - "template_uuid": "d684e6fa2ba24593a86c98be1815831d", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"0119fda955dc4a2095c390b905f6cae0","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-30 18:04:22.137687] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-05-30 18:04:22.137921] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación - -[2025-05-30 18:04:22.138046] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación - -[2025-05-30 18:04:22.138217] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: true - -[2025-05-30 18:04:22.138360] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó - -[2025-05-30 18:04:22.176135] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106 - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"\ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u00c1ngel Arvizu","subjectOfChange":"se te ha desasignado\u274c la tarea con el folio ","jobId":"54","clientFullName":"[2] Daniel Humberto Soto Villegas","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico \ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u27a1\ufe0f *Juan Rostro*"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true - -Enviando notificación de cambio de instalador al instalador anterior, valor de reprogramming y valor de changeInstaller 1 - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ 👷🏻‍♂️Ángel Arvizu", "se te ha desasignado❌ la tarea con el folio ", "#️⃣54", "👤 *Cliente:* [2] Daniel Humberto Soto Villegas", "En tu lugar asistirá el técnico 👷🏻‍♂️➡️ *Juan Rostro*"], - "template_uuid": "e1aa2b0fd3884595918f4ac2676acd29", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"342dcca9f38547178675eb7033356e72","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-30 18:04:26.940141] [debug] Iniciando búsqueda de credenciales en el Vault para: 2 - -[2025-05-30 18:04:26.940799] [debug] La variable dataToSearch es un id de cliente: 2 - -[2025-05-30 18:06:20.202104] [notice] Logging level set to:debug -[2025-05-30 18:06:20.202445] [debug] valor del webhook: {"uuid":"4c9332b2-b3a3-4112-bba2-1737c85d8dc0","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 18:06:20.229302] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 18:06:20.229443] [debug] Valor de JSON: {"uuid":"4c9332b2-b3a3-4112-bba2-1737c85d8dc0","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 18:06:20.229687] [debug] Se actualiza un trabajo - -[2025-05-30 18:06:20.229746] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 18:06:20.229785] [debug] No hay reprogramación de trabajo pero si hay cambio de instalador -[2025-05-30 18:06:20.229834] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-05-30 18:06:20.229918] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"4c9332b2-b3a3-4112-bba2-1737c85d8dc0","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 18:06:20.229960] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"4c9332b2-b3a3-4112-bba2-1737c85d8dc0","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 18:06:20.229998] [debug] Valor de $reprogramming en verifyJobActionToDo: false - -[2025-05-30 18:06:20.230031] [debug] Valor de $changeInstaller en verifyJobActionToDo: true - -[2025-05-30 18:06:20.230071] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Angel Arvizu", - "whatsapp": "4181878106" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - } - ] -} - -[2025-05-30 18:06:20.267606] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1173,"unmsId":"5cb37ee8-e445-4b2a-87d4-6c83eebb8944","email":"hachi9801@gmail.com","firstName":"\u00c1ngel ","lastName":"Arvizu","username":"mamey","avatarColor":"#4caf50","isActive":true} - -[2025-05-30 18:06:20.267741] [debug] Número de WhatsApp del Instalador: 4181878106 - -[2025-05-30 18:06:20.318914] [debug] Valor de $installerFullName: Ángel Arvizu - -[2025-05-30 18:06:20.385339] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 - -[2025-05-30 18:06:20.385415] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-30 18:06:20.385554] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-30 18:06:20.385649] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true - -DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: true - -Enviando notificación de cambio de instalador al cliente, valor de reprogramming y valor de changeInstaller 1 - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "se ha hecho un cambio de técnico 👷🏻‍♂️🔄 para su visita con el folio *#️⃣54*", "🗓️ *03/06/2025*", "👷🏻‍♂️➡️ *Ángel Arvizu*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], - "template_uuid": "d684e6fa2ba24593a86c98be1815831d", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"24fe113cbc694ae0bf940183b1016856","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-30 18:06:21.248502] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-05-30 18:06:21.248635] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación - -[2025-05-30 18:06:21.248667] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación - -[2025-05-30 18:06:21.248703] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: true - -[2025-05-30 18:06:21.248725] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó - -[2025-05-30 18:06:21.286695] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106 - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"\ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0fJuan Rostro","subjectOfChange":"se te ha desasignado\u274c la tarea con el folio ","jobId":"54","clientFullName":"[2] Daniel Humberto Soto Villegas","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico \ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u27a1\ufe0f *\u00c1ngel Arvizu*"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true - -Enviando notificación de cambio de instalador al instalador anterior, valor de reprogramming y valor de changeInstaller 1 - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ 👷🏻‍♂️Juan Rostro", "se te ha desasignado❌ la tarea con el folio ", "#️⃣54", "👤 *Cliente:* [2] Daniel Humberto Soto Villegas", "En tu lugar asistirá el técnico 👷🏻‍♂️➡️ *Ángel Arvizu*"], - "template_uuid": "e1aa2b0fd3884595918f4ac2676acd29", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"cac6bbeb0a8f4f60b678b05bd65bd6dd","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-30 18:06:26.080730] [debug] Iniciando búsqueda de credenciales en el Vault para: 2 - -[2025-05-30 18:06:26.081485] [debug] La variable dataToSearch es un id de cliente: 2 - -[2025-05-30 19:01:43.274418] [notice] Logging level set to:debug -[2025-05-30 19:01:43.274508] [debug] valor del webhook: {"uuid":"028feb84-74ed-47b7-90e1-01634b154c9f","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:01:43.301758] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 19:01:43.301985] [debug] Valor de JSON: {"uuid":"028feb84-74ed-47b7-90e1-01634b154c9f","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:01:43.302215] [debug] Se actualiza un trabajo - -[2025-05-30 19:01:43.302268] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 19:02:32.776896] [notice] Logging level set to:debug -[2025-05-30 19:02:32.777251] [debug] valor del webhook: {"uuid":"dbaae080-aae6-41cd-9f61-6d0dab03ca3e","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:02:32.802119] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 19:02:32.802265] [debug] Valor de JSON: {"uuid":"dbaae080-aae6-41cd-9f61-6d0dab03ca3e","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:02:32.802500] [debug] Se actualiza un trabajo - -[2025-05-30 19:02:32.802557] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 19:02:42.918914] [notice] Logging level set to:debug -[2025-05-30 19:02:42.919239] [debug] valor del webhook: {"uuid":"b663f76e-55e6-400c-9ba2-6105dd98bb34","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:02:42.945800] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 19:02:42.945935] [debug] Valor de JSON: {"uuid":"b663f76e-55e6-400c-9ba2-6105dd98bb34","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:02:42.946075] [debug] Se actualiza un trabajo - -[2025-05-30 19:02:42.946121] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 19:02:46.521488] [notice] Logging level set to:debug -[2025-05-30 19:02:46.521859] [debug] valor del webhook: {"uuid":"7c18dfc9-feae-40a6-9e63-776a497bceaf","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:02:46.552679] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 19:02:46.552962] [debug] Valor de JSON: {"uuid":"7c18dfc9-feae-40a6-9e63-776a497bceaf","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:02:46.553172] [debug] Se actualiza un trabajo - -[2025-05-30 19:02:46.553251] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 19:02:46.553312] [debug] El instalador cambió de null a un valor -[2025-05-30 19:02:46.553371] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-05-30 19:02:46.553488] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"7c18dfc9-feae-40a6-9e63-776a497bceaf","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:02:46.553570] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"7c18dfc9-feae-40a6-9e63-776a497bceaf","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:02:46.553627] [debug] Valor de $reprogramming en verifyJobActionToDo: false - -[2025-05-30 19:02:46.553680] [debug] Valor de $changeInstaller en verifyJobActionToDo: false - -[2025-05-30 19:02:46.553744] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Angel Arvizu", - "whatsapp": "4181878106" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - } - ] -} - -[2025-05-30 19:02:46.587315] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1019,"unmsId":"75e00242-86c2-436a-b3ac-bd6c31db681e","email":"lionelmuz@gmail.com","firstName":"Mucio","lastName":"Robledo Villegas","username":"muz","avatarColor":"#8bc34a","isActive":true} - -[2025-05-30 19:02:46.587367] [debug] Número de WhatsApp del Instalador: 4181878106 - -[2025-05-30 19:02:46.623774] [debug] Valor de $installerFullName: Mucio Robledo Villegas - -[2025-05-30 19:02:46.694719] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 - -[2025-05-30 19:02:46.694768] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-30 19:02:46.694856] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-30 19:02:46.694905] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false - -DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: false - -Enviando notificación normal de visita técnica al cliente, valor de reprogramming y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "*#️⃣54*", "🗓️ *03/06/2025*", "👷🏻‍♂️➡️ *Mucio Robledo Villegas*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], - "template_uuid": "07cfbc6e394044608485b530a27177d0", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"a2b7bc4cb152404aa0d73ad2e2b16b15","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-30 19:02:47.553713] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-05-30 19:02:47.553827] [debug] Valor de $title en verifyJobActionToDo: [NOTIFICACION-PENDIENTE]Ir a checar instalación - -[2025-05-30 19:02:47.639300] [debug] Valor de $title después de quitar el prefijo en verifyJobActionToDo: Ir a checar instalación - -[2025-05-30 19:02:47.639420] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: false - -[2025-05-30 19:02:47.639462] [debug] No se cambió el instalador - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*03\/06\/2025*","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false - -Enviando notificación normal de tarea al instalador, valor de reprogramming y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ *Mucio Robledo Villegas* se te ha asignado una tarea con folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, para el 🗓️ *03/06/2025*", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], - "template_uuid": "88eeb6420a214fd8870dd28d741021c4", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"387544a0126f4278a8628490bebf1e10","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-30 19:02:48.521192] [notice] Logging level set to:debug -[2025-05-30 19:02:48.521332] [debug] valor del webhook: {"uuid":"00c1a83a-92aa-4910-85f8-665e010cd5dc","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:02:48.550684] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 19:02:48.550735] [debug] Valor de JSON: {"uuid":"00c1a83a-92aa-4910-85f8-665e010cd5dc","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:02:48.550843] [debug] Se actualiza un trabajo - -[2025-05-30 19:02:48.550858] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 19:02:48.550870] [debug] No hubo cambio en el instalador ni en la fecha -[2025-05-30 19:03:54.628052] [notice] Logging level set to:debug -[2025-05-30 19:03:54.628403] [debug] valor del webhook: {"uuid":"b6191c4a-dcf1-4553-9109-29431b412561","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:03:54.656881] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 19:03:54.657035] [debug] Valor de JSON: {"uuid":"b6191c4a-dcf1-4553-9109-29431b412561","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:03:54.657278] [debug] Se actualiza un trabajo - -[2025-05-30 19:03:54.657336] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 19:03:54.657377] [debug] No hay reprogramación de trabajo pero si hay cambio de instalador -[2025-05-30 19:03:54.657423] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-05-30 19:03:54.657506] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"b6191c4a-dcf1-4553-9109-29431b412561","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:03:54.657552] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"b6191c4a-dcf1-4553-9109-29431b412561","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:03:54.657601] [debug] Valor de $reprogramming en verifyJobActionToDo: false - -[2025-05-30 19:03:54.657635] [debug] Valor de $changeInstaller en verifyJobActionToDo: true - -[2025-05-30 19:03:54.657676] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Angel Arvizu", - "whatsapp": "4181878106" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - } - ] -} - -[2025-05-30 19:03:54.699667] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1172,"unmsId":"2ac31363-6037-40f3-8196-5cc7c71866b0","email":"amazonrostro@gmail.com","firstName":"Juan","lastName":"Rostro","username":"rostro","avatarColor":"#00695c","isActive":true} - -[2025-05-30 19:03:54.699727] [debug] Número de WhatsApp del Instalador: 4181878106 - -[2025-05-30 19:03:54.731954] [debug] Valor de $installerFullName: Juan Rostro - -[2025-05-30 19:03:54.795839] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 - -[2025-05-30 19:03:54.795964] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-30 19:03:54.796086] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-30 19:03:54.796179] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true - -DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: true - -Enviando notificación de cambio de instalador al cliente, valor de reprogramming y valor de changeInstaller 1 - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "se ha hecho un cambio de técnico 👷🏻‍♂️🔄 para su visita con el folio *#️⃣54*", "🗓️ *03/06/2025*", "👷🏻‍♂️➡️ *Juan Rostro*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], - "template_uuid": "d684e6fa2ba24593a86c98be1815831d", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"7fe9c76bef264a0d9d65590d31d5df1d","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-30 19:03:55.557535] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-05-30 19:03:55.557771] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación - -[2025-05-30 19:03:55.557894] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación - -[2025-05-30 19:03:55.558017] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: true - -[2025-05-30 19:03:55.558123] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó - -[2025-05-30 19:03:55.600856] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106 - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"\ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0fMucio Robledo Villegas","subjectOfChange":"se te ha desasignado\u274c la tarea con el folio ","jobId":"54","clientFullName":"[2] Daniel Humberto Soto Villegas","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico \ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u27a1\ufe0f *Juan Rostro*"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true - -Enviando notificación de cambio de instalador al instalador anterior, valor de reprogramming y valor de changeInstaller 1 - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ 👷🏻‍♂️Mucio Robledo Villegas", "se te ha desasignado❌ la tarea con el folio ", "#️⃣54", "👤 *Cliente:* [2] Daniel Humberto Soto Villegas", "En tu lugar asistirá el técnico 👷🏻‍♂️➡️ *Juan Rostro*"], - "template_uuid": "e1aa2b0fd3884595918f4ac2676acd29", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"3718115fe08b497ebdf0cd14e98d2ce1","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"Juan Rostro","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*03\/06\/2025*","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false - -Enviando notificación normal de tarea al instalador, valor de reprogramming y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ *Juan Rostro* se te ha asignado una tarea con folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, para el 🗓️ *03/06/2025*", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], - "template_uuid": "88eeb6420a214fd8870dd28d741021c4", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"beee3ef5a9734c0da7f4ea1e9de61b5b","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-30 19:09:07.838247] [notice] Logging level set to:debug -[2025-05-30 19:09:07.838332] [debug] valor del webhook: {"uuid":"359d6911-ce8e-495b-8440-970c17374a09","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:09:07.864420] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 19:09:07.864479] [debug] Valor de JSON: {"uuid":"359d6911-ce8e-495b-8440-970c17374a09","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:09:07.864701] [debug] Se actualiza un trabajo - -[2025-05-30 19:09:07.864723] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 19:09:07.864734] [debug] No hay reprogramación de trabajo pero si hay cambio de instalador -[2025-05-30 19:09:07.864751] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-05-30 19:09:07.864801] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"359d6911-ce8e-495b-8440-970c17374a09","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:09:07.864819] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"359d6911-ce8e-495b-8440-970c17374a09","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:09:07.864829] [debug] Valor de $reprogramming en verifyJobActionToDo: false - -[2025-05-30 19:09:07.864835] [debug] Valor de $changeInstaller en verifyJobActionToDo: true - -[2025-05-30 19:09:07.864849] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Angel Arvizu", - "whatsapp": "4181878106" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - } - ] -} - -[2025-05-30 19:09:07.895946] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1173,"unmsId":"5cb37ee8-e445-4b2a-87d4-6c83eebb8944","email":"hachi9801@gmail.com","firstName":"\u00c1ngel ","lastName":"Arvizu","username":"mamey","avatarColor":"#4caf50","isActive":true} - -[2025-05-30 19:09:07.896084] [debug] Número de WhatsApp del Instalador: 4181878106 - -[2025-05-30 19:09:07.929634] [debug] Valor de $installerFullName: Ángel Arvizu - -[2025-05-30 19:09:07.990922] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 - -[2025-05-30 19:09:07.990967] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-30 19:09:07.991091] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-30 19:09:07.994815] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true - -DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: true - -Enviando notificación de cambio de instalador al cliente, valor de reprogramming y valor de changeInstaller 1 - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "se ha hecho un cambio de técnico 👷🏻‍♂️🔄 para su visita con el folio *#️⃣54*", "🗓️ *03/06/2025*", "👷🏻‍♂️➡️ *Ángel Arvizu*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], - "template_uuid": "d684e6fa2ba24593a86c98be1815831d", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"0a65479c61164ad6a1bd1adda1a39421","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-30 19:09:08.386008] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-05-30 19:09:08.386127] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación - -[2025-05-30 19:09:08.386161] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación - -[2025-05-30 19:09:08.386198] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: true - -[2025-05-30 19:09:08.386220] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó - -[2025-05-30 19:09:08.425004] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106 - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"\ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0fJuan Rostro","subjectOfChange":"se te ha desasignado\u274c la tarea con el folio ","jobId":"54","clientFullName":"[2] Daniel Humberto Soto Villegas","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico \ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u27a1\ufe0f *\u00c1ngel Arvizu*"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true - -Enviando notificación de cambio de instalador al instalador anterior (desasignación), valor de reprogramming y valor de changeInstaller 1 - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ 👷🏻‍♂️Juan Rostro", "se te ha desasignado❌ la tarea con el folio ", "#️⃣54", "*👤[2] Daniel Humberto Soto Villegas* ", "En tu lugar asistirá el técnico 👷🏻‍♂️➡️ *Ángel Arvizu*"], - "template_uuid": "e1aa2b0fd3884595918f4ac2676acd29", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"5042ace82c9e4c7dbdf53c733f6c445a","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"\u00c1ngel Arvizu","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*03\/06\/2025*","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false - -Enviando notificación normal de tarea al instalador, valor de reprogramming y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ *Ángel Arvizu* se te ha asignado una tarea con folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, para el 🗓️ *03/06/2025*", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], - "template_uuid": "88eeb6420a214fd8870dd28d741021c4", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"1f87b66db7ef46dd85b491b7412a8c5a","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-30 19:19:21.509720] [notice] Logging level set to:debug -[2025-05-30 19:19:21.509912] [debug] valor del webhook: {"uuid":"5213548e-6316-4d35-a31f-0027268c51bb","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:19:21.539808] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 19:19:21.539947] [debug] Valor de JSON: {"uuid":"5213548e-6316-4d35-a31f-0027268c51bb","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:19:21.540195] [debug] Se actualiza un trabajo - -[2025-05-30 19:19:21.540256] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 19:19:27.456516] [notice] Logging level set to:debug -[2025-05-30 19:19:27.456677] [debug] valor del webhook: {"uuid":"8a73b819-b937-4ab6-921a-6125e6967f3c","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:19:27.482791] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 19:19:27.482928] [debug] Valor de JSON: {"uuid":"8a73b819-b937-4ab6-921a-6125e6967f3c","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:19:27.483103] [debug] Se actualiza un trabajo - -[2025-05-30 19:19:27.483165] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 19:19:32.110601] [notice] Logging level set to:debug -[2025-05-30 19:19:32.110872] [debug] valor del webhook: {"uuid":"43ade6be-b053-4631-a961-aee6c98eba91","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:19:32.139094] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 19:19:32.139225] [debug] Valor de JSON: {"uuid":"43ade6be-b053-4631-a961-aee6c98eba91","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:19:32.139359] [debug] Se actualiza un trabajo - -[2025-05-30 19:19:32.139401] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 19:19:32.139439] [debug] El instalador cambió de null a un valor -[2025-05-30 19:19:32.139475] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-05-30 19:19:32.139544] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"43ade6be-b053-4631-a961-aee6c98eba91","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:19:32.139585] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"43ade6be-b053-4631-a961-aee6c98eba91","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:19:32.139631] [debug] Valor de $reprogramming en verifyJobActionToDo: false - -[2025-05-30 19:19:32.139663] [debug] Valor de $changeInstaller en verifyJobActionToDo: false - -[2025-05-30 19:19:32.139702] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Angel Arvizu", - "whatsapp": "4181878106" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - } - ] -} - -[2025-05-30 19:19:32.172931] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1173,"unmsId":"5cb37ee8-e445-4b2a-87d4-6c83eebb8944","email":"hachi9801@gmail.com","firstName":"\u00c1ngel ","lastName":"Arvizu","username":"mamey","avatarColor":"#4caf50","isActive":true} - -[2025-05-30 19:19:32.173095] [debug] Número de WhatsApp del Instalador: 4181878106 - -[2025-05-30 19:19:32.206557] [debug] Valor de $installerFullName: Ángel Arvizu - -[2025-05-30 19:19:32.272847] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 - -[2025-05-30 19:19:32.272974] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-30 19:19:32.273086] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-30 19:19:32.276515] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false - -DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: false - -Enviando notificación normal de visita técnica al cliente, valor de reprogramming y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "*#️⃣54*", "🗓️ *03/06/2025*", "👷🏻‍♂️➡️ *Ángel Arvizu*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], - "template_uuid": "07cfbc6e394044608485b530a27177d0", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"fcf501d162af4a73ab5c20574a78829f","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-30 19:19:33.141551] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-05-30 19:19:33.141808] [debug] Valor de $title en verifyJobActionToDo: [NOTIFICACION-PENDIENTE]Ir a checar instalación - -[2025-05-30 19:19:33.221045] [debug] Valor de $title después de quitar el prefijo en verifyJobActionToDo: Ir a checar instalación - -[2025-05-30 19:19:33.221187] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: false - -[2025-05-30 19:19:33.221230] [debug] No se cambió el instalador - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"\u00c1ngel Arvizu","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*03\/06\/2025*","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false - -Enviando notificación normal de tarea al instalador, valor de reprogramming y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ *Ángel Arvizu* se te ha asignado una tarea con folio #️⃣ *54*, para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, para el 🗓️ *03/06/2025*", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], - "template_uuid": "88eeb6420a214fd8870dd28d741021c4", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"510c58c2623a4121967c9c50d88c3eba","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-30 19:19:34.232140] [notice] Logging level set to:debug -[2025-05-30 19:19:34.232211] [debug] valor del webhook: {"uuid":"cbc9c919-dea7-45e5-a19a-75d36fad92f0","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:19:34.269200] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 19:19:34.269342] [debug] Valor de JSON: {"uuid":"cbc9c919-dea7-45e5-a19a-75d36fad92f0","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:19:34.269473] [debug] Se actualiza un trabajo - -[2025-05-30 19:19:34.269519] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 19:19:34.269560] [debug] No hubo cambio en el instalador ni en la fecha -[2025-05-30 19:29:56.595314] [notice] Logging level set to:debug -[2025-05-30 19:29:56.595411] [debug] valor del webhook: {"uuid":"6ddf6d7b-3938-44ee-a7f5-b2bd07c9a749","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:29:56.623722] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 19:29:56.623790] [debug] Valor de JSON: {"uuid":"6ddf6d7b-3938-44ee-a7f5-b2bd07c9a749","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:29:56.623992] [debug] Se actualiza un trabajo - -[2025-05-30 19:29:56.624016] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 19:29:56.624027] [debug] No hay reprogramación de trabajo pero si hay cambio de instalador -[2025-05-30 19:29:56.624048] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-05-30 19:29:56.624103] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"6ddf6d7b-3938-44ee-a7f5-b2bd07c9a749","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:29:56.624119] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"6ddf6d7b-3938-44ee-a7f5-b2bd07c9a749","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1173,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:29:56.624130] [debug] Valor de $reprogramming en verifyJobActionToDo: false - -[2025-05-30 19:29:56.624136] [debug] Valor de $changeInstaller en verifyJobActionToDo: true - -[2025-05-30 19:29:56.624150] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Angel Arvizu", - "whatsapp": "4181878106" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - } - ] -} - -[2025-05-30 19:29:56.655783] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1172,"unmsId":"2ac31363-6037-40f3-8196-5cc7c71866b0","email":"amazonrostro@gmail.com","firstName":"Juan","lastName":"Rostro","username":"rostro","avatarColor":"#00695c","isActive":true} - -[2025-05-30 19:29:56.655836] [debug] Número de WhatsApp del Instalador: 4181878106 - -[2025-05-30 19:29:56.691982] [debug] Valor de $installerFullName: Juan Rostro - -[2025-05-30 19:29:56.775173] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 - -[2025-05-30 19:29:56.775218] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-30 19:29:56.775304] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-30 19:29:56.775338] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true - -DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: true - -Enviando notificación de cambio de instalador al cliente, valor de reprogramming y valor de changeInstaller 1 - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "se ha hecho un cambio de técnico 👷🏻‍♂️🔄 para su visita con el folio *#️⃣54*", "🗓️ *03/06/2025*", "👷🏻‍♂️➡️ *Juan Rostro*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], - "template_uuid": "d684e6fa2ba24593a86c98be1815831d", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"3a6dfaaa7e9b43559f1e5333441befb0","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-30 19:29:57.664676] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-05-30 19:29:57.664787] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación - -[2025-05-30 19:29:57.664819] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación - -[2025-05-30 19:29:57.664854] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: true - -[2025-05-30 19:29:57.664875] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó - -[2025-05-30 19:29:57.702188] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106 - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"\ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u00c1ngel Arvizu","subjectOfChange":"se te ha desasignado\u274c la tarea con el folio ","jobId":"54","clientFullName":"[2] Daniel Humberto Soto Villegas","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico \ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u27a1\ufe0f *Juan Rostro*"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true - -Enviando notificación de cambio de instalador al instalador anterior (desasignación), valor de reprogramming y valor de changeInstaller 1 - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ 👷🏻‍♂️Ángel Arvizu", "se te ha desasignado❌ la tarea con el folio ", "#️⃣54", "*👤[2] Daniel Humberto Soto Villegas* ", "En tu lugar asistirá el técnico 👷🏻‍♂️➡️ *Juan Rostro*"], - "template_uuid": "e1aa2b0fd3884595918f4ac2676acd29", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"727d72dbd6604dd797b96cf949de1ffa","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"Juan Rostro","clientFullName":"Daniel Humberto Soto Villegas [2]","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*03\/06\/2025*","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false - -Enviando notificación normal de tarea al instalador, valor de reprogramming y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ *Juan Rostro* se te ha asignado una tarea con folio #️⃣ *54*, para el cliente 👤 *Daniel Humberto Soto Villegas [2]*, para el 🗓️ *03/06/2025*", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], - "template_uuid": "88eeb6420a214fd8870dd28d741021c4", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"2556dd03fb2e469fbd6ef9f0cd0ee28e","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-30 19:42:02.827620] [notice] Logging level set to:debug -[2025-05-30 19:42:02.828003] [debug] valor del webhook: {"uuid":"3cd5cecb-166d-4076-a938-a8ce9d5cdc8c","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-04T16:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:42:02.855772] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 19:42:02.855828] [debug] Valor de JSON: {"uuid":"3cd5cecb-166d-4076-a938-a8ce9d5cdc8c","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-04T16:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:42:02.856034] [debug] Se actualiza un trabajo - -[2025-05-30 19:42:02.856055] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 19:42:02.856067] [debug] Se reprogramó el trabajo pero no hubo cambio de instalador -[2025-05-30 19:42:02.856080] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-05-30 19:42:02.856123] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"3cd5cecb-166d-4076-a938-a8ce9d5cdc8c","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-04T16:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:42:02.856152] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"3cd5cecb-166d-4076-a938-a8ce9d5cdc8c","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-04T16:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-03T18:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:42:02.856163] [debug] Valor de $reprogramming en verifyJobActionToDo: true - -[2025-05-30 19:42:02.856169] [debug] Valor de $changeInstaller en verifyJobActionToDo: false - -[2025-05-30 19:42:02.856184] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Angel Arvizu", - "whatsapp": "4181878106" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - } - ] -} - -[2025-05-30 19:42:02.888569] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1172,"unmsId":"2ac31363-6037-40f3-8196-5cc7c71866b0","email":"amazonrostro@gmail.com","firstName":"Juan","lastName":"Rostro","username":"rostro","avatarColor":"#00695c","isActive":true} - -[2025-05-30 19:42:02.888622] [debug] Número de WhatsApp del Instalador: 4181878106 - -[2025-05-30 19:42:02.921652] [debug] Valor de $installerFullName: Juan Rostro - -[2025-05-30 19:42:03.003722] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 - -[2025-05-30 19:42:03.003849] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-30 19:42:03.003957] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-30 19:42:03.007296] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false - -DEBUG: Valores antes de la estructura IF - Reprogramming: true, ChangeInstaller: false - -Enviando notificación de reprogramación al cliente, valor de reprogramming 1 y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["Estimado cliente 👤 *Daniel Humberto Soto Villegas* se ha reprogramado su visita técnica con folio *#️⃣54*", "🗓️➡️ *04/06/2025*", "👷🏻‍♂️➡️ *Juan Rostro*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], - "template_uuid": "715eed9d6f2d4d90853f25e296202e00", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"5bdf7194962346b4ad42af5400f935ee","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-30 19:42:04.122318] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-05-30 19:42:04.122936] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación - -[2025-05-30 19:42:04.123131] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación - -[2025-05-30 19:42:04.123260] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: true, ChangeInstaller: false - -[2025-05-30 19:42:04.123392] [debug] No se cambió el instalador - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"Juan Rostro","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*04\/06\/2025*","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} - -DEBUG: Valores después de conversión - Reprogramming: true, ChangeInstaller: false - -Enviando notificación de reprogramación al instalador, valor de reprogramming 1 y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ *Juan Rostro* se reprogramó una tarea con el folio #️⃣ *54* para el cliente 👤 *[2] Daniel Humberto Soto Villegas*, la nueva fecha será el 🗓️➡️ *04/06/2025*", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], - "template_uuid": "88eeb6420a214fd8870dd28d741021c4", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"45d0b0bda91548959d326bdf5a792c7c","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-30 19:50:42.504424] [notice] Logging level set to:debug -[2025-05-30 19:50:42.504782] [debug] valor del webhook: {"uuid":"711cf05f-f9d1-45a6-9f7e-4a9e6fd2b8d4","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-04T16:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-04T16:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:50:42.532969] [debug] valor el evento recibido por webhook: job.edit - -[2025-05-30 19:50:42.533113] [debug] Valor de JSON: {"uuid":"711cf05f-f9d1-45a6-9f7e-4a9e6fd2b8d4","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-04T16:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-04T16:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:50:42.533364] [debug] Se actualiza un trabajo - -[2025-05-30 19:50:42.533423] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-05-30 19:50:42.533468] [debug] No hay reprogramación de trabajo pero si hay cambio de instalador -[2025-05-30 19:50:42.533509] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-05-30 19:50:42.533586] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"711cf05f-f9d1-45a6-9f7e-4a9e6fd2b8d4","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-04T16:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-04T16:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:50:42.533643] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"711cf05f-f9d1-45a6-9f7e-4a9e6fd2b8d4","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-04T16:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1172,"clientId":2,"date":"2025-06-04T16:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-05-30 19:50:42.533683] [debug] Valor de $reprogramming en verifyJobActionToDo: false - -[2025-05-30 19:50:42.533720] [debug] Valor de $changeInstaller en verifyJobActionToDo: true - -[2025-05-30 19:50:42.533765] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Angel Arvizu", - "whatsapp": "4181878106" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - } - ] -} - -[2025-05-30 19:50:42.570734] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1019,"unmsId":"75e00242-86c2-436a-b3ac-bd6c31db681e","email":"lionelmuz@gmail.com","firstName":"Mucio","lastName":"Robledo Villegas","username":"muz","avatarColor":"#8bc34a","isActive":true} - -[2025-05-30 19:50:42.570882] [debug] Número de WhatsApp del Instalador: 4181878106 - -[2025-05-30 19:50:42.607685] [debug] Valor de $installerFullName: Mucio Robledo Villegas - -[2025-05-30 19:50:42.698084] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 - -[2025-05-30 19:50:42.698201] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-30 19:50:42.698312] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-05-30 19:50:42.702286] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true - -DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: true - -Enviando notificación de cambio de instalador al cliente, valor de reprogramming y valor de changeInstaller 1 - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "se ha hecho un cambio de técnico 👷🏻‍♂️🔄 para su visita con el folio *#️⃣54*", "🗓️ *04/06/2025*", "👷🏻‍♂️➡️ *Mucio Robledo Villegas*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], - "template_uuid": "d684e6fa2ba24593a86c98be1815831d", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"d46c6d0115c64d358e5599b08d225669","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-30 19:50:43.574907] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-05-30 19:50:43.575048] [debug] Valor de $title en verifyJobActionToDo: Ir a checar instalación - -[2025-05-30 19:50:43.575086] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Ir a checar instalación - -[2025-05-30 19:50:43.575120] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: true - -[2025-05-30 19:50:43.575144] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó - -[2025-05-30 19:50:43.614706] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106 - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"\ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0fJuan Rostro","subjectOfChange":"se te ha desasignado\u274c la tarea con el folio ","jobId":"54","clientFullName":"[2] Daniel Humberto Soto Villegas","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico \ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u27a1\ufe0f *Mucio Robledo Villegas*"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true - -Enviando notificación de cambio de instalador al instalador anterior (desasignación), valor de reprogramming y valor de changeInstaller 1 - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ 👷🏻‍♂️Juan Rostro", "se te ha desasignado❌ la tarea con el folio ", "#️⃣54", "*👤[2] Daniel Humberto Soto Villegas* ", "En tu lugar asistirá el técnico 👷🏻‍♂️➡️ *Mucio Robledo Villegas*"], - "template_uuid": "e1aa2b0fd3884595918f4ac2676acd29", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"3d096a9851f64b8abfd2651682372249","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","clientFullName":"Daniel Humberto Soto Villegas [ID:2]","jobId":"54","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"*04\/06\/2025*","jobDescription":"Andan mal esos equipos","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false - -Enviando notificación normal de tarea al instalador, valor de reprogramming y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ *Mucio Robledo Villegas* se te ha asignado una tarea con folio #️⃣ *54*, del cliente 👤 *Daniel Humberto Soto Villegas [ID:2]*, para el 🗓️ *04/06/2025*", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], - "template_uuid": "88eeb6420a214fd8870dd28d741021c4", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"1640eb56168749a2b1fd9154f426741e","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-05-31 16:00:04.861433] [notice] Logging level set to:debug -[2025-05-31 16:00:04.861510] [debug] valor del webhook: {"uuid":"058fd922-2158-48d7-b8bf-12ac25670a5d","changeType":"draft_approved","entity":"invoice","entityId":"1962","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1962,"clientId":54,"number":"001912","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1965,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":53,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORETO","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"COLORADO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:05.007189] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:05.007247] [debug] Valor de JSON: {"uuid":"058fd922-2158-48d7-b8bf-12ac25670a5d","changeType":"draft_approved","entity":"invoice","entityId":"1962","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1962,"clientId":54,"number":"001912","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1965,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":53,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORETO","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"COLORADO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:05.007469] [debug] Aprobación de Factura - -[2025-05-31 16:00:05.007524] [debug] {"uuid":"058fd922-2158-48d7-b8bf-12ac25670a5d","changeType":"draft_approved","entity":"invoice","entityId":1962,"message":null,"clientId":54,"eventName":"invoice.draft_approved","clientData":{"id":54,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"COLORADO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"COLORADO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"LORETO","lastName":"HERRERA","username":"lherrera54","contacts":[{"id":55,"clientId":54,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ff8f00","addressGpsLat":21.1608267,"addressGpsLon":-100.7982422,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1962,"clientId":54,"number":"001912","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1965,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":53,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORETO","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"COLORADO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:06.227622] [notice] Logging level set to:debug -[2025-05-31 16:00:06.227696] [debug] valor del webhook: {"uuid":"55f91311-8ae1-47df-b3e1-f1c559f265af","changeType":"draft_approved","entity":"invoice","entityId":"1963","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1963,"clientId":84,"number":"001913","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1966,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":83,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ROLANDO","clientLastName":"CALVILLLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:06.362140] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:06.362191] [debug] Valor de JSON: {"uuid":"55f91311-8ae1-47df-b3e1-f1c559f265af","changeType":"draft_approved","entity":"invoice","entityId":"1963","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1963,"clientId":84,"number":"001913","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1966,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":83,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ROLANDO","clientLastName":"CALVILLLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:06.362292] [debug] Aprobación de Factura - -[2025-05-31 16:00:06.362339] [debug] {"uuid":"55f91311-8ae1-47df-b3e1-f1c559f265af","changeType":"draft_approved","entity":"invoice","entityId":1963,"message":null,"clientId":84,"eventName":"invoice.draft_approved","clientData":{"id":84,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ELIAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ELIAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ROLANDO","lastName":"CALVILLLO","username":"rcalvilllo84","contacts":[{"id":85,"clientId":84,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2196f3","addressGpsLat":21.2516667,"addressGpsLon":-101.0924998,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1963,"clientId":84,"number":"001913","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1966,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":83,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ROLANDO","clientLastName":"CALVILLLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:07.579890] [notice] Logging level set to:debug -[2025-05-31 16:00:07.579966] [debug] valor del webhook: {"uuid":"0a74429e-fae6-4fc8-86bc-f282e395d692","changeType":"draft_approved","entity":"invoice","entityId":"1964","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1964,"clientId":21,"number":"001914","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1967,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":20,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NATALIA","clientLastName":"JUAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:07.739706] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:07.739763] [debug] Valor de JSON: {"uuid":"0a74429e-fae6-4fc8-86bc-f282e395d692","changeType":"draft_approved","entity":"invoice","entityId":"1964","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1964,"clientId":21,"number":"001914","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1967,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":20,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NATALIA","clientLastName":"JUAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:07.739883] [debug] Aprobación de Factura - -[2025-05-31 16:00:07.739938] [debug] {"uuid":"0a74429e-fae6-4fc8-86bc-f282e395d692","changeType":"draft_approved","entity":"invoice","entityId":1964,"message":null,"clientId":21,"eventName":"invoice.draft_approved","clientData":{"id":21,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"MEZQUITAL","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"MEZQUITAL, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"NATALIA","lastName":"JUAREZ","username":"njuarez21","contacts":[{"id":22,"clientId":21,"email":null,"phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#546e7a","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1964,"clientId":21,"number":"001914","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1967,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":20,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NATALIA","clientLastName":"JUAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:08.932185] [notice] Logging level set to:debug -[2025-05-31 16:00:08.932293] [debug] valor del webhook: {"uuid":"b1f631e0-e5d9-48ec-ac7b-31b1080ab4f0","changeType":"draft_approved","entity":"invoice","entityId":"1965","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1965,"clientId":74,"number":"001915","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1968,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":73,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARCELO","clientLastName":"PALACIOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:09.061868] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:09.061918] [debug] Valor de JSON: {"uuid":"b1f631e0-e5d9-48ec-ac7b-31b1080ab4f0","changeType":"draft_approved","entity":"invoice","entityId":"1965","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1965,"clientId":74,"number":"001915","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1968,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":73,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARCELO","clientLastName":"PALACIOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:09.062007] [debug] Aprobación de Factura - -[2025-05-31 16:00:09.062048] [debug] {"uuid":"b1f631e0-e5d9-48ec-ac7b-31b1080ab4f0","changeType":"draft_approved","entity":"invoice","entityId":1965,"message":null,"clientId":74,"eventName":"invoice.draft_approved","clientData":{"id":74,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MARCELO","lastName":"PALACIOS","username":"mpalacios74","contacts":[{"id":75,"clientId":74,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2e7d32","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1965,"clientId":74,"number":"001915","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1968,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":73,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARCELO","clientLastName":"PALACIOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:10.230859] [notice] Logging level set to:debug -[2025-05-31 16:00:10.230968] [debug] valor del webhook: {"uuid":"06a51560-2a9d-43dc-b579-745c7a21d39a","changeType":"draft_approved","entity":"invoice","entityId":"1966","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1966,"clientId":46,"number":"001916","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1969,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":45,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ISMAEL","clientLastName":"PUGA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ROSILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:10.388104] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:10.388169] [debug] Valor de JSON: {"uuid":"06a51560-2a9d-43dc-b579-745c7a21d39a","changeType":"draft_approved","entity":"invoice","entityId":"1966","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1966,"clientId":46,"number":"001916","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1969,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":45,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ISMAEL","clientLastName":"PUGA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ROSILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:10.391433] [debug] Aprobación de Factura - -[2025-05-31 16:00:10.391513] [debug] {"uuid":"06a51560-2a9d-43dc-b579-745c7a21d39a","changeType":"draft_approved","entity":"invoice","entityId":1966,"message":null,"clientId":46,"eventName":"invoice.draft_approved","clientData":{"id":46,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL ROSILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL ROSILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ISMAEL","lastName":"PUGA","username":"ipuga46","contacts":[{"id":47,"clientId":46,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":100,"clientId":46,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtMzv6GBcULCcTh","clientZoneVisible":true},{"id":101,"clientId":46,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"6881305189499928","clientZoneVisible":true}],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2e7d32","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1966,"clientId":46,"number":"001916","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1969,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":45,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ISMAEL","clientLastName":"PUGA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ROSILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:11.514689] [notice] Logging level set to:debug -[2025-05-31 16:00:11.514766] [debug] valor del webhook: {"uuid":"93e90f01-14bd-4264-8916-d9fc96fd4ec0","changeType":"draft_approved","entity":"invoice","entityId":"1967","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1967,"clientId":86,"number":"001917","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1970,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":85,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PALMITAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:11.652932] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:11.653017] [debug] Valor de JSON: {"uuid":"93e90f01-14bd-4264-8916-d9fc96fd4ec0","changeType":"draft_approved","entity":"invoice","entityId":"1967","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1967,"clientId":86,"number":"001917","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1970,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":85,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PALMITAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:11.653181] [debug] Aprobación de Factura - -[2025-05-31 16:00:11.653325] [debug] {"uuid":"93e90f01-14bd-4264-8916-d9fc96fd4ec0","changeType":"draft_approved","entity":"invoice","entityId":1967,"message":null,"clientId":86,"eventName":"invoice.draft_approved","clientData":{"id":86,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"PALMITAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"PALMITAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"HUMBERTO","lastName":"CASTILLO","username":"hcastillo86","contacts":[{"id":87,"clientId":86,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-8200,"accountCredit":0,"accountOutstanding":8200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#c62828","addressGpsLat":21.2394677,"addressGpsLon":-100.9803471,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1967,"clientId":86,"number":"001917","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1970,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":85,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PALMITAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:12.782502] [notice] Logging level set to:debug -[2025-05-31 16:00:12.782613] [debug] valor del webhook: {"uuid":"d696e9ec-325a-4450-ab78-2384b6889480","changeType":"draft_approved","entity":"invoice","entityId":"1968","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1968,"clientId":28,"number":"001918","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1971,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":27,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OSVALDO","clientLastName":"GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN GABRIEL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:12.908070] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:12.908124] [debug] Valor de JSON: {"uuid":"d696e9ec-325a-4450-ab78-2384b6889480","changeType":"draft_approved","entity":"invoice","entityId":"1968","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1968,"clientId":28,"number":"001918","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1971,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":27,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OSVALDO","clientLastName":"GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN GABRIEL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:12.908241] [debug] Aprobación de Factura - -[2025-05-31 16:00:12.908292] [debug] {"uuid":"d696e9ec-325a-4450-ab78-2384b6889480","changeType":"draft_approved","entity":"invoice","entityId":1968,"message":null,"clientId":28,"eventName":"invoice.draft_approved","clientData":{"id":28,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN GABRIEL","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN GABRIEL, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"OSVALDO","lastName":"GONZALEZ","username":"ogonzalez28","contacts":[{"id":29,"clientId":28,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-8483.33,"accountCredit":0,"accountOutstanding":8483.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#03a9f4","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1968,"clientId":28,"number":"001918","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1971,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":27,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OSVALDO","clientLastName":"GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN GABRIEL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:14.023883] [notice] Logging level set to:debug -[2025-05-31 16:00:14.023952] [debug] valor del webhook: {"uuid":"3f6e6986-01e4-4a9b-9ca0-b50b805253a1","changeType":"draft_approved","entity":"invoice","entityId":"1969","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1969,"clientId":9,"number":"001919","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1972,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":9,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JHOVANY","clientLastName":"LOPEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GALLINERO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:14.168847] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:14.168904] [debug] Valor de JSON: {"uuid":"3f6e6986-01e4-4a9b-9ca0-b50b805253a1","changeType":"draft_approved","entity":"invoice","entityId":"1969","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1969,"clientId":9,"number":"001919","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1972,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":9,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JHOVANY","clientLastName":"LOPEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GALLINERO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:14.169034] [debug] Aprobación de Factura - -[2025-05-31 16:00:14.169081] [debug] {"uuid":"3f6e6986-01e4-4a9b-9ca0-b50b805253a1","changeType":"draft_approved","entity":"invoice","entityId":1969,"message":null,"clientId":9,"eventName":"invoice.draft_approved","clientData":{"id":9,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"GALLINERO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"GALLINERO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JHOVANY","lastName":"LOPEZ","username":"jlopez09","contacts":[{"id":10,"clientId":9,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5500,"accountCredit":0,"accountOutstanding":5500,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#d81b60","addressGpsLat":21.179169675936,"addressGpsLon":-100.95965623856,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1969,"clientId":9,"number":"001919","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1972,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":9,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JHOVANY","clientLastName":"LOPEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GALLINERO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:15.371562] [notice] Logging level set to:debug -[2025-05-31 16:00:15.371675] [debug] valor del webhook: {"uuid":"c885d763-f3b6-49c6-8443-f47b30333c3f","changeType":"draft_approved","entity":"invoice","entityId":"1970","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1970,"clientId":88,"number":"001920","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1973,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":87,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CECILIA","clientLastName":"GRANDE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIFORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:15.503566] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:15.503624] [debug] Valor de JSON: {"uuid":"c885d763-f3b6-49c6-8443-f47b30333c3f","changeType":"draft_approved","entity":"invoice","entityId":"1970","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1970,"clientId":88,"number":"001920","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1973,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":87,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CECILIA","clientLastName":"GRANDE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIFORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:15.503734] [debug] Aprobación de Factura - -[2025-05-31 16:00:15.503789] [debug] {"uuid":"c885d763-f3b6-49c6-8443-f47b30333c3f","changeType":"draft_approved","entity":"invoice","entityId":1970,"message":null,"clientId":88,"eventName":"invoice.draft_approved","clientData":{"id":88,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA CALIFORNIA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA CALIFORNIA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"CECILIA","lastName":"GRANDE","username":"cgrande88","contacts":[{"id":89,"clientId":88,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-11700,"accountCredit":0,"accountOutstanding":11700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#4527a0","addressGpsLat":21.2895071,"addressGpsLon":-100.825418,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1970,"clientId":88,"number":"001920","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1973,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":87,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CECILIA","clientLastName":"GRANDE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIFORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:17.010761] [notice] Logging level set to:debug -[2025-05-31 16:00:17.010813] [debug] valor del webhook: {"uuid":"cf805034-d9fa-4b4b-a333-e3ea381b8cd8","changeType":"draft_approved","entity":"invoice","entityId":"1971","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1971,"clientId":85,"number":"001921","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1974,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":84,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GISELLE","clientLastName":"ARREDONDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GARABATILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:17.162435] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:17.162497] [debug] Valor de JSON: {"uuid":"cf805034-d9fa-4b4b-a333-e3ea381b8cd8","changeType":"draft_approved","entity":"invoice","entityId":"1971","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1971,"clientId":85,"number":"001921","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1974,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":84,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GISELLE","clientLastName":"ARREDONDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GARABATILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:17.162638] [debug] Aprobación de Factura - -[2025-05-31 16:00:17.162688] [debug] {"uuid":"cf805034-d9fa-4b4b-a333-e3ea381b8cd8","changeType":"draft_approved","entity":"invoice","entityId":1971,"message":null,"clientId":85,"eventName":"invoice.draft_approved","clientData":{"id":85,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"GARABATILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"GARABATILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"GISELLE","lastName":"ARREDONDO","username":"garredondo85","contacts":[{"id":86,"clientId":85,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-8300,"accountCredit":0,"accountOutstanding":8300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef6c00","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1971,"clientId":85,"number":"001921","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1974,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":84,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GISELLE","clientLastName":"ARREDONDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GARABATILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:18.366220] [notice] Logging level set to:debug -[2025-05-31 16:00:18.366338] [debug] valor del webhook: {"uuid":"d3b7c95f-82cf-465b-a644-25aa4cece0f1","changeType":"draft_approved","entity":"invoice","entityId":"1972","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1972,"clientId":56,"number":"001922","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1975,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":55,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NOE","clientLastName":"SANDOVAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTIAGUILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:18.495527] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:18.495587] [debug] Valor de JSON: {"uuid":"d3b7c95f-82cf-465b-a644-25aa4cece0f1","changeType":"draft_approved","entity":"invoice","entityId":"1972","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1972,"clientId":56,"number":"001922","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1975,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":55,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NOE","clientLastName":"SANDOVAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTIAGUILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:18.495682] [debug] Aprobación de Factura - -[2025-05-31 16:00:18.495726] [debug] {"uuid":"d3b7c95f-82cf-465b-a644-25aa4cece0f1","changeType":"draft_approved","entity":"invoice","entityId":1972,"message":null,"clientId":56,"eventName":"invoice.draft_approved","clientData":{"id":56,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTIAGUILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":null,"fullAddress":"SANTIAGUILLO, Dolores Hidalgo Cuna de la Independencia Nacional","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"NOE","lastName":"SANDOVAL","username":"nsandoval56","contacts":[{"id":57,"clientId":56,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#039be5","addressGpsLat":21.0165209,"addressGpsLon":-100.9831731,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1972,"clientId":56,"number":"001922","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1975,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":55,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NOE","clientLastName":"SANDOVAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTIAGUILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:19.652884] [notice] Logging level set to:debug -[2025-05-31 16:00:19.652993] [debug] valor del webhook: {"uuid":"1b04a4a9-a7ff-45cd-940b-3c95cf62c007","changeType":"draft_approved","entity":"invoice","entityId":"1973","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1973,"clientId":42,"number":"001923","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1976,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":41,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORENA","clientLastName":"MARTINEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:19.784090] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:19.784142] [debug] Valor de JSON: {"uuid":"1b04a4a9-a7ff-45cd-940b-3c95cf62c007","changeType":"draft_approved","entity":"invoice","entityId":"1973","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1973,"clientId":42,"number":"001923","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1976,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":41,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORENA","clientLastName":"MARTINEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:19.784235] [debug] Aprobación de Factura - -[2025-05-31 16:00:19.784276] [debug] {"uuid":"1b04a4a9-a7ff-45cd-940b-3c95cf62c007","changeType":"draft_approved","entity":"invoice","entityId":1973,"message":null,"clientId":42,"eventName":"invoice.draft_approved","clientData":{"id":42,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"LORENA","lastName":"MARTINEZ","username":"lmartinez42","contacts":[{"id":43,"clientId":42,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5110,"accountCredit":0,"accountOutstanding":5110,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#4527a0","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1973,"clientId":42,"number":"001923","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1976,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":41,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORENA","clientLastName":"MARTINEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:20.913855] [notice] Logging level set to:debug -[2025-05-31 16:00:20.913960] [debug] valor del webhook: {"uuid":"099503de-2b11-4cb6-99ab-bbc1d7b389ab","changeType":"draft_approved","entity":"invoice","entityId":"1974","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1974,"clientId":44,"number":"001924","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1977,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":43,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JAVIER","clientLastName":"BRIONES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ESTANCIA DE ZAMARRIPA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:21.057003] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:21.057061] [debug] Valor de JSON: {"uuid":"099503de-2b11-4cb6-99ab-bbc1d7b389ab","changeType":"draft_approved","entity":"invoice","entityId":"1974","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1974,"clientId":44,"number":"001924","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1977,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":43,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JAVIER","clientLastName":"BRIONES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ESTANCIA DE ZAMARRIPA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:21.057178] [debug] Aprobación de Factura - -[2025-05-31 16:00:21.057223] [debug] {"uuid":"099503de-2b11-4cb6-99ab-bbc1d7b389ab","changeType":"draft_approved","entity":"invoice","entityId":1974,"message":null,"clientId":44,"eventName":"invoice.draft_approved","clientData":{"id":44,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"ESTANCIA DE ZAMARRIPA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"ESTANCIA DE ZAMARRIPA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JAVIER","lastName":"BRIONES","username":"jbriones44","contacts":[{"id":45,"clientId":44,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4810,"accountCredit":0,"accountOutstanding":4810,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#c0ca33","addressGpsLat":21.2370877,"addressGpsLon":-101.116799,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1974,"clientId":44,"number":"001924","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1977,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":43,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JAVIER","clientLastName":"BRIONES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ESTANCIA DE ZAMARRIPA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:22.180434] [notice] Logging level set to:debug -[2025-05-31 16:00:22.180542] [debug] valor del webhook: {"uuid":"ee9d6964-b3dd-4d53-a51e-88177afcb287","changeType":"draft_approved","entity":"invoice","entityId":"1975","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1975,"clientId":91,"number":"001925","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1978,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":90,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CAROLINA","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:22.317214] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:22.317272] [debug] Valor de JSON: {"uuid":"ee9d6964-b3dd-4d53-a51e-88177afcb287","changeType":"draft_approved","entity":"invoice","entityId":"1975","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1975,"clientId":91,"number":"001925","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1978,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":90,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CAROLINA","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:22.317369] [debug] Aprobación de Factura - -[2025-05-31 16:00:22.317414] [debug] {"uuid":"ee9d6964-b3dd-4d53-a51e-88177afcb287","changeType":"draft_approved","entity":"invoice","entityId":1975,"message":null,"clientId":91,"eventName":"invoice.draft_approved","clientData":{"id":91,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA CALIORNIA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA CALIORNIA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"CAROLINA","lastName":"PE\u00d1A","username":"cpe\u00d1a91","contacts":[{"id":92,"clientId":91,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-8000,"accountCredit":0,"accountOutstanding":8000,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#03a9f4","addressGpsLat":21.2935854,"addressGpsLon":-100.8211626,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1975,"clientId":91,"number":"001925","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1978,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":90,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CAROLINA","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:23.491048] [notice] Logging level set to:debug -[2025-05-31 16:00:23.491123] [debug] valor del webhook: {"uuid":"256947a0-8dbb-4c2e-bbdd-3043a37c064e","changeType":"draft_approved","entity":"invoice","entityId":"1976","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1976,"clientId":78,"number":"001926","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1979,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":77,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDER","clientLastName":"ROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:23.638818] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:23.638875] [debug] Valor de JSON: {"uuid":"256947a0-8dbb-4c2e-bbdd-3043a37c064e","changeType":"draft_approved","entity":"invoice","entityId":"1976","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1976,"clientId":78,"number":"001926","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1979,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":77,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDER","clientLastName":"ROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:23.639035] [debug] Aprobación de Factura - -[2025-05-31 16:00:23.639086] [debug] {"uuid":"256947a0-8dbb-4c2e-bbdd-3043a37c064e","changeType":"draft_approved","entity":"invoice","entityId":1976,"message":null,"clientId":78,"eventName":"invoice.draft_approved","clientData":{"id":78,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL BOBO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL BOBO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALEXANDER","lastName":"ROSTRO","username":"arostro78","contacts":[{"id":79,"clientId":78,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#9c27b0","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1976,"clientId":78,"number":"001926","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1979,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":77,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDER","clientLastName":"ROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:24.773148] [notice] Logging level set to:debug -[2025-05-31 16:00:24.773253] [debug] valor del webhook: {"uuid":"0095ce25-5835-49c9-bb90-420bec816841","changeType":"draft_approved","entity":"invoice","entityId":"1977","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1977,"clientId":49,"number":"001927","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1980,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":48,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"ARGOTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:24.908772] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:24.908838] [debug] Valor de JSON: {"uuid":"0095ce25-5835-49c9-bb90-420bec816841","changeType":"draft_approved","entity":"invoice","entityId":"1977","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1977,"clientId":49,"number":"001927","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1980,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":48,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"ARGOTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:24.908953] [debug] Aprobación de Factura - -[2025-05-31 16:00:24.909023] [debug] {"uuid":"0095ce25-5835-49c9-bb90-420bec816841","changeType":"draft_approved","entity":"invoice","entityId":1977,"message":null,"clientId":49,"eventName":"invoice.draft_approved","clientData":{"id":49,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"HUMBERTO","lastName":"ARGOTE","username":"hargote49","contacts":[{"id":50,"clientId":49,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":106,"clientId":49,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtN1TKNidnkizX4","clientZoneVisible":true},{"id":107,"clientId":49,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"5239864893662909","clientZoneVisible":true}],"accountBalance":-4810,"accountCredit":0,"accountOutstanding":4810,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1977,"clientId":49,"number":"001927","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1980,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":48,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"ARGOTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:26.053610] [notice] Logging level set to:debug -[2025-05-31 16:00:26.053694] [debug] valor del webhook: {"uuid":"0cb80388-0bb1-4aea-b5ac-fd870c701efe","changeType":"draft_approved","entity":"invoice","entityId":"1978","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1978,"clientId":5,"number":"001928","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1981,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":5,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MUCIO","clientLastName":"ROBLEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CORREGIDORA #61, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:26.205651] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:26.205704] [debug] Valor de JSON: {"uuid":"0cb80388-0bb1-4aea-b5ac-fd870c701efe","changeType":"draft_approved","entity":"invoice","entityId":"1978","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1978,"clientId":5,"number":"001928","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1981,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":5,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MUCIO","clientLastName":"ROBLEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CORREGIDORA #61, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:26.205823] [debug] Aprobación de Factura - -[2025-05-31 16:00:26.205868] [debug] {"uuid":"0cb80388-0bb1-4aea-b5ac-fd870c701efe","changeType":"draft_approved","entity":"invoice","entityId":1978,"message":null,"clientId":5,"eventName":"invoice.draft_approved","clientData":{"id":5,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"CORREGIDORA #61, ZONA CENTRO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"CORREGIDORA #61, ZONA CENTRO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MUCIO","lastName":"ROBLEDO","username":"mrobledo05","contacts":[{"id":6,"clientId":5,"email":null,"phone":"5214181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-12533.33,"accountCredit":0,"accountOutstanding":12533.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.158357169062,"addressGpsLon":-100.93191261001,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1978,"clientId":5,"number":"001928","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1981,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":5,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MUCIO","clientLastName":"ROBLEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CORREGIDORA #61, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:26.205908] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-05-31 16:00:26.205916] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"0cb80388-0bb1-4aea-b5ac-fd870c701efe","changeType":"draft_approved","entity":"invoice","entityId":1978,"message":null,"clientId":5,"eventName":"invoice.draft_approved","clientData":{"id":5,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"CORREGIDORA #61, ZONA CENTRO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"CORREGIDORA #61, ZONA CENTRO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MUCIO","lastName":"ROBLEDO","username":"mrobledo05","contacts":[{"id":6,"clientId":5,"email":null,"phone":"5214181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-12533.33,"accountCredit":0,"accountOutstanding":12533.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.158357169062,"addressGpsLon":-100.93191261001,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1978,"clientId":5,"number":"001928","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1981,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":5,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MUCIO","clientLastName":"ROBLEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CORREGIDORA #61, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [] - -Nombre del cliente que se va a actualizar: MUCIO ROBLEDO - -UUID: 92dd9fb15b8f4ff6860f8a32ea9bd7e4 - -JSON con los datos a actualizar: {"name":"MUCIO ROBLEDO","custom_fields":{"Cliente":5,"Domicilio":"\ud83d\udccd CORREGIDORA #61, ZONA CENTRO, Dolores Hidalgo, 37800","Nombre":"\ud83d\udc64 MUCIO ROBLEDO","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/5","Saldo Actual":"\ud83d\udcb212533.33 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"5\",\"Domicilio\": \"\"Nombre\": \"MUCIO ROBLEDO\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/5\",\"Saldo Actual\": \"\ud83d\udcb212533.33 pendientes\",\"Monto Ultimo Pago\": \"$ \",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 31\/05\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"31\/05\/2025 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 31\/05\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 31\/05\/2025 10:00","Clabe Interbancaria":null,"Site":"","Antena\/Sectorial":""}} - -JSON con los datos a actualizar del resumen: {"Cliente": "5","Domicilio": ""Nombre": "MUCIO ROBLEDO","URL": "https://sistema.siip.mx/crm/client/5","Saldo Actual": "💲12533.33 pendientes","Monto Ultimo Pago": "$ ","Estado": "Suspendido","Fecha Ultimo Pago": " 31/05/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion": "31/05/2025 10:00","Clabe Interbancaria": "","Site": "","Antena/Sectorial": ""} - -Response Patch CallBell: {"contact":{"uuid":"92dd9fb15b8f4ff6860f8a32ea9bd7e4","name":"MUCIO ROBLEDO","phoneNumber":"5214181091933","avatarUrl":null,"createdAt":"2023-12-22T16:55:50Z","closedAt":"2024-07-11T22:49:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/92dd9fb15b8f4ff6860f8a32ea9bd7e4","conversationHref":"https://dash.callbell.eu/chat/04a3e26142e0431789260acb0b60a3ac","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"124180650659256341","Estado":"🔴 Suspendido","Antena/Sectorial":"Sec3-Sb 172.16.55.13/24","Site":"SBARB","Cliente":"5","Domicilio":"📍 CORREGIDORA #61, ZONA CENTRO, Dolores Hidalgo, 37800","Saldo Actual":"💲12533.33 pendientes","Monto Ultimo Pago":"💲 ","Fecha Ultimo Pago":"📆💸 31/05/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Resumen":"{\"Cliente\": \"5\",\"Domicilio\": \"\"Nombre\": \"MUCIO ROBLEDO\",\"URL\": \"https://sistema.siip.mx/crm/client/5\",\"Saldo Actual\": \"💲12533.33 pendientes\",\"Monto Ultimo Pago\": \"$ \",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 31/05/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"31/05/2025 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","URL":"🌐 https://sistema.siip.mx/crm/client/5","Fecha Ultima Actualizacion":"📆🔄️ 31/05/2025 10:00","Nombre":"👤 MUCIO ROBLEDO"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"92dd9fb15b8f4ff6860f8a32ea9bd7e4","name":"MUCIO ROBLEDO","phoneNumber":"5214181091933","avatarUrl":null,"createdAt":"2023-12-22T16:55:50Z","closedAt":"2024-07-11T22:49:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/92dd9fb15b8f4ff6860f8a32ea9bd7e4","conversationHref":"https://dash.callbell.eu/chat/04a3e26142e0431789260acb0b60a3ac","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"124180650659256341","Estado":"🔴 Suspendido","Antena/Sectorial":"Sec3-Sb 172.16.55.13/24","Site":"SBARB","Cliente":"5","Domicilio":"📍 CORREGIDORA #61, ZONA CENTRO, Dolores Hidalgo, 37800","Saldo Actual":"💲12533.33 pendientes","Monto Ultimo Pago":"💲 ","Fecha Ultimo Pago":"📆💸 31/05/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Resumen":"{\"Cliente\": \"5\",\"Domicilio\": \"\"Nombre\": \"MUCIO ROBLEDO\",\"URL\": \"https://sistema.siip.mx/crm/client/5\",\"Saldo Actual\": \"💲12533.33 pendientes\",\"Monto Ultimo Pago\": \"$ \",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 31/05/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"31/05/2025 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","URL":"🌐 https://sistema.siip.mx/crm/client/5","Fecha Ultima Actualizacion":"📆🔄️ 31/05/2025 10:00","Nombre":"👤 MUCIO ROBLEDO"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-05-31 16:00:29.106333] [notice] Logging level set to:debug -[2025-05-31 16:00:29.106417] [debug] valor del webhook: {"uuid":"312157bb-8fa1-43bf-81f0-230341a9c3e3","changeType":"draft_approved","entity":"invoice","entityId":"1979","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1979,"clientId":102,"number":"001929","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1982,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":101,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"XX","clientLastName":"XX","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:29.247906] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:29.247960] [debug] Valor de JSON: {"uuid":"312157bb-8fa1-43bf-81f0-230341a9c3e3","changeType":"draft_approved","entity":"invoice","entityId":"1979","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1979,"clientId":102,"number":"001929","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1982,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":101,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"XX","clientLastName":"XX","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:29.248080] [debug] Aprobación de Factura - -[2025-05-31 16:00:29.248125] [debug] {"uuid":"312157bb-8fa1-43bf-81f0-230341a9c3e3","changeType":"draft_approved","entity":"invoice","entityId":1979,"message":null,"clientId":102,"eventName":"invoice.draft_approved","clientData":{"id":102,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"YERBAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"YERBAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"XX","lastName":"XX","username":"xxx02","contacts":[{"id":103,"clientId":102,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2e7d32","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1979,"clientId":102,"number":"001929","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1982,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":101,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"XX","clientLastName":"XX","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:30.240964] [notice] Logging level set to:debug -[2025-05-31 16:00:30.241041] [debug] valor del webhook: {"uuid":"0635d47a-42d5-44d1-8add-93ef66c21cc2","changeType":"draft_approved","entity":"invoice","entityId":"1980","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1980,"clientId":22,"number":"001930","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1983,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":21,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEBAN","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA PUERTA DE SAN FRANCISCO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:30.383936] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:30.383989] [debug] Valor de JSON: {"uuid":"0635d47a-42d5-44d1-8add-93ef66c21cc2","changeType":"draft_approved","entity":"invoice","entityId":"1980","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1980,"clientId":22,"number":"001930","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1983,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":21,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEBAN","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA PUERTA DE SAN FRANCISCO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:30.384089] [debug] Aprobación de Factura - -[2025-05-31 16:00:30.384130] [debug] {"uuid":"0635d47a-42d5-44d1-8add-93ef66c21cc2","changeType":"draft_approved","entity":"invoice","entityId":1980,"message":null,"clientId":22,"eventName":"invoice.draft_approved","clientData":{"id":22,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA PUERTA DE SAN FRANCISCO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA PUERTA DE SAN FRANCISCO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ESTEBAN","lastName":"GARCIA","username":"egarcia22","contacts":[{"id":23,"clientId":22,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5430,"accountCredit":0,"accountOutstanding":5430,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#7cb342","addressGpsLat":21.2091666,"addressGpsLon":-100.76,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1980,"clientId":22,"number":"001930","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1983,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":21,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEBAN","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA PUERTA DE SAN FRANCISCO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:34.356384] [notice] Logging level set to:debug -[2025-05-31 16:00:34.356436] [debug] valor del webhook: {"uuid":"0b31336d-bc7b-46fa-b46d-9f947c1ecf87","changeType":"draft_approved","entity":"invoice","entityId":"1981","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1981,"clientId":70,"number":"001931","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1984,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":69,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALBERTO","clientLastName":"TRUJILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:34.490824] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:34.490881] [debug] Valor de JSON: {"uuid":"0b31336d-bc7b-46fa-b46d-9f947c1ecf87","changeType":"draft_approved","entity":"invoice","entityId":"1981","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1981,"clientId":70,"number":"001931","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1984,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":69,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALBERTO","clientLastName":"TRUJILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:34.491036] [debug] Aprobación de Factura - -[2025-05-31 16:00:34.491087] [debug] {"uuid":"0b31336d-bc7b-46fa-b46d-9f947c1ecf87","changeType":"draft_approved","entity":"invoice","entityId":1981,"message":null,"clientId":70,"eventName":"invoice.draft_approved","clientData":{"id":70,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALBERTO","lastName":"TRUJILLO","username":"atrujillo70","contacts":[{"id":71,"clientId":70,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-11200,"accountCredit":0,"accountOutstanding":11200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef6c00","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1981,"clientId":70,"number":"001931","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1984,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":69,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALBERTO","clientLastName":"TRUJILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:35.641813] [notice] Logging level set to:debug -[2025-05-31 16:00:35.641890] [debug] valor del webhook: {"uuid":"390873b2-8d64-47be-b449-38247ab23e2b","changeType":"draft_approved","entity":"invoice","entityId":"1982","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1982,"clientId":17,"number":"001932","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1985,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":16,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUAN","clientLastName":"LOPEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CIENEGUILLA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:35.787424] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:35.787475] [debug] Valor de JSON: {"uuid":"390873b2-8d64-47be-b449-38247ab23e2b","changeType":"draft_approved","entity":"invoice","entityId":"1982","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1982,"clientId":17,"number":"001932","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1985,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":16,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUAN","clientLastName":"LOPEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CIENEGUILLA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:35.787579] [debug] Aprobación de Factura - -[2025-05-31 16:00:35.787621] [debug] {"uuid":"390873b2-8d64-47be-b449-38247ab23e2b","changeType":"draft_approved","entity":"invoice","entityId":1982,"message":null,"clientId":17,"eventName":"invoice.draft_approved","clientData":{"id":17,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"CIENEGUILLA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"CIENEGUILLA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JUAN","lastName":"LOPEZ","username":"jlopez17","contacts":[{"id":18,"clientId":17,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5690,"accountCredit":0,"accountOutstanding":5690,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.0749852,"addressGpsLon":-100.937613,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1982,"clientId":17,"number":"001932","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1985,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":16,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUAN","clientLastName":"LOPEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CIENEGUILLA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:36.940087] [notice] Logging level set to:debug -[2025-05-31 16:00:36.940196] [debug] valor del webhook: {"uuid":"4437b481-e38b-49be-a26c-dd613827c41e","changeType":"draft_approved","entity":"invoice","entityId":"1983","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1983,"clientId":66,"number":"001933","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1986,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":65,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LAURA","clientLastName":"CRUCES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:37.099354] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:37.099406] [debug] Valor de JSON: {"uuid":"4437b481-e38b-49be-a26c-dd613827c41e","changeType":"draft_approved","entity":"invoice","entityId":"1983","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1983,"clientId":66,"number":"001933","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1986,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":65,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LAURA","clientLastName":"CRUCES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:37.099528] [debug] Aprobación de Factura - -[2025-05-31 16:00:37.099574] [debug] {"uuid":"4437b481-e38b-49be-a26c-dd613827c41e","changeType":"draft_approved","entity":"invoice","entityId":1983,"message":null,"clientId":66,"eventName":"invoice.draft_approved","clientData":{"id":66,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"LAURA","lastName":"CRUCES","username":"lcruces66","contacts":[{"id":67,"clientId":66,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ffb300","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1983,"clientId":66,"number":"001933","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1986,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":65,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LAURA","clientLastName":"CRUCES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:38.239447] [notice] Logging level set to:debug -[2025-05-31 16:00:38.239533] [debug] valor del webhook: {"uuid":"2ecc7492-3c06-4d47-910c-5d61506abd76","changeType":"draft_approved","entity":"invoice","entityId":"1984","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1984,"clientId":7,"number":"001934","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1987,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":7,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JESUS","clientLastName":"GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:38.372268] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:38.372330] [debug] Valor de JSON: {"uuid":"2ecc7492-3c06-4d47-910c-5d61506abd76","changeType":"draft_approved","entity":"invoice","entityId":"1984","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1984,"clientId":7,"number":"001934","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1987,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":7,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JESUS","clientLastName":"GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:38.372452] [debug] Aprobación de Factura - -[2025-05-31 16:00:38.372497] [debug] {"uuid":"2ecc7492-3c06-4d47-910c-5d61506abd76","changeType":"draft_approved","entity":"invoice","entityId":1984,"message":null,"clientId":7,"eventName":"invoice.draft_approved","clientData":{"id":7,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"ADJUNTAS DEL RIO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"ADJUNTAS DEL RIO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JESUS","lastName":"GONZALEZ","username":"jgonzalez07","contacts":[{"id":8,"clientId":7,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#607d8b","addressGpsLat":21.1191939,"addressGpsLon":-100.8698211,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1984,"clientId":7,"number":"001934","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1987,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":7,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JESUS","clientLastName":"GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:39.481625] [notice] Logging level set to:debug -[2025-05-31 16:00:39.481715] [debug] valor del webhook: {"uuid":"8febbcf0-dfa7-4d30-9f47-fd7688cfe5d8","changeType":"draft_approved","entity":"invoice","entityId":"1985","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1985,"clientId":38,"number":"001935","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1988,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":37,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGELICA","clientLastName":"ROMAN","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:39.612042] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:39.612097] [debug] Valor de JSON: {"uuid":"8febbcf0-dfa7-4d30-9f47-fd7688cfe5d8","changeType":"draft_approved","entity":"invoice","entityId":"1985","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1985,"clientId":38,"number":"001935","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1988,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":37,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGELICA","clientLastName":"ROMAN","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:39.612195] [debug] Aprobación de Factura - -[2025-05-31 16:00:39.612237] [debug] {"uuid":"8febbcf0-dfa7-4d30-9f47-fd7688cfe5d8","changeType":"draft_approved","entity":"invoice","entityId":1985,"message":null,"clientId":38,"eventName":"invoice.draft_approved","clientData":{"id":38,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TECOLOTE","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TECOLOTE, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANGELICA","lastName":"ROMAN","username":"aroman38","contacts":[{"id":39,"clientId":38,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4810,"accountCredit":0,"accountOutstanding":4810,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#607d8b","addressGpsLat":21.22987,"addressGpsLon":-101.0648115,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1985,"clientId":38,"number":"001935","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1988,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":37,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGELICA","clientLastName":"ROMAN","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:40.743180] [notice] Logging level set to:debug -[2025-05-31 16:00:40.743237] [debug] valor del webhook: {"uuid":"7b54927b-b6ba-4d0a-9561-d0b3df60821e","changeType":"draft_approved","entity":"invoice","entityId":"1986","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1986,"clientId":62,"number":"001936","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1989,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":61,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"BERNAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:40.886604] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:40.886653] [debug] Valor de JSON: {"uuid":"7b54927b-b6ba-4d0a-9561-d0b3df60821e","changeType":"draft_approved","entity":"invoice","entityId":"1986","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1986,"clientId":62,"number":"001936","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1989,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":61,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"BERNAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:40.886744] [debug] Aprobación de Factura - -[2025-05-31 16:00:40.886786] [debug] {"uuid":"7b54927b-b6ba-4d0a-9561-d0b3df60821e","changeType":"draft_approved","entity":"invoice","entityId":1986,"message":null,"clientId":62,"eventName":"invoice.draft_approved","clientData":{"id":62,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TRANCAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TRANCAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"DANIEL","lastName":"BERNAL","username":"dbernal62","contacts":[{"id":63,"clientId":62,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ff5722","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1986,"clientId":62,"number":"001936","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1989,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":61,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"BERNAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:42.017618] [notice] Logging level set to:debug -[2025-05-31 16:00:42.017679] [debug] valor del webhook: {"uuid":"9281b28a-7c45-43ee-9c59-7f883d8c603b","changeType":"draft_approved","entity":"invoice","entityId":"1987","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1987,"clientId":82,"number":"001937","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1990,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":81,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AGUSTINA","clientLastName":"PERICLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:42.149447] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:42.149499] [debug] Valor de JSON: {"uuid":"9281b28a-7c45-43ee-9c59-7f883d8c603b","changeType":"draft_approved","entity":"invoice","entityId":"1987","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1987,"clientId":82,"number":"001937","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1990,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":81,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AGUSTINA","clientLastName":"PERICLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:42.149624] [debug] Aprobación de Factura - -[2025-05-31 16:00:42.149667] [debug] {"uuid":"9281b28a-7c45-43ee-9c59-7f883d8c603b","changeType":"draft_approved","entity":"invoice","entityId":1987,"message":null,"clientId":82,"eventName":"invoice.draft_approved","clientData":{"id":82,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"AGUSTINA","lastName":"PERICLES","username":"apericles82","contacts":[{"id":83,"clientId":82,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1987,"clientId":82,"number":"001937","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1990,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":81,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AGUSTINA","clientLastName":"PERICLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:43.281096] [notice] Logging level set to:debug -[2025-05-31 16:00:43.281178] [debug] valor del webhook: {"uuid":"1fb0df53-9fcf-4107-ac32-bfcc11b4b9d6","changeType":"draft_approved","entity":"invoice","entityId":"1988","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1988,"clientId":89,"number":"001938","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1991,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":88,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RIO LAJA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:43.432051] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:43.432120] [debug] Valor de JSON: {"uuid":"1fb0df53-9fcf-4107-ac32-bfcc11b4b9d6","changeType":"draft_approved","entity":"invoice","entityId":"1988","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1988,"clientId":89,"number":"001938","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1991,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":88,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RIO LAJA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:43.432218] [debug] Aprobación de Factura - -[2025-05-31 16:00:43.432260] [debug] {"uuid":"1fb0df53-9fcf-4107-ac32-bfcc11b4b9d6","changeType":"draft_approved","entity":"invoice","entityId":1988,"message":null,"clientId":89,"eventName":"invoice.draft_approved","clientData":{"id":89,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"RIO LAJA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"RIO LAJA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"TERESA","lastName":"SANCHEZ","username":"tsanchez89","contacts":[{"id":90,"clientId":89,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f9a825","addressGpsLat":21.2023922,"addressGpsLon":-100.9220375,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1988,"clientId":89,"number":"001938","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1991,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":88,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RIO LAJA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:44.578087] [notice] Logging level set to:debug -[2025-05-31 16:00:44.578145] [debug] valor del webhook: {"uuid":"d6424338-82f1-4ac9-99ef-4c4cb568afe4","changeType":"draft_approved","entity":"invoice","entityId":"1989","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1989,"clientId":45,"number":"001939","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1992,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":44,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALBERTO","clientLastName":"GRANADOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:44.740633] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:44.740686] [debug] Valor de JSON: {"uuid":"d6424338-82f1-4ac9-99ef-4c4cb568afe4","changeType":"draft_approved","entity":"invoice","entityId":"1989","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1989,"clientId":45,"number":"001939","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1992,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":44,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALBERTO","clientLastName":"GRANADOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:44.740782] [debug] Aprobación de Factura - -[2025-05-31 16:00:44.740825] [debug] {"uuid":"d6424338-82f1-4ac9-99ef-4c4cb568afe4","changeType":"draft_approved","entity":"invoice","entityId":1989,"message":null,"clientId":45,"eventName":"invoice.draft_approved","clientData":{"id":45,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALBERTO","lastName":"GRANADOS","username":"agranados45","contacts":[{"id":46,"clientId":45,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":98,"clientId":45,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtN1E1ePcRAA689","clientZoneVisible":true},{"id":99,"clientId":45,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"9271357829475893","clientZoneVisible":true}],"accountBalance":-4810,"accountCredit":0,"accountOutstanding":4810,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ff9800","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1989,"clientId":45,"number":"001939","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1992,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":44,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALBERTO","clientLastName":"GRANADOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:45.890940] [notice] Logging level set to:debug -[2025-05-31 16:00:45.891062] [debug] valor del webhook: {"uuid":"62c562ca-a4ad-4d38-b5b5-daacbeba5577","changeType":"draft_approved","entity":"invoice","entityId":"1990","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1990,"clientId":100,"number":"001940","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1993,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":99,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RENE","clientLastName":"BUSTOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:46.032316] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:46.032373] [debug] Valor de JSON: {"uuid":"62c562ca-a4ad-4d38-b5b5-daacbeba5577","changeType":"draft_approved","entity":"invoice","entityId":"1990","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1990,"clientId":100,"number":"001940","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1993,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":99,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RENE","clientLastName":"BUSTOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:46.032500] [debug] Aprobación de Factura - -[2025-05-31 16:00:46.032546] [debug] {"uuid":"62c562ca-a4ad-4d38-b5b5-daacbeba5577","changeType":"draft_approved","entity":"invoice","entityId":1990,"message":null,"clientId":100,"eventName":"invoice.draft_approved","clientData":{"id":100,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"RENE","lastName":"BUSTOS","username":"rbustos00","contacts":[{"id":101,"clientId":100,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#0277bd","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1990,"clientId":100,"number":"001940","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1993,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":99,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RENE","clientLastName":"BUSTOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:47.176789] [notice] Logging level set to:debug -[2025-05-31 16:00:47.176843] [debug] valor del webhook: {"uuid":"36472f0a-847c-4eaf-8fae-b58a3a92f324","changeType":"draft_approved","entity":"invoice","entityId":"1991","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1991,"clientId":10,"number":"001941","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1994,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":10,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CARLOS","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:47.319675] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:47.319731] [debug] Valor de JSON: {"uuid":"36472f0a-847c-4eaf-8fae-b58a3a92f324","changeType":"draft_approved","entity":"invoice","entityId":"1991","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1991,"clientId":10,"number":"001941","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1994,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":10,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CARLOS","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:47.319830] [debug] Aprobación de Factura - -[2025-05-31 16:00:47.319873] [debug] {"uuid":"36472f0a-847c-4eaf-8fae-b58a3a92f324","changeType":"draft_approved","entity":"invoice","entityId":1991,"message":null,"clientId":10,"eventName":"invoice.draft_approved","clientData":{"id":10,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"CARLOS","lastName":"MESA","username":"cmesa10","contacts":[{"id":11,"clientId":10,"email":null,"phone":"4425476911","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1001,"name":"WhatsApptmp"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00695c","addressGpsLat":21.1574,"addressGpsLon":-100.934617,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1991,"clientId":10,"number":"001941","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1994,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":10,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CARLOS","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:48.448971] [notice] Logging level set to:debug -[2025-05-31 16:00:48.449039] [debug] valor del webhook: {"uuid":"e9f56e12-ff78-422c-afc4-e295d62919a3","changeType":"draft_approved","entity":"invoice","entityId":"1992","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1992,"clientId":27,"number":"001942","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1995,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":26,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXIS","clientLastName":"DIAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA RITA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:48.576967] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:48.577018] [debug] Valor de JSON: {"uuid":"e9f56e12-ff78-422c-afc4-e295d62919a3","changeType":"draft_approved","entity":"invoice","entityId":"1992","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1992,"clientId":27,"number":"001942","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1995,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":26,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXIS","clientLastName":"DIAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA RITA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:48.577133] [debug] Aprobación de Factura - -[2025-05-31 16:00:48.577174] [debug] {"uuid":"e9f56e12-ff78-422c-afc4-e295d62919a3","changeType":"draft_approved","entity":"invoice","entityId":1992,"message":null,"clientId":27,"eventName":"invoice.draft_approved","clientData":{"id":27,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA RITA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA RITA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALEXIS","lastName":"DIAZ","username":"adiaz27","contacts":[{"id":28,"clientId":27,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4810,"accountCredit":0,"accountOutstanding":4810,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ad1457","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1992,"clientId":27,"number":"001942","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1995,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":26,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXIS","clientLastName":"DIAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA RITA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:49.722793] [notice] Logging level set to:debug -[2025-05-31 16:00:49.722877] [debug] valor del webhook: {"uuid":"3469426c-23c0-4db5-ad5a-88418082fd25","changeType":"draft_approved","entity":"invoice","entityId":"1993","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1993,"clientId":19,"number":"001943","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1996,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":18,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARIA","clientLastName":"RODRIGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:49.872124] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:49.872183] [debug] Valor de JSON: {"uuid":"3469426c-23c0-4db5-ad5a-88418082fd25","changeType":"draft_approved","entity":"invoice","entityId":"1993","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1993,"clientId":19,"number":"001943","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1996,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":18,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARIA","clientLastName":"RODRIGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:49.872291] [debug] Aprobación de Factura - -[2025-05-31 16:00:49.872349] [debug] {"uuid":"3469426c-23c0-4db5-ad5a-88418082fd25","changeType":"draft_approved","entity":"invoice","entityId":1993,"message":null,"clientId":19,"eventName":"invoice.draft_approved","clientData":{"id":19,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MARIA","lastName":"RODRIGUEZ","username":"mrodriguez19","contacts":[{"id":20,"clientId":19,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-9933.33,"accountCredit":0,"accountOutstanding":9933.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ff5722","addressGpsLat":21.151597,"addressGpsLon":-100.9367183,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1993,"clientId":19,"number":"001943","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1996,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":18,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARIA","clientLastName":"RODRIGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:51.013113] [notice] Logging level set to:debug -[2025-05-31 16:00:51.013169] [debug] valor del webhook: {"uuid":"409f43fd-87ac-4ed8-8523-611759cbe723","changeType":"draft_approved","entity":"invoice","entityId":"1994","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1994,"clientId":63,"number":"001944","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1997,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":62,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONELA","clientLastName":"ROBLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:51.150394] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:51.150449] [debug] Valor de JSON: {"uuid":"409f43fd-87ac-4ed8-8523-611759cbe723","changeType":"draft_approved","entity":"invoice","entityId":"1994","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1994,"clientId":63,"number":"001944","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1997,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":62,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONELA","clientLastName":"ROBLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:51.150562] [debug] Aprobación de Factura - -[2025-05-31 16:00:51.150604] [debug] {"uuid":"409f43fd-87ac-4ed8-8523-611759cbe723","changeType":"draft_approved","entity":"invoice","entityId":1994,"message":null,"clientId":63,"eventName":"invoice.draft_approved","clientData":{"id":63,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ELIAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ELIAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANTONELA","lastName":"ROBLES","username":"arobles63","contacts":[{"id":64,"clientId":63,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ffb300","addressGpsLat":21.2516667,"addressGpsLon":-101.0924998,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1994,"clientId":63,"number":"001944","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1997,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":62,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONELA","clientLastName":"ROBLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:52.312581] [notice] Logging level set to:debug -[2025-05-31 16:00:52.312659] [debug] valor del webhook: {"uuid":"2ba61d64-7aba-4d83-af52-af0f62727dd2","changeType":"draft_approved","entity":"invoice","entityId":"1995","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1995,"clientId":48,"number":"001945","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1998,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":47,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ISELA","clientLastName":"AZPEITIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTIAGUILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:52.445229] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:52.445278] [debug] Valor de JSON: {"uuid":"2ba61d64-7aba-4d83-af52-af0f62727dd2","changeType":"draft_approved","entity":"invoice","entityId":"1995","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1995,"clientId":48,"number":"001945","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1998,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":47,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ISELA","clientLastName":"AZPEITIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTIAGUILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:52.445369] [debug] Aprobación de Factura - -[2025-05-31 16:00:52.445415] [debug] {"uuid":"2ba61d64-7aba-4d83-af52-af0f62727dd2","changeType":"draft_approved","entity":"invoice","entityId":1995,"message":null,"clientId":48,"eventName":"invoice.draft_approved","clientData":{"id":48,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTIAGUILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTIAGUILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ISELA","lastName":"AZPEITIA","username":"iazpeitia48","contacts":[{"id":49,"clientId":48,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":104,"clientId":48,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtN1VUj6JXVCcUu","clientZoneVisible":true},{"id":105,"clientId":48,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"4896043950637164","clientZoneVisible":true}],"accountBalance":-7800,"accountCredit":0,"accountOutstanding":7800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#558b2f","addressGpsLat":21.0165209,"addressGpsLon":-100.9831731,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1995,"clientId":48,"number":"001945","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1998,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":47,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ISELA","clientLastName":"AZPEITIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTIAGUILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:53.588577] [notice] Logging level set to:debug -[2025-05-31 16:00:53.588653] [debug] valor del webhook: {"uuid":"b2188509-210f-4e98-81f3-a42eda05396d","changeType":"draft_approved","entity":"invoice","entityId":"1996","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1996,"clientId":79,"number":"001946","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1999,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":78,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"ESPONIZA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:53.715104] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:53.715158] [debug] Valor de JSON: {"uuid":"b2188509-210f-4e98-81f3-a42eda05396d","changeType":"draft_approved","entity":"invoice","entityId":"1996","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1996,"clientId":79,"number":"001946","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1999,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":78,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"ESPONIZA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:53.715254] [debug] Aprobación de Factura - -[2025-05-31 16:00:53.715296] [debug] {"uuid":"b2188509-210f-4e98-81f3-a42eda05396d","changeType":"draft_approved","entity":"invoice","entityId":1996,"message":null,"clientId":79,"eventName":"invoice.draft_approved","clientData":{"id":79,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LAS YERBAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LAS YERBAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"SEBASTIAN","lastName":"ESPONIZA","username":"sesponiza79","contacts":[{"id":80,"clientId":79,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-8000,"accountCredit":0,"accountOutstanding":8000,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2e7d32","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1996,"clientId":79,"number":"001946","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1999,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":78,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"ESPONIZA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:54.843694] [notice] Logging level set to:debug -[2025-05-31 16:00:54.843791] [debug] valor del webhook: {"uuid":"45577f52-5819-47b9-8722-fff35b21e4a1","changeType":"draft_approved","entity":"invoice","entityId":"1997","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1997,"clientId":53,"number":"001947","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2000,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":52,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONIO","clientLastName":"CHAVEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:54.988593] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:54.988651] [debug] Valor de JSON: {"uuid":"45577f52-5819-47b9-8722-fff35b21e4a1","changeType":"draft_approved","entity":"invoice","entityId":"1997","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1997,"clientId":53,"number":"001947","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2000,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":52,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONIO","clientLastName":"CHAVEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:54.988771] [debug] Aprobación de Factura - -[2025-05-31 16:00:54.988816] [debug] {"uuid":"45577f52-5819-47b9-8722-fff35b21e4a1","changeType":"draft_approved","entity":"invoice","entityId":1997,"message":null,"clientId":53,"eventName":"invoice.draft_approved","clientData":{"id":53,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA VENTA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA VENTA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANTONIO","lastName":"CHAVEZ","username":"achavez53","contacts":[{"id":54,"clientId":53,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef5350","addressGpsLat":21.1197222,"addressGpsLon":-100.7872222,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1997,"clientId":53,"number":"001947","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2000,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":52,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONIO","clientLastName":"CHAVEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:56.129044] [notice] Logging level set to:debug -[2025-05-31 16:00:56.129117] [debug] valor del webhook: {"uuid":"c1a5f0e4-4f09-4fc8-99e8-dc94ce3093fb","changeType":"draft_approved","entity":"invoice","entityId":"1998","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1998,"clientId":76,"number":"001948","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2001,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":75,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"RANGEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:56.262161] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:56.262217] [debug] Valor de JSON: {"uuid":"c1a5f0e4-4f09-4fc8-99e8-dc94ce3093fb","changeType":"draft_approved","entity":"invoice","entityId":"1998","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1998,"clientId":76,"number":"001948","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2001,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":75,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"RANGEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:56.262314] [debug] Aprobación de Factura - -[2025-05-31 16:00:56.262356] [debug] {"uuid":"c1a5f0e4-4f09-4fc8-99e8-dc94ce3093fb","changeType":"draft_approved","entity":"invoice","entityId":1998,"message":null,"clientId":76,"eventName":"invoice.draft_approved","clientData":{"id":76,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TRANCAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TRANCAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"EDGAR","lastName":"RANGEL","username":"erangel76","contacts":[{"id":77,"clientId":76,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00695c","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1998,"clientId":76,"number":"001948","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2001,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":75,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"RANGEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:57.409401] [notice] Logging level set to:debug -[2025-05-31 16:00:57.409499] [debug] valor del webhook: {"uuid":"b4e82dd2-6e5d-40aa-88c2-473f0ce8b555","changeType":"draft_approved","entity":"invoice","entityId":"1999","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1999,"clientId":73,"number":"001949","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2002,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":72,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ERICK","clientLastName":"VAZQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:57.547655] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:57.547709] [debug] Valor de JSON: {"uuid":"b4e82dd2-6e5d-40aa-88c2-473f0ce8b555","changeType":"draft_approved","entity":"invoice","entityId":"1999","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1999,"clientId":73,"number":"001949","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2002,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":72,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ERICK","clientLastName":"VAZQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:57.547849] [debug] Aprobación de Factura - -[2025-05-31 16:00:57.547895] [debug] {"uuid":"b4e82dd2-6e5d-40aa-88c2-473f0ce8b555","changeType":"draft_approved","entity":"invoice","entityId":1999,"message":null,"clientId":73,"eventName":"invoice.draft_approved","clientData":{"id":73,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ERICK","lastName":"VAZQUEZ","username":"evazquez73","contacts":[{"id":74,"clientId":73,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#d81b60","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1999,"clientId":73,"number":"001949","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2002,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":72,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ERICK","clientLastName":"VAZQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:58.688282] [notice] Logging level set to:debug -[2025-05-31 16:00:58.688349] [debug] valor del webhook: {"uuid":"ed1074f6-6ba5-4ed3-ba7f-796be44f3204","changeType":"draft_approved","entity":"invoice","entityId":"2000","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2000,"clientId":65,"number":"001950","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2003,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":64,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS MONCADA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:58.826920] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:00:58.826977] [debug] Valor de JSON: {"uuid":"ed1074f6-6ba5-4ed3-ba7f-796be44f3204","changeType":"draft_approved","entity":"invoice","entityId":"2000","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2000,"clientId":65,"number":"001950","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2003,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":64,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS MONCADA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:00:58.827105] [debug] Aprobación de Factura - -[2025-05-31 16:00:58.827151] [debug] {"uuid":"ed1074f6-6ba5-4ed3-ba7f-796be44f3204","changeType":"draft_approved","entity":"invoice","entityId":2000,"message":null,"clientId":65,"eventName":"invoice.draft_approved","clientData":{"id":65,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LOS MONCADA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LOS MONCADA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"SEBASTIAN","lastName":"MESA","username":"smesa65","contacts":[{"id":66,"clientId":65,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3949ab","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2000,"clientId":65,"number":"001950","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2003,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":64,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS MONCADA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:00:59.980782] [notice] Logging level set to:debug -[2025-05-31 16:00:59.980835] [debug] valor del webhook: {"uuid":"63ebb6d0-d7da-4121-8336-199005b8b23f","changeType":"draft_approved","entity":"invoice","entityId":"2001","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2001,"clientId":94,"number":"001951","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2004,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":93,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARTIN","clientLastName":"TREJO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:00.282042] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:00.282098] [debug] Valor de JSON: {"uuid":"63ebb6d0-d7da-4121-8336-199005b8b23f","changeType":"draft_approved","entity":"invoice","entityId":"2001","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2001,"clientId":94,"number":"001951","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2004,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":93,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARTIN","clientLastName":"TREJO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:00.282200] [debug] Aprobación de Factura - -[2025-05-31 16:01:00.282242] [debug] {"uuid":"63ebb6d0-d7da-4121-8336-199005b8b23f","changeType":"draft_approved","entity":"invoice","entityId":2001,"message":null,"clientId":94,"eventName":"invoice.draft_approved","clientData":{"id":94,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MARTIN","lastName":"TREJO","username":"mtrejo94","contacts":[{"id":95,"clientId":94,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00695c","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2001,"clientId":94,"number":"001951","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2004,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":93,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARTIN","clientLastName":"TREJO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:00.282270] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-05-31 16:01:00.282279] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"63ebb6d0-d7da-4121-8336-199005b8b23f","changeType":"draft_approved","entity":"invoice","entityId":2001,"message":null,"clientId":94,"eventName":"invoice.draft_approved","clientData":{"id":94,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MARTIN","lastName":"TREJO","username":"mtrejo94","contacts":[{"id":95,"clientId":94,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00695c","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2001,"clientId":94,"number":"001951","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2004,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":93,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARTIN","clientLastName":"TREJO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":17,"clientId":94,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-01-31T15:59:03-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":22,"invoiceId":87,"paymentId":17,"creditNoteId":null,"refundId":null,"amount":200}],"creditAmount":0,"userId":1000,"attributes":[]}] - -Nombre del cliente que se va a actualizar: MARTIN TREJO - -UUID: 92dd9fb15b8f4ff6860f8a32ea9bd7e4 - -JSON con los datos a actualizar: {"name":"MARTIN TREJO","custom_fields":{"Cliente":94,"Domicilio":"\ud83d\udccd Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Nombre":"\ud83d\udc64 MARTIN TREJO","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/94","Saldo Actual":"\ud83d\udcb25100 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 200","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"94\",\"Domicilio\": \"\"Nombre\": \"MARTIN TREJO\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/94\",\"Saldo Actual\": \"\ud83d\udcb25100 pendientes\",\"Monto Ultimo Pago\": \"$ 200\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 31\/01\/2024 15:59 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"31\/05\/2025 10:01\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 31\/01\/2024 15:59 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 31\/05\/2025 10:01","Clabe Interbancaria":null,"Site":"","Antena\/Sectorial":""}} - -JSON con los datos a actualizar del resumen: {"Cliente": "94","Domicilio": ""Nombre": "MARTIN TREJO","URL": "https://sistema.siip.mx/crm/client/94","Saldo Actual": "💲5100 pendientes","Monto Ultimo Pago": "$ 200","Estado": "Suspendido","Fecha Ultimo Pago": " 31/01/2024 15:59 con Efectivo 💵","Fecha Ultima Actualizacion": "31/05/2025 10:01","Clabe Interbancaria": "","Site": "","Antena/Sectorial": ""} - -Response Patch CallBell: {"contact":{"uuid":"92dd9fb15b8f4ff6860f8a32ea9bd7e4","name":"MARTIN TREJO","phoneNumber":"5214181091933","avatarUrl":null,"createdAt":"2023-12-22T16:55:50Z","closedAt":"2024-07-11T22:49:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/92dd9fb15b8f4ff6860f8a32ea9bd7e4","conversationHref":"https://dash.callbell.eu/chat/04a3e26142e0431789260acb0b60a3ac","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"124180650659256341","Estado":"🔴 Suspendido","Antena/Sectorial":"Sec3-Sb 172.16.55.13/24","Site":"SBARB","Domicilio":"📍 Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Resumen":"{\"Cliente\": \"94\",\"Domicilio\": \"\"Nombre\": \"MARTIN TREJO\",\"URL\": \"https://sistema.siip.mx/crm/client/94\",\"Saldo Actual\": \"💲5100 pendientes\",\"Monto Ultimo Pago\": \"$ 200\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 31/01/2024 15:59 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/05/2025 10:01\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","URL":"🌐 https://sistema.siip.mx/crm/client/94","Fecha Ultima Actualizacion":"📆🔄️ 31/05/2025 10:01","Nombre":"👤 MARTIN TREJO","Cliente":"94","Saldo Actual":"💲5100 pendientes","Monto Ultimo Pago":"💲 200","Fecha Ultimo Pago":"📆💸 31/01/2024 15:59 con Efectivo 💵"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"92dd9fb15b8f4ff6860f8a32ea9bd7e4","name":"MARTIN TREJO","phoneNumber":"5214181091933","avatarUrl":null,"createdAt":"2023-12-22T16:55:50Z","closedAt":"2024-07-11T22:49:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/92dd9fb15b8f4ff6860f8a32ea9bd7e4","conversationHref":"https://dash.callbell.eu/chat/04a3e26142e0431789260acb0b60a3ac","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"124180650659256341","Estado":"🔴 Suspendido","Antena/Sectorial":"Sec3-Sb 172.16.55.13/24","Site":"SBARB","Domicilio":"📍 Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Resumen":"{\"Cliente\": \"94\",\"Domicilio\": \"\"Nombre\": \"MARTIN TREJO\",\"URL\": \"https://sistema.siip.mx/crm/client/94\",\"Saldo Actual\": \"💲5100 pendientes\",\"Monto Ultimo Pago\": \"$ 200\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 31/01/2024 15:59 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/05/2025 10:01\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","URL":"🌐 https://sistema.siip.mx/crm/client/94","Fecha Ultima Actualizacion":"📆🔄️ 31/05/2025 10:01","Nombre":"👤 MARTIN TREJO","Cliente":"94","Saldo Actual":"💲5100 pendientes","Monto Ultimo Pago":"💲 200","Fecha Ultimo Pago":"📆💸 31/01/2024 15:59 con Efectivo 💵"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-05-31 16:01:03.105777] [notice] Logging level set to:debug -[2025-05-31 16:01:03.105830] [debug] valor del webhook: {"uuid":"c8b96ea2-2f56-483a-9a80-f2a0d88a0d2c","changeType":"draft_approved","entity":"invoice","entityId":"2002","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2002,"clientId":33,"number":"001952","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2005,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":32,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURELIA","clientLastName":"BARAJAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA CECILIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:03.267775] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:03.267824] [debug] Valor de JSON: {"uuid":"c8b96ea2-2f56-483a-9a80-f2a0d88a0d2c","changeType":"draft_approved","entity":"invoice","entityId":"2002","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2002,"clientId":33,"number":"001952","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2005,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":32,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURELIA","clientLastName":"BARAJAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA CECILIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:03.270883] [debug] Aprobación de Factura - -[2025-05-31 16:01:03.270946] [debug] {"uuid":"c8b96ea2-2f56-483a-9a80-f2a0d88a0d2c","changeType":"draft_approved","entity":"invoice","entityId":2002,"message":null,"clientId":33,"eventName":"invoice.draft_approved","clientData":{"id":33,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA CECILIA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA CECILIA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"AURELIA","lastName":"BARAJAS","username":"abarajas33","contacts":[{"id":34,"clientId":33,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5350,"accountCredit":0,"accountOutstanding":5350,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#8bc34a","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2002,"clientId":33,"number":"001952","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2005,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":32,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURELIA","clientLastName":"BARAJAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA CECILIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:04.274769] [notice] Logging level set to:debug -[2025-05-31 16:01:04.274862] [debug] valor del webhook: {"uuid":"d9fee43e-236c-46cd-a481-fa70e30d6798","changeType":"draft_approved","entity":"invoice","entityId":"2003","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2003,"clientId":59,"number":"001953","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2006,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":58,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAMSES","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GUSANO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:04.407068] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:04.407121] [debug] Valor de JSON: {"uuid":"d9fee43e-236c-46cd-a481-fa70e30d6798","changeType":"draft_approved","entity":"invoice","entityId":"2003","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2003,"clientId":59,"number":"001953","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2006,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":58,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAMSES","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GUSANO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:04.407232] [debug] Aprobación de Factura - -[2025-05-31 16:01:04.407277] [debug] {"uuid":"d9fee43e-236c-46cd-a481-fa70e30d6798","changeType":"draft_approved","entity":"invoice","entityId":2003,"message":null,"clientId":59,"eventName":"invoice.draft_approved","clientData":{"id":59,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"GUSANO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"GUSANO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"RAMSES","lastName":"HERRERA","username":"rherrera59","contacts":[{"id":60,"clientId":59,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00acc1","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2003,"clientId":59,"number":"001953","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2006,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":58,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAMSES","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GUSANO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:05.544384] [notice] Logging level set to:debug -[2025-05-31 16:01:05.544476] [debug] valor del webhook: {"uuid":"13764763-f5ca-4f80-8045-138cb9fbd014","changeType":"draft_approved","entity":"invoice","entityId":"2004","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2004,"clientId":37,"number":"001954","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2007,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":36,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGEL","clientLastName":"ARVIZU","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA SOLEDAD","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:05.683237] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:05.683288] [debug] Valor de JSON: {"uuid":"13764763-f5ca-4f80-8045-138cb9fbd014","changeType":"draft_approved","entity":"invoice","entityId":"2004","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2004,"clientId":37,"number":"001954","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2007,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":36,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGEL","clientLastName":"ARVIZU","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA SOLEDAD","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:05.683393] [debug] Aprobación de Factura - -[2025-05-31 16:01:05.683438] [debug] {"uuid":"13764763-f5ca-4f80-8045-138cb9fbd014","changeType":"draft_approved","entity":"invoice","entityId":2004,"message":null,"clientId":37,"eventName":"invoice.draft_approved","clientData":{"id":37,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA SOLEDAD","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA SOLEDAD, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANGEL","lastName":"ARVIZU","username":"aarvizu37","contacts":[{"id":38,"clientId":37,"email":null,"phone":"4181818706","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4810,"accountCredit":0,"accountOutstanding":4810,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#009688","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2004,"clientId":37,"number":"001954","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2007,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":36,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGEL","clientLastName":"ARVIZU","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA SOLEDAD","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:06.852404] [notice] Logging level set to:debug -[2025-05-31 16:01:06.852459] [debug] valor del webhook: {"uuid":"0ecf9162-f9dd-4836-8632-31e6cf9c5c22","changeType":"draft_approved","entity":"invoice","entityId":"2005","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2005,"clientId":71,"number":"001955","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2008,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":70,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MNARIA","clientLastName":"ALVAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:06.993736] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:06.993791] [debug] Valor de JSON: {"uuid":"0ecf9162-f9dd-4836-8632-31e6cf9c5c22","changeType":"draft_approved","entity":"invoice","entityId":"2005","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2005,"clientId":71,"number":"001955","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2008,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":70,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MNARIA","clientLastName":"ALVAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:06.993913] [debug] Aprobación de Factura - -[2025-05-31 16:01:06.993961] [debug] {"uuid":"0ecf9162-f9dd-4836-8632-31e6cf9c5c22","changeType":"draft_approved","entity":"invoice","entityId":2005,"message":null,"clientId":71,"eventName":"invoice.draft_approved","clientData":{"id":71,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MNARIA","lastName":"ALVAREZ","username":"malvarez71","contacts":[{"id":72,"clientId":71,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-900,"accountCredit":0,"accountOutstanding":900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#4caf50","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2005,"clientId":71,"number":"001955","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2008,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":70,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MNARIA","clientLastName":"ALVAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:08.151171] [notice] Logging level set to:debug -[2025-05-31 16:01:08.151236] [debug] valor del webhook: {"uuid":"cb25e17e-6813-458f-998f-f953f2edb651","changeType":"draft_approved","entity":"invoice","entityId":"2006","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2006,"clientId":96,"number":"001956","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2009,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":95,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PAMELA","clientLastName":"RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:08.280680] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:08.280735] [debug] Valor de JSON: {"uuid":"cb25e17e-6813-458f-998f-f953f2edb651","changeType":"draft_approved","entity":"invoice","entityId":"2006","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2006,"clientId":96,"number":"001956","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2009,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":95,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PAMELA","clientLastName":"RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:08.280839] [debug] Aprobación de Factura - -[2025-05-31 16:01:08.280883] [debug] {"uuid":"cb25e17e-6813-458f-998f-f953f2edb651","changeType":"draft_approved","entity":"invoice","entityId":2006,"message":null,"clientId":96,"eventName":"invoice.draft_approved","clientData":{"id":96,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"PAMELA","lastName":"RAMIREZ","username":"pramirez96","contacts":[{"id":97,"clientId":96,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-1200,"accountCredit":0,"accountOutstanding":1200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#c0ca33","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2006,"clientId":96,"number":"001956","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2009,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":95,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PAMELA","clientLastName":"RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:09.461338] [notice] Logging level set to:debug -[2025-05-31 16:01:09.461410] [debug] valor del webhook: {"uuid":"08fa89e6-8204-48a2-91aa-928d1fe3542e","changeType":"draft_approved","entity":"invoice","entityId":"2007","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2007,"clientId":23,"number":"001957","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2010,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":22,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OSCAR","clientLastName":"GUERRERO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TABASCO #45, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:09.603167] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:09.603220] [debug] Valor de JSON: {"uuid":"08fa89e6-8204-48a2-91aa-928d1fe3542e","changeType":"draft_approved","entity":"invoice","entityId":"2007","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2007,"clientId":23,"number":"001957","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2010,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":22,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OSCAR","clientLastName":"GUERRERO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TABASCO #45, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:09.603338] [debug] Aprobación de Factura - -[2025-05-31 16:01:09.603384] [debug] {"uuid":"08fa89e6-8204-48a2-91aa-928d1fe3542e","changeType":"draft_approved","entity":"invoice","entityId":2007,"message":null,"clientId":23,"eventName":"invoice.draft_approved","clientData":{"id":23,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TABASCO #45, ZONA CENTRO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TABASCO #45, ZONA CENTRO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"OSCAR","lastName":"GUERRERO","username":"oguerrero23","contacts":[{"id":24,"clientId":23,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#283593","addressGpsLat":21.1550814,"addressGpsLon":-100.9341575,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2007,"clientId":23,"number":"001957","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2010,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":22,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OSCAR","clientLastName":"GUERRERO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TABASCO #45, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:10.743680] [notice] Logging level set to:debug -[2025-05-31 16:01:10.743789] [debug] valor del webhook: {"uuid":"0062b184-6b68-4ae6-9cb6-211ad73843ad","changeType":"draft_approved","entity":"invoice","entityId":"2008","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2008,"clientId":55,"number":"001958","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2011,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":54,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JOSE","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:10.873435] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:10.873491] [debug] Valor de JSON: {"uuid":"0062b184-6b68-4ae6-9cb6-211ad73843ad","changeType":"draft_approved","entity":"invoice","entityId":"2008","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2008,"clientId":55,"number":"001958","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2011,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":54,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JOSE","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:10.873596] [debug] Aprobación de Factura - -[2025-05-31 16:01:10.873642] [debug] {"uuid":"0062b184-6b68-4ae6-9cb6-211ad73843ad","changeType":"draft_approved","entity":"invoice","entityId":2008,"message":null,"clientId":55,"eventName":"invoice.draft_approved","clientData":{"id":55,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL MEZQUITAL","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL MEZQUITAL, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JOSE","lastName":"SANCHEZ","username":"jsanchez55","contacts":[{"id":56,"clientId":55,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#8e24aa","addressGpsLat":21.1081412,"addressGpsLon":-100.9422033,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2008,"clientId":55,"number":"001958","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2011,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":54,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JOSE","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:11.990926] [notice] Logging level set to:debug -[2025-05-31 16:01:11.991055] [debug] valor del webhook: {"uuid":"10e397ab-530f-4c1a-9bf0-0f184fbc25c8","changeType":"draft_approved","entity":"invoice","entityId":"2009","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2009,"clientId":64,"number":"001959","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2012,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":63,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"LANDEROS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:12.129261] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:12.129314] [debug] Valor de JSON: {"uuid":"10e397ab-530f-4c1a-9bf0-0f184fbc25c8","changeType":"draft_approved","entity":"invoice","entityId":"2009","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2009,"clientId":64,"number":"001959","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2012,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":63,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"LANDEROS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:12.129412] [debug] Aprobación de Factura - -[2025-05-31 16:01:12.129461] [debug] {"uuid":"10e397ab-530f-4c1a-9bf0-0f184fbc25c8","changeType":"draft_approved","entity":"invoice","entityId":2009,"message":null,"clientId":64,"eventName":"invoice.draft_approved","clientData":{"id":64,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ELIAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ELIAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"OMAR","lastName":"LANDEROS","username":"olanderos64","contacts":[{"id":65,"clientId":64,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1565c0","addressGpsLat":21.2516667,"addressGpsLon":-101.0924998,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2009,"clientId":64,"number":"001959","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2012,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":63,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"LANDEROS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:13.298114] [notice] Logging level set to:debug -[2025-05-31 16:01:13.298223] [debug] valor del webhook: {"uuid":"7e7bd76b-6aea-49f2-9575-d75e929ae923","changeType":"draft_approved","entity":"invoice","entityId":"2010","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2010,"clientId":57,"number":"001960","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2013,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":56,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SANDRO","clientLastName":"MARQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:13.428037] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:13.428092] [debug] Valor de JSON: {"uuid":"7e7bd76b-6aea-49f2-9575-d75e929ae923","changeType":"draft_approved","entity":"invoice","entityId":"2010","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2010,"clientId":57,"number":"001960","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2013,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":56,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SANDRO","clientLastName":"MARQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:13.428212] [debug] Aprobación de Factura - -[2025-05-31 16:01:13.428261] [debug] {"uuid":"7e7bd76b-6aea-49f2-9575-d75e929ae923","changeType":"draft_approved","entity":"invoice","entityId":2010,"message":null,"clientId":57,"eventName":"invoice.draft_approved","clientData":{"id":57,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"SANDRO","lastName":"MARQUEZ","username":"smarquez57","contacts":[{"id":58,"clientId":57,"email":null,"phone":"181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f9a825","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2010,"clientId":57,"number":"001960","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2013,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":56,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SANDRO","clientLastName":"MARQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:14.580276] [notice] Logging level set to:debug -[2025-05-31 16:01:14.580331] [debug] valor del webhook: {"uuid":"17443149-d984-4d60-b842-3cbe3d85d400","changeType":"draft_approved","entity":"invoice","entityId":"2011","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2011,"clientId":52,"number":"001961","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2014,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":51,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RODRIGO","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL CARMEN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:14.703881] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:14.703929] [debug] Valor de JSON: {"uuid":"17443149-d984-4d60-b842-3cbe3d85d400","changeType":"draft_approved","entity":"invoice","entityId":"2011","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2011,"clientId":52,"number":"001961","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2014,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":51,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RODRIGO","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL CARMEN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:14.704032] [debug] Aprobación de Factura - -[2025-05-31 16:01:14.704076] [debug] {"uuid":"17443149-d984-4d60-b842-3cbe3d85d400","changeType":"draft_approved","entity":"invoice","entityId":2011,"message":null,"clientId":52,"eventName":"invoice.draft_approved","clientData":{"id":52,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL CARMEN","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":null,"fullAddress":"EL CARMEN, Dolores Hidalgo Cuna de la Independencia Nacional","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"RODRIGO","lastName":"PE\u00d1A","username":"rpe\u00d1a52","contacts":[{"id":53,"clientId":52,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#6a1b9a","addressGpsLat":21.1534937,"addressGpsLon":-100.9123301,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2011,"clientId":52,"number":"001961","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2014,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":51,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RODRIGO","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL CARMEN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:15.914721] [notice] Logging level set to:debug -[2025-05-31 16:01:15.914778] [debug] valor del webhook: {"uuid":"5427d934-1a93-47fc-9a41-177c58a069d9","changeType":"draft_approved","entity":"invoice","entityId":"2012","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2012,"clientId":14,"number":"001962","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2015,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":14,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDRO","clientLastName":"ARIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:16.109034] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:16.109086] [debug] Valor de JSON: {"uuid":"5427d934-1a93-47fc-9a41-177c58a069d9","changeType":"draft_approved","entity":"invoice","entityId":"2012","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2012,"clientId":14,"number":"001962","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2015,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":14,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDRO","clientLastName":"ARIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:16.109189] [debug] Aprobación de Factura - -[2025-05-31 16:01:16.109232] [debug] {"uuid":"5427d934-1a93-47fc-9a41-177c58a069d9","changeType":"draft_approved","entity":"invoice","entityId":2012,"message":null,"clientId":14,"eventName":"invoice.draft_approved","clientData":{"id":14,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LINDAVISTA","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LINDAVISTA, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALEXANDRO","lastName":"ARIAS","username":"aarias14","contacts":[{"id":15,"clientId":14,"email":null,"phone":"+1 682-260-4759","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-3600,"accountCredit":0,"accountOutstanding":3600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#546e7a","addressGpsLat":21.1499891,"addressGpsLon":-100.9582493,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2012,"clientId":14,"number":"001962","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2015,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":14,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDRO","clientLastName":"ARIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:16.109271] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-05-31 16:01:16.109281] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"5427d934-1a93-47fc-9a41-177c58a069d9","changeType":"draft_approved","entity":"invoice","entityId":2012,"message":null,"clientId":14,"eventName":"invoice.draft_approved","clientData":{"id":14,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LINDAVISTA","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LINDAVISTA, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALEXANDRO","lastName":"ARIAS","username":"aarias14","contacts":[{"id":15,"clientId":14,"email":null,"phone":"+1 682-260-4759","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-3600,"accountCredit":0,"accountOutstanding":3600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#546e7a","addressGpsLat":21.1499891,"addressGpsLon":-100.9582493,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2012,"clientId":14,"number":"001962","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2015,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":14,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDRO","clientLastName":"ARIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":15,"clientId":14,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-01-29T12:00:41-0600","amount":1800,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":17,"invoiceId":23,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300},{"id":19,"invoiceId":67,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300},{"id":36,"invoiceId":126,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300},{"id":122,"invoiceId":318,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300},{"id":125,"invoiceId":382,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300},{"id":312,"invoiceId":582,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1000,"attributes":[]}] - -Nombre del cliente que se va a actualizar: ALEXANDRO ARIAS - -UUID: be760b254a694e8b94b002789d68d388 - -JSON con los datos a actualizar: {"name":"ALEXANDRO ARIAS","custom_fields":{"Cliente":14,"Domicilio":"\ud83d\udccd LINDAVISTA, Dolores Hidalgo, 37800","Nombre":"\ud83d\udc64 ALEXANDRO ARIAS","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/14","Saldo Actual":"\ud83d\udcb23600 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 1800","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"14\",\"Domicilio\": \"\"Nombre\": \"ALEXANDRO ARIAS\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/14\",\"Saldo Actual\": \"\ud83d\udcb23600 pendientes\",\"Monto Ultimo Pago\": \"$ 1800\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29\/01\/2024 12:00 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"31\/05\/2025 10:01\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 29\/01\/2024 12:00 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 31\/05\/2025 10:01","Clabe Interbancaria":null,"Site":"","Antena\/Sectorial":""}} - -JSON con los datos a actualizar del resumen: {"Cliente": "14","Domicilio": ""Nombre": "ALEXANDRO ARIAS","URL": "https://sistema.siip.mx/crm/client/14","Saldo Actual": "💲3600 pendientes","Monto Ultimo Pago": "$ 1800","Estado": "Suspendido","Fecha Ultimo Pago": " 29/01/2024 12:00 con Efectivo 💵","Fecha Ultima Actualizacion": "31/05/2025 10:01","Clabe Interbancaria": "","Site": "","Antena/Sectorial": ""} - -Response Patch CallBell: {"contact":{"uuid":"be760b254a694e8b94b002789d68d388","name":"ALEXANDRO ARIAS","phoneNumber":"+1 682-260-4759","avatarUrl":null,"createdAt":"2024-01-29T18:03:03Z","closedAt":"2024-01-29T18:32:46Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/be760b254a694e8b94b002789d68d388","conversationHref":"https://dash.callbell.eu/chat/b95896c60a7e4541b9d378d9d9ef938b","tags":[],"assignedUser":null,"customFields":{"Antena/Sectorial":"14","Nombre":"👤 ALEXANDRO ARIAS","Cliente":"14","Domicilio":"📍 LINDAVISTA, Dolores Hidalgo, 37800","Fecha Ultimo Pago":"📆💸 29/01/2024 12:00 con Efectivo 💵","Monto Ultimo Pago":"💲 1800","URL":"🌐 https://sistema.siip.mx/crm/client/14","Estado":"🔴 Suspendido","Resumen":"{\"Cliente\": \"14\",\"Domicilio\": \"\"Nombre\": \"ALEXANDRO ARIAS\",\"URL\": \"https://sistema.siip.mx/crm/client/14\",\"Saldo Actual\": \"💲3600 pendientes\",\"Monto Ultimo Pago\": \"$ 1800\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29/01/2024 12:00 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/05/2025 10:01\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Saldo Actual":"💲3600 pendientes","Fecha Ultima Actualizacion":"📆🔄️ 31/05/2025 10:01"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"be760b254a694e8b94b002789d68d388","name":"ALEXANDRO ARIAS","phoneNumber":"+1 682-260-4759","avatarUrl":null,"createdAt":"2024-01-29T18:03:03Z","closedAt":"2024-01-29T18:32:46Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/be760b254a694e8b94b002789d68d388","conversationHref":"https://dash.callbell.eu/chat/b95896c60a7e4541b9d378d9d9ef938b","tags":[],"assignedUser":null,"customFields":{"Antena/Sectorial":"14","Nombre":"👤 ALEXANDRO ARIAS","Cliente":"14","Domicilio":"📍 LINDAVISTA, Dolores Hidalgo, 37800","Fecha Ultimo Pago":"📆💸 29/01/2024 12:00 con Efectivo 💵","Monto Ultimo Pago":"💲 1800","URL":"🌐 https://sistema.siip.mx/crm/client/14","Estado":"🔴 Suspendido","Resumen":"{\"Cliente\": \"14\",\"Domicilio\": \"\"Nombre\": \"ALEXANDRO ARIAS\",\"URL\": \"https://sistema.siip.mx/crm/client/14\",\"Saldo Actual\": \"💲3600 pendientes\",\"Monto Ultimo Pago\": \"$ 1800\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29/01/2024 12:00 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/05/2025 10:01\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Saldo Actual":"💲3600 pendientes","Fecha Ultima Actualizacion":"📆🔄️ 31/05/2025 10:01"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-05-31 16:01:18.751410] [notice] Logging level set to:debug -[2025-05-31 16:01:18.751462] [debug] valor del webhook: {"uuid":"5ffb63cf-316a-42ad-834b-eff8fe9875e4","changeType":"draft_approved","entity":"invoice","entityId":"2013","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2013,"clientId":15,"number":"001963","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2016,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":15,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"VILLEGAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:18.927114] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:18.927185] [debug] Valor de JSON: {"uuid":"5ffb63cf-316a-42ad-834b-eff8fe9875e4","changeType":"draft_approved","entity":"invoice","entityId":"2013","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2013,"clientId":15,"number":"001963","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2016,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":15,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"VILLEGAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:18.927299] [debug] Aprobación de Factura - -[2025-05-31 16:01:18.927349] [debug] {"uuid":"5ffb63cf-316a-42ad-834b-eff8fe9875e4","changeType":"draft_approved","entity":"invoice","entityId":2013,"message":null,"clientId":15,"eventName":"invoice.draft_approved","clientData":{"id":15,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"EDUARDO","lastName":"VILLEGAZ","username":"evillegaz15","contacts":[{"id":16,"clientId":15,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-12600,"accountCredit":0,"accountOutstanding":12600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#c0ca33","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2013,"clientId":15,"number":"001963","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2016,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":15,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"VILLEGAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:18.927392] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-05-31 16:01:18.928251] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"5ffb63cf-316a-42ad-834b-eff8fe9875e4","changeType":"draft_approved","entity":"invoice","entityId":2013,"message":null,"clientId":15,"eventName":"invoice.draft_approved","clientData":{"id":15,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"EDUARDO","lastName":"VILLEGAZ","username":"evillegaz15","contacts":[{"id":16,"clientId":15,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-12600,"accountCredit":0,"accountOutstanding":12600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#c0ca33","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2013,"clientId":15,"number":"001963","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2016,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":15,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"VILLEGAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":16,"clientId":15,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-01-29T16:50:24-0600","amount":3500,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":18,"invoiceId":25,"paymentId":16,"creditNoteId":null,"refundId":null,"amount":3500}],"creditAmount":0,"userId":1000,"attributes":[]}] - -Nombre del cliente que se va a actualizar: EDUARDO VILLEGAZ - -UUID: 92dd9fb15b8f4ff6860f8a32ea9bd7e4 - -JSON con los datos a actualizar: {"name":"EDUARDO VILLEGAZ","custom_fields":{"Cliente":15,"Domicilio":"\ud83d\udccd SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Nombre":"\ud83d\udc64 EDUARDO VILLEGAZ","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/15","Saldo Actual":"\ud83d\udcb212600 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 3500","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"15\",\"Domicilio\": \"\"Nombre\": \"EDUARDO VILLEGAZ\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/15\",\"Saldo Actual\": \"\ud83d\udcb212600 pendientes\",\"Monto Ultimo Pago\": \"$ 3500\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29\/01\/2024 16:50 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"31\/05\/2025 10:01\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 29\/01\/2024 16:50 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 31\/05\/2025 10:01","Clabe Interbancaria":null,"Site":"","Antena\/Sectorial":""}} - -JSON con los datos a actualizar del resumen: {"Cliente": "15","Domicilio": ""Nombre": "EDUARDO VILLEGAZ","URL": "https://sistema.siip.mx/crm/client/15","Saldo Actual": "💲12600 pendientes","Monto Ultimo Pago": "$ 3500","Estado": "Suspendido","Fecha Ultimo Pago": " 29/01/2024 16:50 con Efectivo 💵","Fecha Ultima Actualizacion": "31/05/2025 10:01","Clabe Interbancaria": "","Site": "","Antena/Sectorial": ""} - -Response Patch CallBell: {"contact":{"uuid":"92dd9fb15b8f4ff6860f8a32ea9bd7e4","name":"EDUARDO VILLEGAZ","phoneNumber":"5214181091933","avatarUrl":null,"createdAt":"2023-12-22T16:55:50Z","closedAt":"2024-07-11T22:49:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/92dd9fb15b8f4ff6860f8a32ea9bd7e4","conversationHref":"https://dash.callbell.eu/chat/04a3e26142e0431789260acb0b60a3ac","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"124180650659256341","Estado":"🔴 Suspendido","Antena/Sectorial":"Sec3-Sb 172.16.55.13/24","Site":"SBARB","Domicilio":"📍 SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Resumen":"{\"Cliente\": \"15\",\"Domicilio\": \"\"Nombre\": \"EDUARDO VILLEGAZ\",\"URL\": \"https://sistema.siip.mx/crm/client/15\",\"Saldo Actual\": \"💲12600 pendientes\",\"Monto Ultimo Pago\": \"$ 3500\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29/01/2024 16:50 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/05/2025 10:01\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","URL":"🌐 https://sistema.siip.mx/crm/client/15","Fecha Ultima Actualizacion":"📆🔄️ 31/05/2025 10:01","Nombre":"👤 EDUARDO VILLEGAZ","Cliente":"15","Saldo Actual":"💲12600 pendientes","Monto Ultimo Pago":"💲 3500","Fecha Ultimo Pago":"📆💸 29/01/2024 16:50 con Efectivo 💵"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"92dd9fb15b8f4ff6860f8a32ea9bd7e4","name":"EDUARDO VILLEGAZ","phoneNumber":"5214181091933","avatarUrl":null,"createdAt":"2023-12-22T16:55:50Z","closedAt":"2024-07-11T22:49:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/92dd9fb15b8f4ff6860f8a32ea9bd7e4","conversationHref":"https://dash.callbell.eu/chat/04a3e26142e0431789260acb0b60a3ac","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"124180650659256341","Estado":"🔴 Suspendido","Antena/Sectorial":"Sec3-Sb 172.16.55.13/24","Site":"SBARB","Domicilio":"📍 SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Resumen":"{\"Cliente\": \"15\",\"Domicilio\": \"\"Nombre\": \"EDUARDO VILLEGAZ\",\"URL\": \"https://sistema.siip.mx/crm/client/15\",\"Saldo Actual\": \"💲12600 pendientes\",\"Monto Ultimo Pago\": \"$ 3500\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29/01/2024 16:50 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/05/2025 10:01\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","URL":"🌐 https://sistema.siip.mx/crm/client/15","Fecha Ultima Actualizacion":"📆🔄️ 31/05/2025 10:01","Nombre":"👤 EDUARDO VILLEGAZ","Cliente":"15","Saldo Actual":"💲12600 pendientes","Monto Ultimo Pago":"💲 3500","Fecha Ultimo Pago":"📆💸 29/01/2024 16:50 con Efectivo 💵"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-05-31 16:01:21.320161] [notice] Logging level set to:debug -[2025-05-31 16:01:21.320214] [debug] valor del webhook: {"uuid":"c4462bae-5f0e-4cce-844e-6c119c2efccb","changeType":"draft_approved","entity":"invoice","entityId":"2014","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2014,"clientId":97,"number":"001964","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2017,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":96,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"YOLANDA","clientLastName":"CANO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AVILES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:21.506104] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:21.506162] [debug] Valor de JSON: {"uuid":"c4462bae-5f0e-4cce-844e-6c119c2efccb","changeType":"draft_approved","entity":"invoice","entityId":"2014","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2014,"clientId":97,"number":"001964","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2017,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":96,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"YOLANDA","clientLastName":"CANO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AVILES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:21.506278] [debug] Aprobación de Factura - -[2025-05-31 16:01:21.506324] [debug] {"uuid":"c4462bae-5f0e-4cce-844e-6c119c2efccb","changeType":"draft_approved","entity":"invoice","entityId":2014,"message":null,"clientId":97,"eventName":"invoice.draft_approved","clientData":{"id":97,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LOS AVILES","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LOS AVILES, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"YOLANDA","lastName":"CANO","username":"ycano97","contacts":[{"id":98,"clientId":97,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-8500,"accountCredit":0,"accountOutstanding":8500,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#607d8b","addressGpsLat":21.151597,"addressGpsLon":-100.9367183,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2014,"clientId":97,"number":"001964","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2017,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":96,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"YOLANDA","clientLastName":"CANO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AVILES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:22.372608] [notice] Logging level set to:debug -[2025-05-31 16:01:22.372683] [debug] valor del webhook: {"uuid":"887d9892-bec3-44b1-af79-418914462b55","changeType":"draft_approved","entity":"invoice","entityId":"2015","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2015,"clientId":31,"number":"001965","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2018,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":30,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANA","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SIETE REALES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:22.508816] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:22.508869] [debug] Valor de JSON: {"uuid":"887d9892-bec3-44b1-af79-418914462b55","changeType":"draft_approved","entity":"invoice","entityId":"2015","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2015,"clientId":31,"number":"001965","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2018,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":30,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANA","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SIETE REALES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:22.508970] [debug] Aprobación de Factura - -[2025-05-31 16:01:22.509018] [debug] {"uuid":"887d9892-bec3-44b1-af79-418914462b55","changeType":"draft_approved","entity":"invoice","entityId":2015,"message":null,"clientId":31,"eventName":"invoice.draft_approved","clientData":{"id":31,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SIETE REALES","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SIETE REALES, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANA","lastName":"CASTILLO","username":"acastillo31","contacts":[{"id":32,"clientId":31,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4780,"accountCredit":0,"accountOutstanding":4780,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#4caf50","addressGpsLat":21.2302531,"addressGpsLon":-100.7594666,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2015,"clientId":31,"number":"001965","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2018,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":30,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANA","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SIETE REALES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:23.612113] [notice] Logging level set to:debug -[2025-05-31 16:01:23.612200] [debug] valor del webhook: {"uuid":"ba6ae16e-73c2-433c-8e12-780b107c5ecc","changeType":"draft_approved","entity":"invoice","entityId":"2016","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2016,"clientId":90,"number":"001966","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2019,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":89,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PEDRO","clientLastName":"HORNEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:23.749452] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:23.749505] [debug] Valor de JSON: {"uuid":"ba6ae16e-73c2-433c-8e12-780b107c5ecc","changeType":"draft_approved","entity":"invoice","entityId":"2016","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2016,"clientId":90,"number":"001966","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2019,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":89,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PEDRO","clientLastName":"HORNEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:23.749617] [debug] Aprobación de Factura - -[2025-05-31 16:01:23.749670] [debug] {"uuid":"ba6ae16e-73c2-433c-8e12-780b107c5ecc","changeType":"draft_approved","entity":"invoice","entityId":2016,"message":null,"clientId":90,"eventName":"invoice.draft_approved","clientData":{"id":90,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"ADJUNTAS DEL RIO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"ADJUNTAS DEL RIO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"PEDRO","lastName":"HORNEDO","username":"phornedo90","contacts":[{"id":91,"clientId":90,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2016,"clientId":90,"number":"001966","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2019,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":89,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PEDRO","clientLastName":"HORNEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:24.891098] [notice] Logging level set to:debug -[2025-05-31 16:01:24.891182] [debug] valor del webhook: {"uuid":"8bb7c320-e4dc-4ee1-ab80-5abd23d6d03d","changeType":"draft_approved","entity":"invoice","entityId":"2017","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2017,"clientId":77,"number":"001967","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2020,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":76,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARGARITO","clientLastName":"ESTRADA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTILLA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:25.026607] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:25.026664] [debug] Valor de JSON: {"uuid":"8bb7c320-e4dc-4ee1-ab80-5abd23d6d03d","changeType":"draft_approved","entity":"invoice","entityId":"2017","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2017,"clientId":77,"number":"001967","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2020,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":76,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARGARITO","clientLastName":"ESTRADA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTILLA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:25.026789] [debug] Aprobación de Factura - -[2025-05-31 16:01:25.026834] [debug] {"uuid":"8bb7c320-e4dc-4ee1-ab80-5abd23d6d03d","changeType":"draft_approved","entity":"invoice","entityId":2017,"message":null,"clientId":77,"eventName":"invoice.draft_approved","clientData":{"id":77,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA VENTILLA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA VENTILLA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MARGARITO","lastName":"ESTRADA","username":"mestrada77","contacts":[{"id":78,"clientId":77,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#039be5","addressGpsLat":21.1145736,"addressGpsLon":-100.933729,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2017,"clientId":77,"number":"001967","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2020,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":76,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARGARITO","clientLastName":"ESTRADA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTILLA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:26.183191] [notice] Logging level set to:debug -[2025-05-31 16:01:26.183270] [debug] valor del webhook: {"uuid":"9a74aac5-7d19-4f2a-b939-b8ce4cb0c7cf","changeType":"draft_approved","entity":"invoice","entityId":"2018","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2018,"clientId":69,"number":"001968","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2021,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":68,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CIRILA","clientLastName":"AVILES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:26.311382] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:26.311431] [debug] Valor de JSON: {"uuid":"9a74aac5-7d19-4f2a-b939-b8ce4cb0c7cf","changeType":"draft_approved","entity":"invoice","entityId":"2018","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2018,"clientId":69,"number":"001968","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2021,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":68,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CIRILA","clientLastName":"AVILES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:26.311533] [debug] Aprobación de Factura - -[2025-05-31 16:01:26.311575] [debug] {"uuid":"9a74aac5-7d19-4f2a-b939-b8ce4cb0c7cf","changeType":"draft_approved","entity":"invoice","entityId":2018,"message":null,"clientId":69,"eventName":"invoice.draft_approved","clientData":{"id":69,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"CIRILA","lastName":"AVILES","username":"caviles69","contacts":[{"id":70,"clientId":69,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#8bc34a","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2018,"clientId":69,"number":"001968","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2021,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":68,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CIRILA","clientLastName":"AVILES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:27.461910] [notice] Logging level set to:debug -[2025-05-31 16:01:27.461982] [debug] valor del webhook: {"uuid":"2b86b99b-1497-47f9-a297-f0816e4b3d9d","changeType":"draft_approved","entity":"invoice","entityId":"2019","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2019,"clientId":35,"number":"001969","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2022,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":34,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GABRIELA","clientLastName":"SUASTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CANTERA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:27.604438] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:27.604487] [debug] Valor de JSON: {"uuid":"2b86b99b-1497-47f9-a297-f0816e4b3d9d","changeType":"draft_approved","entity":"invoice","entityId":"2019","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2019,"clientId":35,"number":"001969","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2022,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":34,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GABRIELA","clientLastName":"SUASTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CANTERA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:27.604599] [debug] Aprobación de Factura - -[2025-05-31 16:01:27.604639] [debug] {"uuid":"2b86b99b-1497-47f9-a297-f0816e4b3d9d","changeType":"draft_approved","entity":"invoice","entityId":2019,"message":null,"clientId":35,"eventName":"invoice.draft_approved","clientData":{"id":35,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA CANTERA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA CANTERA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"GABRIELA","lastName":"SUASTE","username":"gsuaste35","contacts":[{"id":36,"clientId":35,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#e91e63","addressGpsLat":21.1461112,"addressGpsLon":-101.0019444,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2019,"clientId":35,"number":"001969","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2022,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":34,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GABRIELA","clientLastName":"SUASTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CANTERA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:28.755903] [notice] Logging level set to:debug -[2025-05-31 16:01:28.755973] [debug] valor del webhook: {"uuid":"b37ce20e-69fc-4f0f-af3c-ac5270a03327","changeType":"draft_approved","entity":"invoice","entityId":"2020","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2020,"clientId":83,"number":"001970","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2023,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":82,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"SOLIS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL VERGEL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:28.885066] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:28.885119] [debug] Valor de JSON: {"uuid":"b37ce20e-69fc-4f0f-af3c-ac5270a03327","changeType":"draft_approved","entity":"invoice","entityId":"2020","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2020,"clientId":83,"number":"001970","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2023,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":82,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"SOLIS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL VERGEL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:28.885234] [debug] Aprobación de Factura - -[2025-05-31 16:01:28.885279] [debug] {"uuid":"b37ce20e-69fc-4f0f-af3c-ac5270a03327","changeType":"draft_approved","entity":"invoice","entityId":2020,"message":null,"clientId":83,"eventName":"invoice.draft_approved","clientData":{"id":83,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL VERGEL","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL VERGEL, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"EDUARDO","lastName":"SOLIS","username":"esolis83","contacts":[{"id":84,"clientId":83,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-10600,"accountCredit":0,"accountOutstanding":10600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#fdd835","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2020,"clientId":83,"number":"001970","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2023,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":82,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"SOLIS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL VERGEL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:30.044131] [notice] Logging level set to:debug -[2025-05-31 16:01:30.044187] [debug] valor del webhook: {"uuid":"007aee49-4b61-4f55-b5c2-e653def8ccfa","changeType":"draft_approved","entity":"invoice","entityId":"2021","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2021,"clientId":29,"number":"001971","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2024,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":28,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTELA","clientLastName":"ORTIZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EJIDO DOLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:30.186909] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:30.186964] [debug] Valor de JSON: {"uuid":"007aee49-4b61-4f55-b5c2-e653def8ccfa","changeType":"draft_approved","entity":"invoice","entityId":"2021","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2021,"clientId":29,"number":"001971","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2024,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":28,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTELA","clientLastName":"ORTIZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EJIDO DOLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:30.187097] [debug] Aprobación de Factura - -[2025-05-31 16:01:30.187143] [debug] {"uuid":"007aee49-4b61-4f55-b5c2-e653def8ccfa","changeType":"draft_approved","entity":"invoice","entityId":2021,"message":null,"clientId":29,"eventName":"invoice.draft_approved","clientData":{"id":29,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EJIDO DOLORES","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EJIDO DOLORES, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ESTELA","lastName":"ORTIZ","username":"eortiz29","contacts":[{"id":30,"clientId":29,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-8316.67,"accountCredit":0,"accountOutstanding":8316.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ffb300","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2021,"clientId":29,"number":"001971","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2024,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":28,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTELA","clientLastName":"ORTIZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EJIDO DOLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:31.321634] [notice] Logging level set to:debug -[2025-05-31 16:01:31.321712] [debug] valor del webhook: {"uuid":"c1fd9cf2-807f-4a61-a296-a8f3736a5779","changeType":"draft_approved","entity":"invoice","entityId":"2022","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2022,"clientId":24,"number":"001972","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2025,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":23,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JACIEL","clientLastName":"CERVANTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTO NI\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:31.460474] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:31.460531] [debug] Valor de JSON: {"uuid":"c1fd9cf2-807f-4a61-a296-a8f3736a5779","changeType":"draft_approved","entity":"invoice","entityId":"2022","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2022,"clientId":24,"number":"001972","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2025,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":23,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JACIEL","clientLastName":"CERVANTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTO NI\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:31.460630] [debug] Aprobación de Factura - -[2025-05-31 16:01:31.460673] [debug] {"uuid":"c1fd9cf2-807f-4a61-a296-a8f3736a5779","changeType":"draft_approved","entity":"invoice","entityId":2022,"message":null,"clientId":24,"eventName":"invoice.draft_approved","clientData":{"id":24,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTO NI\u00d1O","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTO NI\u00d1O, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JACIEL","lastName":"CERVANTES","username":"jcervantes24","contacts":[{"id":25,"clientId":24,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5080,"accountCredit":0,"accountOutstanding":5080,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ff8f00","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2022,"clientId":24,"number":"001972","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2025,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":23,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JACIEL","clientLastName":"CERVANTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTO NI\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:32.628308] [notice] Logging level set to:debug -[2025-05-31 16:01:32.628420] [debug] valor del webhook: {"uuid":"ee7a5cb3-e0a3-444e-a6b9-cf83e93db3d9","changeType":"draft_approved","entity":"invoice","entityId":"2023","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2023,"clientId":26,"number":"001973","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2026,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":25,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SAMANTA","clientLastName":"FUENTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GUSANO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:32.757710] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:32.757764] [debug] Valor de JSON: {"uuid":"ee7a5cb3-e0a3-444e-a6b9-cf83e93db3d9","changeType":"draft_approved","entity":"invoice","entityId":"2023","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2023,"clientId":26,"number":"001973","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2026,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":25,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SAMANTA","clientLastName":"FUENTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GUSANO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:32.757862] [debug] Aprobación de Factura - -[2025-05-31 16:01:32.757903] [debug] {"uuid":"ee7a5cb3-e0a3-444e-a6b9-cf83e93db3d9","changeType":"draft_approved","entity":"invoice","entityId":2023,"message":null,"clientId":26,"eventName":"invoice.draft_approved","clientData":{"id":26,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"GUSANO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"GUSANO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"SAMANTA","lastName":"FUENTES","username":"sfuentes26","contacts":[{"id":27,"clientId":26,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5680,"accountCredit":0,"accountOutstanding":5680,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#4caf50","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2023,"clientId":26,"number":"001973","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2026,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":25,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SAMANTA","clientLastName":"FUENTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GUSANO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:33.904963] [notice] Logging level set to:debug -[2025-05-31 16:01:33.905050] [debug] valor del webhook: {"uuid":"ee5d06c7-fb85-4892-be0d-e398be024875","changeType":"draft_approved","entity":"invoice","entityId":"2024","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2024,"clientId":30,"number":"001974","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2027,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":29,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUANA","clientLastName":"MONTES DE OCA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:34.047354] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:34.047406] [debug] Valor de JSON: {"uuid":"ee5d06c7-fb85-4892-be0d-e398be024875","changeType":"draft_approved","entity":"invoice","entityId":"2024","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2024,"clientId":30,"number":"001974","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2027,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":29,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUANA","clientLastName":"MONTES DE OCA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:34.047523] [debug] Aprobación de Factura - -[2025-05-31 16:01:34.047565] [debug] {"uuid":"ee5d06c7-fb85-4892-be0d-e398be024875","changeType":"draft_approved","entity":"invoice","entityId":2024,"message":null,"clientId":30,"eventName":"invoice.draft_approved","clientData":{"id":30,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"FRACCIONAMIENTO GUANAJUATO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JUANA","lastName":"MONTES DE OCA","username":"jmontes30","contacts":[{"id":31,"clientId":30,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-12600,"accountCredit":0,"accountOutstanding":12600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#0277bd","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2024,"clientId":30,"number":"001974","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2027,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":29,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUANA","clientLastName":"MONTES DE OCA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:35.220285] [notice] Logging level set to:debug -[2025-05-31 16:01:35.220347] [debug] valor del webhook: {"uuid":"ce276aa1-45d1-4c60-8a12-5cf002366a6a","changeType":"draft_approved","entity":"invoice","entityId":"2025","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2025,"clientId":39,"number":"001975","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2028,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":38,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"FRANCISCO","clientLastName":"BALDERAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA PIEDRA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:35.359499] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:35.359546] [debug] Valor de JSON: {"uuid":"ce276aa1-45d1-4c60-8a12-5cf002366a6a","changeType":"draft_approved","entity":"invoice","entityId":"2025","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2025,"clientId":39,"number":"001975","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2028,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":38,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"FRANCISCO","clientLastName":"BALDERAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA PIEDRA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:35.359635] [debug] Aprobación de Factura - -[2025-05-31 16:01:35.359673] [debug] {"uuid":"ce276aa1-45d1-4c60-8a12-5cf002366a6a","changeType":"draft_approved","entity":"invoice","entityId":2025,"message":null,"clientId":39,"eventName":"invoice.draft_approved","clientData":{"id":39,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA PIEDRA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA PIEDRA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"FRANCISCO","lastName":"BALDERAS","username":"fbalderas39","contacts":[{"id":40,"clientId":39,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5110,"accountCredit":0,"accountOutstanding":5110,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#546e7a","addressGpsLat":21.2708978,"addressGpsLon":-100.7973281,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2025,"clientId":39,"number":"001975","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2028,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":38,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"FRANCISCO","clientLastName":"BALDERAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA PIEDRA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:36.506315] [notice] Logging level set to:debug -[2025-05-31 16:01:36.506442] [debug] valor del webhook: {"uuid":"f765af4e-bc70-4e7f-a37d-7730f681f45e","changeType":"draft_approved","entity":"invoice","entityId":"2026","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2026,"clientId":43,"number":"001976","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2029,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":42,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"VICTORIO","clientLastName":"DIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS FLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:36.661103] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:36.661166] [debug] Valor de JSON: {"uuid":"f765af4e-bc70-4e7f-a37d-7730f681f45e","changeType":"draft_approved","entity":"invoice","entityId":"2026","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2026,"clientId":43,"number":"001976","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2029,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":42,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"VICTORIO","clientLastName":"DIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS FLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:36.661313] [debug] Aprobación de Factura - -[2025-05-31 16:01:36.661376] [debug] {"uuid":"f765af4e-bc70-4e7f-a37d-7730f681f45e","changeType":"draft_approved","entity":"invoice","entityId":2026,"message":null,"clientId":43,"eventName":"invoice.draft_approved","clientData":{"id":43,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LAS FLORES","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LAS FLORES, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"VICTORIO","lastName":"DIAS","username":"vdias43","contacts":[{"id":44,"clientId":43,"email":null,"phone":"4181818706","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-11223.33,"accountCredit":0,"accountOutstanding":11223.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#fb8c00","addressGpsLat":21.1511969,"addressGpsLon":-100.9132525,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2026,"clientId":43,"number":"001976","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2029,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":42,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"VICTORIO","clientLastName":"DIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS FLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:37.822525] [notice] Logging level set to:debug -[2025-05-31 16:01:37.822623] [debug] valor del webhook: {"uuid":"1c2fd5fa-9ff1-4111-8c27-a8ddcdcffde2","changeType":"draft_approved","entity":"invoice","entityId":"2027","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2027,"clientId":81,"number":"001977","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2030,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":80,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"FERNANDO","clientLastName":"ALCAZAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:37.956001] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:37.956053] [debug] Valor de JSON: {"uuid":"1c2fd5fa-9ff1-4111-8c27-a8ddcdcffde2","changeType":"draft_approved","entity":"invoice","entityId":"2027","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2027,"clientId":81,"number":"001977","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2030,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":80,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"FERNANDO","clientLastName":"ALCAZAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:37.956160] [debug] Aprobación de Factura - -[2025-05-31 16:01:37.956204] [debug] {"uuid":"1c2fd5fa-9ff1-4111-8c27-a8ddcdcffde2","changeType":"draft_approved","entity":"invoice","entityId":2027,"message":null,"clientId":81,"eventName":"invoice.draft_approved","clientData":{"id":81,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"FERNANDO","lastName":"ALCAZAR","username":"falcazar81","contacts":[{"id":82,"clientId":81,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-11900,"accountCredit":0,"accountOutstanding":11900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#d81b60","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2027,"clientId":81,"number":"001977","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2030,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":80,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"FERNANDO","clientLastName":"ALCAZAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:39.080461] [notice] Logging level set to:debug -[2025-05-31 16:01:39.080527] [debug] valor del webhook: {"uuid":"b7702535-9c11-4de4-acc3-f401aa28c5ad","changeType":"draft_approved","entity":"invoice","entityId":"2028","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2028,"clientId":8,"number":"001978","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2031,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":8,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALFREDO","clientLastName":"GUTIERREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:39.228786] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:39.228840] [debug] Valor de JSON: {"uuid":"b7702535-9c11-4de4-acc3-f401aa28c5ad","changeType":"draft_approved","entity":"invoice","entityId":"2028","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2028,"clientId":8,"number":"001978","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2031,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":8,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALFREDO","clientLastName":"GUTIERREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:39.228964] [debug] Aprobación de Factura - -[2025-05-31 16:01:39.229006] [debug] {"uuid":"b7702535-9c11-4de4-acc3-f401aa28c5ad","changeType":"draft_approved","entity":"invoice","entityId":2028,"message":null,"clientId":8,"eventName":"invoice.draft_approved","clientData":{"id":8,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL BOBO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL BOBO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALFREDO","lastName":"GUTIERREZ","username":"agutierrez08","contacts":[{"id":9,"clientId":8,"email":null,"phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-8530,"accountCredit":0,"accountOutstanding":8530,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.21484,"addressGpsLon":-100.8478122,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2028,"clientId":8,"number":"001978","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2031,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":8,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALFREDO","clientLastName":"GUTIERREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:40.377481] [notice] Logging level set to:debug -[2025-05-31 16:01:40.377598] [debug] valor del webhook: {"uuid":"6c2872a1-d5d0-4043-a4dd-c25353ef3f48","changeType":"draft_approved","entity":"invoice","entityId":"2029","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2029,"clientId":80,"number":"001979","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2032,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":79,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AXEL","clientLastName":"FERNANDEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN SEBASTIAN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:40.511370] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:40.511420] [debug] Valor de JSON: {"uuid":"6c2872a1-d5d0-4043-a4dd-c25353ef3f48","changeType":"draft_approved","entity":"invoice","entityId":"2029","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2029,"clientId":80,"number":"001979","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2032,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":79,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AXEL","clientLastName":"FERNANDEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN SEBASTIAN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:40.511523] [debug] Aprobación de Factura - -[2025-05-31 16:01:40.511565] [debug] {"uuid":"6c2872a1-d5d0-4043-a4dd-c25353ef3f48","changeType":"draft_approved","entity":"invoice","entityId":2029,"message":null,"clientId":80,"eventName":"invoice.draft_approved","clientData":{"id":80,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN SEBASTIAN","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN SEBASTIAN, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"AXEL","lastName":"FERNANDEZ","username":"afernandez80","contacts":[{"id":81,"clientId":80,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef5350","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2029,"clientId":80,"number":"001979","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2032,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":79,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AXEL","clientLastName":"FERNANDEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN SEBASTIAN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:41.649316] [notice] Logging level set to:debug -[2025-05-31 16:01:41.649370] [debug] valor del webhook: {"uuid":"f71dc66e-6e0e-4de8-bf14-d3526317c320","changeType":"draft_approved","entity":"invoice","entityId":"2030","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2030,"clientId":61,"number":"001980","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2033,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":60,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LUIS","clientLastName":"AGULAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AGUILAR","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:41.774912] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:41.774967] [debug] Valor de JSON: {"uuid":"f71dc66e-6e0e-4de8-bf14-d3526317c320","changeType":"draft_approved","entity":"invoice","entityId":"2030","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2030,"clientId":61,"number":"001980","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2033,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":60,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LUIS","clientLastName":"AGULAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AGUILAR","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:41.775089] [debug] Aprobación de Factura - -[2025-05-31 16:01:41.775132] [debug] {"uuid":"f71dc66e-6e0e-4de8-bf14-d3526317c320","changeType":"draft_approved","entity":"invoice","entityId":2030,"message":null,"clientId":61,"eventName":"invoice.draft_approved","clientData":{"id":61,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LOS AGUILAR","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LOS AGUILAR, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"LUIS","lastName":"AGULAR","username":"lagular61","contacts":[{"id":62,"clientId":61,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00acc1","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2030,"clientId":61,"number":"001980","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2033,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":60,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LUIS","clientLastName":"AGULAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AGUILAR","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:42.898813] [notice] Logging level set to:debug -[2025-05-31 16:01:42.898874] [debug] valor del webhook: {"uuid":"77948a49-d3ff-42f3-9c25-d7331cd37147","changeType":"draft_approved","entity":"invoice","entityId":"2031","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2031,"clientId":87,"number":"001981","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2034,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":86,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ANTON","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:43.035187] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:43.035240] [debug] Valor de JSON: {"uuid":"77948a49-d3ff-42f3-9c25-d7331cd37147","changeType":"draft_approved","entity":"invoice","entityId":"2031","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2031,"clientId":87,"number":"001981","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2034,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":86,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ANTON","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:43.035351] [debug] Aprobación de Factura - -[2025-05-31 16:01:43.035393] [debug] {"uuid":"77948a49-d3ff-42f3-9c25-d7331cd37147","changeType":"draft_approved","entity":"invoice","entityId":2031,"message":null,"clientId":87,"eventName":"invoice.draft_approved","clientData":{"id":87,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ANTON","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ANTON, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"TERESA","lastName":"REYES","username":"treyes87","contacts":[{"id":88,"clientId":87,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1565c0","addressGpsLat":21.1473165,"addressGpsLon":-100.9333759,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2031,"clientId":87,"number":"001981","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2034,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":86,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ANTON","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:44.197350] [notice] Logging level set to:debug -[2025-05-31 16:01:44.197419] [debug] valor del webhook: {"uuid":"81cf9c5b-30aa-4a38-b449-bd36aa0fe4ad","changeType":"draft_approved","entity":"invoice","entityId":"2032","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2032,"clientId":50,"number":"001982","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2035,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":49,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GLORIA","clientLastName":"DELGADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:44.330065] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:44.330116] [debug] Valor de JSON: {"uuid":"81cf9c5b-30aa-4a38-b449-bd36aa0fe4ad","changeType":"draft_approved","entity":"invoice","entityId":"2032","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2032,"clientId":50,"number":"001982","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2035,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":49,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GLORIA","clientLastName":"DELGADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:44.330208] [debug] Aprobación de Factura - -[2025-05-31 16:01:44.330275] [debug] {"uuid":"81cf9c5b-30aa-4a38-b449-bd36aa0fe4ad","changeType":"draft_approved","entity":"invoice","entityId":2032,"message":null,"clientId":50,"eventName":"invoice.draft_approved","clientData":{"id":50,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL BOBO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL BOBO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"GLORIA","lastName":"DELGADO","username":"gdelgado50","contacts":[{"id":51,"clientId":50,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":108,"clientId":50,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtN2hegnjiQhR7M","clientZoneVisible":true},{"id":109,"clientId":50,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"1847644339402745","clientZoneVisible":true}],"accountBalance":-4810,"accountCredit":0,"accountOutstanding":4810,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ffc107","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2032,"clientId":50,"number":"001982","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2035,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":49,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GLORIA","clientLastName":"DELGADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:45.479583] [notice] Logging level set to:debug -[2025-05-31 16:01:45.479649] [debug] valor del webhook: {"uuid":"79d80bc1-ae6c-4e9a-a669-25010d55d54a","changeType":"draft_approved","entity":"invoice","entityId":"2033","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2033,"clientId":101,"number":"001983","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2036,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":100,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OCTAVIO","clientLastName":"VIDAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ESTA\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:45.619165] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:45.619224] [debug] Valor de JSON: {"uuid":"79d80bc1-ae6c-4e9a-a669-25010d55d54a","changeType":"draft_approved","entity":"invoice","entityId":"2033","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2033,"clientId":101,"number":"001983","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2036,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":100,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OCTAVIO","clientLastName":"VIDAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ESTA\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:45.619342] [debug] Aprobación de Factura - -[2025-05-31 16:01:45.619391] [debug] {"uuid":"79d80bc1-ae6c-4e9a-a669-25010d55d54a","changeType":"draft_approved","entity":"invoice","entityId":2033,"message":null,"clientId":101,"eventName":"invoice.draft_approved","clientData":{"id":101,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL ESTA\u00d1O","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL ESTA\u00d1O, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"OCTAVIO","lastName":"VIDAL","username":"ovidal01","contacts":[{"id":102,"clientId":101,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2033,"clientId":101,"number":"001983","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2036,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":100,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OCTAVIO","clientLastName":"VIDAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ESTA\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:49.653925] [notice] Logging level set to:debug -[2025-05-31 16:01:49.653995] [debug] valor del webhook: {"uuid":"ee6a686a-f3e0-4042-8916-6a1eec5f7862","changeType":"draft_approved","entity":"invoice","entityId":"2034","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2034,"clientId":58,"number":"001984","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2037,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":57,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"DOMINGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MOLINO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:49.851660] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:49.851722] [debug] Valor de JSON: {"uuid":"ee6a686a-f3e0-4042-8916-6a1eec5f7862","changeType":"draft_approved","entity":"invoice","entityId":"2034","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2034,"clientId":58,"number":"001984","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2037,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":57,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"DOMINGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MOLINO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:49.851994] [debug] Aprobación de Factura - -[2025-05-31 16:01:49.852051] [debug] {"uuid":"ee6a686a-f3e0-4042-8916-6a1eec5f7862","changeType":"draft_approved","entity":"invoice","entityId":2034,"message":null,"clientId":58,"eventName":"invoice.draft_approved","clientData":{"id":58,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL MOLINO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL MOLINO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"EDGAR","lastName":"DOMINGUEZ","username":"edominguez58","contacts":[{"id":59,"clientId":58,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#6a1b9a","addressGpsLat":21.1326682,"addressGpsLon":-101.0194414,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2034,"clientId":58,"number":"001984","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2037,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":57,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"DOMINGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MOLINO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:51.021948] [notice] Logging level set to:debug -[2025-05-31 16:01:51.022011] [debug] valor del webhook: {"uuid":"3a45fc5e-68c5-4f1a-9dec-7ee5df8c5e63","changeType":"draft_approved","entity":"invoice","entityId":"2035","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2035,"clientId":32,"number":"001985","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2038,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":31,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EMILIO","clientLastName":"PEREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ANTON DE LAS MINAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:51.145421] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:51.145478] [debug] Valor de JSON: {"uuid":"3a45fc5e-68c5-4f1a-9dec-7ee5df8c5e63","changeType":"draft_approved","entity":"invoice","entityId":"2035","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2035,"clientId":32,"number":"001985","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2038,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":31,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EMILIO","clientLastName":"PEREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ANTON DE LAS MINAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:51.145582] [debug] Aprobación de Factura - -[2025-05-31 16:01:51.145627] [debug] {"uuid":"3a45fc5e-68c5-4f1a-9dec-7ee5df8c5e63","changeType":"draft_approved","entity":"invoice","entityId":2035,"message":null,"clientId":32,"eventName":"invoice.draft_approved","clientData":{"id":32,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ANTON DE LAS MINAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ANTON DE LAS MINAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"EMILIO","lastName":"PEREZ","username":"eperez32","contacts":[{"id":33,"clientId":32,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-6040,"accountCredit":0,"accountOutstanding":6040,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#d81b60","addressGpsLat":21.0705003,"addressGpsLon":-101.0487257,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2035,"clientId":32,"number":"001985","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2038,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":31,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EMILIO","clientLastName":"PEREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ANTON DE LAS MINAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:52.304757] [notice] Logging level set to:debug -[2025-05-31 16:01:52.304831] [debug] valor del webhook: {"uuid":"805e2cda-7756-4695-9ede-b21e73acaa8f","changeType":"draft_approved","entity":"invoice","entityId":"2036","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2036,"clientId":98,"number":"001986","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2039,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":97,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JULIO","clientLastName":"OLACHIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AGUILAR","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:52.443105] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:52.443162] [debug] Valor de JSON: {"uuid":"805e2cda-7756-4695-9ede-b21e73acaa8f","changeType":"draft_approved","entity":"invoice","entityId":"2036","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2036,"clientId":98,"number":"001986","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2039,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":97,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JULIO","clientLastName":"OLACHIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AGUILAR","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:52.443284] [debug] Aprobación de Factura - -[2025-05-31 16:01:52.443326] [debug] {"uuid":"805e2cda-7756-4695-9ede-b21e73acaa8f","changeType":"draft_approved","entity":"invoice","entityId":2036,"message":null,"clientId":98,"eventName":"invoice.draft_approved","clientData":{"id":98,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LOS AGUILAR","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LOS AGUILAR, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JULIO","lastName":"OLACHIA","username":"jolachia98","contacts":[{"id":99,"clientId":98,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#9c27b0","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2036,"clientId":98,"number":"001986","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2039,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":97,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JULIO","clientLastName":"OLACHIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AGUILAR","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:53.592372] [notice] Logging level set to:debug -[2025-05-31 16:01:53.592433] [debug] valor del webhook: {"uuid":"ff5e3272-a1ff-433c-a170-33ab3ed42e82","changeType":"draft_approved","entity":"invoice","entityId":"2037","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2037,"clientId":95,"number":"001987","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2040,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":94,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SOFIA","clientLastName":"VALENCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:53.718339] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:53.718394] [debug] Valor de JSON: {"uuid":"ff5e3272-a1ff-433c-a170-33ab3ed42e82","changeType":"draft_approved","entity":"invoice","entityId":"2037","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2037,"clientId":95,"number":"001987","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2040,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":94,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SOFIA","clientLastName":"VALENCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:53.718499] [debug] Aprobación de Factura - -[2025-05-31 16:01:53.718543] [debug] {"uuid":"ff5e3272-a1ff-433c-a170-33ab3ed42e82","changeType":"draft_approved","entity":"invoice","entityId":2037,"message":null,"clientId":95,"eventName":"invoice.draft_approved","clientData":{"id":95,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"SOFIA","lastName":"VALENCIA","username":"svalencia95","contacts":[{"id":96,"clientId":95,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-8500,"accountCredit":0,"accountOutstanding":8500,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#546e7a","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2037,"clientId":95,"number":"001987","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2040,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":94,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SOFIA","clientLastName":"VALENCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:54.873209] [notice] Logging level set to:debug -[2025-05-31 16:01:54.873265] [debug] valor del webhook: {"uuid":"4ab03c41-31cd-4427-b6f4-a90a92295fb2","changeType":"draft_approved","entity":"invoice","entityId":"2038","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2038,"clientId":51,"number":"001988","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2041,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":50,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"MORENO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PADRE HIDALGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:55.010786] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:55.010844] [debug] Valor de JSON: {"uuid":"4ab03c41-31cd-4427-b6f4-a90a92295fb2","changeType":"draft_approved","entity":"invoice","entityId":"2038","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2038,"clientId":51,"number":"001988","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2041,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":50,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"MORENO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PADRE HIDALGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:55.010952] [debug] Aprobación de Factura - -[2025-05-31 16:01:55.011018] [debug] {"uuid":"4ab03c41-31cd-4427-b6f4-a90a92295fb2","changeType":"draft_approved","entity":"invoice","entityId":2038,"message":null,"clientId":51,"eventName":"invoice.draft_approved","clientData":{"id":51,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"PADRE HIDALGO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"PADRE HIDALGO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"DANIEL","lastName":"MORENO","username":"dmoreno51","contacts":[{"id":52,"clientId":51,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-8350,"accountCredit":0,"accountOutstanding":8350,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#fb8c00","addressGpsLat":21.1663422,"addressGpsLon":-100.9347882,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2038,"clientId":51,"number":"001988","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2041,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":50,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"MORENO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PADRE HIDALGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:56.132970] [notice] Logging level set to:debug -[2025-05-31 16:01:56.133074] [debug] valor del webhook: {"uuid":"4391115d-5d61-4628-b700-94ff8f97c38c","changeType":"draft_approved","entity":"invoice","entityId":"2039","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2039,"clientId":25,"number":"001989","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2042,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":24,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ARIEL","clientLastName":"CORTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL DURAZNO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:56.279458] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:56.279521] [debug] Valor de JSON: {"uuid":"4391115d-5d61-4628-b700-94ff8f97c38c","changeType":"draft_approved","entity":"invoice","entityId":"2039","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2039,"clientId":25,"number":"001989","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2042,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":24,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ARIEL","clientLastName":"CORTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL DURAZNO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:56.279652] [debug] Aprobación de Factura - -[2025-05-31 16:01:56.279695] [debug] {"uuid":"4391115d-5d61-4628-b700-94ff8f97c38c","changeType":"draft_approved","entity":"invoice","entityId":2039,"message":null,"clientId":25,"eventName":"invoice.draft_approved","clientData":{"id":25,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL DURAZNO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL DURAZNO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ARIEL","lastName":"CORTES","username":"acortes25","contacts":[{"id":26,"clientId":25,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-14000,"accountCredit":0,"accountOutstanding":14000,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#607d8b","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2039,"clientId":25,"number":"001989","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2042,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":24,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ARIEL","clientLastName":"CORTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL DURAZNO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:57.432694] [notice] Logging level set to:debug -[2025-05-31 16:01:57.432764] [debug] valor del webhook: {"uuid":"0aa11de7-8671-47f4-808b-75be40fd8ab2","changeType":"draft_approved","entity":"invoice","entityId":"2040","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2040,"clientId":67,"number":"001990","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2043,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":66,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TOMAS","clientLastName":"SUASTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:57.575263] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:57.575316] [debug] Valor de JSON: {"uuid":"0aa11de7-8671-47f4-808b-75be40fd8ab2","changeType":"draft_approved","entity":"invoice","entityId":"2040","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2040,"clientId":67,"number":"001990","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2043,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":66,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TOMAS","clientLastName":"SUASTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:57.575423] [debug] Aprobación de Factura - -[2025-05-31 16:01:57.575468] [debug] {"uuid":"0aa11de7-8671-47f4-808b-75be40fd8ab2","changeType":"draft_approved","entity":"invoice","entityId":2040,"message":null,"clientId":67,"eventName":"invoice.draft_approved","clientData":{"id":67,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"TOMAS","lastName":"SUASTE","username":"tsuaste67","contacts":[{"id":68,"clientId":67,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#03a9f4","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2040,"clientId":67,"number":"001990","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2043,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":66,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TOMAS","clientLastName":"SUASTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:01:58.750044] [notice] Logging level set to:debug -[2025-05-31 16:01:58.750164] [debug] valor del webhook: {"uuid":"699d8213-361b-4700-8633-1d7d54aa7dbc","changeType":"draft_approved","entity":"invoice","entityId":"2041","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2041,"clientId":40,"number":"001991","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2044,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":39,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"PADRON","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RANCHO GUADALUPE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:58.899205] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:01:58.899261] [debug] Valor de JSON: {"uuid":"699d8213-361b-4700-8633-1d7d54aa7dbc","changeType":"draft_approved","entity":"invoice","entityId":"2041","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2041,"clientId":40,"number":"001991","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2044,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":39,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"PADRON","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RANCHO GUADALUPE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:01:58.899359] [debug] Aprobación de Factura - -[2025-05-31 16:01:58.899416] [debug] {"uuid":"699d8213-361b-4700-8633-1d7d54aa7dbc","changeType":"draft_approved","entity":"invoice","entityId":2041,"message":null,"clientId":40,"eventName":"invoice.draft_approved","clientData":{"id":40,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"RANCHO GUADALUPE","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"RANCHO GUADALUPE, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"OMAR","lastName":"PADRON","username":"opadron40","contacts":[{"id":41,"clientId":40,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4810,"accountCredit":0,"accountOutstanding":4810,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#fdd835","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2041,"clientId":40,"number":"001991","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2044,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":39,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"PADRON","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RANCHO GUADALUPE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:02:00.071675] [notice] Logging level set to:debug -[2025-05-31 16:02:00.071753] [debug] valor del webhook: {"uuid":"929405b9-b14e-46a7-ac6c-6f441cf37b94","changeType":"draft_approved","entity":"invoice","entityId":"2042","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2042,"clientId":47,"number":"001992","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2045,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":46,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ASRAEL","clientLastName":"PONCE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:02:00.231112] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:02:00.231164] [debug] Valor de JSON: {"uuid":"929405b9-b14e-46a7-ac6c-6f441cf37b94","changeType":"draft_approved","entity":"invoice","entityId":"2042","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2042,"clientId":47,"number":"001992","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2045,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":46,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ASRAEL","clientLastName":"PONCE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:02:00.231276] [debug] Aprobación de Factura - -[2025-05-31 16:02:00.231319] [debug] {"uuid":"929405b9-b14e-46a7-ac6c-6f441cf37b94","changeType":"draft_approved","entity":"invoice","entityId":2042,"message":null,"clientId":47,"eventName":"invoice.draft_approved","clientData":{"id":47,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ASRAEL","lastName":"PONCE","username":"aponce47","contacts":[{"id":48,"clientId":47,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":102,"clientId":47,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtN1ERR1n4E6GPk","clientZoneVisible":true},{"id":103,"clientId":47,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"8205258963078605","clientZoneVisible":true}],"accountBalance":-4780,"accountCredit":0,"accountOutstanding":4780,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef5350","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2042,"clientId":47,"number":"001992","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2045,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":46,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ASRAEL","clientLastName":"PONCE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:02:01.898057] [notice] Logging level set to:debug -[2025-05-31 16:02:01.898118] [debug] valor del webhook: {"uuid":"449064aa-c287-4c5c-b5ea-94c6a4742b45","changeType":"draft_approved","entity":"invoice","entityId":"2043","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2043,"clientId":41,"number":"001993","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2046,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":40,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUDITH","clientLastName":"CUELLAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN SEBASTIAN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:02:02.025228] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:02:02.025285] [debug] Valor de JSON: {"uuid":"449064aa-c287-4c5c-b5ea-94c6a4742b45","changeType":"draft_approved","entity":"invoice","entityId":"2043","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2043,"clientId":41,"number":"001993","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2046,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":40,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUDITH","clientLastName":"CUELLAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN SEBASTIAN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:02:02.025382] [debug] Aprobación de Factura - -[2025-05-31 16:02:02.025424] [debug] {"uuid":"449064aa-c287-4c5c-b5ea-94c6a4742b45","changeType":"draft_approved","entity":"invoice","entityId":2043,"message":null,"clientId":41,"eventName":"invoice.draft_approved","clientData":{"id":41,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN SEBASTIAN","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN SEBASTIAN, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JUDITH","lastName":"CUELLAR","username":"jcuellar41","contacts":[{"id":42,"clientId":41,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4810,"accountCredit":0,"accountOutstanding":4810,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#546e7a","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2043,"clientId":41,"number":"001993","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2046,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":40,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUDITH","clientLastName":"CUELLAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN SEBASTIAN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:02:03.167715] [notice] Logging level set to:debug -[2025-05-31 16:02:03.167798] [debug] valor del webhook: {"uuid":"a2087092-b94f-4cde-abe4-bac60497c675","changeType":"draft_approved","entity":"invoice","entityId":"2044","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2044,"clientId":36,"number":"001994","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2047,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":35,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURORA","clientLastName":"FLORES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS FLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:02:03.314791] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:02:03.314845] [debug] Valor de JSON: {"uuid":"a2087092-b94f-4cde-abe4-bac60497c675","changeType":"draft_approved","entity":"invoice","entityId":"2044","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2044,"clientId":36,"number":"001994","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2047,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":35,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURORA","clientLastName":"FLORES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS FLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:02:03.314954] [debug] Aprobación de Factura - -[2025-05-31 16:02:03.315026] [debug] {"uuid":"a2087092-b94f-4cde-abe4-bac60497c675","changeType":"draft_approved","entity":"invoice","entityId":2044,"message":null,"clientId":36,"eventName":"invoice.draft_approved","clientData":{"id":36,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LAS FLORES","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LAS FLORES, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"AURORA","lastName":"FLORES","username":"aflores36","contacts":[{"id":37,"clientId":36,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-6590,"accountCredit":0,"accountOutstanding":6590,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00695c","addressGpsLat":21.1511969,"addressGpsLon":-100.9132525,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2044,"clientId":36,"number":"001994","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2047,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":35,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURORA","clientLastName":"FLORES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS FLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:02:04.483755] [notice] Logging level set to:debug -[2025-05-31 16:02:04.483943] [debug] valor del webhook: {"uuid":"ed1c5604-c24c-4a87-b293-1739263942ad","changeType":"draft_approved","entity":"invoice","entityId":"2045","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2045,"clientId":72,"number":"001995","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2048,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":71,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BRANDOM","clientLastName":"EZQUIVEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:02:04.624140] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:02:04.624190] [debug] Valor de JSON: {"uuid":"ed1c5604-c24c-4a87-b293-1739263942ad","changeType":"draft_approved","entity":"invoice","entityId":"2045","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2045,"clientId":72,"number":"001995","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2048,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":71,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BRANDOM","clientLastName":"EZQUIVEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:02:04.624284] [debug] Aprobación de Factura - -[2025-05-31 16:02:04.624326] [debug] {"uuid":"ed1c5604-c24c-4a87-b293-1739263942ad","changeType":"draft_approved","entity":"invoice","entityId":2045,"message":null,"clientId":72,"eventName":"invoice.draft_approved","clientData":{"id":72,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"MONTELONGO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"MONTELONGO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"BRANDOM","lastName":"EZQUIVEL","username":"bezquivel72","contacts":[{"id":73,"clientId":72,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ff8f00","addressGpsLat":21.2384788,"addressGpsLon":-100.8430302,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2045,"clientId":72,"number":"001995","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2048,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":71,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BRANDOM","clientLastName":"EZQUIVEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:02:05.804007] [notice] Logging level set to:debug -[2025-05-31 16:02:05.804064] [debug] valor del webhook: {"uuid":"1e28880d-2341-48bf-8760-a02a8bb52a68","changeType":"draft_approved","entity":"invoice","entityId":"2046","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2046,"clientId":34,"number":"001996","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2049,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":33,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NORMA","clientLastName":"ALMAGUER","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ROSALITO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:02:05.937719] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:02:05.937771] [debug] Valor de JSON: {"uuid":"1e28880d-2341-48bf-8760-a02a8bb52a68","changeType":"draft_approved","entity":"invoice","entityId":"2046","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2046,"clientId":34,"number":"001996","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2049,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":33,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NORMA","clientLastName":"ALMAGUER","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ROSALITO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:02:05.937868] [debug] Aprobación de Factura - -[2025-05-31 16:02:05.937911] [debug] {"uuid":"1e28880d-2341-48bf-8760-a02a8bb52a68","changeType":"draft_approved","entity":"invoice","entityId":2046,"message":null,"clientId":34,"eventName":"invoice.draft_approved","clientData":{"id":34,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL ROSALITO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL ROSALITO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"NORMA","lastName":"ALMAGUER","username":"nalmaguer34","contacts":[{"id":35,"clientId":34,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5410,"accountCredit":0,"accountOutstanding":5410,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#0277bd","addressGpsLat":21.2514711,"addressGpsLon":-100.738323,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2046,"clientId":34,"number":"001996","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2049,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":33,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NORMA","clientLastName":"ALMAGUER","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ROSALITO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:02:07.091950] [notice] Logging level set to:debug -[2025-05-31 16:02:07.092037] [debug] valor del webhook: {"uuid":"6d3d4a3c-afbb-40e0-a38d-adfa48710620","changeType":"draft_approved","entity":"invoice","entityId":"2047","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2047,"clientId":75,"number":"001997","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2050,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":74,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAUL","clientLastName":"AYALA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:02:07.241697] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:02:07.241754] [debug] Valor de JSON: {"uuid":"6d3d4a3c-afbb-40e0-a38d-adfa48710620","changeType":"draft_approved","entity":"invoice","entityId":"2047","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2047,"clientId":75,"number":"001997","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2050,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":74,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAUL","clientLastName":"AYALA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:02:07.241875] [debug] Aprobación de Factura - -[2025-05-31 16:02:07.241919] [debug] {"uuid":"6d3d4a3c-afbb-40e0-a38d-adfa48710620","changeType":"draft_approved","entity":"invoice","entityId":2047,"message":null,"clientId":75,"eventName":"invoice.draft_approved","clientData":{"id":75,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ELIAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ELIAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"RAUL","lastName":"AYALA","username":"rayala75","contacts":[{"id":76,"clientId":75,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#6a1b9a","addressGpsLat":21.2516667,"addressGpsLon":-101.0924998,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2047,"clientId":75,"number":"001997","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2050,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":74,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAUL","clientLastName":"AYALA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:02:08.359462] [notice] Logging level set to:debug -[2025-05-31 16:02:08.359544] [debug] valor del webhook: {"uuid":"864ca8a5-e658-42b2-a31b-46c6fddee51b","changeType":"draft_approved","entity":"invoice","entityId":"2048","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2048,"clientId":99,"number":"001998","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2051,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":98,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BELINDA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:02:08.497427] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:02:08.497478] [debug] Valor de JSON: {"uuid":"864ca8a5-e658-42b2-a31b-46c6fddee51b","changeType":"draft_approved","entity":"invoice","entityId":"2048","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2048,"clientId":99,"number":"001998","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2051,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":98,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BELINDA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:02:08.497584] [debug] Aprobación de Factura - -[2025-05-31 16:02:08.497627] [debug] {"uuid":"864ca8a5-e658-42b2-a31b-46c6fddee51b","changeType":"draft_approved","entity":"invoice","entityId":2048,"message":null,"clientId":99,"eventName":"invoice.draft_approved","clientData":{"id":99,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"MONTELONGO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"MONTELONGO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"BELINDA","lastName":"REYES","username":"breyes99","contacts":[{"id":100,"clientId":99,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-6300,"accountCredit":0,"accountOutstanding":6300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#558b2f","addressGpsLat":21.2384788,"addressGpsLon":-100.8430302,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2048,"clientId":99,"number":"001998","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2051,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":98,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BELINDA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:02:09.648137] [notice] Logging level set to:debug -[2025-05-31 16:02:09.648232] [debug] valor del webhook: {"uuid":"3f23ef0a-e073-45e6-8f03-e9165af5c9ee","changeType":"draft_approved","entity":"invoice","entityId":"2049","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2049,"clientId":18,"number":"001999","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2052,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":17,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"INGRID","clientLastName":"CORONADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:02:09.785618] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:02:09.785680] [debug] Valor de JSON: {"uuid":"3f23ef0a-e073-45e6-8f03-e9165af5c9ee","changeType":"draft_approved","entity":"invoice","entityId":"2049","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2049,"clientId":18,"number":"001999","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2052,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":17,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"INGRID","clientLastName":"CORONADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:02:09.785793] [debug] Aprobación de Factura - -[2025-05-31 16:02:09.785840] [debug] {"uuid":"3f23ef0a-e073-45e6-8f03-e9165af5c9ee","changeType":"draft_approved","entity":"invoice","entityId":2049,"message":null,"clientId":18,"eventName":"invoice.draft_approved","clientData":{"id":18,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"INGRID","lastName":"CORONADO","username":"icoronado18","contacts":[{"id":19,"clientId":18,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-11900,"accountCredit":0,"accountOutstanding":11900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#039be5","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2049,"clientId":18,"number":"001999","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2052,"type":"service","label":"PREMIUM 30\/04\/2025 \u2013 30\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":17,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"INGRID","clientLastName":"CORONADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:02:10.937354] [notice] Logging level set to:debug -[2025-05-31 16:02:10.937422] [debug] valor del webhook: {"uuid":"2d10de2d-7e49-46df-adb3-39183c57bfcf","changeType":"draft_approved","entity":"invoice","entityId":"2050","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2050,"clientId":11,"number":"002000","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2053,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":11,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"KARIME","clientLastName":"QUINTERO HERNANDEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:02:11.083502] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:02:11.083554] [debug] Valor de JSON: {"uuid":"2d10de2d-7e49-46df-adb3-39183c57bfcf","changeType":"draft_approved","entity":"invoice","entityId":"2050","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2050,"clientId":11,"number":"002000","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2053,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":11,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"KARIME","clientLastName":"QUINTERO HERNANDEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:02:11.083672] [debug] Aprobación de Factura - -[2025-05-31 16:02:11.083714] [debug] {"uuid":"2d10de2d-7e49-46df-adb3-39183c57bfcf","changeType":"draft_approved","entity":"invoice","entityId":2050,"message":null,"clientId":11,"eventName":"invoice.draft_approved","clientData":{"id":11,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TRANCAS","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TRANCAS, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"KARIME","lastName":"QUINTERO HERNANDEZ","username":"kquintero11","contacts":[{"id":12,"clientId":11,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.2271959,"addressGpsLon":-101.0269744,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2050,"clientId":11,"number":"002000","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2053,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":11,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"KARIME","clientLastName":"QUINTERO HERNANDEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:02:12.234683] [notice] Logging level set to:debug -[2025-05-31 16:02:12.234795] [debug] valor del webhook: {"uuid":"702f674d-a382-4285-ba0c-ad901e4592df","changeType":"draft_approved","entity":"invoice","entityId":"2051","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2051,"clientId":68,"number":"002001","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2054,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":67,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DOLORES","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:02:12.372459] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:02:12.372520] [debug] Valor de JSON: {"uuid":"702f674d-a382-4285-ba0c-ad901e4592df","changeType":"draft_approved","entity":"invoice","entityId":"2051","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2051,"clientId":68,"number":"002001","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2054,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":67,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DOLORES","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:02:12.372622] [debug] Aprobación de Factura - -[2025-05-31 16:02:12.372665] [debug] {"uuid":"702f674d-a382-4285-ba0c-ad901e4592df","changeType":"draft_approved","entity":"invoice","entityId":2051,"message":null,"clientId":68,"eventName":"invoice.draft_approved","clientData":{"id":68,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ELIAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ELIAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"DOLORES","lastName":"GARCIA","username":"dgarcia68","contacts":[{"id":69,"clientId":68,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#9e9d24","addressGpsLat":21.2516667,"addressGpsLon":-101.0924998,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2051,"clientId":68,"number":"002001","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2054,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":67,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DOLORES","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:02:13.541991] [notice] Logging level set to:debug -[2025-05-31 16:02:13.542088] [debug] valor del webhook: {"uuid":"7f5c92b0-0652-4e29-bb35-ad02020d0501","changeType":"draft_approved","entity":"invoice","entityId":"2052","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2052,"clientId":12,"number":"002002","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2055,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":12,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MIRIAM","clientLastName":"ZURITA RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:02:13.695902] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:02:13.695961] [debug] Valor de JSON: {"uuid":"7f5c92b0-0652-4e29-bb35-ad02020d0501","changeType":"draft_approved","entity":"invoice","entityId":"2052","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2052,"clientId":12,"number":"002002","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2055,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":12,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MIRIAM","clientLastName":"ZURITA RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:02:13.696088] [debug] Aprobación de Factura - -[2025-05-31 16:02:13.696134] [debug] {"uuid":"7f5c92b0-0652-4e29-bb35-ad02020d0501","changeType":"draft_approved","entity":"invoice","entityId":2052,"message":null,"clientId":12,"eventName":"invoice.draft_approved","clientData":{"id":12,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"DOLORES HIDALGO","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MIRIAM","lastName":"ZURITA RAMIREZ","username":"mzurita12","contacts":[{"id":13,"clientId":12,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-9933.33,"accountCredit":0,"accountOutstanding":9933.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#9c27b0","addressGpsLat":21.1574,"addressGpsLon":-100.934617,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2052,"clientId":12,"number":"002002","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2055,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":12,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MIRIAM","clientLastName":"ZURITA RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:02:13.696183] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-05-31 16:02:13.696193] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"7f5c92b0-0652-4e29-bb35-ad02020d0501","changeType":"draft_approved","entity":"invoice","entityId":2052,"message":null,"clientId":12,"eventName":"invoice.draft_approved","clientData":{"id":12,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"DOLORES HIDALGO","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MIRIAM","lastName":"ZURITA RAMIREZ","username":"mzurita12","contacts":[{"id":13,"clientId":12,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-9933.33,"accountCredit":0,"accountOutstanding":9933.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#9c27b0","addressGpsLat":21.1574,"addressGpsLon":-100.934617,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2052,"clientId":12,"number":"002002","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2055,"type":"service","label":"INTERMEDIO 30\/04\/2025 \u2013 30\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":12,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MIRIAM","clientLastName":"ZURITA RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":11,"clientId":12,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-01-29T11:46:50-0600","amount":3500,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":13,"invoiceId":20,"paymentId":11,"creditNoteId":null,"refundId":null,"amount":3500}],"creditAmount":0,"userId":1000,"attributes":[]}] - -Nombre del cliente que se va a actualizar: MIRIAM ZURITA RAMIREZ - -UUID: 7ec1948ad8af4bcd8eff0d7c2a995d09 - -JSON con los datos a actualizar: {"name":"MIRIAM ZURITA RAMIREZ","custom_fields":{"Cliente":12,"Domicilio":"\ud83d\udccd DOLORES HIDALGO","Nombre":"\ud83d\udc64 MIRIAM ZURITA RAMIREZ","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/12","Saldo Actual":"\ud83d\udcb29933.33 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 3500","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"12\",\"Domicilio\": \"\"Nombre\": \"MIRIAM ZURITA RAMIREZ\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/12\",\"Saldo Actual\": \"\ud83d\udcb29933.33 pendientes\",\"Monto Ultimo Pago\": \"$ 3500\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29\/01\/2024 11:46 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"31\/05\/2025 10:02\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 29\/01\/2024 11:46 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 31\/05\/2025 10:02","Clabe Interbancaria":null,"Site":"","Antena\/Sectorial":""}} - -JSON con los datos a actualizar del resumen: {"Cliente": "12","Domicilio": ""Nombre": "MIRIAM ZURITA RAMIREZ","URL": "https://sistema.siip.mx/crm/client/12","Saldo Actual": "💲9933.33 pendientes","Monto Ultimo Pago": "$ 3500","Estado": "Suspendido","Fecha Ultimo Pago": " 29/01/2024 11:46 con Efectivo 💵","Fecha Ultima Actualizacion": "31/05/2025 10:02","Clabe Interbancaria": "","Site": "","Antena/Sectorial": ""} - -Response Patch CallBell: {"contact":{"uuid":"7ec1948ad8af4bcd8eff0d7c2a995d09","name":"MIRIAM ZURITA RAMIREZ","phoneNumber":"5214181577623","avatarUrl":null,"createdAt":"2023-12-22T16:52:57Z","closedAt":"2025-01-07T23:12:30Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7ec1948ad8af4bcd8eff0d7c2a995d09","conversationHref":"https://dash.callbell.eu/chat/d06f5a96768c4945b7a659a6930e5fa0","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clabe Interbancaria":"124180650725363841","user name":"Míriam Moctezuma","Antena/Sectorial":"SECTORIAL-2 172.16.12.11/24","Site":"GPE1","Estado":"🔴 Suspendido","Monto Ultimo Pago":"💲 3500","Domicilio":"📍 DOLORES HIDALGO","Resumen":"{\"Cliente\": \"12\",\"Domicilio\": \"\"Nombre\": \"MIRIAM ZURITA RAMIREZ\",\"URL\": \"https://sistema.siip.mx/crm/client/12\",\"Saldo Actual\": \"💲9933.33 pendientes\",\"Monto Ultimo Pago\": \"$ 3500\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29/01/2024 11:46 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/05/2025 10:02\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Cliente":"12","URL":"🌐 https://sistema.siip.mx/crm/client/12","Saldo Actual":"💲9933.33 pendientes","Fecha Ultimo Pago":"📆💸 29/01/2024 11:46 con Efectivo 💵","Fecha Ultima Actualizacion":"📆🔄️ 31/05/2025 10:02","Nombre":"👤 MIRIAM ZURITA RAMIREZ"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7ec1948ad8af4bcd8eff0d7c2a995d09","name":"MIRIAM ZURITA RAMIREZ","phoneNumber":"5214181577623","avatarUrl":null,"createdAt":"2023-12-22T16:52:57Z","closedAt":"2025-01-07T23:12:30Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7ec1948ad8af4bcd8eff0d7c2a995d09","conversationHref":"https://dash.callbell.eu/chat/d06f5a96768c4945b7a659a6930e5fa0","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clabe Interbancaria":"124180650725363841","user name":"Míriam Moctezuma","Antena/Sectorial":"SECTORIAL-2 172.16.12.11/24","Site":"GPE1","Estado":"🔴 Suspendido","Monto Ultimo Pago":"💲 3500","Domicilio":"📍 DOLORES HIDALGO","Resumen":"{\"Cliente\": \"12\",\"Domicilio\": \"\"Nombre\": \"MIRIAM ZURITA RAMIREZ\",\"URL\": \"https://sistema.siip.mx/crm/client/12\",\"Saldo Actual\": \"💲9933.33 pendientes\",\"Monto Ultimo Pago\": \"$ 3500\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29/01/2024 11:46 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/05/2025 10:02\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Cliente":"12","URL":"🌐 https://sistema.siip.mx/crm/client/12","Saldo Actual":"💲9933.33 pendientes","Fecha Ultimo Pago":"📆💸 29/01/2024 11:46 con Efectivo 💵","Fecha Ultima Actualizacion":"📆🔄️ 31/05/2025 10:02","Nombre":"👤 MIRIAM ZURITA RAMIREZ"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-05-31 16:02:16.469988] [notice] Logging level set to:debug -[2025-05-31 16:02:16.470093] [debug] valor del webhook: {"uuid":"8c505821-f989-46d8-81df-1f5b7a20a755","changeType":"draft_approved","entity":"invoice","entityId":"2053","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2053,"clientId":20,"number":"002003","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2056,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":19,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEFANIA","clientLastName":"BUENROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN PABLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:02:16.611959] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:02:16.612013] [debug] Valor de JSON: {"uuid":"8c505821-f989-46d8-81df-1f5b7a20a755","changeType":"draft_approved","entity":"invoice","entityId":"2053","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2053,"clientId":20,"number":"002003","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2056,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":19,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEFANIA","clientLastName":"BUENROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN PABLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:02:16.612124] [debug] Aprobación de Factura - -[2025-05-31 16:02:16.612169] [debug] {"uuid":"8c505821-f989-46d8-81df-1f5b7a20a755","changeType":"draft_approved","entity":"invoice","entityId":2053,"message":null,"clientId":20,"eventName":"invoice.draft_approved","clientData":{"id":20,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN PABLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN PABLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ESTEFANIA","lastName":"BUENROSTRO","username":"ebuenrostro20","contacts":[{"id":21,"clientId":20,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4780,"accountCredit":0,"accountOutstanding":4780,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#0277bd","addressGpsLat":21.1575375,"addressGpsLon":-100.9440518,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2053,"clientId":20,"number":"002003","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2056,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":19,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEFANIA","clientLastName":"BUENROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN PABLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:02:17.638762] [notice] Logging level set to:debug -[2025-05-31 16:02:17.638875] [debug] valor del webhook: {"uuid":"261063f7-1e14-4f90-94e2-484c49248587","changeType":"draft_approved","entity":"invoice","entityId":"2054","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2054,"clientId":6,"number":"002004","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2057,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":6,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEJANDRO","clientLastName":"MOCTEZUMA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:02:17.770859] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:02:17.770909] [debug] Valor de JSON: {"uuid":"261063f7-1e14-4f90-94e2-484c49248587","changeType":"draft_approved","entity":"invoice","entityId":"2054","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2054,"clientId":6,"number":"002004","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2057,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":6,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEJANDRO","clientLastName":"MOCTEZUMA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:02:17.771079] [debug] Aprobación de Factura - -[2025-05-31 16:02:17.771126] [debug] {"uuid":"261063f7-1e14-4f90-94e2-484c49248587","changeType":"draft_approved","entity":"invoice","entityId":2054,"message":null,"clientId":6,"eventName":"invoice.draft_approved","clientData":{"id":6,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"ALEJANDRO","lastName":"MOCTEZUMA","username":"amoctezuma06","contacts":[{"id":7,"clientId":6,"email":null,"phone":"5214181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-4780,"accountCredit":0,"accountOutstanding":4780,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574,"addressGpsLon":-100.934617,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2054,"clientId":6,"number":"002004","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2057,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":6,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEJANDRO","clientLastName":"MOCTEZUMA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-05-31 16:02:17.771161] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-05-31 16:02:17.771171] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"261063f7-1e14-4f90-94e2-484c49248587","changeType":"draft_approved","entity":"invoice","entityId":2054,"message":null,"clientId":6,"eventName":"invoice.draft_approved","clientData":{"id":6,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"ALEJANDRO","lastName":"MOCTEZUMA","username":"amoctezuma06","contacts":[{"id":7,"clientId":6,"email":null,"phone":"5214181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-4780,"accountCredit":0,"accountOutstanding":4780,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574,"addressGpsLon":-100.934617,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2054,"clientId":6,"number":"002004","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2057,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":6,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEJANDRO","clientLastName":"MOCTEZUMA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":27,"clientId":6,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-02-01T12:57:53-0600","amount":2000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":30,"invoiceId":7,"paymentId":27,"creditNoteId":null,"refundId":null,"amount":1700},{"id":31,"invoiceId":5,"paymentId":27,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1000,"attributes":[]}] - -Nombre del cliente que se va a actualizar: ALEJANDRO MOCTEZUMA - -UUID: 71a76e57f89441ff978a5ece070f21d7 - -JSON con los datos a actualizar: {"name":"ALEJANDRO MOCTEZUMA","custom_fields":{"Cliente":6,"Domicilio":"\ud83d\udccd DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","Nombre":"\ud83d\udc64 ALEJANDRO MOCTEZUMA","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/6","Saldo Actual":"\ud83d\udcb24780 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 2000","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"6\",\"Domicilio\": \"\"Nombre\": \"ALEJANDRO MOCTEZUMA\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/6\",\"Saldo Actual\": \"\ud83d\udcb24780 pendientes\",\"Monto Ultimo Pago\": \"$ 2000\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 01\/02\/2024 12:57 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"31\/05\/2025 10:02\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 01\/02\/2024 12:57 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 31\/05\/2025 10:02","Clabe Interbancaria":null,"Site":"","Antena\/Sectorial":""}} - -JSON con los datos a actualizar del resumen: {"Cliente": "6","Domicilio": ""Nombre": "ALEJANDRO MOCTEZUMA","URL": "https://sistema.siip.mx/crm/client/6","Saldo Actual": "💲4780 pendientes","Monto Ultimo Pago": "$ 2000","Estado": "Suspendido","Fecha Ultimo Pago": " 01/02/2024 12:57 con Efectivo 💵","Fecha Ultima Actualizacion": "31/05/2025 10:02","Clabe Interbancaria": "","Site": "","Antena/Sectorial": ""} - -Response Patch CallBell: {"contact":{"uuid":"71a76e57f89441ff978a5ece070f21d7","name":"ALEJANDRO MOCTEZUMA","phoneNumber":"5214181811375","avatarUrl":null,"createdAt":"2021-06-25T15:57:32Z","closedAt":"2025-05-23T15:41:40Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/71a76e57f89441ff978a5ece070f21d7","conversationHref":"https://dash.callbell.eu/chat/6c83978a945141db820592787b7184d5","tags":["SIIP"],"assignedUser":null,"customFields":{"Antena/Sectorial":"6","Nombre":"👤 ALEJANDRO MOCTEZUMA","Domicilio":"📍 DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","Fecha Ultimo Pago":"📆💸 01/02/2024 12:57 con Efectivo 💵","Monto Ultimo Pago":"💲 2000","Estado":"🔴 Suspendido","Cliente":"6","URL":"🌐 https://sistema.siip.mx/crm/client/6","user name":"🤩🤤","user entry point":"inbound_message","Acciones":"NOBOT-SIIP","Saldo Actual":"💲4780 pendientes","Resumen":"{\"Cliente\": \"6\",\"Domicilio\": \"\"Nombre\": \"ALEJANDRO MOCTEZUMA\",\"URL\": \"https://sistema.siip.mx/crm/client/6\",\"Saldo Actual\": \"💲4780 pendientes\",\"Monto Ultimo Pago\": \"$ 2000\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 01/02/2024 12:57 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/05/2025 10:02\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Fecha Ultima Actualizacion":"📆🔄️ 31/05/2025 10:02"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"71a76e57f89441ff978a5ece070f21d7","name":"ALEJANDRO MOCTEZUMA","phoneNumber":"5214181811375","avatarUrl":null,"createdAt":"2021-06-25T15:57:32Z","closedAt":"2025-05-23T15:41:40Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/71a76e57f89441ff978a5ece070f21d7","conversationHref":"https://dash.callbell.eu/chat/6c83978a945141db820592787b7184d5","tags":["SIIP"],"assignedUser":null,"customFields":{"Antena/Sectorial":"6","Nombre":"👤 ALEJANDRO MOCTEZUMA","Domicilio":"📍 DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","Fecha Ultimo Pago":"📆💸 01/02/2024 12:57 con Efectivo 💵","Monto Ultimo Pago":"💲 2000","Estado":"🔴 Suspendido","Cliente":"6","URL":"🌐 https://sistema.siip.mx/crm/client/6","user name":"🤩🤤","user entry point":"inbound_message","Acciones":"NOBOT-SIIP","Saldo Actual":"💲4780 pendientes","Resumen":"{\"Cliente\": \"6\",\"Domicilio\": \"\"Nombre\": \"ALEJANDRO MOCTEZUMA\",\"URL\": \"https://sistema.siip.mx/crm/client/6\",\"Saldo Actual\": \"💲4780 pendientes\",\"Monto Ultimo Pago\": \"$ 2000\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 01/02/2024 12:57 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/05/2025 10:02\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Fecha Ultima Actualizacion":"📆🔄️ 31/05/2025 10:02"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-05-31 16:02:20.516747] [notice] Logging level set to:debug -[2025-05-31 16:02:20.516801] [debug] valor del webhook: {"uuid":"2114e3f6-171e-4f90-8e63-f22775ae3509","changeType":"draft_approved","entity":"invoice","entityId":"2055","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2055,"clientId":60,"number":"002005","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2058,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":59,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MANUEL","clientLastName":"CORENEO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:02:20.662806] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-05-31 16:02:20.662861] [debug] Valor de JSON: {"uuid":"2114e3f6-171e-4f90-8e63-f22775ae3509","changeType":"draft_approved","entity":"invoice","entityId":"2055","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2055,"clientId":60,"number":"002005","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2058,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":59,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MANUEL","clientLastName":"CORENEO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-05-31 16:02:20.662981] [debug] Aprobación de Factura - -[2025-05-31 16:02:20.663098] [debug] {"uuid":"2114e3f6-171e-4f90-8e63-f22775ae3509","changeType":"draft_approved","entity":"invoice","entityId":2055,"message":null,"clientId":60,"eventName":"invoice.draft_approved","clientData":{"id":60,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TECOLOTE","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TECOLOTE, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MANUEL","lastName":"CORENEO","username":"mcoreneo60","contacts":[{"id":61,"clientId":60,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4800,"accountCredit":0,"accountOutstanding":4800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#6a1b9a","addressGpsLat":21.22987,"addressGpsLon":-101.0648115,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2055,"clientId":60,"number":"002005","createdDate":"2025-05-31T10:00:02-0600","dueDate":"2025-06-14T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2058,"type":"service","label":"plan300 30\/04\/2025 \u2013 30\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":59,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MANUEL","clientLastName":"CORENEO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-06-01 16:00:04.666373] [notice] Logging level set to:debug -[2025-06-01 16:00:04.666459] [debug] valor del webhook: {"uuid":"e2141650-c145-4c60-9c9b-21da04f52483","changeType":"draft_approved","entity":"invoice","entityId":"2056","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2056,"clientId":132,"number":"002006","createdDate":"2025-06-01T10:00:02-0600","dueDate":"2025-06-15T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-31T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2059,"type":"service","label":"plan300 01\/05\/2025 \u2013 31\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":115,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Marto","clientLastName":"Vago Payaso","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"20 Avenida Norte","clientStreet2":null,"clientCity":"Guanajuato","clientCountryId":173,"clientStateId":null,"clientZipCode":"37807","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-06-01 16:00:04.921533] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-06-01 16:00:04.921587] [debug] Valor de JSON: {"uuid":"e2141650-c145-4c60-9c9b-21da04f52483","changeType":"draft_approved","entity":"invoice","entityId":"2056","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2056,"clientId":132,"number":"002006","createdDate":"2025-06-01T10:00:02-0600","dueDate":"2025-06-15T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-31T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2059,"type":"service","label":"plan300 01\/05\/2025 \u2013 31\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":115,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Marto","clientLastName":"Vago Payaso","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"20 Avenida Norte","clientStreet2":null,"clientCity":"Guanajuato","clientCountryId":173,"clientStateId":null,"clientZipCode":"37807","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-06-01 16:00:04.921797] [debug] Aprobación de Factura - -[2025-06-01 16:00:04.921863] [debug] {"uuid":"e2141650-c145-4c60-9c9b-21da04f52483","changeType":"draft_approved","entity":"invoice","entityId":2056,"message":null,"clientId":132,"eventName":"invoice.draft_approved","clientData":{"id":132,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"20 Avenida Norte","street2":null,"city":"Guanajuato","countryId":173,"stateId":null,"zipCode":"37807","fullAddress":"Avenida Norte 20, Dolores, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-18T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Marto","lastName":"Vago Payaso","username":null,"contacts":[{"id":136,"clientId":132,"email":"vagopayaso@gmail.com","phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3300,"accountCredit":0,"accountOutstanding":3300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#9c27b0","addressGpsLat":21.1641484,"addressGpsLon":-100.9405409,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2056,"clientId":132,"number":"002006","createdDate":"2025-06-01T10:00:02-0600","dueDate":"2025-06-15T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-30T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2059,"type":"service","label":"plan300 01\/05\/2025 \u2013 31\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":115,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Marto","clientLastName":"Vago Payaso","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"20 Avenida Norte","clientStreet2":null,"clientCity":"Guanajuato","clientCountryId":173,"clientStateId":null,"clientZipCode":"37807","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-06-03 18:02:10.397048] [notice] Logging level set to:debug -[2025-06-03 18:02:10.403064] [debug] valor del webhook: {"uuid":"d66c20bf-620f-4688-b784-95a23ef28c8e","changeType":"suspend","entity":"service","entityId":"156","eventName":"service.suspend","extraData":{"entity":{"id":156,"prepaid":true,"clientId":2,"status":8,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":7,"servicePlanPeriodId":null,"price":30,"hasIndividualPrice":false,"totalPrice":30,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":null,"minimumContractLengthMonths":null,"activeFrom":null,"activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":null,"discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":null,"invoicingPeriodType":null,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":0,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":null,"servicePlanPeriod":null,"servicePlanType":"Internet","downloadSpeed":10,"uploadSpeed":10,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"bc54c7e0-d1a6-4162-beb8-595e3882355d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":null}} - -[2025-06-03 18:02:10.568084] [debug] valor el evento recibido por webhook: service.suspend - -[2025-06-03 18:02:10.568157] [debug] Valor de JSON: {"uuid":"d66c20bf-620f-4688-b784-95a23ef28c8e","changeType":"suspend","entity":"service","entityId":"156","eventName":"service.suspend","extraData":{"entity":{"id":156,"prepaid":true,"clientId":2,"status":8,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":7,"servicePlanPeriodId":null,"price":30,"hasIndividualPrice":false,"totalPrice":30,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":null,"minimumContractLengthMonths":null,"activeFrom":null,"activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":null,"discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":null,"invoicingPeriodType":null,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":0,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":null,"servicePlanPeriod":null,"servicePlanType":"Internet","downloadSpeed":10,"uploadSpeed":10,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"bc54c7e0-d1a6-4162-beb8-595e3882355d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":null}} - -[2025-06-03 18:02:10.568384] [debug] Se suspendió el servicio a un cliente - -[2025-06-03 18:02:10.568470] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-03 18:02:10.568486] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-03 18:02:10.568540] [info] {"uuid":"d66c20bf-620f-4688-b784-95a23ef28c8e","changeType":"suspend","entity":"service","entityId":156,"message":null,"clientId":2,"eventName":"service.suspend","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":{"id":156,"prepaid":true,"clientId":2,"status":8,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":7,"servicePlanPeriodId":null,"price":30,"hasIndividualPrice":false,"totalPrice":30,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":null,"minimumContractLengthMonths":null,"activeFrom":null,"activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":null,"discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":null,"invoicingPeriodType":null,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":0,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":null,"servicePlanPeriod":null,"servicePlanType":"Internet","downloadSpeed":10,"uploadSpeed":10,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"bc54c7e0-d1a6-4162-beb8-595e3882355d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"invoiceData":null,"paymentData":null} - -Actualizando estado del servicio - -Nombre del cliente al que se va a actualizar el estado del servicio: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Estado":"\ud83d\udeab Finalizado","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 03\/06\/2025 12:02"}} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲0 está al corriente","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🚫 Finalizado","Fecha Ultima Actualizacion":"📆🔄️ 03/06/2025 12:02","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"24/05/2025 13:28\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-03 18:02:12.511112] [notice] Logging level set to:debug -[2025-06-03 18:02:12.511239] [debug] valor del webhook: {"uuid":"2ef1acec-8dc6-4ab3-90ca-a918dcd9c9c9","changeType":"insert","entity":"service","entityId":"156","eventName":"service.add","extraData":{"entity":{"id":156,"prepaid":true,"clientId":2,"status":8,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":7,"servicePlanPeriodId":null,"price":30,"hasIndividualPrice":false,"totalPrice":30,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":null,"minimumContractLengthMonths":null,"activeFrom":null,"activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":null,"discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":null,"invoicingPeriodType":null,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":0,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":null,"servicePlanPeriod":null,"servicePlanType":"Internet","downloadSpeed":10,"uploadSpeed":10,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"bc54c7e0-d1a6-4162-beb8-595e3882355d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":null}} - -[2025-06-03 18:02:12.674384] [debug] valor el evento recibido por webhook: service.add - -[2025-06-03 18:02:12.674452] [debug] Valor de JSON: {"uuid":"2ef1acec-8dc6-4ab3-90ca-a918dcd9c9c9","changeType":"insert","entity":"service","entityId":"156","eventName":"service.add","extraData":{"entity":{"id":156,"prepaid":true,"clientId":2,"status":8,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":7,"servicePlanPeriodId":null,"price":30,"hasIndividualPrice":false,"totalPrice":30,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":null,"minimumContractLengthMonths":null,"activeFrom":null,"activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":null,"discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":null,"invoicingPeriodType":null,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":0,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":null,"servicePlanPeriod":null,"servicePlanType":"Internet","downloadSpeed":10,"uploadSpeed":10,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"bc54c7e0-d1a6-4162-beb8-595e3882355d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":null}} - -[2025-06-03 18:02:17.322731] [notice] Logging level set to:debug -[2025-06-03 18:02:17.322865] [debug] valor del webhook: {"uuid":"3316071c-489e-4d8a-b6c5-823e0bffd3cb","changeType":"edit","entity":"service","entityId":"156","eventName":"service.edit","extraData":{"entity":{"id":156,"prepaid":true,"clientId":2,"status":8,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":7,"servicePlanPeriodId":null,"price":30,"hasIndividualPrice":false,"totalPrice":30,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":null,"minimumContractLengthMonths":null,"activeFrom":null,"activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":null,"discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":null,"invoicingPeriodType":null,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":0,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":null,"servicePlanPeriod":null,"servicePlanType":"Internet","downloadSpeed":10,"uploadSpeed":10,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"bc54c7e0-d1a6-4162-beb8-595e3882355d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":{"id":156,"prepaid":true,"clientId":2,"status":8,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":7,"servicePlanPeriodId":null,"price":30,"hasIndividualPrice":false,"totalPrice":30,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":null,"minimumContractLengthMonths":null,"activeFrom":null,"activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":null,"discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":null,"invoicingPeriodType":null,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":0,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":null,"servicePlanPeriod":null,"servicePlanType":"Internet","downloadSpeed":10,"uploadSpeed":10,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"bc54c7e0-d1a6-4162-beb8-595e3882355d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]}}} - -[2025-06-03 18:02:17.480339] [debug] valor el evento recibido por webhook: service.edit - -[2025-06-03 18:02:17.480513] [debug] Valor de JSON: {"uuid":"3316071c-489e-4d8a-b6c5-823e0bffd3cb","changeType":"edit","entity":"service","entityId":"156","eventName":"service.edit","extraData":{"entity":{"id":156,"prepaid":true,"clientId":2,"status":8,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":7,"servicePlanPeriodId":null,"price":30,"hasIndividualPrice":false,"totalPrice":30,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":null,"minimumContractLengthMonths":null,"activeFrom":null,"activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":null,"discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":null,"invoicingPeriodType":null,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":0,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":null,"servicePlanPeriod":null,"servicePlanType":"Internet","downloadSpeed":10,"uploadSpeed":10,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"bc54c7e0-d1a6-4162-beb8-595e3882355d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":{"id":156,"prepaid":true,"clientId":2,"status":8,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":7,"servicePlanPeriodId":null,"price":30,"hasIndividualPrice":false,"totalPrice":30,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":null,"minimumContractLengthMonths":null,"activeFrom":null,"activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":null,"discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":null,"invoicingPeriodType":null,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":0,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":null,"servicePlanPeriod":null,"servicePlanType":"Internet","downloadSpeed":10,"uploadSpeed":10,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"bc54c7e0-d1a6-4162-beb8-595e3882355d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]}}} - -[2025-06-03 18:02:17.480696] [debug] Se editó el servicio a un cliente - -[2025-06-03 18:02:17.480792] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-03 18:02:17.480845] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-03 18:02:17.480928] [info] {"uuid":"3316071c-489e-4d8a-b6c5-823e0bffd3cb","changeType":"edit","entity":"service","entityId":156,"message":null,"clientId":2,"eventName":"service.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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":{"id":156,"prepaid":true,"clientId":2,"status":8,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":7,"servicePlanPeriodId":null,"price":30,"hasIndividualPrice":false,"totalPrice":30,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":null,"minimumContractLengthMonths":null,"activeFrom":null,"activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":null,"discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":null,"invoicingPeriodType":null,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":0,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":null,"servicePlanPeriod":null,"servicePlanType":"Internet","downloadSpeed":10,"uploadSpeed":10,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"bc54c7e0-d1a6-4162-beb8-595e3882355d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"invoiceData":null,"paymentData":null} - -Actualizando estado del servicio - -Nombre del cliente al que se va a actualizar el estado del servicio: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Estado":"\ud83d\udeab Finalizado","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 03\/06\/2025 12:02"}} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲0 está al corriente","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🚫 Finalizado","Fecha Ultima Actualizacion":"📆🔄️ 03/06/2025 12:02","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"24/05/2025 13:28\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-03 18:02:19.211885] [info] ID correspondiente a 'passwordAntenaCliente': 17 - -[2025-06-03 18:02:19.212089] [info] El valor de passwordAntenaValue es null o cadena vacía, se manda llamar la función getVaultCredentials - -[2025-06-03 18:02:19.212146] [info] El valor de password es: gYAIEK:Be}SK*01z5+/V - -[2025-06-03 18:02:19.363074] [info] Se actualizó el custom attribute del cliente 2 - -[2025-06-03 18:02:19.364722] [info] Se actualizó el atributo personalizado passwordAntenaCliente con el valor: gYAIEK:Be}SK*01z5+/V - -[2025-06-03 18:02:19.483145] [notice] Logging level set to:debug -[2025-06-03 18:02:19.483443] [debug] valor del webhook: {"uuid":"b2b4a5f5-3eec-4dd3-b59d-719bd1aab311","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-06-03 18:02:19.568669] [debug] valor el evento recibido por webhook: client.edit - -[2025-06-03 18:02:19.568763] [debug] Valor de JSON: {"uuid":"b2b4a5f5-3eec-4dd3-b59d-719bd1aab311","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-06-03 18:02:19.568880] [debug] Se actualiza a un cliente -[2025-06-03 18:02:19.568932] [debug] Valor de json_data: {"uuid":"b2b4a5f5-3eec-4dd3-b59d-719bd1aab311","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} -[2025-06-03 18:02:19.619622] [info] ID correspondiente a 'passwordAntenaCliente': 17 - -[2025-06-03 18:02:19.619673] [info] El valor de passwordAntenaValue es: gYAIEK:Be}SK*01z5+/V - -[2025-06-03 18:02:19.619683] [info] Ya existe un valor de passwordAntenaValue: gYAIEK:Be}SK*01z5+/V - -[2025-06-03 18:02:19.619695] [debug] El cliente no cambió de potencial a cliente -[2025-06-03 18:02:19.619704] [debug] Validando claves dentro de entity y entityBeforeEdit -[2025-06-03 18:02:19.619743] [debug] Los datos entity y entityBeforeEdit contienen el campo tags -[2025-06-03 18:02:19.619750] [debug] Validando si la etiqueta STRIPE existe en entity pero no en entityBeforeEdit -[2025-06-03 18:02:19.619795] [debug] {"uuid":"b2b4a5f5-3eec-4dd3-b59d-719bd1aab311","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":null} - -[2025-06-03 18:02:19.619906] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-03 18:02:19.619947] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"b2b4a5f5-3eec-4dd3-b59d-719bd1aab311","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":625,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-05-16T09:49:31-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":728,"invoiceId":1818,"paymentId":625,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16\/05\/2025 09:49 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"03\/06\/2025 12:02\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 16\/05\/2025 09:49 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 03\/06\/2025 12:02","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲0 está al corriente","Monto Ultimo Pago": "$ 300","Estado": "Activo","Fecha Ultimo Pago": " 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "03/06/2025 12:02","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲0 está al corriente","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultima Actualizacion":"📆🔄️ 03/06/2025 12:02","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"03/06/2025 12:02\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲0 está al corriente","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultima Actualizacion":"📆🔄️ 03/06/2025 12:02","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"03/06/2025 12:02\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-03 18:02:46.778528] [notice] Logging level set to:debug -[2025-06-03 18:02:46.778866] [debug] valor del webhook: {"uuid":"0746df11-8f7a-4734-a188-bf0754d19ef6","changeType":"edit","entity":"service","entityId":"156","eventName":"service.edit","extraData":{"entity":{"id":156,"prepaid":true,"clientId":2,"status":8,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":7,"servicePlanPeriodId":null,"price":300,"hasIndividualPrice":true,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":null,"minimumContractLengthMonths":null,"activeFrom":null,"activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":null,"discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":null,"invoicingPeriodType":null,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":0,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":null,"servicePlanPeriod":null,"servicePlanType":"Internet","downloadSpeed":10,"uploadSpeed":10,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"bc54c7e0-d1a6-4162-beb8-595e3882355d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":{"id":156,"prepaid":true,"clientId":2,"status":8,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":7,"servicePlanPeriodId":null,"price":30,"hasIndividualPrice":false,"totalPrice":30,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":null,"minimumContractLengthMonths":null,"activeFrom":null,"activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":null,"discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":null,"invoicingPeriodType":null,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":0,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":null,"servicePlanPeriod":null,"servicePlanType":"Internet","downloadSpeed":10,"uploadSpeed":10,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"bc54c7e0-d1a6-4162-beb8-595e3882355d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]}}} - -[2025-06-03 18:02:46.925203] [debug] valor el evento recibido por webhook: service.edit - -[2025-06-03 18:02:46.925406] [debug] Valor de JSON: {"uuid":"0746df11-8f7a-4734-a188-bf0754d19ef6","changeType":"edit","entity":"service","entityId":"156","eventName":"service.edit","extraData":{"entity":{"id":156,"prepaid":true,"clientId":2,"status":8,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":7,"servicePlanPeriodId":null,"price":300,"hasIndividualPrice":true,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":null,"minimumContractLengthMonths":null,"activeFrom":null,"activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":null,"discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":null,"invoicingPeriodType":null,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":0,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":null,"servicePlanPeriod":null,"servicePlanType":"Internet","downloadSpeed":10,"uploadSpeed":10,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"bc54c7e0-d1a6-4162-beb8-595e3882355d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":{"id":156,"prepaid":true,"clientId":2,"status":8,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":7,"servicePlanPeriodId":null,"price":30,"hasIndividualPrice":false,"totalPrice":30,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":null,"minimumContractLengthMonths":null,"activeFrom":null,"activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":null,"discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":null,"invoicingPeriodType":null,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":0,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":null,"servicePlanPeriod":null,"servicePlanType":"Internet","downloadSpeed":10,"uploadSpeed":10,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"bc54c7e0-d1a6-4162-beb8-595e3882355d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]}}} - -[2025-06-03 18:02:46.925671] [debug] Se editó el servicio a un cliente - -[2025-06-03 18:02:46.925776] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-03 18:02:46.925818] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-03 18:02:46.925899] [info] {"uuid":"0746df11-8f7a-4734-a188-bf0754d19ef6","changeType":"edit","entity":"service","entityId":156,"message":null,"clientId":2,"eventName":"service.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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":{"id":156,"prepaid":true,"clientId":2,"status":8,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":7,"servicePlanPeriodId":null,"price":300,"hasIndividualPrice":true,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":null,"minimumContractLengthMonths":null,"activeFrom":null,"activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":null,"discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":null,"invoicingPeriodType":null,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":0,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":null,"servicePlanPeriod":null,"servicePlanType":"Internet","downloadSpeed":10,"uploadSpeed":10,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"bc54c7e0-d1a6-4162-beb8-595e3882355d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"invoiceData":null,"paymentData":null} - -Actualizando estado del servicio - -Nombre del cliente al que se va a actualizar el estado del servicio: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Estado":"\ud83d\udeab Finalizado","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 03\/06\/2025 12:02"}} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲0 está al corriente","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🚫 Finalizado","Fecha Ultima Actualizacion":"📆🔄️ 03/06/2025 12:02","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"03/06/2025 12:02\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-03 18:02:48.766344] [info] ID correspondiente a 'passwordAntenaCliente': 17 - -[2025-06-03 18:02:48.766542] [info] El valor de passwordAntenaValue es null o cadena vacía, se manda llamar la función getVaultCredentials - -[2025-06-03 18:02:48.766594] [info] El valor de password es: gYAIEK:Be}SK*01z5+/V - -[2025-06-03 18:02:48.912544] [info] Se actualizó el custom attribute del cliente 2 - -[2025-06-03 18:02:48.912923] [info] Se actualizó el atributo personalizado passwordAntenaCliente con el valor: gYAIEK:Be}SK*01z5+/V - -[2025-06-03 18:02:49.031167] [notice] Logging level set to:debug -[2025-06-03 18:02:49.031390] [debug] valor del webhook: {"uuid":"2f376ceb-619d-4f15-961d-65e145453040","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-06-03 18:02:49.125291] [debug] valor el evento recibido por webhook: client.edit - -[2025-06-03 18:02:49.125382] [debug] Valor de JSON: {"uuid":"2f376ceb-619d-4f15-961d-65e145453040","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-06-03 18:02:49.125515] [debug] Se actualiza a un cliente -[2025-06-03 18:02:49.125564] [debug] Valor de json_data: {"uuid":"2f376ceb-619d-4f15-961d-65e145453040","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} -[2025-06-03 18:02:49.171484] [info] ID correspondiente a 'passwordAntenaCliente': 17 - -[2025-06-03 18:02:49.171531] [info] El valor de passwordAntenaValue es: gYAIEK:Be}SK*01z5+/V - -[2025-06-03 18:02:49.171544] [info] Ya existe un valor de passwordAntenaValue: gYAIEK:Be}SK*01z5+/V - -[2025-06-03 18:02:49.171555] [debug] El cliente no cambió de potencial a cliente -[2025-06-03 18:02:49.171562] [debug] Validando claves dentro de entity y entityBeforeEdit -[2025-06-03 18:02:49.171570] [debug] Los datos entity y entityBeforeEdit contienen el campo tags -[2025-06-03 18:02:49.171576] [debug] Validando si la etiqueta STRIPE existe en entity pero no en entityBeforeEdit -[2025-06-03 18:02:49.171618] [debug] {"uuid":"2f376ceb-619d-4f15-961d-65e145453040","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":null} - -[2025-06-03 18:02:49.171689] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-03 18:02:49.171701] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"2f376ceb-619d-4f15-961d-65e145453040","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":625,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-05-16T09:49:31-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":728,"invoiceId":1818,"paymentId":625,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16\/05\/2025 09:49 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"03\/06\/2025 12:02\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 16\/05\/2025 09:49 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 03\/06\/2025 12:02","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲0 está al corriente","Monto Ultimo Pago": "$ 300","Estado": "Activo","Fecha Ultimo Pago": " 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "03/06/2025 12:02","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲0 está al corriente","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultima Actualizacion":"📆🔄️ 03/06/2025 12:02","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"03/06/2025 12:02\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲0 está al corriente","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultima Actualizacion":"📆🔄️ 03/06/2025 12:02","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"03/06/2025 12:02\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-03 18:03:38.752681] [notice] Logging level set to:debug -[2025-06-03 18:03:38.752877] [debug] valor del webhook: {"uuid":"d321c9ad-0222-40e1-bd7d-89b947c83105","changeType":"insert","entity":"service","entityId":"157","eventName":"service.add","extraData":{"entity":{"id":157,"prepaid":false,"clientId":2,"status":1,"name":"INTERMEDIO","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":3,"servicePlanPeriodId":13,"price":500,"hasIndividualPrice":false,"totalPrice":500,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-06-03T00: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-06-03T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"INTERMEDIO","servicePlanPrice":500,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":12,"uploadSpeed":12,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"b04fe4ec-e6e4-4202-8dbc-bec31ac1a21d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":null}} - -[2025-06-03 18:03:38.891093] [debug] valor el evento recibido por webhook: service.add - -[2025-06-03 18:03:38.891259] [debug] Valor de JSON: {"uuid":"d321c9ad-0222-40e1-bd7d-89b947c83105","changeType":"insert","entity":"service","entityId":"157","eventName":"service.add","extraData":{"entity":{"id":157,"prepaid":false,"clientId":2,"status":1,"name":"INTERMEDIO","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":3,"servicePlanPeriodId":13,"price":500,"hasIndividualPrice":false,"totalPrice":500,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-06-03T00: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-06-03T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"INTERMEDIO","servicePlanPrice":500,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":12,"uploadSpeed":12,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"b04fe4ec-e6e4-4202-8dbc-bec31ac1a21d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":null}} - -[2025-06-03 18:03:43.015153] [notice] Logging level set to:debug -[2025-06-03 18:03:43.015356] [debug] valor del webhook: {"uuid":"2fbe5df3-0b86-40d3-83ef-41f9a39685d0","changeType":"draft_approved","entity":"invoice","entityId":"2057","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.9333333333333333,"total":466.6666666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":0,"totalUntaxed":466.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":466.67,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"entityBeforeEdit":null}} - -[2025-06-03 18:03:43.164299] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-06-03 18:03:43.164499] [debug] Valor de JSON: {"uuid":"2fbe5df3-0b86-40d3-83ef-41f9a39685d0","changeType":"draft_approved","entity":"invoice","entityId":"2057","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.9333333333333333,"total":466.6666666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":0,"totalUntaxed":466.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":466.67,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"entityBeforeEdit":null}} - -[2025-06-03 18:03:43.164664] [debug] Aprobación de Factura - -[2025-06-03 18:03:43.164778] [debug] {"uuid":"2fbe5df3-0b86-40d3-83ef-41f9a39685d0","changeType":"draft_approved","entity":"invoice","entityId":2057,"message":null,"clientId":2,"eventName":"invoice.draft_approved","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":0,"totalUntaxed":466.67,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":466.67,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} - -[2025-06-03 18:03:43.164886] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-03 18:03:43.164928] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"2fbe5df3-0b86-40d3-83ef-41f9a39685d0","changeType":"draft_approved","entity":"invoice","entityId":2057,"message":null,"clientId":2,"eventName":"invoice.draft_approved","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":0,"totalUntaxed":466.67,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":466.67,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":625,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-05-16T09:49:31-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":728,"invoiceId":1818,"paymentId":625,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2466.67 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16\/05\/2025 09:49 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"03\/06\/2025 12:03\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 16\/05\/2025 09:49 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 03\/06\/2025 12:03","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲466.67 pendientes","Monto Ultimo Pago": "$ 300","Estado": "Activo","Fecha Ultimo Pago": " 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "03/06/2025 12:03","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲466.67 pendientes","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultima Actualizacion":"📆🔄️ 03/06/2025 12:03","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"03/06/2025 12:03\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲466.67 pendientes","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultima Actualizacion":"📆🔄️ 03/06/2025 12:03","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"03/06/2025 12:03\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-03 18:03:51.263454] [notice] Logging level set to:debug -[2025-06-03 18:03:51.263545] [debug] valor del webhook: {"uuid":"55339453-f900-43f8-a403-3530569def7f","changeType":"edit","entity":"service","entityId":"157","eventName":"service.edit","extraData":{"entity":{"id":157,"prepaid":false,"clientId":2,"status":1,"name":"INTERMEDIO","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":3,"servicePlanPeriodId":13,"price":500,"hasIndividualPrice":false,"totalPrice":500,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-06-03T00: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-06-03T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"INTERMEDIO","servicePlanPrice":500,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":12,"uploadSpeed":12,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"b04fe4ec-e6e4-4202-8dbc-bec31ac1a21d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":{"id":157,"prepaid":false,"clientId":2,"status":1,"name":"INTERMEDIO","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":3,"servicePlanPeriodId":13,"price":500,"hasIndividualPrice":false,"totalPrice":500,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-06-03T00: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-06-03T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"INTERMEDIO","servicePlanPrice":500,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":12,"uploadSpeed":12,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"b04fe4ec-e6e4-4202-8dbc-bec31ac1a21d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]}}} - -[2025-06-03 18:03:51.411091] [debug] valor el evento recibido por webhook: service.edit - -[2025-06-03 18:03:51.411314] [debug] Valor de JSON: {"uuid":"55339453-f900-43f8-a403-3530569def7f","changeType":"edit","entity":"service","entityId":"157","eventName":"service.edit","extraData":{"entity":{"id":157,"prepaid":false,"clientId":2,"status":1,"name":"INTERMEDIO","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":3,"servicePlanPeriodId":13,"price":500,"hasIndividualPrice":false,"totalPrice":500,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-06-03T00: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-06-03T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"INTERMEDIO","servicePlanPrice":500,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":12,"uploadSpeed":12,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"b04fe4ec-e6e4-4202-8dbc-bec31ac1a21d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":{"id":157,"prepaid":false,"clientId":2,"status":1,"name":"INTERMEDIO","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":3,"servicePlanPeriodId":13,"price":500,"hasIndividualPrice":false,"totalPrice":500,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-06-03T00: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-06-03T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"INTERMEDIO","servicePlanPrice":500,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":12,"uploadSpeed":12,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"b04fe4ec-e6e4-4202-8dbc-bec31ac1a21d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]}}} - -[2025-06-03 18:03:51.411506] [debug] Se editó el servicio a un cliente - -[2025-06-03 18:03:51.411612] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-03 18:03:51.411654] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-03 18:03:51.411729] [info] {"uuid":"55339453-f900-43f8-a403-3530569def7f","changeType":"edit","entity":"service","entityId":157,"message":null,"clientId":2,"eventName":"service.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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":{"id":157,"prepaid":false,"clientId":2,"status":1,"name":"INTERMEDIO","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":3,"servicePlanPeriodId":13,"price":500,"hasIndividualPrice":false,"totalPrice":500,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-06-03T00: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-06-03T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"INTERMEDIO","servicePlanPrice":500,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":12,"uploadSpeed":12,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"b04fe4ec-e6e4-4202-8dbc-bec31ac1a21d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"invoiceData":null,"paymentData":null} - -Actualizando estado del servicio - -Nombre del cliente al que se va a actualizar el estado del servicio: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Estado":"\ud83d\udfe2 Activo","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 03\/06\/2025 12:03"}} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲466.67 pendientes","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo","Fecha Ultima Actualizacion":"📆🔄️ 03/06/2025 12:03","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"03/06/2025 12:03\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-03 18:03:53.241291] [info] ID correspondiente a 'passwordAntenaCliente': 17 - -[2025-06-03 18:03:53.241411] [info] El valor de passwordAntenaValue es null o cadena vacía, se manda llamar la función getVaultCredentials - -[2025-06-03 18:03:53.241431] [info] El valor de password es: gYAIEK:Be}SK*01z5+/V - -[2025-06-03 18:03:53.397994] [info] Se actualizó el custom attribute del cliente 2 - -[2025-06-03 18:03:53.398407] [info] Se actualizó el atributo personalizado passwordAntenaCliente con el valor: gYAIEK:Be}SK*01z5+/V - -[2025-06-03 18:03:53.520569] [notice] Logging level set to:debug -[2025-06-03 18:03:53.520662] [debug] valor del webhook: {"uuid":"178b4397-45c5-45e8-984d-b2c07f0be784","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-06-03 18:03:53.600708] [debug] valor el evento recibido por webhook: client.edit - -[2025-06-03 18:03:53.600799] [debug] Valor de JSON: {"uuid":"178b4397-45c5-45e8-984d-b2c07f0be784","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-06-03 18:03:53.600913] [debug] Se actualiza a un cliente -[2025-06-03 18:03:53.600961] [debug] Valor de json_data: {"uuid":"178b4397-45c5-45e8-984d-b2c07f0be784","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} -[2025-06-03 18:03:53.644074] [info] ID correspondiente a 'passwordAntenaCliente': 17 - -[2025-06-03 18:03:53.644129] [info] El valor de passwordAntenaValue es: gYAIEK:Be}SK*01z5+/V - -[2025-06-03 18:03:53.644140] [info] Ya existe un valor de passwordAntenaValue: gYAIEK:Be}SK*01z5+/V - -[2025-06-03 18:03:53.644151] [debug] El cliente no cambió de potencial a cliente -[2025-06-03 18:03:53.644160] [debug] Validando claves dentro de entity y entityBeforeEdit -[2025-06-03 18:03:53.644166] [debug] Los datos entity y entityBeforeEdit contienen el campo tags -[2025-06-03 18:03:53.644174] [debug] Validando si la etiqueta STRIPE existe en entity pero no en entityBeforeEdit -[2025-06-03 18:03:53.644218] [debug] {"uuid":"178b4397-45c5-45e8-984d-b2c07f0be784","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":null} - -[2025-06-03 18:03:53.644264] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-03 18:03:53.644277] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"178b4397-45c5-45e8-984d-b2c07f0be784","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":625,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-05-16T09:49:31-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":728,"invoiceId":1818,"paymentId":625,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2466.67 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16\/05\/2025 09:49 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"03\/06\/2025 12:03\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 16\/05\/2025 09:49 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 03\/06\/2025 12:03","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲466.67 pendientes","Monto Ultimo Pago": "$ 300","Estado": "Activo","Fecha Ultimo Pago": " 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "03/06/2025 12:03","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲466.67 pendientes","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultima Actualizacion":"📆🔄️ 03/06/2025 12:03","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"03/06/2025 12:03\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲466.67 pendientes","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultima Actualizacion":"📆🔄️ 03/06/2025 12:03","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"03/06/2025 12:03\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-03 18:06:46.274342] [notice] Logging level set to:debug -[2025-06-03 18:06:46.274708] [debug] valor del webhook: {"uuid":"b2a344ed-fdad-4758-bcec-883f30a14b4c","changeType":"edit","entity":"service","entityId":"157","eventName":"service.edit","extraData":{"entity":{"id":157,"prepaid":false,"clientId":2,"status":1,"name":"INTERMEDIO","fullAddress":"Chiapas 50, Dolores Hidalgo, 37800","street1":"Chiapas 50","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1570572,"addressGpsLon":-100.9398632,"servicePlanId":3,"servicePlanPeriodId":13,"price":500,"hasIndividualPrice":false,"totalPrice":500,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-06-03T00: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-06-03T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"INTERMEDIO","servicePlanPrice":500,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":12,"uploadSpeed":12,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"b04fe4ec-e6e4-4202-8dbc-bec31ac1a21d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":{"id":157,"prepaid":false,"clientId":2,"status":1,"name":"INTERMEDIO","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":3,"servicePlanPeriodId":13,"price":500,"hasIndividualPrice":false,"totalPrice":500,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-06-03T00: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-06-03T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"INTERMEDIO","servicePlanPrice":500,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":12,"uploadSpeed":12,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"b04fe4ec-e6e4-4202-8dbc-bec31ac1a21d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]}}} - -[2025-06-03 18:06:46.401664] [debug] valor el evento recibido por webhook: service.edit - -[2025-06-03 18:06:46.401910] [debug] Valor de JSON: {"uuid":"b2a344ed-fdad-4758-bcec-883f30a14b4c","changeType":"edit","entity":"service","entityId":"157","eventName":"service.edit","extraData":{"entity":{"id":157,"prepaid":false,"clientId":2,"status":1,"name":"INTERMEDIO","fullAddress":"Chiapas 50, Dolores Hidalgo, 37800","street1":"Chiapas 50","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1570572,"addressGpsLon":-100.9398632,"servicePlanId":3,"servicePlanPeriodId":13,"price":500,"hasIndividualPrice":false,"totalPrice":500,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-06-03T00: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-06-03T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"INTERMEDIO","servicePlanPrice":500,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":12,"uploadSpeed":12,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"b04fe4ec-e6e4-4202-8dbc-bec31ac1a21d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":{"id":157,"prepaid":false,"clientId":2,"status":1,"name":"INTERMEDIO","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":3,"servicePlanPeriodId":13,"price":500,"hasIndividualPrice":false,"totalPrice":500,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-06-03T00: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-06-03T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"INTERMEDIO","servicePlanPrice":500,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":12,"uploadSpeed":12,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"b04fe4ec-e6e4-4202-8dbc-bec31ac1a21d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]}}} - -[2025-06-03 18:06:46.402199] [debug] Se editó el servicio a un cliente - -[2025-06-03 18:06:46.402312] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-03 18:06:46.402355] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-03 18:06:46.402436] [info] {"uuid":"b2a344ed-fdad-4758-bcec-883f30a14b4c","changeType":"edit","entity":"service","entityId":157,"message":null,"clientId":2,"eventName":"service.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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":{"id":157,"prepaid":false,"clientId":2,"status":1,"name":"INTERMEDIO","fullAddress":"Chiapas 50, Dolores Hidalgo, 37800","street1":"Chiapas 50","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1570572,"addressGpsLon":-100.9398632,"servicePlanId":3,"servicePlanPeriodId":13,"price":500,"hasIndividualPrice":false,"totalPrice":500,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-06-03T00: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-06-03T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"INTERMEDIO","servicePlanPrice":500,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":12,"uploadSpeed":12,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"b04fe4ec-e6e4-4202-8dbc-bec31ac1a21d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"invoiceData":null,"paymentData":null} - -Actualizando estado del servicio - -Nombre del cliente al que se va a actualizar el estado del servicio: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Estado":"\ud83d\udfe2 Activo","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 03\/06\/2025 12:06"}} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲466.67 pendientes","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo","Fecha Ultima Actualizacion":"📆🔄️ 03/06/2025 12:06","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"03/06/2025 12:03\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-03 18:06:51.154616] [info] ID correspondiente a 'passwordAntenaCliente': 17 - -[2025-06-03 18:06:51.154742] [info] El valor de passwordAntenaValue es null o cadena vacía, se manda llamar la función getVaultCredentials - -[2025-06-03 18:06:51.154766] [info] El valor de password es: gYAIEK:Be}SK*01z5+/V - -[2025-06-03 18:06:51.311961] [info] Se actualizó el custom attribute del cliente 2 - -[2025-06-03 18:06:51.312258] [info] Se actualizó el atributo personalizado passwordAntenaCliente con el valor: gYAIEK:Be}SK*01z5+/V - -[2025-06-03 18:06:51.454783] [notice] Logging level set to:debug -[2025-06-03 18:06:51.454929] [debug] valor del webhook: {"uuid":"c02c74e5-cfe3-44c5-9f2b-5379c98ab6b9","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-06-03 18:06:51.540307] [debug] valor el evento recibido por webhook: client.edit - -[2025-06-03 18:06:51.540503] [debug] Valor de JSON: {"uuid":"c02c74e5-cfe3-44c5-9f2b-5379c98ab6b9","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-06-03 18:06:51.540688] [debug] Se actualiza a un cliente -[2025-06-03 18:06:51.540771] [debug] Valor de json_data: {"uuid":"c02c74e5-cfe3-44c5-9f2b-5379c98ab6b9","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} -[2025-06-03 18:06:51.594225] [info] ID correspondiente a 'passwordAntenaCliente': 17 - -[2025-06-03 18:06:51.594280] [info] El valor de passwordAntenaValue es: gYAIEK:Be}SK*01z5+/V - -[2025-06-03 18:06:51.594291] [info] Ya existe un valor de passwordAntenaValue: gYAIEK:Be}SK*01z5+/V - -[2025-06-03 18:06:51.594302] [debug] El cliente no cambió de potencial a cliente -[2025-06-03 18:06:51.594310] [debug] Validando claves dentro de entity y entityBeforeEdit -[2025-06-03 18:06:51.594317] [debug] Los datos entity y entityBeforeEdit contienen el campo tags -[2025-06-03 18:06:51.594325] [debug] Validando si la etiqueta STRIPE existe en entity pero no en entityBeforeEdit -[2025-06-03 18:06:51.594368] [debug] {"uuid":"c02c74e5-cfe3-44c5-9f2b-5379c98ab6b9","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":null} - -[2025-06-03 18:06:51.594440] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-03 18:06:51.594450] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"c02c74e5-cfe3-44c5-9f2b-5379c98ab6b9","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":625,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-05-16T09:49:31-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":728,"invoiceId":1818,"paymentId":625,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2466.67 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16\/05\/2025 09:49 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"03\/06\/2025 12:06\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 16\/05\/2025 09:49 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 03\/06\/2025 12:06","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲466.67 pendientes","Monto Ultimo Pago": "$ 300","Estado": "Activo","Fecha Ultimo Pago": " 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "03/06/2025 12:06","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲466.67 pendientes","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultima Actualizacion":"📆🔄️ 03/06/2025 12:06","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"03/06/2025 12:06\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲466.67 pendientes","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultima Actualizacion":"📆🔄️ 03/06/2025 12:06","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"03/06/2025 12:06\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-03 18:09:52.981587] [notice] Logging level set to:debug -[2025-06-03 18:09:52.981949] [debug] valor del webhook: {"uuid":"c3184dca-147e-4b55-9195-6a1843fb53a4","changeType":"edit","entity":"service","entityId":"157","eventName":"service.edit","extraData":{"entity":{"id":157,"prepaid":false,"clientId":2,"status":1,"name":"INTERMEDIO","fullAddress":"Chiapas 50, Dolores Hidalgo, 37800","street1":"Chiapas 50","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1570572,"addressGpsLon":-100.9398632,"servicePlanId":3,"servicePlanPeriodId":13,"price":500,"hasIndividualPrice":false,"totalPrice":500,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-06-03T00: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-06-03T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"INTERMEDIO","servicePlanPrice":500,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":12,"uploadSpeed":12,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"b04fe4ec-e6e4-4202-8dbc-bec31ac1a21d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":{"id":157,"prepaid":false,"clientId":2,"status":1,"name":"INTERMEDIO","fullAddress":"Chiapas 50, Dolores Hidalgo, 37800","street1":"Chiapas 50","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1570572,"addressGpsLon":-100.9398632,"servicePlanId":3,"servicePlanPeriodId":13,"price":500,"hasIndividualPrice":false,"totalPrice":500,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-06-03T00: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-06-03T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"INTERMEDIO","servicePlanPrice":500,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":12,"uploadSpeed":12,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"b04fe4ec-e6e4-4202-8dbc-bec31ac1a21d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]}}} - -[2025-06-03 18:09:53.111104] [debug] valor el evento recibido por webhook: service.edit - -[2025-06-03 18:09:53.111299] [debug] Valor de JSON: {"uuid":"c3184dca-147e-4b55-9195-6a1843fb53a4","changeType":"edit","entity":"service","entityId":"157","eventName":"service.edit","extraData":{"entity":{"id":157,"prepaid":false,"clientId":2,"status":1,"name":"INTERMEDIO","fullAddress":"Chiapas 50, Dolores Hidalgo, 37800","street1":"Chiapas 50","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1570572,"addressGpsLon":-100.9398632,"servicePlanId":3,"servicePlanPeriodId":13,"price":500,"hasIndividualPrice":false,"totalPrice":500,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-06-03T00: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-06-03T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"INTERMEDIO","servicePlanPrice":500,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":12,"uploadSpeed":12,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"b04fe4ec-e6e4-4202-8dbc-bec31ac1a21d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":{"id":157,"prepaid":false,"clientId":2,"status":1,"name":"INTERMEDIO","fullAddress":"Chiapas 50, Dolores Hidalgo, 37800","street1":"Chiapas 50","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1570572,"addressGpsLon":-100.9398632,"servicePlanId":3,"servicePlanPeriodId":13,"price":500,"hasIndividualPrice":false,"totalPrice":500,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-06-03T00: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-06-03T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"INTERMEDIO","servicePlanPrice":500,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":12,"uploadSpeed":12,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"b04fe4ec-e6e4-4202-8dbc-bec31ac1a21d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]}}} - -[2025-06-03 18:09:53.111566] [debug] Se editó el servicio a un cliente - -[2025-06-03 18:09:53.111674] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-03 18:09:53.111716] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-03 18:09:53.111810] [info] {"uuid":"c3184dca-147e-4b55-9195-6a1843fb53a4","changeType":"edit","entity":"service","entityId":157,"message":null,"clientId":2,"eventName":"service.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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":{"id":157,"prepaid":false,"clientId":2,"status":1,"name":"INTERMEDIO","fullAddress":"Chiapas 50, Dolores Hidalgo, 37800","street1":"Chiapas 50","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1570572,"addressGpsLon":-100.9398632,"servicePlanId":3,"servicePlanPeriodId":13,"price":500,"hasIndividualPrice":false,"totalPrice":500,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-06-03T00: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-06-03T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"INTERMEDIO","servicePlanPrice":500,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":12,"uploadSpeed":12,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"b04fe4ec-e6e4-4202-8dbc-bec31ac1a21d","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"invoiceData":null,"paymentData":null} - -Actualizando estado del servicio - -Nombre del cliente al que se va a actualizar el estado del servicio: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Estado":"\ud83d\udfe2 Activo","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 03\/06\/2025 12:09"}} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲466.67 pendientes","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo","Fecha Ultima Actualizacion":"📆🔄️ 03/06/2025 12:09","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"03/06/2025 12:06\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-03 18:09:54.957384] [info] ID correspondiente a 'passwordAntenaCliente': 17 - -[2025-06-03 18:09:54.957561] [info] El valor de passwordAntenaValue es null o cadena vacía, se manda llamar la función getVaultCredentials - -[2025-06-03 18:09:54.957609] [info] El valor de password es: gYAIEK:Be}SK*01z5+/V - -[2025-06-03 18:09:55.101398] [info] Se actualizó el custom attribute del cliente 2 - -[2025-06-03 18:09:55.101896] [info] Se actualizó el atributo personalizado passwordAntenaCliente con el valor: gYAIEK:Be}SK*01z5+/V - -[2025-06-03 18:09:55.222548] [notice] Logging level set to:debug -[2025-06-03 18:09:55.222706] [debug] valor del webhook: {"uuid":"923fdb4f-ee11-4ec0-92e8-84fb40b3e6d1","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-06-03 18:09:55.316936] [debug] valor el evento recibido por webhook: client.edit - -[2025-06-03 18:09:55.317164] [debug] Valor de JSON: {"uuid":"923fdb4f-ee11-4ec0-92e8-84fb40b3e6d1","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-06-03 18:09:55.317356] [debug] Se actualiza a un cliente -[2025-06-03 18:09:55.317435] [debug] Valor de json_data: {"uuid":"923fdb4f-ee11-4ec0-92e8-84fb40b3e6d1","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} -[2025-06-03 18:09:55.363538] [info] ID correspondiente a 'passwordAntenaCliente': 17 - -[2025-06-03 18:09:55.363681] [info] El valor de passwordAntenaValue es: gYAIEK:Be}SK*01z5+/V - -[2025-06-03 18:09:55.363732] [info] Ya existe un valor de passwordAntenaValue: gYAIEK:Be}SK*01z5+/V - -[2025-06-03 18:09:55.363774] [debug] El cliente no cambió de potencial a cliente -[2025-06-03 18:09:55.363810] [debug] Validando claves dentro de entity y entityBeforeEdit -[2025-06-03 18:09:55.363845] [debug] Los datos entity y entityBeforeEdit contienen el campo tags -[2025-06-03 18:09:55.363878] [debug] Validando si la etiqueta STRIPE existe en entity pero no en entityBeforeEdit -[2025-06-03 18:09:55.363951] [debug] {"uuid":"923fdb4f-ee11-4ec0-92e8-84fb40b3e6d1","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":null} - -[2025-06-03 18:09:55.364048] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-03 18:09:55.364088] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"923fdb4f-ee11-4ec0-92e8-84fb40b3e6d1","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":625,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-05-16T09:49:31-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":728,"invoiceId":1818,"paymentId":625,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2466.67 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16\/05\/2025 09:49 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"03\/06\/2025 12:09\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 16\/05\/2025 09:49 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 03\/06\/2025 12:09","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲466.67 pendientes","Monto Ultimo Pago": "$ 300","Estado": "Activo","Fecha Ultimo Pago": " 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "03/06/2025 12:09","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲466.67 pendientes","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultima Actualizacion":"📆🔄️ 03/06/2025 12:09","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"03/06/2025 12:09\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲466.67 pendientes","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultima Actualizacion":"📆🔄️ 03/06/2025 12:09","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"03/06/2025 12:09\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-03 18:12:35.085747] [notice] Logging level set to:debug -[2025-06-03 18:12:35.085844] [debug] valor del webhook: {"uuid":"af615030-7655-4d70-a2de-5b5c0398c059","changeType":"edit","entity":"service","entityId":"157","eventName":"service.edit","extraData":{"entity":{"id":157,"prepaid":false,"clientId":2,"status":1,"name":"INTERMEDIO","fullAddress":"Chiapas 50, Dolores Hidalgo, 37800","street1":"Chiapas 50","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1570572,"addressGpsLon":-100.9398632,"servicePlanId":3,"servicePlanPeriodId":13,"price":500,"hasIndividualPrice":false,"totalPrice":500,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-06-03T00: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-06-03T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"INTERMEDIO","servicePlanPrice":500,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":12,"uploadSpeed":12,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"b04fe4ec-e6e4-4202-8dbc-bec31ac1a21d","attributes":[{"id":"6eb52ebd-1ce3-4a86-894d-4bdea1d6f9f8","serviceId":157,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"1","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":{"id":157,"prepaid":false,"clientId":2,"status":1,"name":"INTERMEDIO","fullAddress":"Chiapas 50, Dolores Hidalgo, 37800","street1":"Chiapas 50","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1570572,"addressGpsLon":-100.9398632,"servicePlanId":3,"servicePlanPeriodId":13,"price":500,"hasIndividualPrice":false,"totalPrice":500,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-06-03T00: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-06-03T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"INTERMEDIO","servicePlanPrice":500,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":12,"uploadSpeed":12,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"b04fe4ec-e6e4-4202-8dbc-bec31ac1a21d","attributes":[{"id":"6eb52ebd-1ce3-4a86-894d-4bdea1d6f9f8","serviceId":157,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]}}} - -[2025-06-03 18:12:35.230144] [debug] valor el evento recibido por webhook: service.edit - -[2025-06-03 18:12:35.230221] [debug] Valor de JSON: {"uuid":"af615030-7655-4d70-a2de-5b5c0398c059","changeType":"edit","entity":"service","entityId":"157","eventName":"service.edit","extraData":{"entity":{"id":157,"prepaid":false,"clientId":2,"status":1,"name":"INTERMEDIO","fullAddress":"Chiapas 50, Dolores Hidalgo, 37800","street1":"Chiapas 50","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1570572,"addressGpsLon":-100.9398632,"servicePlanId":3,"servicePlanPeriodId":13,"price":500,"hasIndividualPrice":false,"totalPrice":500,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-06-03T00: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-06-03T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"INTERMEDIO","servicePlanPrice":500,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":12,"uploadSpeed":12,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"b04fe4ec-e6e4-4202-8dbc-bec31ac1a21d","attributes":[{"id":"6eb52ebd-1ce3-4a86-894d-4bdea1d6f9f8","serviceId":157,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"1","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":{"id":157,"prepaid":false,"clientId":2,"status":1,"name":"INTERMEDIO","fullAddress":"Chiapas 50, Dolores Hidalgo, 37800","street1":"Chiapas 50","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1570572,"addressGpsLon":-100.9398632,"servicePlanId":3,"servicePlanPeriodId":13,"price":500,"hasIndividualPrice":false,"totalPrice":500,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-06-03T00: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-06-03T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"INTERMEDIO","servicePlanPrice":500,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":12,"uploadSpeed":12,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"b04fe4ec-e6e4-4202-8dbc-bec31ac1a21d","attributes":[{"id":"6eb52ebd-1ce3-4a86-894d-4bdea1d6f9f8","serviceId":157,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]}}} - -[2025-06-03 18:12:35.230451] [debug] Se editó el servicio a un cliente - -[2025-06-03 18:12:35.230532] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-03 18:12:35.230547] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-03 18:12:35.230607] [info] {"uuid":"af615030-7655-4d70-a2de-5b5c0398c059","changeType":"edit","entity":"service","entityId":157,"message":null,"clientId":2,"eventName":"service.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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":{"id":157,"prepaid":false,"clientId":2,"status":1,"name":"INTERMEDIO","fullAddress":"Chiapas 50, Dolores Hidalgo, 37800","street1":"Chiapas 50","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1570572,"addressGpsLon":-100.9398632,"servicePlanId":3,"servicePlanPeriodId":13,"price":500,"hasIndividualPrice":false,"totalPrice":500,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-06-03T00: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-06-03T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"INTERMEDIO","servicePlanPrice":500,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":12,"uploadSpeed":12,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"b04fe4ec-e6e4-4202-8dbc-bec31ac1a21d","attributes":[{"id":"6eb52ebd-1ce3-4a86-894d-4bdea1d6f9f8","serviceId":157,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"1","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"invoiceData":null,"paymentData":null} - -Actualizando estado del servicio - -Nombre del cliente al que se va a actualizar el estado del servicio: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Estado":"\ud83d\udfe2 Activo","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 03\/06\/2025 12:12"}} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲466.67 pendientes","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo","Fecha Ultima Actualizacion":"📆🔄️ 03/06/2025 12:12","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"03/06/2025 12:09\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-03 18:12:37.191597] [info] ID correspondiente a 'passwordAntenaCliente': 17 - -[2025-06-03 18:12:37.191718] [info] El valor de passwordAntenaValue es null o cadena vacía, se manda llamar la función getVaultCredentials - -[2025-06-03 18:12:37.191734] [info] El valor de password es: gYAIEK:Be}SK*01z5+/V - -[2025-06-03 18:12:37.351368] [info] Se actualizó el custom attribute del cliente 2 - -[2025-06-03 18:12:37.351850] [info] Se actualizó el atributo personalizado passwordAntenaCliente con el valor: gYAIEK:Be}SK*01z5+/V - -[2025-06-03 18:12:37.494364] [notice] Logging level set to:debug -[2025-06-03 18:12:37.494446] [debug] valor del webhook: {"uuid":"6509c022-ad77-401a-91f4-9f54e98ea3c6","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-06-03 18:12:37.567854] [debug] valor el evento recibido por webhook: client.edit - -[2025-06-03 18:12:37.567955] [debug] Valor de JSON: {"uuid":"6509c022-ad77-401a-91f4-9f54e98ea3c6","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-06-03 18:12:37.568064] [debug] Se actualiza a un cliente -[2025-06-03 18:12:37.568118] [debug] Valor de json_data: {"uuid":"6509c022-ad77-401a-91f4-9f54e98ea3c6","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} -[2025-06-03 18:12:37.612740] [info] ID correspondiente a 'passwordAntenaCliente': 17 - -[2025-06-03 18:12:37.612875] [info] El valor de passwordAntenaValue es: gYAIEK:Be}SK*01z5+/V - -[2025-06-03 18:12:37.612921] [info] Ya existe un valor de passwordAntenaValue: gYAIEK:Be}SK*01z5+/V - -[2025-06-03 18:12:37.612967] [debug] El cliente no cambió de potencial a cliente -[2025-06-03 18:12:37.613004] [debug] Validando claves dentro de entity y entityBeforeEdit -[2025-06-03 18:12:37.613039] [debug] Los datos entity y entityBeforeEdit contienen el campo tags -[2025-06-03 18:12:37.613073] [debug] Validando si la etiqueta STRIPE existe en entity pero no en entityBeforeEdit -[2025-06-03 18:12:37.613141] [debug] {"uuid":"6509c022-ad77-401a-91f4-9f54e98ea3c6","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":null} - -[2025-06-03 18:12:37.613212] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-03 18:12:37.613249] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"6509c022-ad77-401a-91f4-9f54e98ea3c6","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":625,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-05-16T09:49:31-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":728,"invoiceId":1818,"paymentId":625,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2466.67 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16\/05\/2025 09:49 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"03\/06\/2025 12:12\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 16\/05\/2025 09:49 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 03\/06\/2025 12:12","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲466.67 pendientes","Monto Ultimo Pago": "$ 300","Estado": "Activo","Fecha Ultimo Pago": " 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "03/06/2025 12:12","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲466.67 pendientes","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultima Actualizacion":"📆🔄️ 03/06/2025 12:12","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"03/06/2025 12:12\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲466.67 pendientes","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultima Actualizacion":"📆🔄️ 03/06/2025 12:12","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"03/06/2025 12:12\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-04 6:25:02.856463] [notice] Logging level set to:debug -[2025-06-04 6:25:02.856550] [debug] valor del webhook: {"uuid":"14af8d9c-41fe-4f9d-b63c-55f773862e9b","changeType":"overdue","entity":"invoice","entityId":"1939","eventName":"invoice.overdue","extraData":{"entity":{"id":1939,"clientId":122,"number":"001889","createdDate":"2025-05-20T10:00:01-0600","dueDate":"2025-06-03T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-18T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1942,"type":"service","label":"plan300 20\/04\/2025 \u2013 19\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":107,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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":"MARQUEZ GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PLTARCO 8, LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-06-04 6:25:03.030020] [debug] valor el evento recibido por webhook: invoice.overdue - -[2025-06-04 6:25:03.030081] [debug] Valor de JSON: {"uuid":"14af8d9c-41fe-4f9d-b63c-55f773862e9b","changeType":"overdue","entity":"invoice","entityId":"1939","eventName":"invoice.overdue","extraData":{"entity":{"id":1939,"clientId":122,"number":"001889","createdDate":"2025-05-20T10:00:01-0600","dueDate":"2025-06-03T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-18T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1942,"type":"service","label":"plan300 20\/04\/2025 \u2013 19\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":107,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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":"MARQUEZ GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PLTARCO 8, LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-06-04 6:25:03.030298] [debug] Factura vencida - -[2025-06-04 6:25:03.030343] [debug] datos del notification para el invoice overdue:{"uuid":"14af8d9c-41fe-4f9d-b63c-55f773862e9b","changeType":"overdue","entity":"invoice","entityId":1939,"message":null,"clientId":122,"eventName":"invoice.overdue","clientData":{"id":122,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"PLTARCO 8, LINDAVISTA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"PLTARCO 8, LINDAVISTA, 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-05-20T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JUDITH","lastName":"MARQUEZ GONZALEZ","username":null,"contacts":[{"id":126,"clientId":122,"email":null,"phone":"55667788","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":125,"clientId":122,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_Q8uWOC8sjQem1K","clientZoneVisible":true},{"id":126,"clientId":122,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180296730137251","clientZoneVisible":true}],"accountBalance":-5490,"accountCredit":0,"accountOutstanding":5490,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef5350","addressGpsLat":21.171581132292,"addressGpsLon":-100.9286433436,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1939,"clientId":122,"number":"001889","createdDate":"2025-05-20T10:00:01-0600","dueDate":"2025-06-03T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-18T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1942,"type":"service","label":"plan300 20\/04\/2025 \u2013 19\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":107,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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":"MARQUEZ GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PLTARCO 8, LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-06-04 6:25:03.030375] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** - -[2025-06-04 6:25:03.030493] [debug] Numero de cel obtenido - -[2025-06-04 6:25:03.030504] [warning] No se encontró un teléfono celular válido para el cliente: 122 -[2025-06-04 6:25:03.190370] [notice] Logging level set to:debug -[2025-06-04 6:25:03.190421] [debug] valor del webhook: {"uuid":"8d642a15-5790-4721-8958-e6680f45ec29","changeType":"overdue","entity":"invoice","entityId":"1940","eventName":"invoice.overdue","extraData":{"entity":{"id":1940,"clientId":121,"number":"001890","createdDate":"2025-05-20T10:00:01-0600","dueDate":"2025-06-03T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-18T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1943,"type":"service","label":"INTERMEDIO 20\/04\/2025 \u2013 19\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":106,"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":"flor","clientLastName":"marquez gonzalez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"plutarco elias calles 8,lindavista","clientStreet2":"enfrente del parque","clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-06-04 6:25:03.418226] [debug] valor el evento recibido por webhook: invoice.overdue - -[2025-06-04 6:25:03.418284] [debug] Valor de JSON: {"uuid":"8d642a15-5790-4721-8958-e6680f45ec29","changeType":"overdue","entity":"invoice","entityId":"1940","eventName":"invoice.overdue","extraData":{"entity":{"id":1940,"clientId":121,"number":"001890","createdDate":"2025-05-20T10:00:01-0600","dueDate":"2025-06-03T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-18T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1943,"type":"service","label":"INTERMEDIO 20\/04\/2025 \u2013 19\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":106,"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":"flor","clientLastName":"marquez gonzalez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"plutarco elias calles 8,lindavista","clientStreet2":"enfrente del parque","clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-06-04 6:25:03.418404] [debug] Factura vencida - -[2025-06-04 6:25:03.418448] [debug] datos del notification para el invoice overdue:{"uuid":"8d642a15-5790-4721-8958-e6680f45ec29","changeType":"overdue","entity":"invoice","entityId":1940,"message":null,"clientId":121,"eventName":"invoice.overdue","clientData":{"id":121,"userIdent":"-105.998","previousIsp":"angel","isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"plutarco elias calles 8,lindavista","street2":"enfrente del parque","city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"plutarco elias calles 8,lindavista, 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":false,"invoiceMaturityDays":null,"stopServiceDue":false,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-05-20T00:00:00-0600","leadConvertedAt":"2024-05-20T13:45:39-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"flor","lastName":"marquez gonzalez","username":null,"contacts":[{"id":125,"clientId":121,"email":null,"phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":120,"clientId":121,"customAttributeId":2,"name":"CelularNotificaciones","key":"celularnotificaciones","value":"172.16.117.243","clientZoneVisible":true},{"id":121,"clientId":121,"customAttributeId":4,"name":"Whatsapp","key":"whatsapp","value":"Siip.567","clientZoneVisible":true},{"id":122,"clientId":121,"customAttributeId":5,"name":"uuid","key":"uuid","value":"admin1343","clientZoneVisible":true},{"id":123,"clientId":121,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"22372x9000055","clientZoneVisible":true},{"id":124,"clientId":121,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"21.9758566","clientZoneVisible":true}],"accountBalance":-5816.67,"accountCredit":0,"accountOutstanding":5816.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef5350","addressGpsLat":21.5,"addressGpsLon":-100,"isArchived":false,"generateProformaInvoices":false,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1940,"clientId":121,"number":"001890","createdDate":"2025-05-20T10:00:01-0600","dueDate":"2025-06-03T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-18T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1943,"type":"service","label":"INTERMEDIO 20\/04\/2025 \u2013 19\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":106,"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":"flor","clientLastName":"marquez gonzalez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"plutarco elias calles 8,lindavista","clientStreet2":"enfrente del parque","clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-06-04 6:25:03.418476] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** - -contac vacio -[2025-06-04 6:25:03.418572] [debug] Numero de cel obtenido - -[2025-06-04 6:25:03.418585] [warning] No se encontró un teléfono celular válido para el cliente: 121 -[2025-06-04 20:47:27.099831] [notice] Logging level set to:debug -[2025-06-04 20:47:27.099912] [debug] valor del webhook: {"uuid":"e6993dc7-80eb-43b9-8cd1-7df25d15fa34","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-06-04 20:47:27.180392] [debug] valor el evento recibido por webhook: client.edit - -[2025-06-04 20:47:27.180493] [debug] Valor de JSON: {"uuid":"e6993dc7-80eb-43b9-8cd1-7df25d15fa34","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-06-04 20:47:27.180753] [debug] Se actualiza a un cliente -[2025-06-04 20:47:27.180809] [debug] Valor de json_data: {"uuid":"e6993dc7-80eb-43b9-8cd1-7df25d15fa34","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} -[2025-06-04 20:47:27.231149] [info] ID correspondiente a 'passwordAntenaCliente': 17 - -[2025-06-04 20:47:27.231195] [info] El valor de passwordAntenaValue es: gYAIEK:Be}SK*01z5+/V - -[2025-06-04 20:47:27.231208] [info] Ya existe un valor de passwordAntenaValue: gYAIEK:Be}SK*01z5+/V - -[2025-06-04 20:47:27.231218] [debug] El cliente no cambió de potencial a cliente -[2025-06-04 20:47:27.231226] [debug] Validando claves dentro de entity y entityBeforeEdit -[2025-06-04 20:47:27.231234] [debug] Los datos entity y entityBeforeEdit contienen el campo tags -[2025-06-04 20:47:27.231240] [debug] Validando si la etiqueta STRIPE existe en entity pero no en entityBeforeEdit -[2025-06-04 20:47:27.231286] [debug] {"uuid":"e6993dc7-80eb-43b9-8cd1-7df25d15fa34","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","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":null,"addressGpsLon":null,"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":null} - -[2025-06-04 20:47:27.231447] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-04 20:47:27.231494] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"e6993dc7-80eb-43b9-8cd1-7df25d15fa34","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","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":null,"addressGpsLon":null,"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":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":625,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-05-16T09:49:31-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":728,"invoiceId":1818,"paymentId":625,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro Dolores","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2466.67 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16\/05\/2025 09:49 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"04\/06\/2025 14:47\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 16\/05\/2025 09:49 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/06\/2025 14:47","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲466.67 pendientes","Monto Ultimo Pago": "$ 300","Estado": "Activo","Fecha Ultimo Pago": " 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "04/06/2025 14:47","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Centro Dolores","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲466.67 pendientes","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultima Actualizacion":"📆🔄️ 04/06/2025 14:47","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"04/06/2025 14:47\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Centro Dolores","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲466.67 pendientes","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultima Actualizacion":"📆🔄️ 04/06/2025 14:47","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"04/06/2025 14:47\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-04 20:47:30.223315] [notice] Logging level set to:debug -[2025-06-04 20:47:30.223484] [debug] valor del webhook: {"uuid":"0c25193b-3182-4f5e-a9e7-740ac58ed33b","changeType":"edit","entity":"service","entityId":"152","eventName":"service.edit","extraData":{"entity":{"id":152,"prepaid":false,"clientId":2,"status":1,"name":"Basico 300","fullAddress":"Chiapas 31, Centro Dolores","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":"el may","addressGpsLat":null,"addressGpsLon":null,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00: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-03-25T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[{"id":"3a13b5e4-3282-480c-b897-2fcb4ea3e200","serviceId":152,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"},{"id":141,"startDate":"2025-03-15T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":153,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":152,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":151,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":150,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":154,"startDate":"2025-03-26T00:00:00-0600","endDate":"2025-04-11T00:00:00-0600"},{"id":162,"startDate":"2025-04-26T00:00:00-0600","endDate":"2025-05-16T00:00:00-0600"}],"surcharges":[]},"entityBeforeEdit":{"id":152,"prepaid":false,"clientId":2,"status":1,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":"el may","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00: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-03-25T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[{"id":"3a13b5e4-3282-480c-b897-2fcb4ea3e200","serviceId":152,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"},{"id":141,"startDate":"2025-03-15T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":153,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":152,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":151,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":150,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":154,"startDate":"2025-03-26T00:00:00-0600","endDate":"2025-04-11T00:00:00-0600"},{"id":162,"startDate":"2025-04-26T00:00:00-0600","endDate":"2025-05-16T00:00:00-0600"}],"surcharges":[]}}} - -[2025-06-04 20:47:30.374839] [debug] valor el evento recibido por webhook: service.edit - -[2025-06-04 20:47:30.375128] [debug] Valor de JSON: {"uuid":"0c25193b-3182-4f5e-a9e7-740ac58ed33b","changeType":"edit","entity":"service","entityId":"152","eventName":"service.edit","extraData":{"entity":{"id":152,"prepaid":false,"clientId":2,"status":1,"name":"Basico 300","fullAddress":"Chiapas 31, Centro Dolores","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":"el may","addressGpsLat":null,"addressGpsLon":null,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00: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-03-25T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[{"id":"3a13b5e4-3282-480c-b897-2fcb4ea3e200","serviceId":152,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"},{"id":141,"startDate":"2025-03-15T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":153,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":152,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":151,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":150,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":154,"startDate":"2025-03-26T00:00:00-0600","endDate":"2025-04-11T00:00:00-0600"},{"id":162,"startDate":"2025-04-26T00:00:00-0600","endDate":"2025-05-16T00:00:00-0600"}],"surcharges":[]},"entityBeforeEdit":{"id":152,"prepaid":false,"clientId":2,"status":1,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":"el may","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00: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-03-25T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[{"id":"3a13b5e4-3282-480c-b897-2fcb4ea3e200","serviceId":152,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"},{"id":141,"startDate":"2025-03-15T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":153,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":152,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":151,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":150,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":154,"startDate":"2025-03-26T00:00:00-0600","endDate":"2025-04-11T00:00:00-0600"},{"id":162,"startDate":"2025-04-26T00:00:00-0600","endDate":"2025-05-16T00:00:00-0600"}],"surcharges":[]}}} - -[2025-06-04 20:47:30.375313] [debug] Se editó el servicio a un cliente - -[2025-06-04 20:47:30.375395] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-04 20:47:30.375436] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-04 20:47:30.375519] [info] {"uuid":"0c25193b-3182-4f5e-a9e7-740ac58ed33b","changeType":"edit","entity":"service","entityId":152,"message":null,"clientId":2,"eventName":"service.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","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":{"id":152,"prepaid":false,"clientId":2,"status":1,"name":"Basico 300","fullAddress":"Chiapas 31, Centro Dolores","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":"el may","addressGpsLat":null,"addressGpsLon":null,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00: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-03-25T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[{"id":"3a13b5e4-3282-480c-b897-2fcb4ea3e200","serviceId":152,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"},{"id":141,"startDate":"2025-03-15T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":153,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":152,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":151,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":150,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":154,"startDate":"2025-03-26T00:00:00-0600","endDate":"2025-04-11T00:00:00-0600"},{"id":162,"startDate":"2025-04-26T00:00:00-0600","endDate":"2025-05-16T00:00:00-0600"}],"surcharges":[]},"invoiceData":null,"paymentData":null} - -Actualizando estado del servicio - -Nombre del cliente al que se va a actualizar el estado del servicio: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Estado":"\ud83d\udfe2 Activo","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/06\/2025 14:47"}} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Centro Dolores","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲466.67 pendientes","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo","Fecha Ultima Actualizacion":"📆🔄️ 04/06/2025 14:47","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"04/06/2025 14:47\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-04 20:47:32.070436] [info] ID correspondiente a 'passwordAntenaCliente': 17 - -[2025-06-04 20:47:32.070557] [info] El valor de passwordAntenaValue es null o cadena vacía, se manda llamar la función getVaultCredentials - -[2025-06-04 20:47:32.070575] [info] El valor de password es: gYAIEK:Be}SK*01z5+/V - -[2025-06-04 20:47:32.227475] [info] Se actualizó el custom attribute del cliente 2 - -[2025-06-04 20:47:32.227900] [info] Se actualizó el atributo personalizado passwordAntenaCliente con el valor: gYAIEK:Be}SK*01z5+/V - -[2025-06-04 20:47:32.342335] [notice] Logging level set to:debug -[2025-06-04 20:47:32.342411] [debug] valor del webhook: {"uuid":"0d4f521b-4cd4-4af3-9140-6e9f6c2819cb","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-06-04 20:47:32.420232] [debug] valor el evento recibido por webhook: client.edit - -[2025-06-04 20:47:32.420444] [debug] Valor de JSON: {"uuid":"0d4f521b-4cd4-4af3-9140-6e9f6c2819cb","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-06-04 20:47:32.420615] [debug] Se actualiza a un cliente -[2025-06-04 20:47:32.420698] [debug] Valor de json_data: {"uuid":"0d4f521b-4cd4-4af3-9140-6e9f6c2819cb","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} -[2025-06-04 20:47:32.474814] [info] ID correspondiente a 'passwordAntenaCliente': 17 - -[2025-06-04 20:47:32.474953] [info] El valor de passwordAntenaValue es: gYAIEK:Be}SK*01z5+/V - -[2025-06-04 20:47:32.475019] [info] Ya existe un valor de passwordAntenaValue: gYAIEK:Be}SK*01z5+/V - -[2025-06-04 20:47:32.475060] [debug] El cliente no cambió de potencial a cliente -[2025-06-04 20:47:32.475097] [debug] Validando claves dentro de entity y entityBeforeEdit -[2025-06-04 20:47:32.475131] [debug] Los datos entity y entityBeforeEdit contienen el campo tags -[2025-06-04 20:47:32.475167] [debug] Validando si la etiqueta STRIPE existe en entity pero no en entityBeforeEdit -[2025-06-04 20:47:32.475238] [debug] {"uuid":"0d4f521b-4cd4-4af3-9140-6e9f6c2819cb","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","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":null,"addressGpsLon":null,"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":null} - -[2025-06-04 20:47:32.475300] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-04 20:47:32.475337] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"0d4f521b-4cd4-4af3-9140-6e9f6c2819cb","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","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":null,"addressGpsLon":null,"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":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":625,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-05-16T09:49:31-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":728,"invoiceId":1818,"paymentId":625,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro Dolores","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2466.67 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16\/05\/2025 09:49 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"04\/06\/2025 14:47\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 16\/05\/2025 09:49 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/06\/2025 14:47","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲466.67 pendientes","Monto Ultimo Pago": "$ 300","Estado": "Activo","Fecha Ultimo Pago": " 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "04/06/2025 14:47","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Centro Dolores","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲466.67 pendientes","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultima Actualizacion":"📆🔄️ 04/06/2025 14:47","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"04/06/2025 14:47\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Centro Dolores","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲466.67 pendientes","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultima Actualizacion":"📆🔄️ 04/06/2025 14:47","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"04/06/2025 14:47\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-04 20:58:32.298691] [notice] Logging level set to:debug -[2025-06-04 20:58:32.298780] [debug] valor del webhook: {"uuid":"23500a4b-e931-4927-a438-10b7b7a88d1e","changeType":"insert","entity":"job","entityId":"55","eventName":"job.add","extraData":{"entity":{"id":55,"title":"Ir a checar instalaci\u00f3n","description":"Buen servicio para la dama","assignedUserId":null,"clientId":156,"date":null,"duration":60,"status":0,"address":"34 Yucat\u00e1n, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":null}} - -[2025-06-04 20:58:32.325076] [debug] valor el evento recibido por webhook: job.add - -[2025-06-04 20:58:32.325130] [debug] Valor de JSON: {"uuid":"23500a4b-e931-4927-a438-10b7b7a88d1e","changeType":"insert","entity":"job","entityId":"55","eventName":"job.add","extraData":{"entity":{"id":55,"title":"Ir a checar instalaci\u00f3n","description":"Buen servicio para la dama","assignedUserId":null,"clientId":156,"date":null,"duration":60,"status":0,"address":"34 Yucat\u00e1n, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":null}} - -[2025-06-04 20:58:32.325340] [debug] Se ha agregado un nuevo trabajo - -[2025-06-04 20:58:32.325367] [debug] Valor de json_data: {"uuid":"23500a4b-e931-4927-a438-10b7b7a88d1e","changeType":"insert","entity":"job","entityId":"55","eventName":"job.add","extraData":{"entity":{"id":55,"title":"Ir a checar instalaci\u00f3n","description":"Buen servicio para la dama","assignedUserId":null,"clientId":156,"date":null,"duration":60,"status":0,"address":"34 Yucat\u00e1n, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":null}} -[2025-06-04 20:58:32.387058] [debug] Respuesta de la API al agregar el trabajo: {"id":55,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Buen servicio para la dama","assignedUserId":null,"clientId":156,"date":null,"duration":60,"status":0,"address":"34 Yucat\u00e1n, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]} - -[2025-06-04 20:58:32.528320] [notice] Logging level set to:debug -[2025-06-04 20:58:32.528487] [debug] valor del webhook: {"uuid":"d54a64f6-8026-4107-b0d3-6ac8538f2ad0","changeType":"edit","entity":"job","entityId":"55","eventName":"job.edit","extraData":{"entity":{"id":55,"title":"Ir a checar instalaci\u00f3n","description":"Buen servicio para la dama","assignedUserId":null,"clientId":156,"date":null,"duration":60,"status":0,"address":"34 Yucat\u00e1n, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":55,"title":"Ir a checar instalaci\u00f3n","description":"Buen servicio para la dama","assignedUserId":null,"clientId":156,"date":null,"duration":60,"status":0,"address":"34 Yucat\u00e1n, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 20:58:32.558199] [debug] valor el evento recibido por webhook: job.edit - -[2025-06-04 20:58:32.558346] [debug] Valor de JSON: {"uuid":"d54a64f6-8026-4107-b0d3-6ac8538f2ad0","changeType":"edit","entity":"job","entityId":"55","eventName":"job.edit","extraData":{"entity":{"id":55,"title":"Ir a checar instalaci\u00f3n","description":"Buen servicio para la dama","assignedUserId":null,"clientId":156,"date":null,"duration":60,"status":0,"address":"34 Yucat\u00e1n, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":55,"title":"Ir a checar instalaci\u00f3n","description":"Buen servicio para la dama","assignedUserId":null,"clientId":156,"date":null,"duration":60,"status":0,"address":"34 Yucat\u00e1n, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 20:58:32.558568] [debug] Se actualiza un trabajo - -[2025-06-04 20:58:32.558619] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-06-04 20:58:32.674511] [notice] Logging level set to:debug -[2025-06-04 20:58:32.674771] [debug] valor del webhook: {"uuid":"8b9b6818-ab1f-44e1-b2be-76bec123517d","changeType":"edit","entity":"job","entityId":"55","eventName":"job.edit","extraData":{"entity":{"id":55,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Buen servicio para la dama","assignedUserId":null,"clientId":156,"date":null,"duration":60,"status":0,"address":"34 Yucat\u00e1n, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":55,"title":"Ir a checar instalaci\u00f3n","description":"Buen servicio para la dama","assignedUserId":null,"clientId":156,"date":null,"duration":60,"status":0,"address":"34 Yucat\u00e1n, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 20:58:32.703716] [debug] valor el evento recibido por webhook: job.edit - -[2025-06-04 20:58:32.703850] [debug] Valor de JSON: {"uuid":"8b9b6818-ab1f-44e1-b2be-76bec123517d","changeType":"edit","entity":"job","entityId":"55","eventName":"job.edit","extraData":{"entity":{"id":55,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Buen servicio para la dama","assignedUserId":null,"clientId":156,"date":null,"duration":60,"status":0,"address":"34 Yucat\u00e1n, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":55,"title":"Ir a checar instalaci\u00f3n","description":"Buen servicio para la dama","assignedUserId":null,"clientId":156,"date":null,"duration":60,"status":0,"address":"34 Yucat\u00e1n, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 20:58:32.703975] [debug] Se actualiza un trabajo - -[2025-06-04 20:58:32.704020] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-06-04 20:58:51.179948] [notice] Logging level set to:debug -[2025-06-04 20:58:51.180274] [debug] valor del webhook: {"uuid":"0be09946-1364-4991-8711-53004fe1c261","changeType":"edit","entity":"job","entityId":"55","eventName":"job.edit","extraData":{"entity":{"id":55,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Buen servicio para la dama","assignedUserId":1131,"clientId":156,"date":"2025-06-04T15:00:47-0600","duration":60,"status":0,"address":"34 Yucat\u00e1n, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":55,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Buen servicio para la dama","assignedUserId":null,"clientId":156,"date":null,"duration":60,"status":0,"address":"34 Yucat\u00e1n, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 20:58:51.209093] [debug] valor el evento recibido por webhook: job.edit - -[2025-06-04 20:58:51.209270] [debug] Valor de JSON: {"uuid":"0be09946-1364-4991-8711-53004fe1c261","changeType":"edit","entity":"job","entityId":"55","eventName":"job.edit","extraData":{"entity":{"id":55,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Buen servicio para la dama","assignedUserId":1131,"clientId":156,"date":"2025-06-04T15:00:47-0600","duration":60,"status":0,"address":"34 Yucat\u00e1n, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":55,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Buen servicio para la dama","assignedUserId":null,"clientId":156,"date":null,"duration":60,"status":0,"address":"34 Yucat\u00e1n, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 20:58:51.209522] [debug] Se actualiza un trabajo - -[2025-06-04 20:58:51.209583] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-06-04 20:58:53.594706] [notice] Logging level set to:debug -[2025-06-04 20:58:53.595314] [debug] valor del webhook: {"uuid":"f40dfc53-171d-4b5b-ab9d-f16a00497d2a","changeType":"edit","entity":"job","entityId":"55","eventName":"job.edit","extraData":{"entity":{"id":55,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Buen servicio para la dama","assignedUserId":1131,"clientId":156,"date":"2025-06-04T15:00:47-0600","duration":60,"status":1,"address":"34 Yucat\u00e1n, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":55,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Buen servicio para la dama","assignedUserId":1131,"clientId":156,"date":"2025-06-04T15:00:47-0600","duration":60,"status":0,"address":"34 Yucat\u00e1n, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 20:58:53.625649] [debug] valor el evento recibido por webhook: job.edit - -[2025-06-04 20:58:53.625848] [debug] Valor de JSON: {"uuid":"f40dfc53-171d-4b5b-ab9d-f16a00497d2a","changeType":"edit","entity":"job","entityId":"55","eventName":"job.edit","extraData":{"entity":{"id":55,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Buen servicio para la dama","assignedUserId":1131,"clientId":156,"date":"2025-06-04T15:00:47-0600","duration":60,"status":1,"address":"34 Yucat\u00e1n, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":55,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Buen servicio para la dama","assignedUserId":1131,"clientId":156,"date":"2025-06-04T15:00:47-0600","duration":60,"status":0,"address":"34 Yucat\u00e1n, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 20:58:53.626055] [debug] Se actualiza un trabajo - -[2025-06-04 20:58:53.626135] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-06-04 20:58:53.626202] [debug] El instalador cambió de null a un valor -[2025-06-04 20:58:53.626277] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-06-04 20:58:53.626405] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"f40dfc53-171d-4b5b-ab9d-f16a00497d2a","changeType":"edit","entity":"job","entityId":"55","eventName":"job.edit","extraData":{"entity":{"id":55,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Buen servicio para la dama","assignedUserId":1131,"clientId":156,"date":"2025-06-04T15:00:47-0600","duration":60,"status":1,"address":"34 Yucat\u00e1n, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":55,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Buen servicio para la dama","assignedUserId":1131,"clientId":156,"date":"2025-06-04T15:00:47-0600","duration":60,"status":0,"address":"34 Yucat\u00e1n, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 20:58:53.626497] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"f40dfc53-171d-4b5b-ab9d-f16a00497d2a","changeType":"edit","entity":"job","entityId":"55","eventName":"job.edit","extraData":{"entity":{"id":55,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Buen servicio para la dama","assignedUserId":1131,"clientId":156,"date":"2025-06-04T15:00:47-0600","duration":60,"status":1,"address":"34 Yucat\u00e1n, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":55,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Buen servicio para la dama","assignedUserId":1131,"clientId":156,"date":"2025-06-04T15:00:47-0600","duration":60,"status":0,"address":"34 Yucat\u00e1n, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 20:58:53.626564] [debug] Valor de $reprogramming en verifyJobActionToDo: false - -[2025-06-04 20:58:53.626625] [debug] Valor de $changeInstaller en verifyJobActionToDo: false - -[2025-06-04 20:58:53.626696] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Gricelda López", - "whatsapp": "4181817609" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - } - ] -} - -[2025-06-04 20:58:53.659657] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1131,"unmsId":"e41322b0-ad84-4f0d-9fc1-8af290d2a31c","email":"avalos.mgla@gmail.com","firstName":"Mar\u00eda Grielda","lastName":"L\u00f3pez Avalos","username":"gricelda","avatarColor":"#ef5350","isActive":true} - -[2025-06-04 20:58:53.659876] [warning] No se encontró un número de WhatsApp para el instalador con ID 1019 -[2025-06-04 20:58:53.689924] [debug] Valor de $installerFullName: María Grielda López Avalos - -[2025-06-04 20:58:53.751805] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 4181817609 - -[2025-06-04 20:58:53.751929] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["4181817609"] - -[2025-06-04 20:58:53.752049] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181817609"] - -[2025-06-04 20:58:53.752141] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -Datos de la notificación de trabajo: {"clientFullName":"Maria Gricelda L\u00f3pez Avalos","jobId":"55","date":"*04\/06\/2025*","installerName":"Mar\u00eda Grielda L\u00f3pez Avalos"} - -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": "5214181817609", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👤 *Maria Gricelda López Avalos*", "*#️⃣55*", "🗓️ *04/06/2025*", "👷🏻‍♂️➡️ *María Grielda López Avalos*", "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":"a27e8528964b4f8f8cd3b3b15366e32d","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-06-04 20:58:54.562824] [info] Notificación enviada correctamente al cliente con teléfono 4181817609 después de 1 intento(s). - -[2025-06-04 20:58:54.563117] [debug] Valor de $title en verifyJobActionToDo: [NOTIFICACION-PENDIENTE]Ir a checar instalación - -[2025-06-04 20:58:54.641752] [debug] Valor de $title después de quitar el prefijo en verifyJobActionToDo: Ir a checar instalación - -[2025-06-04 20:58:54.641882] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: false - -[2025-06-04 20:58:54.641928] [debug] No se cambió el instalador - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"Mar\u00eda Grielda L\u00f3pez Avalos","clientFullName":"Maria Gricelda L\u00f3pez Avalos [ID:156]","jobId":"55","clientAddress":"Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181817609","date":"*04\/06\/2025*","jobDescription":"Buen servicio para la dama","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1562598,-100.9370894"} - -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": "", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ *María Grielda López Avalos* se te ha asignado una tarea con folio #️⃣ *55*, del cliente 👤 *Maria Gricelda López Avalos [ID:156]*, para el 🗓️ *04/06/2025*", "5214181817609", "https://www.google.com/maps?q=21.1562598,-100.9370894", "gYAIEK:Be}SK*01z5+/V"], - "template_uuid": "88eeb6420a214fd8870dd28d741021c4", - "optin_contact": true - } -Response del CallBell: {"error":{"to":["can't be blank"]}} -Error al enviar la notificación: {"to":["can't be blank"]} - -[2025-06-04 20:58:56.412914] [warning] Intento 1 fallido para enviar notificación a 4181817609. Reintentando... - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"Mar\u00eda Grielda L\u00f3pez Avalos","clientFullName":"Maria Gricelda L\u00f3pez Avalos [ID:156]","jobId":"55","clientAddress":"Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181817609","date":"*04\/06\/2025*","jobDescription":"Buen servicio para la dama","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1562598,-100.9370894"} - -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": "", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ *María Grielda López Avalos* se te ha asignado una tarea con folio #️⃣ *55*, del cliente 👤 *Maria Gricelda López Avalos [ID:156]*, para el 🗓️ *04/06/2025*", "5214181817609", "https://www.google.com/maps?q=21.1562598,-100.9370894", "gYAIEK:Be}SK*01z5+/V"], - "template_uuid": "88eeb6420a214fd8870dd28d741021c4", - "optin_contact": true - } -Response del CallBell: {"error":{"to":["can't be blank"]}} -Error al enviar la notificación: {"to":["can't be blank"]} - -[2025-06-04 20:58:58.158371] [warning] Intento 2 fallido para enviar notificación a 4181817609. Reintentando... - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"Mar\u00eda Grielda L\u00f3pez Avalos","clientFullName":"Maria Gricelda L\u00f3pez Avalos [ID:156]","jobId":"55","clientAddress":"Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181817609","date":"*04\/06\/2025*","jobDescription":"Buen servicio para la dama","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1562598,-100.9370894"} - -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": "", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ *María Grielda López Avalos* se te ha asignado una tarea con folio #️⃣ *55*, del cliente 👤 *Maria Gricelda López Avalos [ID:156]*, para el 🗓️ *04/06/2025*", "5214181817609", "https://www.google.com/maps?q=21.1562598,-100.9370894", "gYAIEK:Be}SK*01z5+/V"], - "template_uuid": "88eeb6420a214fd8870dd28d741021c4", - "optin_contact": true - } -Response del CallBell: {"error":{"to":["can't be blank"]}} -Error al enviar la notificación: {"to":["can't be blank"]} - -[2025-06-04 20:58:59.908895] [warning] Intento 3 fallido para enviar notificación a 4181817609. Reintentando... - -[2025-06-04 20:59:00.032511] [notice] Logging level set to:debug -[2025-06-04 20:59:00.032798] [debug] valor del webhook: {"uuid":"ee8eb906-e0fe-4c07-b47a-45a5c2b86cfe","changeType":"edit","entity":"job","entityId":"55","eventName":"job.edit","extraData":{"entity":{"id":55,"title":"Ir a checar instalaci\u00f3n","description":"Buen servicio para la dama","assignedUserId":1131,"clientId":156,"date":"2025-06-04T15:00:47-0600","duration":60,"status":1,"address":"34 Yucat\u00e1n, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":55,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Buen servicio para la dama","assignedUserId":1131,"clientId":156,"date":"2025-06-04T15:00:47-0600","duration":60,"status":1,"address":"34 Yucat\u00e1n, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 20:59:00.067224] [debug] valor el evento recibido por webhook: job.edit - -[2025-06-04 20:59:00.067368] [debug] Valor de JSON: {"uuid":"ee8eb906-e0fe-4c07-b47a-45a5c2b86cfe","changeType":"edit","entity":"job","entityId":"55","eventName":"job.edit","extraData":{"entity":{"id":55,"title":"Ir a checar instalaci\u00f3n","description":"Buen servicio para la dama","assignedUserId":1131,"clientId":156,"date":"2025-06-04T15:00:47-0600","duration":60,"status":1,"address":"34 Yucat\u00e1n, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":55,"title":"[NOTIFICACION-PENDIENTE]Ir a checar instalaci\u00f3n","description":"Buen servicio para la dama","assignedUserId":1131,"clientId":156,"date":"2025-06-04T15:00:47-0600","duration":60,"status":1,"address":"34 Yucat\u00e1n, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 20:59:00.067522] [debug] Se actualiza un trabajo - -[2025-06-04 20:59:00.067569] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-06-04 20:59:00.067615] [debug] No hubo cambio en el instalador ni en la fecha -[2025-06-04 20:59:43.271218] [notice] Logging level set to:debug -[2025-06-04 20:59:43.271327] [debug] valor del webhook: {"uuid":"1d6d1250-110c-4c63-91a3-03f811e5dada","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-04T16:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-04T16:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 20:59:43.300298] [debug] valor el evento recibido por webhook: job.edit - -[2025-06-04 20:59:43.300368] [debug] Valor de JSON: {"uuid":"1d6d1250-110c-4c63-91a3-03f811e5dada","changeType":"edit","entity":"job","entityId":"54","eventName":"job.edit","extraData":{"entity":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-04T16:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":54,"title":"Ir a checar instalaci\u00f3n","description":"Andan mal esos equipos","assignedUserId":1019,"clientId":2,"date":"2025-06-04T16:00:00-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 20:59:43.300808] [debug] Se actualiza un trabajo - -[2025-06-04 20:59:43.300837] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-06-04 21:00:01.198338] [notice] Logging level set to:debug -[2025-06-04 21:00:01.198434] [debug] valor del webhook: {"uuid":"cb8e0c6a-9f6d-4660-9a54-82b0b9c2c396","changeType":"insert","entity":"job","entityId":"56","eventName":"job.add","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":null}} - -[2025-06-04 21:00:01.340351] [debug] valor el evento recibido por webhook: job.add - -[2025-06-04 21:00:01.340405] [debug] Valor de JSON: {"uuid":"cb8e0c6a-9f6d-4660-9a54-82b0b9c2c396","changeType":"insert","entity":"job","entityId":"56","eventName":"job.add","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":null}} - -[2025-06-04 21:00:01.340640] [debug] Se ha agregado un nuevo trabajo - -[2025-06-04 21:00:01.340662] [debug] Valor de json_data: {"uuid":"cb8e0c6a-9f6d-4660-9a54-82b0b9c2c396","changeType":"insert","entity":"job","entityId":"56","eventName":"job.add","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":null}} -[2025-06-04 21:00:01.675654] [debug] Respuesta de la API al agregar el trabajo: {"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]} - -[2025-06-04 21:00:01.789207] [notice] Logging level set to:debug -[2025-06-04 21:00:01.789357] [debug] valor del webhook: {"uuid":"479ee27e-9d58-471c-b3b0-2961523be26d","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 21:00:01.848660] [debug] valor el evento recibido por webhook: job.edit - -[2025-06-04 21:00:01.848793] [debug] Valor de JSON: {"uuid":"479ee27e-9d58-471c-b3b0-2961523be26d","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 21:00:01.848932] [debug] Se actualiza un trabajo - -[2025-06-04 21:00:01.848978] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-06-04 21:00:01.960500] [notice] Logging level set to:debug -[2025-06-04 21:00:01.960649] [debug] valor del webhook: {"uuid":"9c758057-a18b-4d04-b3a1-8505e0ff0072","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 21:00:02.015232] [debug] valor el evento recibido por webhook: job.edit - -[2025-06-04 21:00:02.015378] [debug] Valor de JSON: {"uuid":"9c758057-a18b-4d04-b3a1-8505e0ff0072","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 21:00:02.015511] [debug] Se actualiza un trabajo - -[2025-06-04 21:00:02.015556] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-06-04 21:00:28.115499] [notice] Logging level set to:debug -[2025-06-04 21:00:28.115609] [debug] valor del webhook: {"uuid":"3613fde9-a1e3-4641-90da-320d52d07bce","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1173,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 21:00:28.153341] [debug] valor el evento recibido por webhook: job.edit - -[2025-06-04 21:00:28.153497] [debug] Valor de JSON: {"uuid":"3613fde9-a1e3-4641-90da-320d52d07bce","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1173,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 21:00:28.153765] [debug] Se actualiza un trabajo - -[2025-06-04 21:00:28.153822] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-06-04 21:00:35.256454] [notice] Logging level set to:debug -[2025-06-04 21:00:35.256761] [debug] valor del webhook: {"uuid":"63ca62d2-42fb-420b-b877-2469cafcbe38","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1173,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1173,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 21:00:35.289767] [debug] valor el evento recibido por webhook: job.edit - -[2025-06-04 21:00:35.289905] [debug] Valor de JSON: {"uuid":"63ca62d2-42fb-420b-b877-2469cafcbe38","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1173,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1173,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 21:00:35.290050] [debug] Se actualiza un trabajo - -[2025-06-04 21:00:35.290098] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-06-04 21:00:35.290138] [debug] El instalador cambió de null a un valor -[2025-06-04 21:00:35.290185] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-06-04 21:00:35.290263] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"63ca62d2-42fb-420b-b877-2469cafcbe38","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1173,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1173,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 21:00:35.290311] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"63ca62d2-42fb-420b-b877-2469cafcbe38","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1173,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1173,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 21:00:35.290359] [debug] Valor de $reprogramming en verifyJobActionToDo: false - -[2025-06-04 21:00:35.290394] [debug] Valor de $changeInstaller en verifyJobActionToDo: false - -[2025-06-04 21:00:35.290436] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Gricelda López", - "whatsapp": "4181817609" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - } - ] -} - -[2025-06-04 21:00:35.320611] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1173,"unmsId":"5cb37ee8-e445-4b2a-87d4-6c83eebb8944","email":"hachi9801@gmail.com","firstName":"\u00c1ngel ","lastName":"Arvizu","username":"mamey","avatarColor":"#4caf50","isActive":true} - -[2025-06-04 21:00:35.320739] [debug] Número de WhatsApp del Instalador: 4181817609 - -[2025-06-04 21:00:35.352730] [debug] Valor de $installerFullName: Ángel Arvizu - -[2025-06-04 21:00:35.411578] [error] Las coordenadas no están disponibles en el JSON - -[2025-06-04 21:00:35.411726] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 - -[2025-06-04 21:00:35.411767] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-06-04 21:00:35.411856] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-06-04 21:00:35.411905] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -Datos de la notificación de trabajo: {"clientFullName":"Daniel Humberto Soto Villegas","jobId":"56","date":"*04\/06\/2025*","installerName":"\u00c1ngel Arvizu"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false - -DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: false - -Enviando notificación normal de visita técnica al cliente, valor de reprogramming y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "*#️⃣56*", "🗓️ *04/06/2025*", "👷🏻‍♂️➡️ *Ángel Arvizu*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], - "template_uuid": "07cfbc6e394044608485b530a27177d0", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"561a9c8e018c4e4288d00193d1f0af22","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-06-04 21:00:36.200710] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-06-04 21:00:36.200942] [debug] Valor de $title en verifyJobActionToDo: [NOTIFICACION-PENDIENTE]Servicio - -[2025-06-04 21:00:36.273972] [debug] Valor de $title después de quitar el prefijo en verifyJobActionToDo: Servicio - -[2025-06-04 21:00:36.274112] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: false - -[2025-06-04 21:00:36.274158] [debug] No se cambió el instalador - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"\u00c1ngel Arvizu","clientFullName":"Daniel Humberto Soto Villegas [ID:2]","jobId":"56","clientAddress":"Chiapas 31, Centro Dolores","clientWhatsApp":"5214181878106, 5214181148783","date":"*04\/06\/2025*","jobDescription":"Hola mundo","gmapsLocation":null} - -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": "5214181817609", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ *Ángel Arvizu* se te ha asignado una tarea con folio #️⃣ *56*, del cliente 👤 *Daniel Humberto Soto Villegas [ID:2]*, para el 🗓️ *04/06/2025*", "5214181878106, 5214181148783", "", "gYAIEK:Be}SK*01z5+/V"], - "template_uuid": "88eeb6420a214fd8870dd28d741021c4", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"f68748e3bad842e590a45d232cd611ac","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-06-04 21:00:37.153369] [notice] Logging level set to:debug -[2025-06-04 21:00:37.153610] [debug] valor del webhook: {"uuid":"86d69f7a-63d8-4133-8b54-aacbee6bdc8b","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1173,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1173,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 21:00:37.184451] [debug] valor el evento recibido por webhook: job.edit - -[2025-06-04 21:00:37.184640] [debug] Valor de JSON: {"uuid":"86d69f7a-63d8-4133-8b54-aacbee6bdc8b","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1173,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1173,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 21:00:37.184818] [debug] Se actualiza un trabajo - -[2025-06-04 21:00:37.184887] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-06-04 21:00:37.184947] [debug] No hubo cambio en el instalador ni en la fecha -[2025-06-04 21:03:13.160414] [notice] Logging level set to:debug -[2025-06-04 21:03:13.160778] [debug] valor del webhook: {"uuid":"6a46c35e-445e-4759-9d45-fcb28f944576","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1173,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1173,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 21:03:13.191871] [debug] valor el evento recibido por webhook: job.edit - -[2025-06-04 21:03:13.192011] [debug] Valor de JSON: {"uuid":"6a46c35e-445e-4759-9d45-fcb28f944576","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1173,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1173,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 21:03:13.192261] [debug] Se actualiza un trabajo - -[2025-06-04 21:03:13.192326] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-06-04 21:09:38.397340] [notice] Logging level set to:debug -[2025-06-04 21:09:38.397516] [debug] valor del webhook: {"uuid":"c5138557-3450-4d48-a632-1d9bc1ba89a5","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1173,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1173,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 21:09:38.425637] [debug] valor el evento recibido por webhook: job.edit - -[2025-06-04 21:09:38.425770] [debug] Valor de JSON: {"uuid":"c5138557-3450-4d48-a632-1d9bc1ba89a5","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1173,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1173,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 21:09:38.427337] [debug] Se actualiza un trabajo - -[2025-06-04 21:09:38.427468] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-06-04 21:10:01.762481] [notice] Logging level set to:debug -[2025-06-04 21:10:01.775058] [debug] valor del webhook: {"uuid":"36ace3db-cdf5-4e65-88e9-38da224f7d54","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1173,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1173,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 21:10:01.853774] [debug] valor el evento recibido por webhook: job.edit - -[2025-06-04 21:10:01.853919] [debug] Valor de JSON: {"uuid":"36ace3db-cdf5-4e65-88e9-38da224f7d54","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1173,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1173,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 21:10:01.857641] [debug] Se actualiza un trabajo - -[2025-06-04 21:10:01.857762] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-06-04 21:10:35.307117] [notice] Logging level set to:debug -[2025-06-04 21:10:35.307419] [debug] valor del webhook: {"uuid":"2edf434c-1679-483d-b3c3-a15bf29b1240","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1173,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 21:10:35.346956] [debug] valor el evento recibido por webhook: job.edit - -[2025-06-04 21:10:35.347023] [debug] Valor de JSON: {"uuid":"2edf434c-1679-483d-b3c3-a15bf29b1240","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1173,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 21:10:35.347234] [debug] Se actualiza un trabajo - -[2025-06-04 21:10:35.347254] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-06-04 21:10:39.192167] [notice] Logging level set to:debug -[2025-06-04 21:10:39.192487] [debug] valor del webhook: {"uuid":"89100417-d916-4c36-97e3-f3e266990f9f","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 21:10:39.222518] [debug] valor el evento recibido por webhook: job.edit - -[2025-06-04 21:10:39.222668] [debug] Valor de JSON: {"uuid":"89100417-d916-4c36-97e3-f3e266990f9f","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 21:10:39.222856] [debug] Se actualiza un trabajo - -[2025-06-04 21:10:39.222913] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-06-04 21:10:39.222961] [debug] El instalador cambió de null a un valor -[2025-06-04 21:10:39.223051] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-06-04 21:10:39.223159] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"89100417-d916-4c36-97e3-f3e266990f9f","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 21:10:39.223216] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"89100417-d916-4c36-97e3-f3e266990f9f","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 21:10:39.223262] [debug] Valor de $reprogramming en verifyJobActionToDo: false - -[2025-06-04 21:10:39.223303] [debug] Valor de $changeInstaller en verifyJobActionToDo: false - -[2025-06-04 21:10:39.223352] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Ángel Arvizu", - "whatsapp": "4181878106" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - }, - { - "id": 1131, - "nombre": "Gricelda Avalos", - "whatsapp": "4181878106" - } - ] -} - -[2025-06-04 21:10:39.254678] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1131,"unmsId":"e41322b0-ad84-4f0d-9fc1-8af290d2a31c","email":"avalos.mgla@gmail.com","firstName":"Mar\u00eda Grielda","lastName":"L\u00f3pez Avalos","username":"gricelda","avatarColor":"#ef5350","isActive":true} - -[2025-06-04 21:10:39.254802] [debug] Número de WhatsApp del Instalador: 4181878106 - -[2025-06-04 21:10:39.291098] [debug] Valor de $installerFullName: María Grielda López Avalos - -[2025-06-04 21:10:39.353348] [error] Las coordenadas no están disponibles en el JSON - -[2025-06-04 21:10:39.353585] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 - -[2025-06-04 21:10:39.353646] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-06-04 21:10:39.353771] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-06-04 21:10:39.353854] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -Datos de la notificación de trabajo: {"clientFullName":"Daniel Humberto Soto Villegas","jobId":"56","date":"*04\/06\/2025*","installerName":"Mar\u00eda Grielda L\u00f3pez Avalos"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false - -DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: false - -Enviando notificación normal de visita técnica al cliente, valor de reprogramming y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "*#️⃣56*", "🗓️ *04/06/2025*", "👷🏻‍♂️➡️ *María Grielda López Avalos*", "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":"b793d78bc68343439929b13c77a26c02","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-06-04 21:10:40.305290] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-06-04 21:10:40.305421] [debug] Valor de $title en verifyJobActionToDo: [NOTIFICACION-PENDIENTE]Servicio - -[2025-06-04 21:10:40.376540] [debug] Valor de $title después de quitar el prefijo en verifyJobActionToDo: Servicio - -[2025-06-04 21:10:40.378037] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: false - -[2025-06-04 21:10:40.378149] [debug] No se cambió el instalador - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"Mar\u00eda Grielda L\u00f3pez Avalos","clientFullName":"Daniel Humberto Soto Villegas [ID:2]","jobId":"56","clientAddress":"Chiapas 31, Centro Dolores","clientWhatsApp":"5214181878106, 5214181148783","date":"*04\/06\/2025*","jobDescription":"Hola mundo","gmapsLocation":null} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false - -Enviando notificación normal de tarea al instalador, valor de reprogramming y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ *María Grielda López Avalos* se te ha asignado una tarea con folio #️⃣ *56*, del cliente 👤 *Daniel Humberto Soto Villegas [ID:2]*, para el 🗓️ *04/06/2025*", "5214181878106, 5214181148783", "", "gYAIEK:Be}SK*01z5+/V"], - "template_uuid": "88eeb6420a214fd8870dd28d741021c4", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"adc550b7069f4ed1b6327234835b5f3e","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-06-04 21:10:41.297240] [notice] Logging level set to:debug -[2025-06-04 21:10:41.297301] [debug] valor del webhook: {"uuid":"eee67094-fb8f-4518-86c2-2c4674d1792c","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 21:10:41.331646] [debug] valor el evento recibido por webhook: job.edit - -[2025-06-04 21:10:41.331815] [debug] Valor de JSON: {"uuid":"eee67094-fb8f-4518-86c2-2c4674d1792c","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 21:10:41.331968] [debug] Se actualiza un trabajo - -[2025-06-04 21:10:41.332020] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-06-04 21:10:41.332088] [debug] No hubo cambio en el instalador ni en la fecha -[2025-06-04 21:13:19.079271] [notice] Logging level set to:debug -[2025-06-04 21:13:19.079368] [debug] valor del webhook: {"uuid":"cd279b98-bdda-4548-81fb-ec67e9e481fa","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 21:13:19.106556] [debug] valor el evento recibido por webhook: job.edit - -[2025-06-04 21:13:19.106614] [debug] Valor de JSON: {"uuid":"cd279b98-bdda-4548-81fb-ec67e9e481fa","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-04 21:13:19.106837] [debug] Se actualiza un trabajo - -[2025-06-04 21:13:19.106859] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-06-05 6:25:02.780204] [notice] Logging level set to:debug -[2025-06-05 6:25:02.780301] [debug] valor del webhook: {"uuid":"640f122c-bf70-445d-9738-e4382e860719","changeType":"overdue","entity":"invoice","entityId":"1941","eventName":"invoice.overdue","extraData":{"entity":{"id":1941,"clientId":105,"number":"001891","createdDate":"2025-05-21T10:00:02-0600","dueDate":"2025-06-04T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1944,"type":"service","label":"plan300 21\/04\/2025 \u2013 20\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":111,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"jota","clientLastName":"serpiente","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":null,"clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-06-05 6:25:02.951335] [debug] valor el evento recibido por webhook: invoice.overdue - -[2025-06-05 6:25:02.951397] [debug] Valor de JSON: {"uuid":"640f122c-bf70-445d-9738-e4382e860719","changeType":"overdue","entity":"invoice","entityId":"1941","eventName":"invoice.overdue","extraData":{"entity":{"id":1941,"clientId":105,"number":"001891","createdDate":"2025-05-21T10:00:02-0600","dueDate":"2025-06-04T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1944,"type":"service","label":"plan300 21\/04\/2025 \u2013 20\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":111,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"jota","clientLastName":"serpiente","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":null,"clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-06-05 6:25:02.951605] [debug] Factura vencida - -[2025-06-05 6:25:02.951646] [debug] datos del notification para el invoice overdue:{"uuid":"640f122c-bf70-445d-9738-e4382e860719","changeType":"overdue","entity":"invoice","entityId":1941,"message":null,"clientId":105,"eventName":"invoice.overdue","clientData":{"id":105,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":null,"countryId":173,"stateId":null,"zipCode":null,"fullAddress":null,"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-02-17T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"jota","lastName":"serpiente","username":null,"contacts":[{"id":109,"clientId":105,"email":null,"phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3500,"accountCredit":0,"accountOutstanding":3500,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#4527a0","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1941,"clientId":105,"number":"001891","createdDate":"2025-05-21T10:00:02-0600","dueDate":"2025-06-04T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1944,"type":"service","label":"plan300 21\/04\/2025 \u2013 20\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":111,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"jota","clientLastName":"serpiente","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":null,"clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-06-05 6:25:02.951683] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** - -contac vacio -[2025-06-05 6:25:02.951837] [debug] Numero de cel obtenido - -[2025-06-05 6:25:02.951849] [warning] No se encontró un teléfono celular válido para el cliente: 105 -[2025-06-05 6:25:03.100394] [notice] Logging level set to:debug -[2025-06-05 6:25:03.100442] [debug] valor del webhook: {"uuid":"ce0a0717-a3fc-4a73-9574-5ca08fcb2bbe","changeType":"overdue","entity":"invoice","entityId":"1942","eventName":"invoice.overdue","extraData":{"entity":{"id":1942,"clientId":134,"number":"001892","createdDate":"2025-05-21T10:00:02-0600","dueDate":"2025-06-04T10:00:02-0600","emailSentDate":"2025-06-05T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1945,"type":"service","label":"PREMIUM 21\/04\/2025 \u2013 20\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":113,"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":"La Mosca","clientLastName":"Tse Tse","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"25 Michoac\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},"entityBeforeEdit":null}} - -[2025-06-05 6:25:03.279905] [debug] valor el evento recibido por webhook: invoice.overdue - -[2025-06-05 6:25:03.279958] [debug] Valor de JSON: {"uuid":"ce0a0717-a3fc-4a73-9574-5ca08fcb2bbe","changeType":"overdue","entity":"invoice","entityId":"1942","eventName":"invoice.overdue","extraData":{"entity":{"id":1942,"clientId":134,"number":"001892","createdDate":"2025-05-21T10:00:02-0600","dueDate":"2025-06-04T10:00:02-0600","emailSentDate":"2025-06-05T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1945,"type":"service","label":"PREMIUM 21\/04\/2025 \u2013 20\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":113,"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":"La Mosca","clientLastName":"Tse Tse","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"25 Michoac\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},"entityBeforeEdit":null}} - -[2025-06-05 6:25:03.280051] [debug] Factura vencida - -[2025-06-05 6:25:03.280090] [debug] datos del notification para el invoice overdue:{"uuid":"ce0a0717-a3fc-4a73-9574-5ca08fcb2bbe","changeType":"overdue","entity":"invoice","entityId":1942,"message":null,"clientId":134,"eventName":"invoice.overdue","clientData":{"id":134,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"25 Michoac\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Michoac\u00e1n 25, 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":"La Mosca","lastName":"Tse Tse","username":null,"contacts":[{"id":138,"clientId":134,"email":"lamoscatsetse@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":190,"clientId":134,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_S0Igo0UyD5CUtI","clientZoneVisible":true},{"id":191,"clientId":134,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180573205227652","clientZoneVisible":true}],"accountBalance":-7700,"accountCredit":0,"accountOutstanding":7700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#009688","addressGpsLat":21.1576726,"addressGpsLon":-100.9370354,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1942,"clientId":134,"number":"001892","createdDate":"2025-05-21T10:00:02-0600","dueDate":"2025-06-04T10:00:02-0600","emailSentDate":"2025-06-05T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1945,"type":"service","label":"PREMIUM 21\/04\/2025 \u2013 20\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":113,"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":"La Mosca","clientLastName":"Tse Tse","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"25 Michoac\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},"paymentData":null} - -[2025-06-05 6:25:03.280118] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** - -[2025-06-05 6:25:03.280170] [debug] Numero de cel obtenido - -[2025-06-05 6:25:03.280181] [warning] No se encontró un teléfono celular válido para el cliente: 134 -[2025-06-05 6:25:03.392149] [notice] Logging level set to:debug -[2025-06-05 6:25:03.392199] [debug] valor del webhook: {"uuid":"885a709f-2f17-4b3a-ba4b-010206e1a99c","changeType":"overdue","entity":"invoice","entityId":"1943","eventName":"invoice.overdue","extraData":{"entity":{"id":1943,"clientId":136,"number":"001893","createdDate":"2025-05-21T10:00:02-0600","dueDate":"2025-06-04T10:00:02-0600","emailSentDate":"2025-06-05T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1946,"type":"service","label":"INTERMEDIO 21\/04\/2025 \u2013 20\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":112,"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":"El Mus","clientLastName":"Tafah","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"22 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},"entityBeforeEdit":null}} - -[2025-06-05 6:25:03.543935] [debug] valor el evento recibido por webhook: invoice.overdue - -[2025-06-05 6:25:03.543992] [debug] Valor de JSON: {"uuid":"885a709f-2f17-4b3a-ba4b-010206e1a99c","changeType":"overdue","entity":"invoice","entityId":"1943","eventName":"invoice.overdue","extraData":{"entity":{"id":1943,"clientId":136,"number":"001893","createdDate":"2025-05-21T10:00:02-0600","dueDate":"2025-06-04T10:00:02-0600","emailSentDate":"2025-06-05T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1946,"type":"service","label":"INTERMEDIO 21\/04\/2025 \u2013 20\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":112,"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":"El Mus","clientLastName":"Tafah","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"22 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},"entityBeforeEdit":null}} - -[2025-06-05 6:25:03.544099] [debug] Factura vencida - -[2025-06-05 6:25:03.544137] [debug] datos del notification para el invoice overdue:{"uuid":"885a709f-2f17-4b3a-ba4b-010206e1a99c","changeType":"overdue","entity":"invoice","entityId":1943,"message":null,"clientId":136,"eventName":"invoice.overdue","clientData":{"id":136,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"22 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Yucat\u00e1n 22, 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":"El Mus","lastName":"Tafah","username":null,"contacts":[{"id":140,"clientId":136,"email":"elmus@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-5333.33,"accountCredit":0,"accountOutstanding":5333.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1571597,"addressGpsLon":-100.9367744,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1943,"clientId":136,"number":"001893","createdDate":"2025-05-21T10:00:02-0600","dueDate":"2025-06-04T10:00:02-0600","emailSentDate":"2025-06-05T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1946,"type":"service","label":"INTERMEDIO 21\/04\/2025 \u2013 20\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":112,"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":"El Mus","clientLastName":"Tafah","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"22 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},"paymentData":null} - -[2025-06-05 6:25:03.544158] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** - -[2025-06-05 6:25:03.544215] [debug] Numero de cel obtenido - -[2025-06-05 6:25:03.544225] [warning] No se encontró un teléfono celular válido para el cliente: 136 -[2025-06-05 6:25:03.659492] [notice] Logging level set to:debug -[2025-06-05 6:25:03.659548] [debug] valor del webhook: {"uuid":"0f2ea590-c0c0-4c9e-9ade-11a6c6dd7dee","changeType":"overdue","entity":"invoice","entityId":"1944","eventName":"invoice.overdue","extraData":{"entity":{"id":1944,"clientId":133,"number":"001894","createdDate":"2025-05-21T10:00:02-0600","dueDate":"2025-06-04T10:00:02-0600","emailSentDate":"2025-06-05T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1947,"type":"service","label":"INTERMEDIO 21\/04\/2025 \u2013 20\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":114,"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":"Los Amigos","clientLastName":"Invisibles","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Calle Colima","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-06-05 6:25:03.799376] [debug] valor el evento recibido por webhook: invoice.overdue - -[2025-06-05 6:25:03.799426] [debug] Valor de JSON: {"uuid":"0f2ea590-c0c0-4c9e-9ade-11a6c6dd7dee","changeType":"overdue","entity":"invoice","entityId":"1944","eventName":"invoice.overdue","extraData":{"entity":{"id":1944,"clientId":133,"number":"001894","createdDate":"2025-05-21T10:00:02-0600","dueDate":"2025-06-04T10:00:02-0600","emailSentDate":"2025-06-05T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1947,"type":"service","label":"INTERMEDIO 21\/04\/2025 \u2013 20\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":114,"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":"Los Amigos","clientLastName":"Invisibles","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Calle Colima","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-06-05 6:25:03.799541] [debug] Factura vencida - -[2025-06-05 6:25:03.799582] [debug] datos del notification para el invoice overdue:{"uuid":"0f2ea590-c0c0-4c9e-9ade-11a6c6dd7dee","changeType":"overdue","entity":"invoice","entityId":1944,"message":null,"clientId":133,"eventName":"invoice.overdue","clientData":{"id":133,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"34 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Colima 34, Mariano Balleza, 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":"Los Amigos","lastName":"Invisibles","username":null,"contacts":[{"id":137,"clientId":133,"email":"amigosinvisibles@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":135,"clientId":133,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_QJjZqeaZSSPwcT","clientZoneVisible":true},{"id":136,"clientId":133,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180822750421052","clientZoneVisible":true}],"accountBalance":-5333.33,"accountCredit":0,"accountOutstanding":5333.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ffc107","addressGpsLat":21.1568888,"addressGpsLon":-100.9275759,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1944,"clientId":133,"number":"001894","createdDate":"2025-05-21T10:00:02-0600","dueDate":"2025-06-04T10:00:02-0600","emailSentDate":"2025-06-05T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1947,"type":"service","label":"INTERMEDIO 21\/04\/2025 \u2013 20\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":114,"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":"Los Amigos","clientLastName":"Invisibles","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Calle Colima","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-06-05 6:25:03.799611] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** - -[2025-06-05 6:25:03.799666] [debug] Numero de cel obtenido - -[2025-06-05 6:25:03.799679] [warning] No se encontró un teléfono celular válido para el cliente: 133 -[2025-06-05 15:23:36.798696] [notice] Logging level set to:debug -[2025-06-05 15:23:36.798777] [debug] valor del webhook: {"uuid":"8c296d97-1cc6-48b3-b05b-33b26129cb5c","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 15:23:36.828419] [debug] valor el evento recibido por webhook: job.edit - -[2025-06-05 15:23:36.828460] [debug] Valor de JSON: {"uuid":"8c296d97-1cc6-48b3-b05b-33b26129cb5c","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 15:23:36.828671] [debug] Se actualiza un trabajo - -[2025-06-05 15:23:36.828686] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-06-05 15:23:36.828696] [debug] El instalador cambió de null a un valor -[2025-06-05 15:23:36.828718] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-06-05 15:23:36.828771] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"8c296d97-1cc6-48b3-b05b-33b26129cb5c","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 15:23:36.828784] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"8c296d97-1cc6-48b3-b05b-33b26129cb5c","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 15:23:36.828794] [debug] Valor de $reprogramming en verifyJobActionToDo: false - -[2025-06-05 15:23:36.828800] [debug] Valor de $changeInstaller en verifyJobActionToDo: false - -[2025-06-05 15:23:36.828814] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Ángel Arvizu", - "whatsapp": "4181878106" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - }, - { - "id": 1131, - "nombre": "Gricelda Avalos", - "whatsapp": "4181817609" - } - ] -} - -[2025-06-05 15:23:36.861314] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1131,"unmsId":"e41322b0-ad84-4f0d-9fc1-8af290d2a31c","email":"avalos.mgla@gmail.com","firstName":"Mar\u00eda Grielda","lastName":"L\u00f3pez Avalos","username":"gricelda","avatarColor":"#ef5350","isActive":true} - -[2025-06-05 15:23:36.861361] [debug] Número de WhatsApp del Instalador: 4181817609 - -[2025-06-05 15:23:36.893583] [debug] Valor de $installerFullName: María Grielda López Avalos - -[2025-06-05 15:23:36.952383] [error] Las coordenadas no están disponibles en el JSON - -[2025-06-05 15:23:36.952500] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 - -[2025-06-05 15:23:36.952523] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-06-05 15:23:36.952610] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-06-05 15:23:36.952651] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -Datos de la notificación de trabajo: {"clientFullName":"Daniel Humberto Soto Villegas","jobId":"56","date":"*04\/06\/2025*","installerName":"Mar\u00eda Grielda L\u00f3pez Avalos"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false - -DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: false - -Enviando notificación normal de visita técnica al cliente, valor de reprogramming y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "*#️⃣56*", "🗓️ *04/06/2025*", "👷🏻‍♂️➡️ *María Grielda López Avalos*", "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":"49357e774fa04dde9120caba7f2aafbe","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-06-05 15:23:37.847912] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-06-05 15:23:37.847997] [debug] Valor de $title en verifyJobActionToDo: [NOTIFICACION-PENDIENTE]Servicio - -[2025-06-05 15:23:37.929887] [debug] Valor de $title después de quitar el prefijo en verifyJobActionToDo: Servicio - -[2025-06-05 15:23:37.929924] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: false - -[2025-06-05 15:23:37.929934] [debug] No se cambió el instalador - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"Mar\u00eda Grielda L\u00f3pez Avalos","clientFullName":"Daniel Humberto Soto Villegas [ID:2]","jobId":"56","clientAddress":"Chiapas 31, Centro Dolores","clientWhatsApp":"5214181878106, 5214181148783","date":"*04\/06\/2025*","jobDescription":"Hola mundo","gmapsLocation":null} - -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": "5214181817609", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ *María Grielda López Avalos* se te ha asignado una tarea con folio #️⃣ *56*, del cliente 👤 *Daniel Humberto Soto Villegas [ID:2]*, para el 🗓️ *04/06/2025*", "5214181878106, 5214181148783", "", "gYAIEK:Be}SK*01z5+/V"], - "template_uuid": "88eeb6420a214fd8870dd28d741021c4", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"109da1b198794554bb301ecb51b50cdc","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-06-05 15:23:38.861938] [notice] Logging level set to:debug -[2025-06-05 15:23:38.862005] [debug] valor del webhook: {"uuid":"a04571f7-3828-4fd8-9396-04bd049e5a1b","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 15:23:38.892535] [debug] valor el evento recibido por webhook: job.edit - -[2025-06-05 15:23:38.892580] [debug] Valor de JSON: {"uuid":"a04571f7-3828-4fd8-9396-04bd049e5a1b","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 15:23:38.892682] [debug] Se actualiza un trabajo - -[2025-06-05 15:23:38.892698] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-06-05 15:23:38.892712] [debug] No hubo cambio en el instalador ni en la fecha -[2025-06-05 16:03:59.314474] [notice] Logging level set to:debug -[2025-06-05 16:03:59.314568] [debug] valor del webhook: {"uuid":"8ba35e83-3548-4bba-97f6-5615265270c6","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1019,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 16:03:59.360821] [debug] valor el evento recibido por webhook: job.edit - -[2025-06-05 16:03:59.360970] [debug] Valor de JSON: {"uuid":"8ba35e83-3548-4bba-97f6-5615265270c6","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1019,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 16:03:59.361392] [debug] Se actualiza un trabajo - -[2025-06-05 16:03:59.363954] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-06-05 16:03:59.364094] [debug] No hay reprogramación de trabajo pero si hay cambio de instalador -[2025-06-05 16:03:59.364172] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-06-05 16:03:59.364305] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"8ba35e83-3548-4bba-97f6-5615265270c6","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1019,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 16:03:59.364357] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"8ba35e83-3548-4bba-97f6-5615265270c6","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1019,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 16:03:59.364397] [debug] Valor de $reprogramming en verifyJobActionToDo: false - -[2025-06-05 16:03:59.364432] [debug] Valor de $changeInstaller en verifyJobActionToDo: true - -[2025-06-05 16:03:59.364474] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Ángel Arvizu", - "whatsapp": "4181878106" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - }, - { - "id": 1131, - "nombre": "Gricelda Avalos", - "whatsapp": "4181817609" - } - ] -} - -[2025-06-05 16:03:59.434791] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1019,"unmsId":"75e00242-86c2-436a-b3ac-bd6c31db681e","email":"lionelmuz@gmail.com","firstName":"Mucio","lastName":"Robledo Villegas","username":"muz","avatarColor":"#8bc34a","isActive":true} - -[2025-06-05 16:03:59.434842] [debug] Número de WhatsApp del Instalador: 4181878106 - -[2025-06-05 16:03:59.479615] [debug] Valor de $installerFullName: Mucio Robledo Villegas - -[2025-06-05 16:03:59.589812] [error] Las coordenadas no están disponibles en el JSON - -[2025-06-05 16:03:59.589937] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 - -[2025-06-05 16:03:59.590063] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-06-05 16:03:59.590156] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-06-05 16:03:59.590207] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -Datos de la notificación de trabajo: {"clientFullName":"Daniel Humberto Soto Villegas","jobId":"56","date":"*04\/06\/2025*","installerName":"Mucio Robledo Villegas"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true - -DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: true - -Enviando notificación de cambio de instalador al cliente, valor de reprogramming y valor de changeInstaller 1 - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "se ha hecho un cambio de técnico 👷🏻‍♂️🔄 para su visita con el folio *#️⃣56*", "🗓️ *04/06/2025*", "👷🏻‍♂️➡️ *Mucio Robledo Villegas*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], - "template_uuid": "d684e6fa2ba24593a86c98be1815831d", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"0d786a00f53347979d1ecb88c55c2ee6","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-06-05 16:04:00.517579] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-06-05 16:04:00.517904] [debug] Valor de $title en verifyJobActionToDo: Servicio - -[2025-06-05 16:04:00.517976] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Servicio - -[2025-06-05 16:04:00.518024] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: true - -[2025-06-05 16:04:00.518060] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó - -[2025-06-05 16:04:00.631283] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181817609 - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"\ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0fMar\u00eda Grielda L\u00f3pez Avalos","subjectOfChange":"se te ha desasignado\u274c la tarea con el folio ","jobId":"56","clientFullName":"[2] Daniel Humberto Soto Villegas","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico \ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u27a1\ufe0f *Mucio Robledo Villegas*"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true - -Enviando notificación de cambio de instalador al instalador anterior (desasignación), valor de reprogramming y valor de changeInstaller 1 - -La cadena CURL que se envia es: { - "to": "5214181817609", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ 👷🏻‍♂️María Grielda López Avalos", "se te ha desasignado❌ la tarea con el folio ", "#️⃣56", "*👤[2] Daniel Humberto Soto Villegas* ", "En tu lugar asistirá el técnico 👷🏻‍♂️➡️ *Mucio Robledo Villegas*"], - "template_uuid": "e1aa2b0fd3884595918f4ac2676acd29", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"10d46beeca994db2a7621fff694f43e7","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","clientFullName":"Daniel Humberto Soto Villegas [ID:2]","jobId":"56","clientAddress":"Chiapas 31, Centro Dolores","clientWhatsApp":"5214181878106, 5214181148783","date":"*04\/06\/2025*","jobDescription":"Hola mundo","gmapsLocation":null} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false - -Enviando notificación normal de tarea al instalador, valor de reprogramming y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ *Mucio Robledo Villegas* se te ha asignado una tarea con folio #️⃣ *56*, del cliente 👤 *Daniel Humberto Soto Villegas [ID:2]*, para el 🗓️ *04/06/2025*", "5214181878106, 5214181148783", "", "gYAIEK:Be}SK*01z5+/V"], - "template_uuid": "88eeb6420a214fd8870dd28d741021c4", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"6e7e52cf25014b01a5fcb6412551efff","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-06-05 16:23:56.030833] [notice] Logging level set to:debug -[2025-06-05 16:23:56.031013] [debug] valor del webhook: {"uuid":"e53b044e-60df-43dd-bbd3-79d6806ddd22","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-06-05 16:23:56.119815] [debug] valor el evento recibido por webhook: client.edit - -[2025-06-05 16:23:56.120028] [debug] Valor de JSON: {"uuid":"e53b044e-60df-43dd-bbd3-79d6806ddd22","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-06-05 16:23:56.120306] [debug] Se actualiza a un cliente -[2025-06-05 16:23:56.120398] [debug] Valor de json_data: {"uuid":"e53b044e-60df-43dd-bbd3-79d6806ddd22","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} -[2025-06-05 16:23:56.171163] [info] ID correspondiente a 'passwordAntenaCliente': 17 - -[2025-06-05 16:23:56.171281] [info] El valor de passwordAntenaValue es: gYAIEK:Be}SK*01z5+/V - -[2025-06-05 16:23:56.171324] [info] Ya existe un valor de passwordAntenaValue: gYAIEK:Be}SK*01z5+/V - -[2025-06-05 16:23:56.171372] [debug] El cliente no cambió de potencial a cliente -[2025-06-05 16:23:56.171410] [debug] Validando claves dentro de entity y entityBeforeEdit -[2025-06-05 16:23:56.171443] [debug] Los datos entity y entityBeforeEdit contienen el campo tags -[2025-06-05 16:23:56.171477] [debug] Validando si la etiqueta STRIPE existe en entity pero no en entityBeforeEdit -[2025-06-05 16:23:56.171550] [debug] {"uuid":"e53b044e-60df-43dd-bbd3-79d6806ddd22","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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":null} - -[2025-06-05 16:23:56.171668] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-05 16:23:56.171708] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"e53b044e-60df-43dd-bbd3-79d6806ddd22","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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":625,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-05-16T09:49:31-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":728,"invoiceId":1818,"paymentId":625,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Guanajuato","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2466.67 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16\/05\/2025 09:49 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"05\/06\/2025 10:23\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 16\/05\/2025 09:49 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 05\/06\/2025 10:23","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲466.67 pendientes","Monto Ultimo Pago": "$ 300","Estado": "Activo","Fecha Ultimo Pago": " 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "05/06/2025 10:23","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲466.67 pendientes","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultima Actualizacion":"📆🔄️ 05/06/2025 10:23","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"05/06/2025 10:23\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲466.67 pendientes","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultima Actualizacion":"📆🔄️ 05/06/2025 10:23","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"05/06/2025 10:23\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-05 16:23:59.163778] [notice] Logging level set to:debug -[2025-06-05 16:23:59.163988] [debug] valor del webhook: {"uuid":"cfaf2fd1-071c-40aa-a741-b456e9650896","changeType":"edit","entity":"service","entityId":"152","eventName":"service.edit","extraData":{"entity":{"id":152,"prepaid":false,"clientId":2,"status":1,"name":"Basico 300","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":"el may","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00: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-03-25T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[{"id":"3a13b5e4-3282-480c-b897-2fcb4ea3e200","serviceId":152,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"},{"id":141,"startDate":"2025-03-15T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":153,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":152,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":151,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":150,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":154,"startDate":"2025-03-26T00:00:00-0600","endDate":"2025-04-11T00:00:00-0600"},{"id":162,"startDate":"2025-04-26T00:00:00-0600","endDate":"2025-05-16T00:00:00-0600"}],"surcharges":[]},"entityBeforeEdit":{"id":152,"prepaid":false,"clientId":2,"status":1,"name":"Basico 300","fullAddress":"Chiapas 31, Centro Dolores","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":"el may","addressGpsLat":null,"addressGpsLon":null,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00: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-03-25T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[{"id":"3a13b5e4-3282-480c-b897-2fcb4ea3e200","serviceId":152,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"},{"id":141,"startDate":"2025-03-15T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":153,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":152,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":151,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":150,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":154,"startDate":"2025-03-26T00:00:00-0600","endDate":"2025-04-11T00:00:00-0600"},{"id":162,"startDate":"2025-04-26T00:00:00-0600","endDate":"2025-05-16T00:00:00-0600"}],"surcharges":[]}}} - -[2025-06-05 16:23:59.331406] [debug] valor el evento recibido por webhook: service.edit - -[2025-06-05 16:23:59.331598] [debug] Valor de JSON: {"uuid":"cfaf2fd1-071c-40aa-a741-b456e9650896","changeType":"edit","entity":"service","entityId":"152","eventName":"service.edit","extraData":{"entity":{"id":152,"prepaid":false,"clientId":2,"status":1,"name":"Basico 300","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":"el may","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00: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-03-25T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[{"id":"3a13b5e4-3282-480c-b897-2fcb4ea3e200","serviceId":152,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"},{"id":141,"startDate":"2025-03-15T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":153,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":152,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":151,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":150,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":154,"startDate":"2025-03-26T00:00:00-0600","endDate":"2025-04-11T00:00:00-0600"},{"id":162,"startDate":"2025-04-26T00:00:00-0600","endDate":"2025-05-16T00:00:00-0600"}],"surcharges":[]},"entityBeforeEdit":{"id":152,"prepaid":false,"clientId":2,"status":1,"name":"Basico 300","fullAddress":"Chiapas 31, Centro Dolores","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":"el may","addressGpsLat":null,"addressGpsLon":null,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00: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-03-25T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[{"id":"3a13b5e4-3282-480c-b897-2fcb4ea3e200","serviceId":152,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"},{"id":141,"startDate":"2025-03-15T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":153,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":152,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":151,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":150,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":154,"startDate":"2025-03-26T00:00:00-0600","endDate":"2025-04-11T00:00:00-0600"},{"id":162,"startDate":"2025-04-26T00:00:00-0600","endDate":"2025-05-16T00:00:00-0600"}],"surcharges":[]}}} - -[2025-06-05 16:23:59.331767] [debug] Se editó el servicio a un cliente - -[2025-06-05 16:23:59.331855] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-05 16:23:59.331897] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-05 16:23:59.331985] [info] {"uuid":"cfaf2fd1-071c-40aa-a741-b456e9650896","changeType":"edit","entity":"service","entityId":152,"message":null,"clientId":2,"eventName":"service.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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":{"id":152,"prepaid":false,"clientId":2,"status":1,"name":"Basico 300","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":"el may","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00: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-03-25T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-06-30T00:00:00-0600","unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[{"id":"3a13b5e4-3282-480c-b897-2fcb4ea3e200","serviceId":152,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"},{"id":141,"startDate":"2025-03-15T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":153,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":152,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":151,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":150,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":154,"startDate":"2025-03-26T00:00:00-0600","endDate":"2025-04-11T00:00:00-0600"},{"id":162,"startDate":"2025-04-26T00:00:00-0600","endDate":"2025-05-16T00:00:00-0600"}],"surcharges":[]},"invoiceData":null,"paymentData":null} - -Actualizando estado del servicio - -Nombre del cliente al que se va a actualizar el estado del servicio: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Estado":"\ud83d\udfe2 Activo","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 05\/06\/2025 10:24"}} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲466.67 pendientes","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 05/06/2025 10:24","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"05/06/2025 10:23\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-05 16:24:01.157562] [info] ID correspondiente a 'passwordAntenaCliente': 17 - -[2025-06-05 16:24:01.157679] [info] El valor de passwordAntenaValue es null o cadena vacía, se manda llamar la función getVaultCredentials - -[2025-06-05 16:24:01.157697] [info] El valor de password es: gYAIEK:Be}SK*01z5+/V - -[2025-06-05 16:24:01.696258] [info] Se actualizó el custom attribute del cliente 2 - -[2025-06-05 16:24:01.696542] [info] Se actualizó el atributo personalizado passwordAntenaCliente con el valor: gYAIEK:Be}SK*01z5+/V - -[2025-06-05 16:24:01.880460] [notice] Logging level set to:debug -[2025-06-05 16:24:01.880537] [debug] valor del webhook: {"uuid":"bac22ceb-a41d-4bca-8ce5-e7f17904172e","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-06-05 16:24:02.168128] [debug] valor el evento recibido por webhook: client.edit - -[2025-06-05 16:24:02.168354] [debug] Valor de JSON: {"uuid":"bac22ceb-a41d-4bca-8ce5-e7f17904172e","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-06-05 16:24:02.168509] [debug] Se actualiza a un cliente -[2025-06-05 16:24:02.171591] [debug] Valor de json_data: {"uuid":"bac22ceb-a41d-4bca-8ce5-e7f17904172e","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} -[2025-06-05 16:24:02.234906] [info] ID correspondiente a 'passwordAntenaCliente': 17 - -[2025-06-05 16:24:02.235058] [info] El valor de passwordAntenaValue es: gYAIEK:Be}SK*01z5+/V - -[2025-06-05 16:24:02.235104] [info] Ya existe un valor de passwordAntenaValue: gYAIEK:Be}SK*01z5+/V - -[2025-06-05 16:24:02.235141] [debug] El cliente no cambió de potencial a cliente -[2025-06-05 16:24:02.235189] [debug] Validando claves dentro de entity y entityBeforeEdit -[2025-06-05 16:24:02.235224] [debug] Los datos entity y entityBeforeEdit contienen el campo tags -[2025-06-05 16:24:02.235258] [debug] Validando si la etiqueta STRIPE existe en entity pero no en entityBeforeEdit -[2025-06-05 16:24:02.235327] [debug] {"uuid":"bac22ceb-a41d-4bca-8ce5-e7f17904172e","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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":null} - -[2025-06-05 16:24:02.235387] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-05 16:24:02.235425] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"bac22ceb-a41d-4bca-8ce5-e7f17904172e","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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":625,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-05-16T09:49:31-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":728,"invoiceId":1818,"paymentId":625,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Guanajuato","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2466.67 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16\/05\/2025 09:49 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"05\/06\/2025 10:24\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 16\/05\/2025 09:49 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 05\/06\/2025 10:24","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲466.67 pendientes","Monto Ultimo Pago": "$ 300","Estado": "Activo","Fecha Ultimo Pago": " 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "05/06/2025 10:24","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲466.67 pendientes","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 05/06/2025 10:24","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"05/06/2025 10:24\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲466.67 pendientes","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 05/06/2025 10:24","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"05/06/2025 10:24\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-05 16:33:38.913774] [notice] Logging level set to:debug -[2025-06-05 16:33:38.914104] [debug] valor del webhook: {"uuid":"593f3cf2-e3ba-43b0-b7e3-91def195df0d","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-06-05 16:33:38.990322] [debug] valor el evento recibido por webhook: client.edit - -[2025-06-05 16:33:38.990417] [debug] Valor de JSON: {"uuid":"593f3cf2-e3ba-43b0-b7e3-91def195df0d","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-06-05 16:33:38.990787] [debug] Se actualiza a un cliente -[2025-06-05 16:33:38.990888] [debug] Valor de json_data: {"uuid":"593f3cf2-e3ba-43b0-b7e3-91def195df0d","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} -[2025-06-05 16:33:39.073673] [info] ID correspondiente a 'passwordAntenaCliente': 17 - -[2025-06-05 16:33:39.073796] [info] El valor de passwordAntenaValue es: gYAIEK:Be}SK*01z5+/V - -[2025-06-05 16:33:39.073842] [info] Ya existe un valor de passwordAntenaValue: gYAIEK:Be}SK*01z5+/V - -[2025-06-05 16:33:39.073882] [debug] El cliente no cambió de potencial a cliente -[2025-06-05 16:33:39.073919] [debug] Validando claves dentro de entity y entityBeforeEdit -[2025-06-05 16:33:39.073954] [debug] Los datos entity y entityBeforeEdit contienen el campo tags -[2025-06-05 16:33:39.073988] [debug] Validando si la etiqueta STRIPE existe en entity pero no en entityBeforeEdit -[2025-06-05 16:33:39.074062] [debug] {"uuid":"593f3cf2-e3ba-43b0-b7e3-91def195df0d","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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":null} - -[2025-06-05 16:33:39.074176] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-05 16:33:39.074218] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"593f3cf2-e3ba-43b0-b7e3-91def195df0d","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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-466.67,"accountCredit":0,"accountOutstanding":466.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":625,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-05-16T09:49:31-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":728,"invoiceId":1818,"paymentId":625,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Guanajuato","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2466.67 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16\/05\/2025 09:49 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"05\/06\/2025 10:33\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 16\/05\/2025 09:49 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 05\/06\/2025 10:33","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲466.67 pendientes","Monto Ultimo Pago": "$ 300","Estado": "Activo","Fecha Ultimo Pago": " 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "05/06/2025 10:33","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲466.67 pendientes","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 05/06/2025 10:33","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"05/06/2025 10:33\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲466.67 pendientes","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 05/06/2025 10:33","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲466.67 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 16/05/2025 09:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"05/06/2025 10:33\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-05 16:36:50.609828] [notice] Logging level set to:debug -[2025-06-05 16:36:50.609916] [debug] valor del webhook: {"uuid":"3a071e20-1088-4256-932e-9057cfb82eec","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1019,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1019,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 16:36:50.642507] [debug] valor el evento recibido por webhook: job.edit - -[2025-06-05 16:36:50.642564] [debug] Valor de JSON: {"uuid":"3a071e20-1088-4256-932e-9057cfb82eec","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1019,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1019,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 16:36:50.642777] [debug] Se actualiza un trabajo - -[2025-06-05 16:36:50.642802] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-06-05 16:37:28.101418] [notice] Logging level set to:debug -[2025-06-05 16:37:28.101520] [debug] valor del webhook: {"uuid":"e005ddbc-659d-4547-bfdc-908c7524b054","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1019,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 16:37:28.132786] [debug] valor el evento recibido por webhook: job.edit - -[2025-06-05 16:37:28.132940] [debug] Valor de JSON: {"uuid":"e005ddbc-659d-4547-bfdc-908c7524b054","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1019,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 16:37:28.133207] [debug] Se actualiza un trabajo - -[2025-06-05 16:37:28.133268] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-06-05 16:37:29.030929] [notice] Logging level set to:debug -[2025-06-05 16:37:29.031518] [debug] valor del webhook: {"uuid":"b30e6597-3256-4b62-b5a6-ee17bded9507","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 16:37:29.068463] [debug] valor el evento recibido por webhook: job.edit - -[2025-06-05 16:37:29.068600] [debug] Valor de JSON: {"uuid":"b30e6597-3256-4b62-b5a6-ee17bded9507","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 16:37:29.068736] [debug] Se actualiza un trabajo - -[2025-06-05 16:37:29.070240] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-06-05 16:37:29.070287] [debug] El instalador cambió de null a un valor -[2025-06-05 16:37:29.070305] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-06-05 16:37:29.070408] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"b30e6597-3256-4b62-b5a6-ee17bded9507","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 16:37:29.070431] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"b30e6597-3256-4b62-b5a6-ee17bded9507","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 16:37:29.070455] [debug] Valor de $reprogramming en verifyJobActionToDo: false - -[2025-06-05 16:37:29.070463] [debug] Valor de $changeInstaller en verifyJobActionToDo: false - -[2025-06-05 16:37:29.070482] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Ángel Arvizu", - "whatsapp": "4181878106" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - }, - { - "id": 1131, - "nombre": "Gricelda Avalos", - "whatsapp": "4181817609" - } - ] -} - -[2025-06-05 16:37:29.103504] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1131,"unmsId":"e41322b0-ad84-4f0d-9fc1-8af290d2a31c","email":"avalos.mgla@gmail.com","firstName":"Mar\u00eda Grielda","lastName":"L\u00f3pez Avalos","username":"gricelda","avatarColor":"#ef5350","isActive":true} - -[2025-06-05 16:37:29.103554] [debug] Número de WhatsApp del Instalador: 4181817609 - -[2025-06-05 16:37:29.134756] [debug] Valor de $installerFullName: María Grielda López Avalos - -[2025-06-05 16:37:29.209182] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 - -[2025-06-05 16:37:29.209317] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-06-05 16:37:29.209439] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-06-05 16:37:29.209513] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -Datos de la notificación de trabajo: {"clientFullName":"Daniel Humberto Soto Villegas","jobId":"56","date":"*04\/06\/2025*","installerName":"Mar\u00eda Grielda L\u00f3pez Avalos"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false - -DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: false - -Enviando notificación normal de visita técnica al cliente, valor de reprogramming y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "*#️⃣56*", "🗓️ *04/06/2025*", "👷🏻‍♂️➡️ *María Grielda López Avalos*", "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":"8acbd5a6672b416287a6ee5a372d2e0d","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-06-05 16:37:30.014044] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-06-05 16:37:30.014225] [debug] Valor de $title en verifyJobActionToDo: [NOTIFICACION-PENDIENTE]Servicio - -[2025-06-05 16:37:30.090080] [debug] Valor de $title después de quitar el prefijo en verifyJobActionToDo: Servicio - -[2025-06-05 16:37:30.090549] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: false - -[2025-06-05 16:37:30.090645] [debug] No se cambió el instalador - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"Mar\u00eda Grielda L\u00f3pez Avalos","clientFullName":"Daniel Humberto Soto Villegas [ID:2]","jobId":"56","clientAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","clientWhatsApp":"5214181878106, 5214181148783","date":"*04\/06\/2025*","jobDescription":"Hola mundo","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false - -Enviando notificación normal de tarea al instalador, valor de reprogramming y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181817609", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ *María Grielda López Avalos* se te ha asignado una tarea con folio #️⃣ *56*, del cliente 👤 *Daniel Humberto Soto Villegas [ID:2]*, para el 🗓️ *04/06/2025*", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], - "template_uuid": "88eeb6420a214fd8870dd28d741021c4", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"aad1315841c1487b807ef3fdb90ee561","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-06-05 16:37:30.992904] [notice] Logging level set to:debug -[2025-06-05 16:37:30.993124] [debug] valor del webhook: {"uuid":"16465133-eb1a-4d18-8f35-7cfd8102cd18","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 16:37:31.025384] [debug] valor el evento recibido por webhook: job.edit - -[2025-06-05 16:37:31.025530] [debug] Valor de JSON: {"uuid":"16465133-eb1a-4d18-8f35-7cfd8102cd18","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"[NOTIFICACION-PENDIENTE]Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 16:37:31.025661] [debug] Se actualiza un trabajo - -[2025-06-05 16:37:31.025711] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-06-05 16:37:31.025752] [debug] No hubo cambio en el instalador ni en la fecha -[2025-06-05 16:38:37.431113] [notice] Logging level set to:debug -[2025-06-05 16:38:37.431324] [debug] valor del webhook: {"uuid":"2449f0c1-4f0e-4d77-b135-4acd2cf89525","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1019,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 16:38:37.458605] [debug] valor el evento recibido por webhook: job.edit - -[2025-06-05 16:38:37.459058] [debug] Valor de JSON: {"uuid":"2449f0c1-4f0e-4d77-b135-4acd2cf89525","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1019,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 16:38:37.459348] [debug] Se actualiza un trabajo - -[2025-06-05 16:38:37.459425] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-06-05 16:38:37.459469] [debug] No hay reprogramación de trabajo pero si hay cambio de instalador -[2025-06-05 16:38:37.459515] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-06-05 16:38:37.459598] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"2449f0c1-4f0e-4d77-b135-4acd2cf89525","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1019,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 16:38:37.459641] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"2449f0c1-4f0e-4d77-b135-4acd2cf89525","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1019,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1131,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 16:38:37.459681] [debug] Valor de $reprogramming en verifyJobActionToDo: false - -[2025-06-05 16:38:37.459718] [debug] Valor de $changeInstaller en verifyJobActionToDo: true - -[2025-06-05 16:38:37.459760] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Ángel Arvizu", - "whatsapp": "4181878106" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - }, - { - "id": 1131, - "nombre": "Gricelda Avalos", - "whatsapp": "4181817609" - } - ] -} - -[2025-06-05 16:38:37.492814] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1019,"unmsId":"75e00242-86c2-436a-b3ac-bd6c31db681e","email":"lionelmuz@gmail.com","firstName":"Mucio","lastName":"Robledo Villegas","username":"muz","avatarColor":"#8bc34a","isActive":true} - -[2025-06-05 16:38:37.492952] [debug] Número de WhatsApp del Instalador: 4181878106 - -[2025-06-05 16:38:37.524081] [debug] Valor de $installerFullName: Mucio Robledo Villegas - -[2025-06-05 16:38:37.590919] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 - -[2025-06-05 16:38:37.590967] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-06-05 16:38:37.591068] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-06-05 16:38:37.591114] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -Datos de la notificación de trabajo: {"clientFullName":"Daniel Humberto Soto Villegas","jobId":"56","date":"*04\/06\/2025*","installerName":"Mucio Robledo Villegas"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true - -DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: true - -Enviando notificación de cambio de instalador al cliente, valor de reprogramming y valor de changeInstaller 1 - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "se ha hecho un cambio de técnico 👷🏻‍♂️🔄 para su visita con el folio *#️⃣56*", "🗓️ *04/06/2025*", "👷🏻‍♂️➡️ *Mucio Robledo Villegas*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], - "template_uuid": "d684e6fa2ba24593a86c98be1815831d", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"f5f99483202540d29f91232b8aeb5457","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-06-05 16:38:38.380162] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-06-05 16:38:38.380430] [debug] Valor de $title en verifyJobActionToDo: Servicio - -[2025-06-05 16:38:38.380537] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Servicio - -[2025-06-05 16:38:38.380619] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: true - -[2025-06-05 16:38:38.380693] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó - -[2025-06-05 16:38:38.420311] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181817609 - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"\ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0fMar\u00eda Grielda L\u00f3pez Avalos","subjectOfChange":"se te ha desasignado\u274c la tarea con el folio ","jobId":"56","clientFullName":"[2] Daniel Humberto Soto Villegas","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico \ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u27a1\ufe0f *Mucio Robledo Villegas*"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true - -Enviando notificación de cambio de instalador al instalador anterior (desasignación), valor de reprogramming y valor de changeInstaller 1 - -La cadena CURL que se envia es: { - "to": "5214181817609", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️María Grielda López Avalos", "se te ha desasignado❌ la tarea con el folio ", "#️⃣56", "*👤[2] Daniel Humberto Soto Villegas* ", "En tu lugar asistirá el técnico 👷🏻‍♂️➡️ *Mucio Robledo Villegas*"], - "template_uuid": "e1aa2b0fd3884595918f4ac2676acd29", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"869a057448da4abb8eb34dad9aafe99f","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","clientFullName":"Daniel Humberto Soto Villegas [ID:2]","jobId":"56","clientAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","clientWhatsApp":"5214181878106, 5214181148783","date":"*04\/06\/2025*","jobDescription":"Hola mundo","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false - -Enviando notificación normal de tarea al instalador, valor de reprogramming y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ *Mucio Robledo Villegas* se te ha asignado una tarea con folio #️⃣ *56*, del cliente 👤 *Daniel Humberto Soto Villegas [ID:2]*, para el 🗓️ *04/06/2025*", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], - "template_uuid": "88eeb6420a214fd8870dd28d741021c4", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"4f597420a78c4a5f8728bdd0cbf97c8d","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-06-05 21:02:25.596599] [notice] Logging level set to:debug -[2025-06-05 21:02:25.596788] [debug] valor del webhook: {"uuid":"0cf90d4b-1891-4218-9762-16b88dfb9096","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1172,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1019,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 21:02:25.621591] [debug] valor el evento recibido por webhook: job.edit - -[2025-06-05 21:02:25.621746] [debug] Valor de JSON: {"uuid":"0cf90d4b-1891-4218-9762-16b88dfb9096","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1172,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1019,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 21:02:25.621963] [debug] Se actualiza un trabajo - -[2025-06-05 21:02:25.622013] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-06-05 21:02:25.622050] [debug] No hay reprogramación de trabajo pero si hay cambio de instalador -[2025-06-05 21:02:25.622087] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-06-05 21:02:25.622158] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"0cf90d4b-1891-4218-9762-16b88dfb9096","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1172,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1019,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 21:02:25.622247] [debug] Valor de $reprogramming en verifyJobActionToDo: false - -[2025-06-05 21:02:25.622283] [debug] Valor de $changeInstaller en verifyJobActionToDo: true - -[2025-06-05 21:02:25.622323] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Ángel Arvizu", - "whatsapp": "4181878106" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - }, - { - "id": 1131, - "nombre": "Gricelda Avalos", - "whatsapp": "4181817609" - } - ] -} - -[2025-06-05 21:02:25.659672] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1172,"unmsId":"2ac31363-6037-40f3-8196-5cc7c71866b0","email":"amazonrostro@gmail.com","firstName":"Juan","lastName":"Rostro","username":"rostro","avatarColor":"#00695c","isActive":true} - -[2025-06-05 21:02:25.659816] [debug] Número de WhatsApp del Instalador: 4181878106 - -[2025-06-05 21:02:25.713198] [debug] Valor de $installerFullName: Juan Rostro - -[2025-06-05 21:02:25.813802] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 - -[2025-06-05 21:02:25.814026] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-06-05 21:02:25.814162] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-06-05 21:02:25.814210] [debug] Valor de $resultadoFinalNumerosCliente en verifyJobActionToDo: 5214181878106, 5214181148783 - -[2025-06-05 21:02:25.814295] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -Datos de la notificación de trabajo: {"clientFullName":"Daniel Humberto Soto Villegas","jobId":"56","date":"*04\/06\/2025*","installerName":"Juan Rostro"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true - -DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: true - -Enviando notificación de cambio de instalador al cliente, valor de reprogramming y valor de changeInstaller 1 - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "se ha hecho un cambio de técnico 👷🏻‍♂️🔄 para su visita con el folio *#️⃣56*", "🗓️ *04/06/2025*", "👷🏻‍♂️➡️ *Juan Rostro*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], - "template_uuid": "d684e6fa2ba24593a86c98be1815831d", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"72c07b67ef8a4b39b50045d8f51cee71","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-06-05 21:02:26.598397] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-06-05 21:02:26.598649] [debug] Valor de $title en verifyJobActionToDo: Servicio - -[2025-06-05 21:02:26.598776] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Servicio - -[2025-06-05 21:02:26.598896] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: true - -[2025-06-05 21:02:26.599031] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó - -[2025-06-05 21:02:26.640202] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106 - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"\ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0fMucio Robledo Villegas","subjectOfChange":"se te ha desasignado\u274c la tarea con el folio ","jobId":"56","clientFullName":"[2] Daniel Humberto Soto Villegas","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico \ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u27a1\ufe0f *Juan Rostro*"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true - -Enviando notificación de cambio de instalador al instalador anterior (desasignación), valor de reprogramming y valor de changeInstaller 1 - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️Mucio Robledo Villegas", "se te ha desasignado❌ la tarea con el folio ", "#️⃣56", "*👤[2] Daniel Humberto Soto Villegas* ", "En tu lugar asistirá el técnico 👷🏻‍♂️➡️ *Juan Rostro*"], - "template_uuid": "e1aa2b0fd3884595918f4ac2676acd29", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"0fa515fb862740a698449a9448ff62c0","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"Juan Rostro","clientFullName":"Daniel Humberto Soto Villegas [ID:2]","jobId":"56","clientAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","clientWhatsApp":"5214181878106, 5214181148783","date":"*04\/06\/2025*","jobDescription":"Hola mundo","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false - -Enviando notificación normal de tarea al instalador, valor de reprogramming y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ *Juan Rostro* se te ha asignado una tarea con folio #️⃣ *56*, del cliente 👤 *Daniel Humberto Soto Villegas [ID:2]*, para el 🗓️ *04/06/2025*", "5214181878106, 5214181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], - "template_uuid": "88eeb6420a214fd8870dd28d741021c4", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"ebd6d035254644d495be0843d54c35b6","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-06-05 23:52:55.755083] [notice] Logging level set to:debug -[2025-06-05 23:52:55.755179] [debug] valor del webhook: {"uuid":"c28bc670-fa35-4501-9adc-3153a6cfa0b6","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1019,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1172,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 23:52:55.781836] [debug] valor el evento recibido por webhook: job.edit - -[2025-06-05 23:52:55.781888] [debug] Valor de JSON: {"uuid":"c28bc670-fa35-4501-9adc-3153a6cfa0b6","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1019,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1172,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 23:52:55.782110] [debug] Se actualiza un trabajo - -[2025-06-05 23:52:55.782129] [debug] Validando claves dentro de entityBeforeEdit y entity -[2025-06-05 23:52:55.782140] [debug] No hay reprogramación de trabajo pero si hay cambio de instalador -[2025-06-05 23:52:55.782152] [debug] ******** INCIO DE LA FUNCIÓN verifyJobActionToDo ****** - -[2025-06-05 23:52:55.782197] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"c28bc670-fa35-4501-9adc-3153a6cfa0b6","changeType":"edit","entity":"job","entityId":"56","eventName":"job.edit","extraData":{"entity":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1019,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":56,"title":"Servicio","description":"Hola mundo","assignedUserId":1172,"clientId":2,"date":"2025-06-04T15:00:11-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} - -[2025-06-05 23:52:55.782212] [debug] Valor de $reprogramming en verifyJobActionToDo: false - -[2025-06-05 23:52:55.782219] [debug] Valor de $changeInstaller en verifyJobActionToDo: true - -[2025-06-05 23:52:55.782233] [debug] Valor de $installersData en verifyJobActionToDo: { - "instaladores": [ - { - "id": 1019, - "nombre": "Mucio Robledo", - "whatsapp": "4181878106" - }, - { - "id": 1173, - "nombre": "Ángel Arvizu", - "whatsapp": "4181878106" - }, - { - "id": 1172, - "nombre": "Juan Rostro", - "whatsapp": "4181878106" - }, - { - "id": 1015, - "nombre": "Daniel Humberto", - "whatsapp": "4181878106" - }, - { - "id": 1131, - "nombre": "Gricelda Avalos", - "whatsapp": "4181817609" - } - ] -} - -[2025-06-05 23:52:55.819741] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1019,"unmsId":"75e00242-86c2-436a-b3ac-bd6c31db681e","email":"lionelmuz@gmail.com","firstName":"Mucio","lastName":"Robledo Villegas","username":"muz","avatarColor":"#8bc34a","isActive":true} - -[2025-06-05 23:52:55.819792] [debug] Número de WhatsApp del Instalador: 4181878106 - -[2025-06-05 23:52:55.850147] [debug] Valor de $installerFullName: Mucio Robledo Villegas - -[2025-06-05 23:52:55.919456] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181148783 - -[2025-06-05 23:52:55.919579] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181148783"] - -[2025-06-05 23:52:55.919703] [debug] Valor de $resultados en verifyJobActionToDo: ["4181878106","4181148783"] - -[2025-06-05 23:52:55.919750] [debug] Valor de $resultadoFinalNumerosCliente en verifyJobActionToDo: 4181878106, 4181148783 - -[2025-06-05 23:52:55.919826] [debug] Se encontró un tipo de contacto whatsapp - -Enviando mensaje de trabajo para el cliente - -Datos de la notificación de trabajo: {"clientFullName":"Daniel Humberto Soto Villegas","jobId":"56","date":"*04\/06\/2025*","installerName":"Mucio Robledo Villegas"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true - -DEBUG: Valores antes de la estructura IF - Reprogramming: false, ChangeInstaller: true - -Enviando notificación de cambio de instalador al cliente, valor de reprogramming y valor de changeInstaller 1 - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👤 *Daniel Humberto Soto Villegas*", "se ha hecho un cambio de técnico 👷🏻‍♂️🔄 para su visita con el folio *#️⃣56*", "🗓️ *04/06/2025*", "👷🏻‍♂️➡️ *Mucio Robledo Villegas*", "asegúrese de que alguien esté presente en el domicilio 🏠 para permitir el acceso y confirme su disponibilidad."], - "template_uuid": "d684e6fa2ba24593a86c98be1815831d", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"9c7763881f02415cb4f508f39898e8ca","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-06-05 23:52:56.810072] [info] Notificación enviada correctamente al cliente con teléfono 5214181148783 después de 1 intento(s). - -[2025-06-05 23:52:56.810312] [debug] Valor de $title en verifyJobActionToDo: Servicio - -[2025-06-05 23:52:56.810436] [debug] El título no contiene el prefijo [NOTIFICACION-PENDIENTE] en verifyJobActionToDo: Servicio - -[2025-06-05 23:52:56.810559] [debug] DEBUG: Valores después de conversión para mensaje instalador - Reprogramming: false, ChangeInstaller: true - -[2025-06-05 23:52:56.810666] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó - -[2025-06-05 23:52:56.847292] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106 - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"\ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0fJuan Rostro","subjectOfChange":"se te ha desasignado\u274c la tarea con el folio ","jobId":"56","clientFullName":"[2] Daniel Humberto Soto Villegas","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico \ud83d\udc77\ud83c\udffb\u200d\u2642\ufe0f\u27a1\ufe0f *Mucio Robledo Villegas*"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: true - -Enviando notificación de cambio de instalador al instalador anterior (desasignación), valor de reprogramming y valor de changeInstaller 1 - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️Juan Rostro", "se te ha desasignado❌ la tarea con el folio ", "#️⃣56", "*👤[2] Daniel Humberto Soto Villegas* ", "En tu lugar asistirá el técnico 👷🏻‍♂️➡️ *Mucio Robledo Villegas*"], - "template_uuid": "e1aa2b0fd3884595918f4ac2676acd29", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"626979877ba74a12abcd892690e07c13","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -Enviando mensaje de tarea al instalador - -Datos de la notificación de tarea: {"installerName":"Mucio Robledo Villegas","clientFullName":"Daniel Humberto Soto Villegas [ID:2]","jobId":"56","clientAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","clientWhatsApp":"4181878106, 4181148783","date":"*04\/06\/2025*","jobDescription":"Hola mundo","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} - -DEBUG: Valores después de conversión - Reprogramming: false, ChangeInstaller: false - -Enviando notificación normal de tarea al instalador, valor de reprogramming y valor de changeInstaller - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "S/M" - }, - "template_values": ["👷🏻‍♂️ *Mucio Robledo Villegas* se te ha asignado una tarea con folio #️⃣ *56*, del cliente 👤 *Daniel Humberto Soto Villegas [ID:2]*, para el 🗓️ *04/06/2025*", "4181878106, 4181148783", "https://www.google.com/maps?q=21.1564209,-100.9384185", "gYAIEK:Be}SK*01z5+/V"], - "template_uuid": "88eeb6420a214fd8870dd28d741021c4", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"65a55e509d04488bb3e9bc316b8b21da","status":"enqueued"}} -La notificación fue enviada correctamente con estado: enqueued - -[2025-06-06 6:25:02.565749] [notice] Logging level set to:debug -[2025-06-06 6:25:02.565850] [debug] valor del webhook: {"uuid":"6b215d55-a351-497c-a5c3-4b00af0d8a58","changeType":"overdue","entity":"invoice","entityId":"1945","eventName":"invoice.overdue","extraData":{"entity":{"id":1945,"clientId":160,"number":"001895","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":"2025-06-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1948,"type":"service","label":"Basico 300 01\/06\/2025 \u2013 30\/06\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":151,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Jimy","clientLastName":"Turner","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Jalisco","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-06-06 6:25:02.871646] [debug] valor el evento recibido por webhook: invoice.overdue - -[2025-06-06 6:25:02.871702] [debug] Valor de JSON: {"uuid":"6b215d55-a351-497c-a5c3-4b00af0d8a58","changeType":"overdue","entity":"invoice","entityId":"1945","eventName":"invoice.overdue","extraData":{"entity":{"id":1945,"clientId":160,"number":"001895","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":"2025-06-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1948,"type":"service","label":"Basico 300 01\/06\/2025 \u2013 30\/06\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":151,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Jimy","clientLastName":"Turner","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Jalisco","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-06-06 6:25:02.871908] [debug] Factura vencida - -[2025-06-06 6:25:02.871952] [debug] datos del notification para el invoice overdue:{"uuid":"6b215d55-a351-497c-a5c3-4b00af0d8a58","changeType":"overdue","entity":"invoice","entityId":1945,"message":null,"clientId":160,"eventName":"invoice.overdue","clientData":{"id":160,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Jalisco","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Jalisco 45, 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":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Jimy","lastName":"Turner","username":"jymy@gmail.com","contacts":[{"id":164,"clientId":160,"email":"jymy@gmail.com","phone":"4186784656","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-970,"accountCredit":0,"accountOutstanding":970,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.1544785,"addressGpsLon":-100.9352517,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1945,"clientId":160,"number":"001895","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":"2025-06-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1948,"type":"service","label":"Basico 300 01\/06\/2025 \u2013 30\/06\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":151,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Jimy","clientLastName":"Turner","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Jalisco","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-06-06 6:25:02.871984] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** - -[2025-06-06 6:25:02.872106] [debug] Numero de cel obtenido - -[2025-06-06 6:25:02.872118] [warning] No se encontró un teléfono celular válido para el cliente: 160 -[2025-06-06 6:25:03.080641] [notice] Logging level set to:debug -[2025-06-06 6:25:03.080697] [debug] valor del webhook: {"uuid":"f211c9c9-32e3-4061-a207-8f2f76e35777","changeType":"overdue","entity":"invoice","entityId":"1946","eventName":"invoice.overdue","extraData":{"entity":{"id":1946,"clientId":162,"number":"001896","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":"2025-06-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1949,"type":"service","label":"PREMIUM 01\/05\/2025 \u2013 31\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":128,"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":"Edward","clientLastName":"Elric","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"76 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},"entityBeforeEdit":null}} - -[2025-06-06 6:25:03.247091] [debug] valor el evento recibido por webhook: invoice.overdue - -[2025-06-06 6:25:03.247143] [debug] Valor de JSON: {"uuid":"f211c9c9-32e3-4061-a207-8f2f76e35777","changeType":"overdue","entity":"invoice","entityId":"1946","eventName":"invoice.overdue","extraData":{"entity":{"id":1946,"clientId":162,"number":"001896","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":"2025-06-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1949,"type":"service","label":"PREMIUM 01\/05\/2025 \u2013 31\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":128,"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":"Edward","clientLastName":"Elric","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"76 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},"entityBeforeEdit":null}} - -[2025-06-06 6:25:03.247251] [debug] Factura vencida - -[2025-06-06 6:25:03.247293] [debug] datos del notification para el invoice overdue:{"uuid":"f211c9c9-32e3-4061-a207-8f2f76e35777","changeType":"overdue","entity":"invoice","entityId":1946,"message":null,"clientId":162,"eventName":"invoice.overdue","clientData":{"id":162,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"76 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 76, 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":"2025-01-07T00:00:00-0600","leadConvertedAt":"2025-01-10T10:32:20-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Edward","lastName":"Elric","username":null,"contacts":[{"id":166,"clientId":162,"email":"eduardelric@gmail.com","phone":"5214181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":159,"clientId":162,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"434876867834423324","clientZoneVisible":true},{"id":160,"clientId":162,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RYsuykCEvupaGF","clientZoneVisible":true},{"id":161,"clientId":162,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180599808752427","clientZoneVisible":true}],"accountBalance":-2316.67,"accountCredit":0,"accountOutstanding":2316.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#d84315","addressGpsLat":21.1575488,"addressGpsLon":-100.9409119,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1946,"clientId":162,"number":"001896","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":"2025-06-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1949,"type":"service","label":"PREMIUM 01\/05\/2025 \u2013 31\/05\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":128,"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":"Edward","clientLastName":"Elric","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"76 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},"paymentData":null} - -[2025-06-06 6:25:03.247325] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** - -[2025-06-06 6:25:03.247380] [debug] Numero de cel obtenido - -[2025-06-06 6:25:03.247392] [warning] No se encontró un teléfono celular válido para el cliente: 162 -[2025-06-06 6:25:03.362845] [notice] Logging level set to:debug -[2025-06-06 6:25:03.362895] [debug] valor del webhook: {"uuid":"ab0b6d74-8288-4f39-af3d-9ea50ef59522","changeType":"overdue","entity":"invoice","entityId":"1950","eventName":"invoice.overdue","extraData":{"entity":{"id":1950,"clientId":171,"number":"001900","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1953,"type":"service","label":"Basico 300 21\/05\/2025 \u2013 31\/05\/2025","price":300,"quantity":0.36666666666667,"total":110,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":155,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":110,"discount":null,"discountLabel":"Descuento","taxes":[],"total":110,"amountPaid":0,"totalUntaxed":110,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":110,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Archi","clientLastName":"Isalas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Campeche 56","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-06-06 6:25:03.531928] [debug] valor el evento recibido por webhook: invoice.overdue - -[2025-06-06 6:25:03.531984] [debug] Valor de JSON: {"uuid":"ab0b6d74-8288-4f39-af3d-9ea50ef59522","changeType":"overdue","entity":"invoice","entityId":"1950","eventName":"invoice.overdue","extraData":{"entity":{"id":1950,"clientId":171,"number":"001900","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1953,"type":"service","label":"Basico 300 21\/05\/2025 \u2013 31\/05\/2025","price":300,"quantity":0.36666666666667,"total":110,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":155,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":110,"discount":null,"discountLabel":"Descuento","taxes":[],"total":110,"amountPaid":0,"totalUntaxed":110,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":110,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Archi","clientLastName":"Isalas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Campeche 56","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-06-06 6:25:03.532090] [debug] Factura vencida - -[2025-06-06 6:25:03.532131] [debug] datos del notification para el invoice overdue:{"uuid":"ab0b6d74-8288-4f39-af3d-9ea50ef59522","changeType":"overdue","entity":"invoice","entityId":1950,"message":null,"clientId":171,"eventName":"invoice.overdue","clientData":{"id":171,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"Campeche 56","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Campeche 56, 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":"2025-05-21T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Archi","lastName":"Isalas","username":"mainstreamm2@gmail.com","contacts":[{"id":177,"clientId":171,"email":"mainstreamm2@gmail.com","phone":"4181878106","name":null,"isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":198,"clientId":171,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_SM2zH6IsjTz6ol","clientZoneVisible":true},{"id":199,"clientId":171,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180950530868794","clientZoneVisible":true},{"id":201,"clientId":171,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-110,"accountCredit":0,"accountOutstanding":110,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1572461,"addressGpsLon":-100.9377137,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1950,"clientId":171,"number":"001900","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1953,"type":"service","label":"Basico 300 21\/05\/2025 \u2013 31\/05\/2025","price":300,"quantity":0.36666666666667,"total":110,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":155,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":110,"discount":null,"discountLabel":"Descuento","taxes":[],"total":110,"amountPaid":0,"totalUntaxed":110,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":110,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Archi","clientLastName":"Isalas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Campeche 56","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-06-06 6:25:03.532150] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** - -[2025-06-06 6:25:03.532205] [debug] Numero de cel obtenido - -[2025-06-06 6:25:03.532216] [warning] No se encontró un teléfono celular válido para el cliente: 171 -[2025-06-06 6:25:03.647977] [notice] Logging level set to:debug -[2025-06-06 6:25:03.648026] [debug] valor del webhook: {"uuid":"67071d72-1540-4bdb-837f-7fbae8f75f5b","changeType":"overdue","entity":"invoice","entityId":"1953","eventName":"invoice.overdue","extraData":{"entity":{"id":1953,"clientId":157,"number":"001903","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1956,"type":"service","label":"plan300 01\/05\/2025 \u2013 31\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":127,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGEL","clientLastName":"ARVIZU SIIP","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Calle Colima","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-06-06 6:25:03.800709] [debug] valor el evento recibido por webhook: invoice.overdue - -[2025-06-06 6:25:03.800767] [debug] Valor de JSON: {"uuid":"67071d72-1540-4bdb-837f-7fbae8f75f5b","changeType":"overdue","entity":"invoice","entityId":"1953","eventName":"invoice.overdue","extraData":{"entity":{"id":1953,"clientId":157,"number":"001903","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1956,"type":"service","label":"plan300 01\/05\/2025 \u2013 31\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":127,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGEL","clientLastName":"ARVIZU SIIP","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Calle Colima","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-06-06 6:25:03.800879] [debug] Factura vencida - -[2025-06-06 6:25:03.800920] [debug] datos del notification para el invoice overdue:{"uuid":"67071d72-1540-4bdb-837f-7fbae8f75f5b","changeType":"overdue","entity":"invoice","entityId":1953,"message":null,"clientId":157,"eventName":"invoice.overdue","clientData":{"id":157,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Colima 45, Mariano Balleza, 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":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANGEL","lastName":"ARVIZU SIIP","username":null,"contacts":[{"id":161,"clientId":157,"email":null,"phone":"5214181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":154,"clientId":157,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RWjBO6Lsy1TgAV","clientZoneVisible":true},{"id":155,"clientId":157,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180695267429334","clientZoneVisible":true}],"accountBalance":-1480,"accountCredit":0,"accountOutstanding":1480,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574303,"addressGpsLon":-100.9275061,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1953,"clientId":157,"number":"001903","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1956,"type":"service","label":"plan300 01\/05\/2025 \u2013 31\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":127,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGEL","clientLastName":"ARVIZU SIIP","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Calle Colima","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-06-06 6:25:03.800937] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** - -[2025-06-06 6:25:03.800992] [debug] Numero de cel obtenido - -[2025-06-06 6:25:03.801009] [warning] No se encontró un teléfono celular válido para el cliente: 157 -[2025-06-06 6:25:03.915988] [notice] Logging level set to:debug -[2025-06-06 6:25:03.916090] [debug] valor del webhook: {"uuid":"2d5d2fc1-bd71-4cc5-aa2c-1982b4eabd7d","changeType":"overdue","entity":"invoice","entityId":"1948","eventName":"invoice.overdue","extraData":{"entity":{"id":1948,"clientId":112,"number":"001898","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":"2025-06-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1951,"type":"service","label":"Basico 300 01\/06\/2025 \u2013 30\/06\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":153,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Do\u00f1a petra","clientLastName":"Gonzalez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Tamaulipas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-06-06 6:25:04.063342] [debug] valor el evento recibido por webhook: invoice.overdue - -[2025-06-06 6:25:04.063394] [debug] Valor de JSON: {"uuid":"2d5d2fc1-bd71-4cc5-aa2c-1982b4eabd7d","changeType":"overdue","entity":"invoice","entityId":"1948","eventName":"invoice.overdue","extraData":{"entity":{"id":1948,"clientId":112,"number":"001898","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":"2025-06-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1951,"type":"service","label":"Basico 300 01\/06\/2025 \u2013 30\/06\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":153,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Do\u00f1a petra","clientLastName":"Gonzalez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Tamaulipas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-06-06 6:25:04.063504] [debug] Factura vencida - -[2025-06-06 6:25:04.063545] [debug] datos del notification para el invoice overdue:{"uuid":"2d5d2fc1-bd71-4cc5-aa2c-1982b4eabd7d","changeType":"overdue","entity":"invoice","entityId":1948,"message":null,"clientId":112,"eventName":"invoice.overdue","clientData":{"id":112,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Tamaulipas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Tamaulipas 45, 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-04-24T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Do\u00f1a petra","lastName":"Gonzalez","username":null,"contacts":[{"id":116,"clientId":112,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":196,"clientId":112,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_S6evSxHpI6pSR6","clientZoneVisible":true},{"id":197,"clientId":112,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180438425083672","clientZoneVisible":true}],"accountBalance":-810,"accountCredit":0,"accountOutstanding":810,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef5350","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1948,"clientId":112,"number":"001898","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":"2025-06-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1951,"type":"service","label":"Basico 300 01\/06\/2025 \u2013 30\/06\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":153,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Do\u00f1a petra","clientLastName":"Gonzalez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Tamaulipas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-06-06 6:25:04.063563] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** - -[2025-06-06 6:25:04.063616] [debug] Numero de cel obtenido - -[2025-06-06 6:25:04.063627] [warning] No se encontró un teléfono celular válido para el cliente: 112 -[2025-06-06 6:25:04.182071] [notice] Logging level set to:debug -[2025-06-06 6:25:04.182185] [debug] valor del webhook: {"uuid":"b31068cd-5615-4fcb-a85b-5651a055dbbb","changeType":"overdue","entity":"invoice","entityId":"1949","eventName":"invoice.overdue","extraData":{"entity":{"id":1949,"clientId":148,"number":"001899","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":"2025-06-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1952,"type":"service","label":"plan300 01\/05\/2025 \u2013 31\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":116,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El AR","clientLastName":"Real 3D","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"24 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},"entityBeforeEdit":null}} - -[2025-06-06 6:25:04.346210] [debug] valor el evento recibido por webhook: invoice.overdue - -[2025-06-06 6:25:04.346262] [debug] Valor de JSON: {"uuid":"b31068cd-5615-4fcb-a85b-5651a055dbbb","changeType":"overdue","entity":"invoice","entityId":"1949","eventName":"invoice.overdue","extraData":{"entity":{"id":1949,"clientId":148,"number":"001899","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":"2025-06-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1952,"type":"service","label":"plan300 01\/05\/2025 \u2013 31\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":116,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El AR","clientLastName":"Real 3D","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"24 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},"entityBeforeEdit":null}} - -[2025-06-06 6:25:04.346371] [debug] Factura vencida - -[2025-06-06 6:25:04.346410] [debug] datos del notification para el invoice overdue:{"uuid":"b31068cd-5615-4fcb-a85b-5651a055dbbb","changeType":"overdue","entity":"invoice","entityId":1949,"message":null,"clientId":148,"eventName":"invoice.overdue","clientData":{"id":148,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"24 Campeche","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Campeche 24, 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-08-19T00:00:00-0600","leadConvertedAt":"2024-08-19T15:08:20-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El AR","lastName":"Real 3D","username":null,"contacts":[{"id":152,"clientId":148,"email":"elarquijuve@gmail.com","phone":"41818781806","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":147,"clientId":148,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_Qh0pTQM9a96D8B","clientZoneVisible":true},{"id":148,"clientId":148,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180834778043086","clientZoneVisible":true},{"id":151,"clientId":148,"customAttributeId":8,"name":"conekta","key":"conekta","value":"aasdad","clientZoneVisible":true}],"accountBalance":-1200,"accountCredit":0,"accountOutstanding":1200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#c62828","addressGpsLat":21.1558353,"addressGpsLon":-100.9384629,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1949,"clientId":148,"number":"001899","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":"2025-06-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1952,"type":"service","label":"plan300 01\/05\/2025 \u2013 31\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":116,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El AR","clientLastName":"Real 3D","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"24 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},"paymentData":null} - -[2025-06-06 6:25:04.346427] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** - -[2025-06-06 6:25:04.346482] [debug] Numero de cel obtenido - -[2025-06-06 6:25:04.346494] [warning] No se encontró un teléfono celular válido para el cliente: 148 -[2025-06-06 6:25:04.458733] [notice] Logging level set to:debug -[2025-06-06 6:25:04.458842] [debug] valor del webhook: {"uuid":"9811aa73-9b8b-443a-8d5c-f35d8c0d770e","changeType":"overdue","entity":"invoice","entityId":"1951","eventName":"invoice.overdue","extraData":{"entity":{"id":1951,"clientId":114,"number":"001901","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":"2025-06-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1954,"type":"service","label":"Basico 300 01\/06\/2025 \u2013 30\/06\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":149,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Calavera","clientLastName":"Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Guanajuato","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-06-06 6:25:04.602421] [debug] valor el evento recibido por webhook: invoice.overdue - -[2025-06-06 6:25:04.602475] [debug] Valor de JSON: {"uuid":"9811aa73-9b8b-443a-8d5c-f35d8c0d770e","changeType":"overdue","entity":"invoice","entityId":"1951","eventName":"invoice.overdue","extraData":{"entity":{"id":1951,"clientId":114,"number":"001901","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":"2025-06-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1954,"type":"service","label":"Basico 300 01\/06\/2025 \u2013 30\/06\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":149,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Calavera","clientLastName":"Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Guanajuato","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-06-06 6:25:04.602582] [debug] Factura vencida - -[2025-06-06 6:25:04.602622] [debug] datos del notification para el invoice overdue:{"uuid":"9811aa73-9b8b-443a-8d5c-f35d8c0d770e","changeType":"overdue","entity":"invoice","entityId":1951,"message":null,"clientId":114,"eventName":"invoice.overdue","clientData":{"id":114,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Guanajuato","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Guanajuato 45, 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-04-24T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan Calavera","lastName":"Gonz\u00e1lez","username":null,"contacts":[{"id":118,"clientId":114,"email":"juancalavera@gmail.com","phone":"41856987412","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":188,"clientId":114,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_S0EQeXBl8NhBZi","clientZoneVisible":true},{"id":189,"clientId":114,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180969856650415","clientZoneVisible":true}],"accountBalance":-980,"accountCredit":0,"accountOutstanding":980,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1567207,"addressGpsLon":-100.9310153,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1951,"clientId":114,"number":"001901","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":"2025-06-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1954,"type":"service","label":"Basico 300 01\/06\/2025 \u2013 30\/06\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":149,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Calavera","clientLastName":"Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Guanajuato","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-06-06 6:25:04.602639] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** - -[2025-06-06 6:25:04.602693] [debug] Numero de cel obtenido - -[2025-06-06 6:25:04.602704] [warning] No se encontró un teléfono celular válido para el cliente: 114 -[2025-06-06 6:25:04.717138] [notice] Logging level set to:debug -[2025-06-06 6:25:04.717201] [debug] valor del webhook: {"uuid":"af45aca2-a67b-4f65-90e5-1732786a1a42","changeType":"overdue","entity":"invoice","entityId":"1952","eventName":"invoice.overdue","extraData":{"entity":{"id":1952,"clientId":146,"number":"001902","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":"2025-06-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1955,"type":"service","label":"Basico 300 01\/05\/2025 \u2013 31\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":131,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Delfino","clientLastName":"De los Mares","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"36 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},"entityBeforeEdit":null}} - -[2025-06-06 6:25:04.857093] [debug] valor el evento recibido por webhook: invoice.overdue - -[2025-06-06 6:25:04.857151] [debug] Valor de JSON: {"uuid":"af45aca2-a67b-4f65-90e5-1732786a1a42","changeType":"overdue","entity":"invoice","entityId":"1952","eventName":"invoice.overdue","extraData":{"entity":{"id":1952,"clientId":146,"number":"001902","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":"2025-06-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1955,"type":"service","label":"Basico 300 01\/05\/2025 \u2013 31\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":131,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Delfino","clientLastName":"De los Mares","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"36 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},"entityBeforeEdit":null}} - -[2025-06-06 6:25:04.857255] [debug] Factura vencida - -[2025-06-06 6:25:04.857295] [debug] datos del notification para el invoice overdue:{"uuid":"af45aca2-a67b-4f65-90e5-1732786a1a42","changeType":"overdue","entity":"invoice","entityId":1952,"message":null,"clientId":146,"eventName":"invoice.overdue","clientData":{"id":146,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"36 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Yucat\u00e1n 36, 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-07-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Delfino","lastName":"De los Mares","username":null,"contacts":[{"id":150,"clientId":146,"email":"mariscoselsietemares@gmail.com","phone":"4188897415","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":145,"clientId":146,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_QZ7T1h3th3Dr7w","clientZoneVisible":true},{"id":146,"clientId":146,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180695453333629","clientZoneVisible":true}],"accountBalance":-1400,"accountCredit":0,"accountOutstanding":1400,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3949ab","addressGpsLat":21.1561796,"addressGpsLon":-100.9371826,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1952,"clientId":146,"number":"001902","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":"2025-06-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1955,"type":"service","label":"Basico 300 01\/05\/2025 \u2013 31\/05\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":131,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Delfino","clientLastName":"De los Mares","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"36 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},"paymentData":null} - -[2025-06-06 6:25:04.857320] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** - -[2025-06-06 6:25:04.857376] [debug] Numero de cel obtenido - -[2025-06-06 6:25:04.857387] [warning] No se encontró un teléfono celular válido para el cliente: 146 -[2025-06-06 6:25:04.972093] [notice] Logging level set to:debug -[2025-06-06 6:25:04.972187] [debug] valor del webhook: {"uuid":"9cc8de59-f1c2-481b-8a7d-8604d2c09adf","changeType":"overdue","entity":"invoice","entityId":"1954","eventName":"invoice.overdue","extraData":{"entity":{"id":1954,"clientId":129,"number":"001904","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":"2025-06-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1957,"type":"service","label":"INTERMEDIO 01\/05\/2025 \u2013 31\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":117,"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":"El Loco","clientLastName":"Valdez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Coahuila","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-06-06 6:25:05.152707] [debug] valor el evento recibido por webhook: invoice.overdue - -[2025-06-06 6:25:05.152759] [debug] Valor de JSON: {"uuid":"9cc8de59-f1c2-481b-8a7d-8604d2c09adf","changeType":"overdue","entity":"invoice","entityId":"1954","eventName":"invoice.overdue","extraData":{"entity":{"id":1954,"clientId":129,"number":"001904","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":"2025-06-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1957,"type":"service","label":"INTERMEDIO 01\/05\/2025 \u2013 31\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":117,"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":"El Loco","clientLastName":"Valdez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Coahuila","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-06-06 6:25:05.152857] [debug] Factura vencida - -[2025-06-06 6:25:05.152895] [debug] datos del notification para el invoice overdue:{"uuid":"9cc8de59-f1c2-481b-8a7d-8604d2c09adf","changeType":"overdue","entity":"invoice","entityId":1954,"message":null,"clientId":129,"eventName":"invoice.overdue","clientData":{"id":129,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"34 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 34, 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-17T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Loco","lastName":"Valdez","username":null,"contacts":[{"id":133,"clientId":129,"email":"pepepeltoro141089@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":133,"clientId":129,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_QJSCgri287Ic0V","clientZoneVisible":true},{"id":134,"clientId":129,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180966482840265","clientZoneVisible":true}],"accountBalance":-2750,"accountCredit":0,"accountOutstanding":2750,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00897b","addressGpsLat":21.1608752,"addressGpsLon":-100.935835,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1954,"clientId":129,"number":"001904","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":"2025-06-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1957,"type":"service","label":"INTERMEDIO 01\/05\/2025 \u2013 31\/05\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":117,"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":"El Loco","clientLastName":"Valdez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Coahuila","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-06-06 6:25:05.152919] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** - -[2025-06-06 6:25:05.152972] [debug] Numero de cel obtenido - -[2025-06-06 6:25:05.152985] [warning] No se encontró un teléfono celular válido para el cliente: 129 -[2025-06-06 6:25:05.272241] [notice] Logging level set to:debug -[2025-06-06 6:25:05.272346] [debug] valor del webhook: {"uuid":"aa155f39-3f93-4649-be80-dd2a326e55be","changeType":"overdue","entity":"invoice","entityId":"1947","eventName":"invoice.overdue","extraData":{"entity":{"id":1947,"clientId":141,"number":"001897","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":"2025-06-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1950,"type":"service","label":"Basico 300 01\/06\/2025 \u2013 30\/06\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":135,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Caim\u00e1n","clientLastName":"Dorado","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"23 Coahuila","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-06-06 6:25:05.426865] [debug] valor el evento recibido por webhook: invoice.overdue - -[2025-06-06 6:25:05.426919] [debug] Valor de JSON: {"uuid":"aa155f39-3f93-4649-be80-dd2a326e55be","changeType":"overdue","entity":"invoice","entityId":"1947","eventName":"invoice.overdue","extraData":{"entity":{"id":1947,"clientId":141,"number":"001897","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":"2025-06-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1950,"type":"service","label":"Basico 300 01\/06\/2025 \u2013 30\/06\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":135,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Caim\u00e1n","clientLastName":"Dorado","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"23 Coahuila","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-06-06 6:25:05.427072] [debug] Factura vencida - -[2025-06-06 6:25:05.427113] [debug] datos del notification para el invoice overdue:{"uuid":"aa155f39-3f93-4649-be80-dd2a326e55be","changeType":"overdue","entity":"invoice","entityId":1947,"message":null,"clientId":141,"eventName":"invoice.overdue","clientData":{"id":141,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 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-06-26T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Caim\u00e1n","lastName":"Dorado","username":null,"contacts":[{"id":145,"clientId":141,"email":"caimangolden@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-1170,"accountCredit":0,"accountOutstanding":1170,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#43a047","addressGpsLat":21.1609302,"addressGpsLon":-100.9360472,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1947,"clientId":141,"number":"001897","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":"2025-06-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1950,"type":"service","label":"Basico 300 01\/06\/2025 \u2013 30\/06\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":135,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Caim\u00e1n","clientLastName":"Dorado","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"23 Coahuila","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-06-06 6:25:05.427135] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** - -[2025-06-06 6:25:05.427212] [debug] Numero de cel obtenido - -[2025-06-06 6:25:05.427225] [warning] No se encontró un teléfono celular válido para el cliente: 141 -[2025-06-06 6:25:05.539871] [notice] Logging level set to:debug -[2025-06-06 6:25:05.540023] [debug] valor del webhook: {"uuid":"d3250fa1-4ccd-4526-9372-f49fcb19e8a7","changeType":"overdue","entity":"invoice","entityId":"1956","eventName":"invoice.overdue","extraData":{"entity":{"id":1956,"clientId":138,"number":"001906","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":"2025-06-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1959,"type":"service","label":"Basico 300 01\/06\/2025 \u2013 30\/06\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":148,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Mofles","clientLastName":"El Ruco Lopez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"89 Baja California Sur","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-06-06 6:25:05.694138] [debug] valor el evento recibido por webhook: invoice.overdue - -[2025-06-06 6:25:05.694192] [debug] Valor de JSON: {"uuid":"d3250fa1-4ccd-4526-9372-f49fcb19e8a7","changeType":"overdue","entity":"invoice","entityId":"1956","eventName":"invoice.overdue","extraData":{"entity":{"id":1956,"clientId":138,"number":"001906","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":"2025-06-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1959,"type":"service","label":"Basico 300 01\/06\/2025 \u2013 30\/06\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":148,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Mofles","clientLastName":"El Ruco Lopez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"89 Baja California Sur","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-06-06 6:25:05.694300] [debug] Factura vencida - -[2025-06-06 6:25:05.694343] [debug] datos del notification para el invoice overdue:{"uuid":"d3250fa1-4ccd-4526-9372-f49fcb19e8a7","changeType":"overdue","entity":"invoice","entityId":1956,"message":null,"clientId":138,"eventName":"invoice.overdue","clientData":{"id":138,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"89 Baja California Sur","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Baja California Sur 89, 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-26T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Mofles","lastName":"El Ruco Lopez","username":null,"contacts":[{"id":142,"clientId":138,"email":"moblesruco24@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":186,"clientId":138,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_S0ELEIMpRfdeLs","clientZoneVisible":true},{"id":187,"clientId":138,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180174170666420","clientZoneVisible":true}],"accountBalance":-600,"accountCredit":0,"accountOutstanding":600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ffb300","addressGpsLat":21.1532569,"addressGpsLon":-100.9408275,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1956,"clientId":138,"number":"001906","createdDate":"2025-05-22T10:00:01-0600","dueDate":"2025-06-05T10:00:01-0600","emailSentDate":"2025-06-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1959,"type":"service","label":"Basico 300 01\/06\/2025 \u2013 30\/06\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":148,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Mofles","clientLastName":"El Ruco Lopez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"89 Baja California Sur","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-06-06 6:25:05.694364] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** - -[2025-06-06 6:25:05.694423] [debug] Numero de cel obtenido - -[2025-06-06 6:25:05.694434] [warning] No se encontró un teléfono celular válido para el cliente: 138 -[2025-06-06 15:49:01.393034] [notice] Logging level set to:debug -[2025-06-06 15:49:01.393153] [debug] valor del webhook: { -"type": "oxxo.request", -"client_id": 2, -"amount": 100 -} - -[2025-06-06 15:49:01.393178] [info] No UUID found in the webhook data -[2025-06-06 15:49:01.393193] [info] Evento de solicitud de referencia de oxxo recibido - -[2025-06-06 15:49:01.393203] [info] Referencia persnoalizada, Valor del monto: 100 - -[2025-06-06 15:49:01.393213] [info] Creando referencia del cliente para OXXO: - -[2025-06-06 15:49:01.595686] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX - -[2025-06-06 15:49:01.595736] [info] Monto proporcionado directamente: 100 - -[2025-06-06 15:49:01.595750] [info] Creando referencia en Stripe por 10000 para el cliente cus_PetN1dhr4rx0kX - -[2025-06-06 15:49:03.054019] [info] Referencia OXXO: 12345678901234657890123456789012 - -[2025-06-06 15:49:03.054584] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TUndPbG9pY3lYRFd1bzFNcjVEeGtVRkJxdjI1TTMz0100rESxdhsx - -[2025-06-06 15:49:03.054789] [info] Referencia OXXO creada correctamente. - -[2025-06-06 15:52:06.550427] [notice] Logging level set to:debug -[2025-06-06 15:52:06.550777] [debug] valor del webhook: {"uuid":"938fa56d-e84b-4c9c-9342-6b62ea52a83f","changeType":"edit","entity":"invoice","entityId":"2057","eventName":"invoice.edit","extraData":{"entity":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":100,"totalUntaxed":466.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":366.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"entityBeforeEdit":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":0,"totalUntaxed":466.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":466.67,"currencyCode":"MXN","status":1,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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}}} - -[2025-06-06 15:52:06.695333] [debug] valor el evento recibido por webhook: invoice.edit - -[2025-06-06 15:52:06.695545] [debug] Valor de JSON: {"uuid":"938fa56d-e84b-4c9c-9342-6b62ea52a83f","changeType":"edit","entity":"invoice","entityId":"2057","eventName":"invoice.edit","extraData":{"entity":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":100,"totalUntaxed":466.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":366.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"entityBeforeEdit":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":0,"totalUntaxed":466.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":466.67,"currencyCode":"MXN","status":1,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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}}} - -[2025-06-06 15:52:06.695835] [debug] Edición de Factura - -[2025-06-06 15:52:06.695951] [debug] {"uuid":"938fa56d-e84b-4c9c-9342-6b62ea52a83f","changeType":"edit","entity":"invoice","entityId":2057,"message":null,"clientId":2,"eventName":"invoice.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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-366.67,"accountCredit":0,"accountOutstanding":366.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":100,"totalUntaxed":466.67,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":366.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} - -[2025-06-06 15:52:06.696069] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-06 15:52:06.696114] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"938fa56d-e84b-4c9c-9342-6b62ea52a83f","changeType":"edit","entity":"invoice","entityId":2057,"message":null,"clientId":2,"eventName":"invoice.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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-366.67,"accountCredit":0,"accountOutstanding":366.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":100,"totalUntaxed":466.67,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":366.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":626,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-06T09:52:06-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Guanajuato","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2366.67 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 100","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2366.67 pendientes\",\"Monto Ultimo Pago\": \"$ 100\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 06\/06\/2025 09:52 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"06\/06\/2025 09:52\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 06\/06\/2025 09:52 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 06\/06\/2025 09:52","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲366.67 pendientes","Monto Ultimo Pago": "$ 100","Estado": "Activo","Fecha Ultimo Pago": " 06/06/2025 09:52 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "06/06/2025 09:52","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲366.67 pendientes","Monto Ultimo Pago":"💲 100","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 06/06/2025 09:52 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 06/06/2025 09:52","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲366.67 pendientes\",\"Monto Ultimo Pago\": \"$ 100\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 06/06/2025 09:52 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"06/06/2025 09:52\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲366.67 pendientes","Monto Ultimo Pago":"💲 100","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 06/06/2025 09:52 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 06/06/2025 09:52","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲366.67 pendientes\",\"Monto Ultimo Pago\": \"$ 100\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 06/06/2025 09:52 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"06/06/2025 09:52\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-06 15:52:09.574760] [notice] Logging level set to:debug -[2025-06-06 15:52:09.574935] [debug] valor del webhook: {"uuid":"1e03e82f-2221-47bd-8eea-6c030464581b","changeType":"insert","entity":"payment","entityId":"626","eventName":"payment.add","extraData":{"entity":{"id":626,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-06T09:52:06-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-06 15:52:09.704344] [debug] valor el evento recibido por webhook: payment.add - -[2025-06-06 15:52:09.704482] [debug] Valor de JSON: {"uuid":"1e03e82f-2221-47bd-8eea-6c030464581b","changeType":"insert","entity":"payment","entityId":"626","eventName":"payment.add","extraData":{"entity":{"id":626,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-06T09:52:06-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-06 15:52:09.704677] [debug] Notification encodificado en JSON:{"uuid":"1e03e82f-2221-47bd-8eea-6c030464581b","changeType":"insert","entity":"payment","entityId":626,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-366.67,"accountCredit":0,"accountOutstanding":366.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":626,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-06T09:52:06-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]}} - -[2025-06-06 15:52:09.704745] [debug] valor del payment data: {"id":626,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-06T09:52:06-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]} - -[2025-06-06 15:52:09.704833] [info] {"WhatsApp":["5214181148783"]} -[2025-06-06 15:52:09.704875] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-06 15:52:09.704914] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-06 15:52:09.704952] [debug] ***Se notifica y actualiza al cliente sobre su pago*** +[2025-07-17 20:23:03.779169] [info] {"WhatsApp":["5214181148783"]} +[2025-07-17 20:23:03.779268] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-07-17 20:23:03.779309] [info] Tipo de contacto normalizado: 'whatsapp' +[2025-07-17 20:23:03.779349] [debug] ***Se notifica y actualiza al cliente sobre su pago*** Eviando comprobante de pago al cliente: 2 con número: 5214181148783 @@ -5761,178 +121,132 @@ La cadena CURL que se envia es: { "text": "S/M", "url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas.png" }, - "template_values": ["Daniel Humberto Soto Villegas", "$100", "$366.67 pendientes"], + "template_values": ["Daniel Humberto Soto Villegas", "$250", "$1250 a favor"], "template_uuid": "57ead79cebd14902921477922403093b", "optin_contact": true } -Response del CallBell: {"message":{"uuid":"0006bd1af5fe48b2899d91726f3c6cb9","status":"enqueued"}} +Response del CallBell: {"message":{"uuid":"7904ccac94b94caa94ae24cc5b32f779","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":"1e03e82f-2221-47bd-8eea-6c030464581b","changeType":"insert","entity":"payment","entityId":626,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-366.67,"accountCredit":0,"accountOutstanding":366.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":626,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-06T09:52:06-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]}} +Notificacion data: {"uuid":"6fc47ad5-b8b3-45f9-884f-7d71d616cd42","changeType":"insert","entity":"payment","entityId":669,"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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":1250,"accountCredit":1250,"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":669,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-17T14:23:03-0600","amount":250,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":250,"userId":null,"attributes":[]}} Dentro del proceso del patch: -Datos traidos con payment api: [{"id":626,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-06T09:52:06-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]}] +Datos traidos con payment api: [{"id":669,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-17T14:23:03-0600","amount":250,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":250,"userId":null,"attributes":[]}] Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas UUID: 7352b597ba6b43cf948a5ae86051fb80 -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Guanajuato","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2366.67 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 100","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2366.67 pendientes\",\"Monto Ultimo Pago\": \"$ 100\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 06\/06\/2025 09:52 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"06\/06\/2025 09:52\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 06\/06\/2025 09:52 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 06\/06\/2025 09:52","Clabe Interbancaria":null,"Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb21250 a favor","Monto Ultimo Pago":"\ud83d\udcb2 250","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb21250 a favor\",\"Monto Ultimo Pago\": \"$ 250\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 17\/07\/2025 14:23 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"17\/07\/2025 14:23\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 17\/07\/2025 14:23 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 17\/07\/2025 14:23","Clabe Interbancaria":null,"Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲366.67 pendientes","Monto Ultimo Pago": "$ 100","Estado": "Activo","Fecha Ultimo Pago": " 06/06/2025 09:52 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "06/06/2025 09:52","Clabe Interbancaria": "","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} +JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲1250 a favor","Monto Ultimo Pago": "$ 250","Estado": "Activo","Fecha Ultimo Pago": " 17/07/2025 14:23 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "17/07/2025 14:23","Clabe Interbancaria": "","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲366.67 pendientes","Monto Ultimo Pago":"💲 100","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 06/06/2025 09:52 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 06/06/2025 09:52","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲366.67 pendientes\",\"Monto Ultimo Pago\": \"$ 100\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 06/06/2025 09:52 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"06/06/2025 09:52\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} +Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 17/07/2025 14:23","Monto Ultimo Pago":"💲 250","Estado":"🟢 Activo ","Saldo Actual":"💲1250 a favor","Fecha Ultimo Pago":"📆💸 17/07/2025 14:23 con Tarjeta de crédito Stripe 💳","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲1250 a favor\",\"Monto Ultimo Pago\": \"$ 250\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 17/07/2025 14:23 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"17/07/2025 14:23\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲366.67 pendientes","Monto Ultimo Pago":"💲 100","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 06/06/2025 09:52 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 06/06/2025 09:52","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲366.67 pendientes\",\"Monto Ultimo Pago\": \"$ 100\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 06/06/2025 09:52 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"06/06/2025 09:52\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} +Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 17/07/2025 14:23","Monto Ultimo Pago":"💲 250","Estado":"🟢 Activo ","Saldo Actual":"💲1250 a favor","Fecha Ultimo Pago":"📆💸 17/07/2025 14:23 con Tarjeta de crédito Stripe 💳","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲1250 a favor\",\"Monto Ultimo Pago\": \"$ 250\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 17/07/2025 14:23 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"17/07/2025 14:23\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} -[2025-06-06 15:52:16.129097] [notice] Logging level set to:debug -[2025-06-06 15:52:16.129230] [debug] valor del webhook: {"uuid":"716f64df-dec3-4577-b246-22e68e2ff3be","changeType":"edit","entity":"payment","entityId":"626","eventName":"payment.edit","extraData":{"entity":{"id":626,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-06T09:52:06-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":626,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-06T09:52:06-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]}}} +[2025-07-17 20:23:10.912691] [notice] Logging level set to:debug +[2025-07-17 20:23:10.912794] [debug] valor del webhook: {"uuid":"3b0b48c9-5f6f-4866-a46d-1ff79206d972","changeType":"edit","entity":"payment","entityId":"669","eventName":"payment.edit","extraData":{"entity":{"id":669,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-17T14:23:03-0600","amount":250,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":250,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":669,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-17T14:23:03-0600","amount":250,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":250,"userId":null,"attributes":[]}}} -[2025-06-06 15:52:16.245198] [debug] valor el evento recibido por webhook: payment.edit +[2025-07-17 20:23:11.034617] [debug] valor el evento recibido por webhook: payment.edit -[2025-06-06 15:52:16.245258] [debug] Valor de JSON: {"uuid":"716f64df-dec3-4577-b246-22e68e2ff3be","changeType":"edit","entity":"payment","entityId":"626","eventName":"payment.edit","extraData":{"entity":{"id":626,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-06T09:52:06-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":626,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-06T09:52:06-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]}}} +[2025-07-17 20:23:11.034804] [debug] Valor de JSON: {"uuid":"3b0b48c9-5f6f-4866-a46d-1ff79206d972","changeType":"edit","entity":"payment","entityId":"669","eventName":"payment.edit","extraData":{"entity":{"id":669,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-17T14:23:03-0600","amount":250,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":250,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":669,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-17T14:23:03-0600","amount":250,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":250,"userId":null,"attributes":[]}}} -[2025-06-06 18:30:03.134532] [notice] Logging level set to:debug -[2025-06-06 18:30:03.134963] [debug] valor del webhook: {"uuid":"02bc2e03-ef7f-4875-89b8-09c3a1c524ac","changeType":"suspend","entity":"service","entityId":"155","eventName":"service.suspend","extraData":{"entity":{"id":155,"prepaid":false,"clientId":171,"status":3,"name":"Basico 300","fullAddress":"Campeche 56, Dolores Hidalgo, 37800","street1":"Campeche 56","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1572461,"addressGpsLon":-100.9377137,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-05-21T00:00:00-0600","activeTo":"2025-07-31T00:00:00-0600","contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-05-21T00: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":"2025-05-31T00:00:00-0600","unmsClientSiteId":"359cb58d-e64f-453a-890e-23d5abb4f116","attributes":[{"id":"55c756bc-46bd-4c82-9b77-ed925ce5aedb","serviceId":155,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":1,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":165,"startDate":"2025-05-21T00:00:00-0600","endDate":"2025-05-21T00:00:00-0600"},{"id":166,"startDate":"2025-06-06T12:30:02-0600","endDate":null}],"surcharges":[]},"entityBeforeEdit":{"id":155,"prepaid":false,"clientId":171,"status":1,"name":"Basico 300","fullAddress":"Campeche 56, Dolores Hidalgo, 37800","street1":"Campeche 56","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1572461,"addressGpsLon":-100.9377137,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-05-21T00:00:00-0600","activeTo":"2025-07-31T00:00:00-0600","contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-05-21T00: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":"2025-05-31T00:00:00-0600","unmsClientSiteId":"359cb58d-e64f-453a-890e-23d5abb4f116","attributes":[{"id":"55c756bc-46bd-4c82-9b77-ed925ce5aedb","serviceId":155,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":165,"startDate":"2025-05-21T00:00:00-0600","endDate":"2025-05-21T00:00:00-0600"},{"id":166,"startDate":"2025-06-06T12:30:02-0600","endDate":null}],"surcharges":[]}}} - -[2025-06-06 18:30:03.443978] [debug] valor el evento recibido por webhook: service.suspend - -[2025-06-06 18:30:03.444056] [debug] Valor de JSON: {"uuid":"02bc2e03-ef7f-4875-89b8-09c3a1c524ac","changeType":"suspend","entity":"service","entityId":"155","eventName":"service.suspend","extraData":{"entity":{"id":155,"prepaid":false,"clientId":171,"status":3,"name":"Basico 300","fullAddress":"Campeche 56, Dolores Hidalgo, 37800","street1":"Campeche 56","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1572461,"addressGpsLon":-100.9377137,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-05-21T00:00:00-0600","activeTo":"2025-07-31T00:00:00-0600","contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-05-21T00: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":"2025-05-31T00:00:00-0600","unmsClientSiteId":"359cb58d-e64f-453a-890e-23d5abb4f116","attributes":[{"id":"55c756bc-46bd-4c82-9b77-ed925ce5aedb","serviceId":155,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":1,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":165,"startDate":"2025-05-21T00:00:00-0600","endDate":"2025-05-21T00:00:00-0600"},{"id":166,"startDate":"2025-06-06T12:30:02-0600","endDate":null}],"surcharges":[]},"entityBeforeEdit":{"id":155,"prepaid":false,"clientId":171,"status":1,"name":"Basico 300","fullAddress":"Campeche 56, Dolores Hidalgo, 37800","street1":"Campeche 56","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1572461,"addressGpsLon":-100.9377137,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-05-21T00:00:00-0600","activeTo":"2025-07-31T00:00:00-0600","contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-05-21T00: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":"2025-05-31T00:00:00-0600","unmsClientSiteId":"359cb58d-e64f-453a-890e-23d5abb4f116","attributes":[{"id":"55c756bc-46bd-4c82-9b77-ed925ce5aedb","serviceId":155,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":165,"startDate":"2025-05-21T00:00:00-0600","endDate":"2025-05-21T00:00:00-0600"},{"id":166,"startDate":"2025-06-06T12:30:02-0600","endDate":null}],"surcharges":[]}}} - -[2025-06-06 18:30:03.444299] [debug] Se suspendió el servicio a un cliente - -[2025-06-06 18:30:03.444396] [info] Procesando tipo de contacto original: 'WhatsNotifica' -[2025-06-06 18:30:03.447031] [info] Tipo de contacto normalizado: 'whatsnotifica' -[2025-06-06 18:30:03.447139] [info] Tipo de contacto no reconocido: 'whatsnotifica' - -[2025-06-06 18:30:03.595057] [notice] Logging level set to:debug -[2025-06-06 18:30:03.595211] [debug] valor del webhook: {"uuid":"bfeeaa2a-ca26-4b5f-b5e8-42cfda24bc41","changeType":"edit","entity":"service","entityId":"155","eventName":"service.edit","extraData":{"entity":{"id":155,"prepaid":false,"clientId":171,"status":3,"name":"Basico 300","fullAddress":"Campeche 56, Dolores Hidalgo, 37800","street1":"Campeche 56","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1572461,"addressGpsLon":-100.9377137,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-05-21T00:00:00-0600","activeTo":"2025-07-31T00:00:00-0600","contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-05-21T00: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":"2025-05-31T00:00:00-0600","unmsClientSiteId":"359cb58d-e64f-453a-890e-23d5abb4f116","attributes":[{"id":"55c756bc-46bd-4c82-9b77-ed925ce5aedb","serviceId":155,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":1,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":165,"startDate":"2025-05-21T00:00:00-0600","endDate":"2025-05-21T00:00:00-0600"},{"id":166,"startDate":"2025-06-06T12:30:02-0600","endDate":null}],"surcharges":[]},"entityBeforeEdit":{"id":155,"prepaid":false,"clientId":171,"status":1,"name":"Basico 300","fullAddress":"Campeche 56, Dolores Hidalgo, 37800","street1":"Campeche 56","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1572461,"addressGpsLon":-100.9377137,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-05-21T00:00:00-0600","activeTo":"2025-07-31T00:00:00-0600","contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-05-21T00: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":"2025-05-31T00:00:00-0600","unmsClientSiteId":"359cb58d-e64f-453a-890e-23d5abb4f116","attributes":[{"id":"55c756bc-46bd-4c82-9b77-ed925ce5aedb","serviceId":155,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":165,"startDate":"2025-05-21T00:00:00-0600","endDate":"2025-05-21T00:00:00-0600"},{"id":166,"startDate":"2025-06-06T12:30:02-0600","endDate":null}],"surcharges":[]}}} - -[2025-06-06 18:30:03.783941] [debug] valor el evento recibido por webhook: service.edit - -[2025-06-06 18:30:03.784169] [debug] Valor de JSON: {"uuid":"bfeeaa2a-ca26-4b5f-b5e8-42cfda24bc41","changeType":"edit","entity":"service","entityId":"155","eventName":"service.edit","extraData":{"entity":{"id":155,"prepaid":false,"clientId":171,"status":3,"name":"Basico 300","fullAddress":"Campeche 56, Dolores Hidalgo, 37800","street1":"Campeche 56","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1572461,"addressGpsLon":-100.9377137,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-05-21T00:00:00-0600","activeTo":"2025-07-31T00:00:00-0600","contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-05-21T00: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":"2025-05-31T00:00:00-0600","unmsClientSiteId":"359cb58d-e64f-453a-890e-23d5abb4f116","attributes":[{"id":"55c756bc-46bd-4c82-9b77-ed925ce5aedb","serviceId":155,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":1,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":165,"startDate":"2025-05-21T00:00:00-0600","endDate":"2025-05-21T00:00:00-0600"},{"id":166,"startDate":"2025-06-06T12:30:02-0600","endDate":null}],"surcharges":[]},"entityBeforeEdit":{"id":155,"prepaid":false,"clientId":171,"status":1,"name":"Basico 300","fullAddress":"Campeche 56, Dolores Hidalgo, 37800","street1":"Campeche 56","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1572461,"addressGpsLon":-100.9377137,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-05-21T00:00:00-0600","activeTo":"2025-07-31T00:00:00-0600","contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-05-21T00: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":"2025-05-31T00:00:00-0600","unmsClientSiteId":"359cb58d-e64f-453a-890e-23d5abb4f116","attributes":[{"id":"55c756bc-46bd-4c82-9b77-ed925ce5aedb","serviceId":155,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":165,"startDate":"2025-05-21T00:00:00-0600","endDate":"2025-05-21T00:00:00-0600"},{"id":166,"startDate":"2025-06-06T12:30:02-0600","endDate":null}],"surcharges":[]}}} - -[2025-06-06 18:30:03.784353] [debug] Se editó el servicio a un cliente - -[2025-06-06 18:30:03.784439] [info] Procesando tipo de contacto original: 'WhatsNotifica' -[2025-06-06 18:30:03.784495] [info] Tipo de contacto normalizado: 'whatsnotifica' -[2025-06-06 18:30:03.784538] [info] Tipo de contacto no reconocido: 'whatsnotifica' - -[2025-06-06 18:30:03.849267] [info] ID correspondiente a 'passwordAntenaCliente': 17 - -[2025-06-06 18:30:03.849489] [info] El valor de passwordAntenaValue es null o cadena vacía, se manda llamar la función getVaultCredentials - -[2025-06-06 18:30:03.849549] [info] El valor de password es: gYAIEK:Be}SK*01z5+/V - -[2025-06-06 18:30:04.000968] [info] Se actualizó el custom attribute del cliente 171 - -[2025-06-06 18:30:04.001523] [info] Se actualizó el atributo personalizado passwordAntenaCliente con el valor: gYAIEK:Be}SK*01z5+/V - -[2025-06-06 18:30:04.165565] [notice] Logging level set to:debug -[2025-06-06 18:30:04.165740] [debug] valor del webhook: {"uuid":"b6786371-db73-4804-b0c7-282a9d0fd0ce","changeType":"edit","entity":"client","entityId":"171","eventName":"client.edit","extraData":{"entity":{"id":171,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"Campeche 56","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Campeche 56, 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":"2025-05-21T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Archi","lastName":"Isalas","username":"mainstreamm2@gmail.com","contacts":[{"id":177,"clientId":171,"email":"mainstreamm2@gmail.com","phone":"4181878106","name":null,"isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":198,"clientId":171,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_SM2zH6IsjTz6ol","clientZoneVisible":true},{"id":199,"clientId":171,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180950530868794","clientZoneVisible":true},{"id":201,"clientId":171,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-110,"accountCredit":0,"accountOutstanding":110,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1572461,"addressGpsLon":-100.9377137,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":171,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"Campeche 56","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Campeche 56, 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":"2025-05-21T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Archi","lastName":"Isalas","username":"mainstreamm2@gmail.com","contacts":[{"id":177,"clientId":171,"email":"mainstreamm2@gmail.com","phone":"4181878106","name":null,"isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":198,"clientId":171,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_SM2zH6IsjTz6ol","clientZoneVisible":true},{"id":199,"clientId":171,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180950530868794","clientZoneVisible":true},{"id":201,"clientId":171,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-110,"accountCredit":0,"accountOutstanding":110,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1572461,"addressGpsLon":-100.9377137,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-06-06 18:30:04.270036] [debug] valor el evento recibido por webhook: client.edit - -[2025-06-06 18:30:04.270267] [debug] Valor de JSON: {"uuid":"b6786371-db73-4804-b0c7-282a9d0fd0ce","changeType":"edit","entity":"client","entityId":"171","eventName":"client.edit","extraData":{"entity":{"id":171,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"Campeche 56","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Campeche 56, 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":"2025-05-21T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Archi","lastName":"Isalas","username":"mainstreamm2@gmail.com","contacts":[{"id":177,"clientId":171,"email":"mainstreamm2@gmail.com","phone":"4181878106","name":null,"isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":198,"clientId":171,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_SM2zH6IsjTz6ol","clientZoneVisible":true},{"id":199,"clientId":171,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180950530868794","clientZoneVisible":true},{"id":201,"clientId":171,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-110,"accountCredit":0,"accountOutstanding":110,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1572461,"addressGpsLon":-100.9377137,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":171,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"Campeche 56","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Campeche 56, 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":"2025-05-21T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Archi","lastName":"Isalas","username":"mainstreamm2@gmail.com","contacts":[{"id":177,"clientId":171,"email":"mainstreamm2@gmail.com","phone":"4181878106","name":null,"isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":198,"clientId":171,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_SM2zH6IsjTz6ol","clientZoneVisible":true},{"id":199,"clientId":171,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180950530868794","clientZoneVisible":true},{"id":201,"clientId":171,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-110,"accountCredit":0,"accountOutstanding":110,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1572461,"addressGpsLon":-100.9377137,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-06-06 18:30:04.270492] [debug] Se actualiza a un cliente -[2025-06-06 18:30:04.270571] [debug] Valor de json_data: {"uuid":"b6786371-db73-4804-b0c7-282a9d0fd0ce","changeType":"edit","entity":"client","entityId":"171","eventName":"client.edit","extraData":{"entity":{"id":171,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"Campeche 56","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Campeche 56, 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":"2025-05-21T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Archi","lastName":"Isalas","username":"mainstreamm2@gmail.com","contacts":[{"id":177,"clientId":171,"email":"mainstreamm2@gmail.com","phone":"4181878106","name":null,"isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":198,"clientId":171,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_SM2zH6IsjTz6ol","clientZoneVisible":true},{"id":199,"clientId":171,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180950530868794","clientZoneVisible":true},{"id":201,"clientId":171,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-110,"accountCredit":0,"accountOutstanding":110,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1572461,"addressGpsLon":-100.9377137,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":171,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"Campeche 56","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Campeche 56, 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":"2025-05-21T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Archi","lastName":"Isalas","username":"mainstreamm2@gmail.com","contacts":[{"id":177,"clientId":171,"email":"mainstreamm2@gmail.com","phone":"4181878106","name":null,"isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":198,"clientId":171,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_SM2zH6IsjTz6ol","clientZoneVisible":true},{"id":199,"clientId":171,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180950530868794","clientZoneVisible":true},{"id":201,"clientId":171,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-110,"accountCredit":0,"accountOutstanding":110,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1572461,"addressGpsLon":-100.9377137,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} -[2025-06-06 18:30:04.355292] [info] ID correspondiente a 'passwordAntenaCliente': 17 - -[2025-06-06 18:30:04.355427] [info] El valor de passwordAntenaValue es: gYAIEK:Be}SK*01z5+/V - -[2025-06-06 18:30:04.355477] [info] Ya existe un valor de passwordAntenaValue: gYAIEK:Be}SK*01z5+/V - -[2025-06-06 18:30:04.355521] [debug] El cliente no cambió de potencial a cliente -[2025-06-06 18:30:04.355562] [debug] Validando claves dentro de entity y entityBeforeEdit -[2025-06-06 18:30:04.355602] [debug] Los datos entity y entityBeforeEdit contienen el campo tags -[2025-06-06 18:30:04.355652] [debug] Validando si la etiqueta STRIPE existe en entity pero no en entityBeforeEdit -[2025-06-06 18:30:04.355726] [debug] {"uuid":"b6786371-db73-4804-b0c7-282a9d0fd0ce","changeType":"edit","entity":"client","entityId":171,"message":null,"clientId":171,"eventName":"client.edit","clientData":{"id":171,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"Campeche 56","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Campeche 56, 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":"2025-05-21T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Archi","lastName":"Isalas","username":"mainstreamm2@gmail.com","contacts":[{"id":177,"clientId":171,"email":"mainstreamm2@gmail.com","phone":"4181878106","name":null,"isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"attributes":[{"id":198,"clientId":171,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_SM2zH6IsjTz6ol","clientZoneVisible":true},{"id":199,"clientId":171,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180950530868794","clientZoneVisible":true},{"id":201,"clientId":171,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-110,"accountCredit":0,"accountOutstanding":110,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1572461,"addressGpsLon":-100.9377137,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null} - -[2025-06-06 18:30:04.355858] [info] Procesando tipo de contacto original: 'WhatsNotifica' -[2025-06-06 18:30:04.355911] [info] Tipo de contacto normalizado: 'whatsnotifica' -[2025-06-06 18:30:04.355952] [info] Tipo de contacto no reconocido: 'whatsnotifica' - -[2025-06-06 19:06:00.081027] [notice] Logging level set to:debug -[2025-06-06 19:06:00.081149] [debug] valor del webhook: { -"type": "oxxo.request", -"client_id": 2, -"amount": 100 +[2025-07-17 20:29:52.033740] [notice] Logging level set to:debug +[2025-07-17 20:29:52.033869] [debug] valor del webhook: { + "id": "evt_1RlyR9EFY1WEUtgRr3xasopY", + "object": "event", + "api_version": "2023-10-16", + "created": 1752784191, + "data": { + "object": { + "id": "ccsbtxn_1RlyR8EFY1WEUtgR3HxAJ61N", + "object": "customer_cash_balance_transaction", + "created": 1752784190, + "currency": "mxn", + "customer": "cus_PetN1dhr4rx0kX", + "ending_balance": 12000, + "funded": { + "bank_transfer": { + "reference": "", + "type": "mx_bank_transfer" + } + }, + "livemode": false, + "net_amount": 12000, + "type": "funded" + } + }, + "livemode": false, + "pending_webhooks": 2, + "request": { + "id": "req_Sp7xN6r0qh4kkh", + "idempotency_key": "3ea10720-fb34-46f2-820e-d4c754558290" + }, + "type": "customer_cash_balance_transaction.created" } -[2025-06-06 19:06:00.081175] [info] No UUID found in the webhook data -[2025-06-06 19:06:00.081187] [info] Evento de solicitud de referencia de oxxo recibido +[2025-07-17 20:29:52.033924] [info] No UUID found in the webhook data +[2025-07-17 20:29:52.033957] [info] Evento de transferencia de un cliente recibido: {"id":"evt_1RlyR9EFY1WEUtgRr3xasopY","object":"event","api_version":"2023-10-16","created":1752784191,"data":{"object":{"id":"ccsbtxn_1RlyR8EFY1WEUtgR3HxAJ61N","object":"customer_cash_balance_transaction","created":1752784190,"currency":"mxn","customer":"cus_PetN1dhr4rx0kX","ending_balance":12000,"funded":{"bank_transfer":{"reference":"","type":"mx_bank_transfer"}},"livemode":false,"net_amount":12000,"type":"funded"}},"livemode":false,"pending_webhooks":2,"request":{"id":"req_Sp7xN6r0qh4kkh","idempotency_key":"3ea10720-fb34-46f2-820e-d4c754558290"},"type":"customer_cash_balance_transaction.created"} -[2025-06-06 19:06:00.081196] [info] Referencia persnoalizada, Valor del monto: 100 +[2025-07-17 20:29:52.033974] [info] Iniciando creación de PaymentIntent en Stripe. -[2025-06-06 19:06:00.081204] [info] Creando referencia del cliente para OXXO: +[2025-07-17 20:29:52.034490] [info] Cantidad del PaymentIntent: 12000 -[2025-06-06 19:06:00.222017] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX +[2025-07-17 20:29:53.951258] [info] PaymentIntent creado: pi_3RlyRAEFY1WEUtgR0k4zMVr7 -[2025-06-06 19:06:00.222165] [info] Monto proporcionado directamente: 100 +[2025-07-17 20:29:54.413758] [notice] Logging level set to:debug +[2025-07-17 20:29:54.413927] [debug] valor del webhook: { + "id": "evt_1RlyRBEFY1WEUtgRn0Kr5muz", + "object": "event", + "api_version": "2023-10-16", + "created": 1752784193, + "data": { + "object": { + "id": "ccsbtxn_1RlyRBEFY1WEUtgRbv5VvPnY", + "object": "customer_cash_balance_transaction", + "applied_to_payment": { + "payment_intent": "pi_3RlyRAEFY1WEUtgR0k4zMVr7" + }, + "created": 1752784193, + "currency": "mxn", + "customer": "cus_PetN1dhr4rx0kX", + "ending_balance": 0, + "livemode": false, + "net_amount": -12000, + "type": "applied_to_payment" + } + }, + "livemode": false, + "pending_webhooks": 2, + "request": { + "id": "req_HlHFIoJapPaWgu", + "idempotency_key": "a9bd5011-7eb2-42da-9ddd-a9e2cc4f9eaf" + }, + "type": "customer_cash_balance_transaction.created" +} -[2025-06-06 19:06:00.222234] [info] Creando referencia en Stripe por 10000 para el cliente cus_PetN1dhr4rx0kX +[2025-07-17 20:29:54.414012] [info] No UUID found in the webhook data +[2025-07-17 20:29:54.414073] [info] Se aplicó el saldo en Stripe de un pago: {"id":"evt_1RlyRBEFY1WEUtgRn0Kr5muz","object":"event","api_version":"2023-10-16","created":1752784193,"data":{"object":{"id":"ccsbtxn_1RlyRBEFY1WEUtgRbv5VvPnY","object":"customer_cash_balance_transaction","applied_to_payment":{"payment_intent":"pi_3RlyRAEFY1WEUtgR0k4zMVr7"},"created":1752784193,"currency":"mxn","customer":"cus_PetN1dhr4rx0kX","ending_balance":0,"livemode":false,"net_amount":-12000,"type":"applied_to_payment"}},"livemode":false,"pending_webhooks":2,"request":{"id":"req_HlHFIoJapPaWgu","idempotency_key":"a9bd5011-7eb2-42da-9ddd-a9e2cc4f9eaf"},"type":"customer_cash_balance_transaction.created"} -[2025-06-06 19:06:01.592148] [info] Referencia OXXO: 12345678901234657890123456789012 +[2025-07-17 20:29:55.556015] [notice] Logging level set to:debug +[2025-07-17 20:29:55.556277] [debug] valor del webhook: {"uuid":"c77c2e52-0d1f-4a3a-a1e5-ac8ce8162d6f","changeType":"insert","entity":"payment","entityId":"670","eventName":"payment.add","extraData":{"entity":{"id":670,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-17T14:29:55-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]},"entityBeforeEdit":null}} -[2025-06-06 19:06:01.592365] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TUnpaZm5IQVVMRXhEV1QxV1FSMGdHaXJ4TlZCb3ND0100TghvWkqM +[2025-07-17 20:29:55.684472] [debug] valor el evento recibido por webhook: payment.add -[2025-06-06 19:06:01.592421] [info] Referencia OXXO creada correctamente. +[2025-07-17 20:29:55.684612] [debug] Valor de JSON: {"uuid":"c77c2e52-0d1f-4a3a-a1e5-ac8ce8162d6f","changeType":"insert","entity":"payment","entityId":"670","eventName":"payment.add","extraData":{"entity":{"id":670,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-17T14:29:55-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]},"entityBeforeEdit":null}} -[2025-06-06 19:06:02.153584] [error] Error al generar PDF: sh: wkhtmltopdf: not found +[2025-07-17 20:29:55.684789] [debug] Notification encodificado en JSON:{"uuid":"c77c2e52-0d1f-4a3a-a1e5-ac8ce8162d6f","changeType":"insert","entity":"payment","entityId":670,"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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":1370,"accountCredit":1370,"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":670,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-17T14:29:55-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]}} -[2025-06-06 19:06:02.155807] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"12345678901234657890123456789012","url":"https:\/\/payments.stripe.com\/oxxo\/voucher\/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TUnpaZm5IQVVMRXhEV1QxV1FSMGdHaXJ4TlZCb3ND0100TghvWkqM","clientID":2,"clientFullName":"Daniel Humberto Soto Villegas","amount":100,"failDescription":"","error":""} +[2025-07-17 20:29:55.684951] [debug] valor del payment data: {"id":670,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-17T14:29:55-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]} -[2025-06-06 19:06:02.155877] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TUnpaZm5IQVVMRXhEV1QxV1FSMGdHaXJ4TlZCb3ND0100TghvWkqM","oxxo_reference": "12345678901234657890123456789012","error": "","failDescription": "","clientID": "2","clientFullName": "Daniel Humberto Soto Villegas","amount": "100"} -[2025-06-06 19:09:06.060271] [notice] Logging level set to:debug -[2025-06-06 19:09:06.060363] [debug] valor del webhook: {"uuid":"8e842b7b-d46b-48b5-b5f8-dea57a3ab22a","changeType":"edit","entity":"invoice","entityId":"2057","eventName":"invoice.edit","extraData":{"entity":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":200,"totalUntaxed":466.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":266.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100},{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"entityBeforeEdit":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":100,"totalUntaxed":466.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":366.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100},{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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}}} - -[2025-06-06 19:09:06.202188] [debug] valor el evento recibido por webhook: invoice.edit - -[2025-06-06 19:09:06.202400] [debug] Valor de JSON: {"uuid":"8e842b7b-d46b-48b5-b5f8-dea57a3ab22a","changeType":"edit","entity":"invoice","entityId":"2057","eventName":"invoice.edit","extraData":{"entity":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":200,"totalUntaxed":466.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":266.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100},{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"entityBeforeEdit":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":100,"totalUntaxed":466.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":366.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100},{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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}}} - -[2025-06-06 19:09:06.202692] [debug] Edición de Factura - -[2025-06-06 19:09:06.202810] [debug] {"uuid":"8e842b7b-d46b-48b5-b5f8-dea57a3ab22a","changeType":"edit","entity":"invoice","entityId":2057,"message":null,"clientId":2,"eventName":"invoice.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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-266.67,"accountCredit":0,"accountOutstanding":266.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":200,"totalUntaxed":466.67,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":266.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100},{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} - -[2025-06-06 19:09:06.202924] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-06 19:09:06.202967] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"8e842b7b-d46b-48b5-b5f8-dea57a3ab22a","changeType":"edit","entity":"invoice","entityId":2057,"message":null,"clientId":2,"eventName":"invoice.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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-266.67,"accountCredit":0,"accountOutstanding":266.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":200,"totalUntaxed":466.67,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":266.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100},{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":627,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-06T13:09:05-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Guanajuato","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2266.67 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 100","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2266.67 pendientes\",\"Monto Ultimo Pago\": \"$ 100\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 06\/06\/2025 13:09 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"06\/06\/2025 13:09\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 06\/06\/2025 13:09 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 06\/06\/2025 13:09","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲266.67 pendientes","Monto Ultimo Pago": "$ 100","Estado": "Activo","Fecha Ultimo Pago": " 06/06/2025 13:09 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "06/06/2025 13:09","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲266.67 pendientes","Monto Ultimo Pago":"💲 100","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 06/06/2025 13:09 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 06/06/2025 13:09","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲266.67 pendientes\",\"Monto Ultimo Pago\": \"$ 100\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 06/06/2025 13:09 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"06/06/2025 13:09\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲266.67 pendientes","Monto Ultimo Pago":"💲 100","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 06/06/2025 13:09 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 06/06/2025 13:09","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲266.67 pendientes\",\"Monto Ultimo Pago\": \"$ 100\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 06/06/2025 13:09 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"06/06/2025 13:09\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-06 19:09:09.071887] [notice] Logging level set to:debug -[2025-06-06 19:09:09.072097] [debug] valor del webhook: {"uuid":"77e58af5-db6e-4275-ae32-b8b9f883266b","changeType":"insert","entity":"payment","entityId":"627","eventName":"payment.add","extraData":{"entity":{"id":627,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-06T13:09:05-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-06 19:09:09.200154] [debug] valor el evento recibido por webhook: payment.add - -[2025-06-06 19:09:09.200304] [debug] Valor de JSON: {"uuid":"77e58af5-db6e-4275-ae32-b8b9f883266b","changeType":"insert","entity":"payment","entityId":"627","eventName":"payment.add","extraData":{"entity":{"id":627,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-06T13:09:05-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-06 19:09:09.200509] [debug] Notification encodificado en JSON:{"uuid":"77e58af5-db6e-4275-ae32-b8b9f883266b","changeType":"insert","entity":"payment","entityId":627,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-266.67,"accountCredit":0,"accountOutstanding":266.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":627,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-06T13:09:05-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]}} - -[2025-06-06 19:09:09.200579] [debug] valor del payment data: {"id":627,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-06T13:09:05-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]} - -[2025-06-06 19:09:09.200664] [info] {"WhatsApp":["5214181148783"]} -[2025-06-06 19:09:09.200706] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-06 19:09:09.200743] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-06 19:09:09.200783] [debug] ***Se notifica y actualiza al cliente sobre su pago*** +[2025-07-17 20:29:55.685646] [info] {"WhatsApp":["5214181148783"]} +[2025-07-17 20:29:55.685731] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-07-17 20:29:55.685770] [info] Tipo de contacto normalizado: 'whatsapp' +[2025-07-17 20:29:55.685816] [debug] ***Se notifica y actualiza al cliente sobre su pago*** Eviando comprobante de pago al cliente: 2 con número: 5214181148783 @@ -5964,427 +278,444 @@ La cadena CURL que se envia es: { "text": "S/M", "url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas.png" }, - "template_values": ["Daniel Humberto Soto Villegas", "$100", "$266.67 pendientes"], + "template_values": ["Daniel Humberto Soto Villegas", "$120", "$1370 a favor"], "template_uuid": "57ead79cebd14902921477922403093b", "optin_contact": true } -Response del CallBell: {"message":{"uuid":"c40852fc5d65479f8863f8e4f204c669","status":"enqueued"}} +Response del CallBell: {"message":{"uuid":"b132e1ff0f234874bb0377bc34f5c10f","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":"77e58af5-db6e-4275-ae32-b8b9f883266b","changeType":"insert","entity":"payment","entityId":627,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-266.67,"accountCredit":0,"accountOutstanding":266.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":627,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-06T13:09:05-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]}} +Notificacion data: {"uuid":"c77c2e52-0d1f-4a3a-a1e5-ac8ce8162d6f","changeType":"insert","entity":"payment","entityId":670,"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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":1370,"accountCredit":1370,"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":670,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-17T14:29:55-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]}} Dentro del proceso del patch: -Datos traidos con payment api: [{"id":627,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-06T13:09:05-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]}] +Datos traidos con payment api: [{"id":670,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-17T14:29:55-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]}] Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas UUID: 7352b597ba6b43cf948a5ae86051fb80 -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Guanajuato","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2266.67 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 100","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2266.67 pendientes\",\"Monto Ultimo Pago\": \"$ 100\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 06\/06\/2025 13:09 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"06\/06\/2025 13:09\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 06\/06\/2025 13:09 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 06\/06\/2025 13:09","Clabe Interbancaria":null,"Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb21370 a favor","Monto Ultimo Pago":"\ud83d\udcb2 120","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb21370 a favor\",\"Monto Ultimo Pago\": \"$ 120\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 17\/07\/2025 14:29 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"17\/07\/2025 14:30\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 17\/07\/2025 14:29 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 17\/07\/2025 14:30","Clabe Interbancaria":null,"Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲266.67 pendientes","Monto Ultimo Pago": "$ 100","Estado": "Activo","Fecha Ultimo Pago": " 06/06/2025 13:09 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "06/06/2025 13:09","Clabe Interbancaria": "","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} +JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲1370 a favor","Monto Ultimo Pago": "$ 120","Estado": "Activo","Fecha Ultimo Pago": " 17/07/2025 14:29 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "17/07/2025 14:30","Clabe Interbancaria": "","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲266.67 pendientes","Monto Ultimo Pago":"💲 100","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 06/06/2025 13:09 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 06/06/2025 13:09","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲266.67 pendientes\",\"Monto Ultimo Pago\": \"$ 100\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 06/06/2025 13:09 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"06/06/2025 13:09\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} +Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 17/07/2025 14:30","Monto Ultimo Pago":"💲 120","Estado":"🟢 Activo ","Saldo Actual":"💲1370 a favor","Fecha Ultimo Pago":"📆💸 17/07/2025 14:29 con Tarjeta de crédito Stripe 💳","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲1370 a favor\",\"Monto Ultimo Pago\": \"$ 120\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 17/07/2025 14:29 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"17/07/2025 14:30\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲266.67 pendientes","Monto Ultimo Pago":"💲 100","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 06/06/2025 13:09 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 06/06/2025 13:09","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲266.67 pendientes\",\"Monto Ultimo Pago\": \"$ 100\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 06/06/2025 13:09 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"06/06/2025 13:09\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} +Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 17/07/2025 14:30","Monto Ultimo Pago":"💲 120","Estado":"🟢 Activo ","Saldo Actual":"💲1370 a favor","Fecha Ultimo Pago":"📆💸 17/07/2025 14:29 con Tarjeta de crédito Stripe 💳","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲1370 a favor\",\"Monto Ultimo Pago\": \"$ 120\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 17/07/2025 14:29 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"17/07/2025 14:30\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} -[2025-06-06 19:09:15.939795] [notice] Logging level set to:debug -[2025-06-06 19:09:15.939884] [debug] valor del webhook: {"uuid":"1e3d61eb-2e75-4fb5-ae6f-2fb3eed873ac","changeType":"edit","entity":"payment","entityId":"627","eventName":"payment.edit","extraData":{"entity":{"id":627,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-06T13:09:05-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":627,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-06T13:09:05-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]}}} +[2025-07-17 20:30:03.247484] [notice] Logging level set to:debug +[2025-07-17 20:30:03.247555] [debug] valor del webhook: {"uuid":"a894269b-a322-41df-9be1-02c0885cca85","changeType":"edit","entity":"payment","entityId":"670","eventName":"payment.edit","extraData":{"entity":{"id":670,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-17T14:29:55-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":670,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-17T14:29:55-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]}}} -[2025-06-06 19:09:16.064162] [debug] valor el evento recibido por webhook: payment.edit +[2025-07-17 20:30:03.413237] [debug] valor el evento recibido por webhook: payment.edit -[2025-06-06 19:09:16.064307] [debug] Valor de JSON: {"uuid":"1e3d61eb-2e75-4fb5-ae6f-2fb3eed873ac","changeType":"edit","entity":"payment","entityId":"627","eventName":"payment.edit","extraData":{"entity":{"id":627,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-06T13:09:05-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":627,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-06T13:09:05-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]}}} +[2025-07-17 20:30:03.413417] [debug] Valor de JSON: {"uuid":"a894269b-a322-41df-9be1-02c0885cca85","changeType":"edit","entity":"payment","entityId":"670","eventName":"payment.edit","extraData":{"entity":{"id":670,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-17T14:29:55-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":670,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-17T14:29:55-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]}}} -[2025-06-08 6:25:02.879153] [notice] Logging level set to:debug -[2025-06-08 6:25:02.880275] [debug] valor del webhook: {"uuid":"f88633c5-e13b-4fa2-a298-3728fa79b288","changeType":"overdue","entity":"invoice","entityId":"1957","eventName":"invoice.overdue","extraData":{"entity":{"id":1957,"clientId":126,"number":"001907","createdDate":"2025-05-24T10:00:01-0600","dueDate":"2025-06-07T10:00:01-0600","emailSentDate":"2025-06-08T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1960,"type":"service","label":"PREMIUM 24\/04\/2025 \u2013 23\/05\/2025","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},"entityBeforeEdit":null}} +[2025-07-20 16:00:04.833125] [notice] Logging level set to:debug +[2025-07-20 16:00:04.833205] [debug] valor del webhook: {"uuid":"4c060ba6-0497-4877-b03e-a5e6647f14d0","changeType":"draft_approved","entity":"invoice","entityId":"2189","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2189,"clientId":121,"number":"002139","createdDate":"2025-07-20T10:00:02-0600","dueDate":"2025-08-03T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-19T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2192,"type":"service","label":"INTERMEDIO 20\/06\/2025 \u2013 19\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":106,"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":"flor","clientLastName":"marquez gonzalez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"plutarco elias calles 8,lindavista","clientStreet2":"enfrente del parque","clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2025-06-08 6:25:03.104588] [debug] valor el evento recibido por webhook: invoice.overdue +[2025-07-20 16:00:05.008004] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2025-06-08 6:25:03.104646] [debug] Valor de JSON: {"uuid":"f88633c5-e13b-4fa2-a298-3728fa79b288","changeType":"overdue","entity":"invoice","entityId":"1957","eventName":"invoice.overdue","extraData":{"entity":{"id":1957,"clientId":126,"number":"001907","createdDate":"2025-05-24T10:00:01-0600","dueDate":"2025-06-07T10:00:01-0600","emailSentDate":"2025-06-08T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1960,"type":"service","label":"PREMIUM 24\/04\/2025 \u2013 23\/05\/2025","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},"entityBeforeEdit":null}} +[2025-07-20 16:00:05.008068] [debug] Valor de JSON: {"uuid":"4c060ba6-0497-4877-b03e-a5e6647f14d0","changeType":"draft_approved","entity":"invoice","entityId":"2189","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2189,"clientId":121,"number":"002139","createdDate":"2025-07-20T10:00:02-0600","dueDate":"2025-08-03T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-19T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2192,"type":"service","label":"INTERMEDIO 20\/06\/2025 \u2013 19\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":106,"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":"flor","clientLastName":"marquez gonzalez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"plutarco elias calles 8,lindavista","clientStreet2":"enfrente del parque","clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2025-06-08 6:25:03.105606] [debug] Factura vencida +[2025-07-20 16:00:05.008291] [debug] Aprobación de Factura -[2025-06-08 6:25:03.105678] [debug] datos del notification para el invoice overdue:{"uuid":"f88633c5-e13b-4fa2-a298-3728fa79b288","changeType":"overdue","entity":"invoice","entityId":1957,"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":"4181878106","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}],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"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":1957,"clientId":126,"number":"001907","createdDate":"2025-05-24T10:00:01-0600","dueDate":"2025-06-07T10:00:01-0600","emailSentDate":"2025-06-08T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-22T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1960,"type":"service","label":"PREMIUM 24\/04\/2025 \u2013 23\/05\/2025","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},"paymentData":null} +[2025-07-20 16:00:05.008353] [debug] {"uuid":"4c060ba6-0497-4877-b03e-a5e6647f14d0","changeType":"draft_approved","entity":"invoice","entityId":2189,"message":null,"clientId":121,"eventName":"invoice.draft_approved","clientData":{"id":121,"userIdent":"-105.998","previousIsp":"angel","isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"plutarco elias calles 8,lindavista","street2":"enfrente del parque","city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"plutarco elias calles 8,lindavista, 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":false,"invoiceMaturityDays":null,"stopServiceDue":false,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-05-20T00:00:00-0600","leadConvertedAt":"2024-05-20T13:45:39-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"flor","lastName":"marquez gonzalez","username":null,"contacts":[{"id":125,"clientId":121,"email":null,"phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":120,"clientId":121,"customAttributeId":2,"name":"CelularNotificaciones","key":"celularnotificaciones","value":"172.16.117.243","clientZoneVisible":true},{"id":121,"clientId":121,"customAttributeId":4,"name":"Whatsapp","key":"whatsapp","value":"Siip.567","clientZoneVisible":true},{"id":122,"clientId":121,"customAttributeId":5,"name":"uuid","key":"uuid","value":"admin1343","clientZoneVisible":true},{"id":123,"clientId":121,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"22372x9000055","clientZoneVisible":true},{"id":124,"clientId":121,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"21.9758566","clientZoneVisible":true}],"accountBalance":-6816.67,"accountCredit":0,"accountOutstanding":6816.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef5350","addressGpsLat":21.5,"addressGpsLon":-100,"isArchived":false,"generateProformaInvoices":false,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2189,"clientId":121,"number":"002139","createdDate":"2025-07-20T10:00:02-0600","dueDate":"2025-08-03T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-18T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2192,"type":"service","label":"INTERMEDIO 20\/06\/2025 \u2013 19\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":106,"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":"flor","clientLastName":"marquez gonzalez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"plutarco elias calles 8,lindavista","clientStreet2":"enfrente del parque","clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} -[2025-06-08 6:25:03.105700] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** +[2025-07-20 16:00:09.205575] [notice] Logging level set to:debug +[2025-07-20 16:00:09.205672] [debug] valor del webhook: {"uuid":"8e87532b-dab5-4981-ba20-f0e3f5d5738c","changeType":"draft_approved","entity":"invoice","entityId":"2190","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2190,"clientId":122,"number":"002140","createdDate":"2025-07-20T10:00:02-0600","dueDate":"2025-08-03T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-19T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2193,"type":"service","label":"plan300 20\/06\/2025 \u2013 19\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":107,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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":"MARQUEZ GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PLTARCO 8, LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2025-06-08 6:25:03.113486] [debug] Numero de cel obtenido +[2025-07-20 16:00:09.403913] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2025-06-08 6:25:03.113538] [warning] No se encontró un teléfono celular válido para el cliente: 126 -[2025-06-08 16:00:04.010076] [notice] Logging level set to:debug -[2025-06-08 16:00:04.010152] [debug] valor del webhook: {"uuid":"28906dc2-f45d-48e9-bb35-021b25f5ff4d","changeType":"draft_approved","entity":"invoice","entityId":"2058","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2058,"clientId":116,"number":"002008","createdDate":"2025-06-08T10:00:01-0600","dueDate":"2025-06-22T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-06T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2061,"type":"service","label":"PREMIUM 07\/05\/2025 \u2013 06\/06\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":110,"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":"Jos\u00e9 Humberto","clientLastName":"Rodr\u00edguez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"28 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},"entityBeforeEdit":null}} +[2025-07-20 16:00:09.403966] [debug] Valor de JSON: {"uuid":"8e87532b-dab5-4981-ba20-f0e3f5d5738c","changeType":"draft_approved","entity":"invoice","entityId":"2190","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2190,"clientId":122,"number":"002140","createdDate":"2025-07-20T10:00:02-0600","dueDate":"2025-08-03T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-19T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2193,"type":"service","label":"plan300 20\/06\/2025 \u2013 19\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":107,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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":"MARQUEZ GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PLTARCO 8, LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2025-06-08 16:00:04.174170] [debug] valor el evento recibido por webhook: invoice.draft_approved +[2025-07-20 16:00:09.404294] [debug] Aprobación de Factura -[2025-06-08 16:00:04.174227] [debug] Valor de JSON: {"uuid":"28906dc2-f45d-48e9-bb35-021b25f5ff4d","changeType":"draft_approved","entity":"invoice","entityId":"2058","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2058,"clientId":116,"number":"002008","createdDate":"2025-06-08T10:00:01-0600","dueDate":"2025-06-22T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-06T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2061,"type":"service","label":"PREMIUM 07\/05\/2025 \u2013 06\/06\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":110,"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":"Jos\u00e9 Humberto","clientLastName":"Rodr\u00edguez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"28 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},"entityBeforeEdit":null}} +[2025-07-20 16:00:09.404695] [debug] {"uuid":"8e87532b-dab5-4981-ba20-f0e3f5d5738c","changeType":"draft_approved","entity":"invoice","entityId":2190,"message":null,"clientId":122,"eventName":"invoice.draft_approved","clientData":{"id":122,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"PLTARCO 8, LINDAVISTA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"PLTARCO 8, LINDAVISTA, 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-05-20T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JUDITH","lastName":"MARQUEZ GONZALEZ","username":null,"contacts":[{"id":126,"clientId":122,"email":null,"phone":"55667788","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":125,"clientId":122,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_Q8uWOC8sjQem1K","clientZoneVisible":true},{"id":126,"clientId":122,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180296730137251","clientZoneVisible":true}],"accountBalance":-6090,"accountCredit":0,"accountOutstanding":6090,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef5350","addressGpsLat":21.171581132292,"addressGpsLon":-100.9286433436,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2190,"clientId":122,"number":"002140","createdDate":"2025-07-20T10:00:02-0600","dueDate":"2025-08-03T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-18T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2193,"type":"service","label":"plan300 20\/06\/2025 \u2013 19\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":107,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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":"MARQUEZ GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PLTARCO 8, LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} -[2025-06-08 16:00:04.174518] [debug] Aprobación de Factura +[2025-07-21 16:00:04.571232] [notice] Logging level set to:debug +[2025-07-21 16:00:04.571326] [debug] valor del webhook: {"uuid":"a4757b73-d2fb-423c-ad2b-911bafb69e4a","changeType":"draft_approved","entity":"invoice","entityId":"2191","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2191,"clientId":134,"number":"002141","createdDate":"2025-07-21T10:00:02-0600","dueDate":"2025-08-04T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-20T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2194,"type":"service","label":"PREMIUM 21\/06\/2025 \u2013 20\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":113,"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":"La Mosca","clientLastName":"Tse Tse","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"25 Michoac\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},"entityBeforeEdit":null}} -[2025-06-08 16:00:04.174573] [debug] {"uuid":"28906dc2-f45d-48e9-bb35-021b25f5ff4d","changeType":"draft_approved","entity":"invoice","entityId":2058,"message":null,"clientId":116,"eventName":"invoice.draft_approved","clientData":{"id":116,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"28 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 28, 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-04-24T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Jos\u00e9 Humberto","lastName":"Rodr\u00edguez","username":null,"contacts":[{"id":120,"clientId":116,"email":"josehumberto@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-8400,"accountCredit":0,"accountOutstanding":8400,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.1566139,"addressGpsLon":-100.9384516,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2058,"clientId":116,"number":"002008","createdDate":"2025-06-08T10:00:01-0600","dueDate":"2025-06-22T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-05T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2061,"type":"service","label":"PREMIUM 07\/05\/2025 \u2013 06\/06\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":110,"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":"Jos\u00e9 Humberto","clientLastName":"Rodr\u00edguez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"28 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},"paymentData":null} +[2025-07-21 16:00:04.770167] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2025-06-08 16:00:04.174644] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-08 16:00:04.174655] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"28906dc2-f45d-48e9-bb35-021b25f5ff4d","changeType":"draft_approved","entity":"invoice","entityId":2058,"message":null,"clientId":116,"eventName":"invoice.draft_approved","clientData":{"id":116,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"28 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 28, 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-04-24T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Jos\u00e9 Humberto","lastName":"Rodr\u00edguez","username":null,"contacts":[{"id":120,"clientId":116,"email":"josehumberto@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-8400,"accountCredit":0,"accountOutstanding":8400,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.1566139,"addressGpsLon":-100.9384516,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2058,"clientId":116,"number":"002008","createdDate":"2025-06-08T10:00:01-0600","dueDate":"2025-06-22T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-05T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2061,"type":"service","label":"PREMIUM 07\/05\/2025 \u2013 06\/06\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":110,"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":"Jos\u00e9 Humberto","clientLastName":"Rodr\u00edguez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"28 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},"paymentData":null} +[2025-07-21 16:00:04.770230] [debug] Valor de JSON: {"uuid":"a4757b73-d2fb-423c-ad2b-911bafb69e4a","changeType":"draft_approved","entity":"invoice","entityId":"2191","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2191,"clientId":134,"number":"002141","createdDate":"2025-07-21T10:00:02-0600","dueDate":"2025-08-04T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-20T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2194,"type":"service","label":"PREMIUM 21\/06\/2025 \u2013 20\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":113,"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":"La Mosca","clientLastName":"Tse Tse","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"25 Michoac\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},"entityBeforeEdit":null}} + +[2025-07-21 16:00:04.770426] [debug] Aprobación de Factura + +[2025-07-21 16:00:04.770497] [debug] {"uuid":"a4757b73-d2fb-423c-ad2b-911bafb69e4a","changeType":"draft_approved","entity":"invoice","entityId":2191,"message":null,"clientId":134,"eventName":"invoice.draft_approved","clientData":{"id":134,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"25 Michoac\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Michoac\u00e1n 25, 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":"La Mosca","lastName":"Tse Tse","username":null,"contacts":[{"id":138,"clientId":134,"email":"lamoscatsetse@gmail.com","phone":null,"name":null,"isBilling":true,"isContact":false,"types":[{"id":1,"name":"Billing"}]}],"attributes":[{"id":190,"clientId":134,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_S0Igo0UyD5CUtI","clientZoneVisible":true},{"id":191,"clientId":134,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180573205227652","clientZoneVisible":true},{"id":206,"clientId":134,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-9100,"accountCredit":0,"accountOutstanding":9100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#009688","addressGpsLat":21.1576726,"addressGpsLon":-100.9370354,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2191,"clientId":134,"number":"002141","createdDate":"2025-07-21T10:00:02-0600","dueDate":"2025-08-04T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2194,"type":"service","label":"PREMIUM 21\/06\/2025 \u2013 20\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":113,"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":"La Mosca","clientLastName":"Tse Tse","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"25 Michoac\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},"paymentData":null} + +[2025-07-21 16:00:08.112519] [notice] Logging level set to:debug +[2025-07-21 16:00:08.112606] [debug] valor del webhook: {"uuid":"1fc6e4b1-bbba-451f-9215-a0fa3dcf6d8a","changeType":"draft_approved","entity":"invoice","entityId":"2192","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2192,"clientId":105,"number":"002142","createdDate":"2025-07-21T10:00:02-0600","dueDate":"2025-08-04T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-20T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2195,"type":"service","label":"plan300 21\/06\/2025 \u2013 20\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":111,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"jota","clientLastName":"serpiente","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":null,"clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-21 16:00:08.300474] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-21 16:00:08.300566] [debug] Valor de JSON: {"uuid":"1fc6e4b1-bbba-451f-9215-a0fa3dcf6d8a","changeType":"draft_approved","entity":"invoice","entityId":"2192","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2192,"clientId":105,"number":"002142","createdDate":"2025-07-21T10:00:02-0600","dueDate":"2025-08-04T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-20T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2195,"type":"service","label":"plan300 21\/06\/2025 \u2013 20\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":111,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"jota","clientLastName":"serpiente","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":null,"clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-21 16:00:08.300745] [debug] Aprobación de Factura + +[2025-07-21 16:00:08.300817] [debug] {"uuid":"1fc6e4b1-bbba-451f-9215-a0fa3dcf6d8a","changeType":"draft_approved","entity":"invoice","entityId":2192,"message":null,"clientId":105,"eventName":"invoice.draft_approved","clientData":{"id":105,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":null,"countryId":173,"stateId":null,"zipCode":null,"fullAddress":null,"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-02-17T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"jota","lastName":"serpiente","username":null,"contacts":[{"id":109,"clientId":105,"email":null,"phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4100,"accountCredit":0,"accountOutstanding":4100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#4527a0","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2192,"clientId":105,"number":"002142","createdDate":"2025-07-21T10:00:02-0600","dueDate":"2025-08-04T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2195,"type":"service","label":"plan300 21\/06\/2025 \u2013 20\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":111,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"jota","clientLastName":"serpiente","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":null,"clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-21 16:00:09.505548] [notice] Logging level set to:debug +[2025-07-21 16:00:09.505655] [debug] valor del webhook: {"uuid":"9549d030-0afa-4f06-a9bd-db27230718c9","changeType":"draft_approved","entity":"invoice","entityId":"2193","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2193,"clientId":136,"number":"002143","createdDate":"2025-07-21T10:00:02-0600","dueDate":"2025-08-04T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-20T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2196,"type":"service","label":"INTERMEDIO 21\/06\/2025 \u2013 20\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":112,"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":"El Mus","clientLastName":"Tafah","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"22 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},"entityBeforeEdit":null}} + +[2025-07-21 16:00:09.645335] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-21 16:00:09.645399] [debug] Valor de JSON: {"uuid":"9549d030-0afa-4f06-a9bd-db27230718c9","changeType":"draft_approved","entity":"invoice","entityId":"2193","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2193,"clientId":136,"number":"002143","createdDate":"2025-07-21T10:00:02-0600","dueDate":"2025-08-04T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-20T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2196,"type":"service","label":"INTERMEDIO 21\/06\/2025 \u2013 20\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":112,"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":"El Mus","clientLastName":"Tafah","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"22 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},"entityBeforeEdit":null}} + +[2025-07-21 16:00:09.645505] [debug] Aprobación de Factura + +[2025-07-21 16:00:09.645556] [debug] {"uuid":"9549d030-0afa-4f06-a9bd-db27230718c9","changeType":"draft_approved","entity":"invoice","entityId":2193,"message":null,"clientId":136,"eventName":"invoice.draft_approved","clientData":{"id":136,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"22 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Yucat\u00e1n 22, 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":"El Mus","lastName":"Tafah","username":null,"contacts":[{"id":140,"clientId":136,"email":"elmus@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":210,"clientId":136,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-6333.33,"accountCredit":0,"accountOutstanding":6333.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1571597,"addressGpsLon":-100.9367744,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2193,"clientId":136,"number":"002143","createdDate":"2025-07-21T10:00:02-0600","dueDate":"2025-08-04T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2196,"type":"service","label":"INTERMEDIO 21\/06\/2025 \u2013 20\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":112,"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":"El Mus","clientLastName":"Tafah","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"22 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},"paymentData":null} + +[2025-07-21 16:00:12.421936] [notice] Logging level set to:debug +[2025-07-21 16:00:12.422004] [debug] valor del webhook: {"uuid":"3043af53-db52-4c85-a8da-a87a8e8055ef","changeType":"draft_approved","entity":"invoice","entityId":"2194","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2194,"clientId":133,"number":"002144","createdDate":"2025-07-21T10:00:02-0600","dueDate":"2025-08-04T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-20T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2197,"type":"service","label":"INTERMEDIO 21\/06\/2025 \u2013 20\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":114,"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":"Los Amigos","clientLastName":"Invisibles","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Calle Colima","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-21 16:00:12.595437] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-21 16:00:12.595626] [debug] Valor de JSON: {"uuid":"3043af53-db52-4c85-a8da-a87a8e8055ef","changeType":"draft_approved","entity":"invoice","entityId":"2194","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2194,"clientId":133,"number":"002144","createdDate":"2025-07-21T10:00:02-0600","dueDate":"2025-08-04T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-20T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2197,"type":"service","label":"INTERMEDIO 21\/06\/2025 \u2013 20\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":114,"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":"Los Amigos","clientLastName":"Invisibles","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Calle Colima","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-21 16:00:12.595881] [debug] Aprobación de Factura + +[2025-07-21 16:00:12.595974] [debug] {"uuid":"3043af53-db52-4c85-a8da-a87a8e8055ef","changeType":"draft_approved","entity":"invoice","entityId":2194,"message":null,"clientId":133,"eventName":"invoice.draft_approved","clientData":{"id":133,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"34 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Colima 34, Mariano Balleza, 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":"Los Amigos","lastName":"Invisibles","username":null,"contacts":[{"id":137,"clientId":133,"email":"amigosinvisibles@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":135,"clientId":133,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_QJjZqeaZSSPwcT","clientZoneVisible":true},{"id":136,"clientId":133,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180822750421052","clientZoneVisible":true},{"id":209,"clientId":133,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-6333.33,"accountCredit":0,"accountOutstanding":6333.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ffc107","addressGpsLat":21.1568888,"addressGpsLon":-100.9275759,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2194,"clientId":133,"number":"002144","createdDate":"2025-07-21T10:00:02-0600","dueDate":"2025-08-04T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2197,"type":"service","label":"INTERMEDIO 21\/06\/2025 \u2013 20\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":114,"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":"Los Amigos","clientLastName":"Invisibles","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Calle Colima","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-22 6:25:03.096761] [notice] Logging level set to:debug +[2025-07-22 6:25:03.101720] [debug] valor del webhook: {"uuid":"bb9ad92d-b580-4e7f-8c65-9a9587062813","changeType":"overdue","entity":"invoice","entityId":"2184","eventName":"invoice.overdue","extraData":{"entity":{"id":2184,"clientId":116,"number":"002134","createdDate":"2025-07-07T10:00:01-0600","dueDate":"2025-07-21T10:00:01-0600","emailSentDate":"2025-07-22T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-07-05T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2187,"type":"service","label":"PREMIUM 07\/06\/2025 \u2013 06\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":110,"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":"Jos\u00e9 Humberto","clientLastName":"Rodr\u00edguez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"28 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},"entityBeforeEdit":null}} + +[2025-07-22 6:25:03.334536] [debug] valor el evento recibido por webhook: invoice.overdue + +[2025-07-22 6:25:03.334599] [debug] Valor de JSON: {"uuid":"bb9ad92d-b580-4e7f-8c65-9a9587062813","changeType":"overdue","entity":"invoice","entityId":"2184","eventName":"invoice.overdue","extraData":{"entity":{"id":2184,"clientId":116,"number":"002134","createdDate":"2025-07-07T10:00:01-0600","dueDate":"2025-07-21T10:00:01-0600","emailSentDate":"2025-07-22T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-07-05T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2187,"type":"service","label":"PREMIUM 07\/06\/2025 \u2013 06\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":110,"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":"Jos\u00e9 Humberto","clientLastName":"Rodr\u00edguez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"28 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},"entityBeforeEdit":null}} + +[2025-07-22 6:25:03.334809] [debug] Factura vencida + +[2025-07-22 6:25:03.334856] [debug] datos del notification para el invoice overdue:{"uuid":"bb9ad92d-b580-4e7f-8c65-9a9587062813","changeType":"overdue","entity":"invoice","entityId":2184,"message":null,"clientId":116,"eventName":"invoice.overdue","clientData":{"id":116,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"28 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 28, 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-04-24T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Jos\u00e9 Humberto","lastName":"Rodr\u00edguez","username":null,"contacts":[{"id":120,"clientId":116,"email":"josehumberto@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":215,"clientId":116,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-9100,"accountCredit":0,"accountOutstanding":9100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.1566139,"addressGpsLon":-100.9384516,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2184,"clientId":116,"number":"002134","createdDate":"2025-07-07T10:00:01-0600","dueDate":"2025-07-21T10:00:01-0600","emailSentDate":"2025-07-22T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-07-05T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2187,"type":"service","label":"PREMIUM 07\/06\/2025 \u2013 06\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":110,"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":"Jos\u00e9 Humberto","clientLastName":"Rodr\u00edguez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"28 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},"paymentData":null} + +[2025-07-22 6:25:03.334892] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** + +contac vacio +[2025-07-22 6:25:03.335058] [debug] Numero de cel obtenido + +[2025-07-22 6:25:03.335072] [warning] No se encontró un teléfono celular válido para el cliente: 116 +[2025-07-22 6:25:03.494589] [notice] Logging level set to:debug +[2025-07-22 6:25:03.494642] [debug] valor del webhook: {"uuid":"e211cda4-4d80-4358-8a60-c1891a56fb9d","changeType":"overdue","entity":"invoice","entityId":"2185","eventName":"invoice.overdue","extraData":{"entity":{"id":2185,"clientId":110,"number":"002135","createdDate":"2025-07-07T10:00:01-0600","dueDate":"2025-07-21T10:00:01-0600","emailSentDate":"2025-07-22T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-07-05T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2188,"type":"service","label":"plan300 07\/06\/2025 \u2013 06\/07\/2025","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":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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},"entityBeforeEdit":null}} + +[2025-07-22 6:25:03.642693] [debug] valor el evento recibido por webhook: invoice.overdue + +[2025-07-22 6:25:03.642746] [debug] Valor de JSON: {"uuid":"e211cda4-4d80-4358-8a60-c1891a56fb9d","changeType":"overdue","entity":"invoice","entityId":"2185","eventName":"invoice.overdue","extraData":{"entity":{"id":2185,"clientId":110,"number":"002135","createdDate":"2025-07-07T10:00:01-0600","dueDate":"2025-07-21T10:00:01-0600","emailSentDate":"2025-07-22T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-07-05T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2188,"type":"service","label":"plan300 07\/06\/2025 \u2013 06\/07\/2025","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":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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},"entityBeforeEdit":null}} + +[2025-07-22 6:25:03.642843] [debug] Factura vencida + +[2025-07-22 6:25:03.642880] [debug] datos del notification para el invoice overdue:{"uuid":"e211cda4-4d80-4358-8a60-c1891a56fb9d","changeType":"overdue","entity":"invoice","entityId":2185,"message":null,"clientId":110,"eventName":"invoice.overdue","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"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-3600,"accountCredit":0,"accountOutstanding":3600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef6c00","addressGpsLat":21.1464449,"addressGpsLon":-100.9141442,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2185,"clientId":110,"number":"002135","createdDate":"2025-07-07T10:00:01-0600","dueDate":"2025-07-21T10:00:01-0600","emailSentDate":"2025-07-22T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-07-05T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2188,"type":"service","label":"plan300 07\/06\/2025 \u2013 06\/07\/2025","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":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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},"paymentData":null} + +[2025-07-22 6:25:03.642903] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** + +[2025-07-22 6:25:03.642957] [debug] Numero de cel obtenido + +[2025-07-22 6:25:03.642968] [warning] No se encontró un teléfono celular válido para el cliente: 110 +[2025-07-22 16:00:04.831284] [notice] Logging level set to:debug +[2025-07-22 16:00:04.831403] [debug] valor del webhook: {"uuid":"cd30babb-3282-4061-997f-9bbbaf1e09e7","changeType":"draft_approved","entity":"invoice","entityId":"2195","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2195,"clientId":171,"number":"002145","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2198,"type":"service","label":"Basico 300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":155,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Archi","clientLastName":"Isalas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Campeche 56","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-22 16:00:05.077581] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-22 16:00:05.077701] [debug] Valor de JSON: {"uuid":"cd30babb-3282-4061-997f-9bbbaf1e09e7","changeType":"draft_approved","entity":"invoice","entityId":"2195","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2195,"clientId":171,"number":"002145","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2198,"type":"service","label":"Basico 300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":155,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Archi","clientLastName":"Isalas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Campeche 56","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-22 16:00:05.077923] [debug] Aprobación de Factura + +[2025-07-22 16:00:05.077987] [debug] {"uuid":"cd30babb-3282-4061-997f-9bbbaf1e09e7","changeType":"draft_approved","entity":"invoice","entityId":2195,"message":null,"clientId":171,"eventName":"invoice.draft_approved","clientData":{"id":171,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"Campeche 56","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Campeche 56, 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":"2025-05-21T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Archi","lastName":"Isalas","username":"mainstreamm2@gmail.com","contacts":[{"id":177,"clientId":171,"email":"mainstreamm2@gmail.com","phone":null,"name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":198,"clientId":171,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_SM2zH6IsjTz6ol","clientZoneVisible":true},{"id":199,"clientId":171,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180950530868794","clientZoneVisible":true},{"id":201,"clientId":171,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-710,"accountCredit":0,"accountOutstanding":710,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1572461,"addressGpsLon":-100.9377137,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2195,"clientId":171,"number":"002145","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2198,"type":"service","label":"Basico 300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":155,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Archi","clientLastName":"Isalas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Campeche 56","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-22 16:00:06.187540] [notice] Logging level set to:debug +[2025-07-22 16:00:06.187650] [debug] valor del webhook: {"uuid":"49a4b620-d70a-42bc-8d10-c4fa0335a975","changeType":"draft_approved","entity":"invoice","entityId":"2196","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2196,"clientId":156,"number":"002146","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2199,"type":"service","label":"PREMIUM 01\/07\/2025 \u2013 31\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":126,"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":"Maria Gricelda","clientLastName":"L\u00f3pez Avalos","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 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},"entityBeforeEdit":null}} + +[2025-07-22 16:00:06.323242] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-22 16:00:06.323302] [debug] Valor de JSON: {"uuid":"49a4b620-d70a-42bc-8d10-c4fa0335a975","changeType":"draft_approved","entity":"invoice","entityId":"2196","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2196,"clientId":156,"number":"002146","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2199,"type":"service","label":"PREMIUM 01\/07\/2025 \u2013 31\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":126,"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":"Maria Gricelda","clientLastName":"L\u00f3pez Avalos","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 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},"entityBeforeEdit":null}} + +[2025-07-22 16:00:06.323410] [debug] Aprobación de Factura + +[2025-07-22 16:00:06.323472] [debug] {"uuid":"49a4b620-d70a-42bc-8d10-c4fa0335a975","changeType":"draft_approved","entity":"invoice","entityId":2196,"message":null,"clientId":156,"eventName":"invoice.draft_approved","clientData":{"id":156,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"34 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Yucat\u00e1n 34, 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":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Maria Gricelda","lastName":"L\u00f3pez Avalos","username":null,"contacts":[{"id":160,"clientId":156,"email":null,"phone":"4181817609","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":152,"clientId":156,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RWj8SZIs9d3z41","clientZoneVisible":true},{"id":153,"clientId":156,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180553522369174","clientZoneVisible":true},{"id":204,"clientId":156,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-853.33,"accountCredit":0,"accountOutstanding":853.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#7cb342","addressGpsLat":21.1562598,"addressGpsLon":-100.9370894,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2196,"clientId":156,"number":"002146","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2199,"type":"service","label":"PREMIUM 01\/07\/2025 \u2013 31\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":126,"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":"Maria Gricelda","clientLastName":"L\u00f3pez Avalos","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 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},"paymentData":null} + +[2025-07-22 16:00:06.323514] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-07-22 16:00:06.323528] [info] Tipo de contacto normalizado: 'whatsapp' +Notificacion data: {"uuid":"49a4b620-d70a-42bc-8d10-c4fa0335a975","changeType":"draft_approved","entity":"invoice","entityId":2196,"message":null,"clientId":156,"eventName":"invoice.draft_approved","clientData":{"id":156,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"34 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Yucat\u00e1n 34, 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":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Maria Gricelda","lastName":"L\u00f3pez Avalos","username":null,"contacts":[{"id":160,"clientId":156,"email":null,"phone":"4181817609","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":152,"clientId":156,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RWj8SZIs9d3z41","clientZoneVisible":true},{"id":153,"clientId":156,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180553522369174","clientZoneVisible":true},{"id":204,"clientId":156,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-853.33,"accountCredit":0,"accountOutstanding":853.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#7cb342","addressGpsLat":21.1562598,"addressGpsLon":-100.9370894,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2196,"clientId":156,"number":"002146","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2199,"type":"service","label":"PREMIUM 01\/07\/2025 \u2013 31\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":126,"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":"Maria Gricelda","clientLastName":"L\u00f3pez Avalos","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 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},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":514,"clientId":156,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-17T14:52:20-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":758,"invoiceId":2073,"paymentId":514,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Maria Gricelda López Avalos + +UUID: 2038d2d99ae543f3b56f1ae54f4cc82b + +JSON con los datos a actualizar: {"name":"Maria Gricelda L\u00f3pez Avalos","custom_fields":{"Cliente":156,"Domicilio":"\ud83d\udccd Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Maria Gricelda L\u00f3pez Avalos","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/156","Saldo Actual":"\ud83d\udcb2853.33 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"156\",\"Domicilio\": \"\"Nombre\": \"Maria Gricelda L\u00f3pez Avalos\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/156\",\"Saldo Actual\": \"\ud83d\udcb2853.33 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 17\/01\/2025 14:52 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"22\/07\/2025 10:00\",\"Clabe Interbancaria\": \"124180553522369174\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 17\/01\/2025 14:52 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/07\/2025 10:00","Clabe Interbancaria":"124180553522369174","Site":"","Antena\/Sectorial":""}} + +JSON con los datos a actualizar del resumen: {"Cliente": "156","Domicilio": ""Nombre": "Maria Gricelda López Avalos","URL": "https://sistema.siip.mx/crm/client/156","Saldo Actual": "💲853.33 pendientes","Monto Ultimo Pago": "$ 300","Estado": "Suspendido","Fecha Ultimo Pago": " 17/01/2025 14:52 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "22/07/2025 10:00","Clabe Interbancaria": "124180553522369174","Site": "","Antena/Sectorial": ""} + +Response Patch CallBell: {"contact":{"uuid":"2038d2d99ae543f3b56f1ae54f4cc82b","name":"Maria Gricelda López Avalos","phoneNumber":"5214181817609","avatarUrl":null,"createdAt":"2024-01-26T18:16:09Z","closedAt":"2025-05-25T03:21:00Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/2038d2d99ae543f3b56f1ae54f4cc82b","conversationHref":"https://dash.callbell.eu/chat/90611886ac204c56a75240f951c53874","tags":["s0LOCS","ePA"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Cliente":"156","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Clabe Interbancaria":"124180553522369174","Monto Ultimo Pago":"💲 300","Domicilio":"📍 Yucatán 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","URL":"🌐 https://sistema.siip.mx/crm/client/156","Saldo Actual":"💲853.33 pendientes","Fecha Ultimo Pago":"📆💸 17/01/2025 14:52 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Maria Gricelda López Avalos","user name":"Grisel","Estado":"🔴 Suspendido","Resumen":"{\"Cliente\": \"156\",\"Domicilio\": \"\"Nombre\": \"Maria Gricelda López Avalos\",\"URL\": \"https://sistema.siip.mx/crm/client/156\",\"Saldo Actual\": \"💲853.33 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 17/01/2025 14:52 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"22/07/2025 10:00\",\"Clabe Interbancaria\": \"124180553522369174\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Fecha Ultima Actualizacion":"📆🔄️ 22/07/2025 10:00"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +Response 2 Patch CallBell: {"contact":{"uuid":"2038d2d99ae543f3b56f1ae54f4cc82b","name":"Maria Gricelda López Avalos","phoneNumber":"5214181817609","avatarUrl":null,"createdAt":"2024-01-26T18:16:09Z","closedAt":"2025-05-25T03:21:00Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/2038d2d99ae543f3b56f1ae54f4cc82b","conversationHref":"https://dash.callbell.eu/chat/90611886ac204c56a75240f951c53874","tags":["s0LOCS","ePA"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Cliente":"156","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Clabe Interbancaria":"124180553522369174","Monto Ultimo Pago":"💲 300","Domicilio":"📍 Yucatán 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","URL":"🌐 https://sistema.siip.mx/crm/client/156","Saldo Actual":"💲853.33 pendientes","Fecha Ultimo Pago":"📆💸 17/01/2025 14:52 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Maria Gricelda López Avalos","user name":"Grisel","Estado":"🔴 Suspendido","Resumen":"{\"Cliente\": \"156\",\"Domicilio\": \"\"Nombre\": \"Maria Gricelda López Avalos\",\"URL\": \"https://sistema.siip.mx/crm/client/156\",\"Saldo Actual\": \"💲853.33 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 17/01/2025 14:52 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"22/07/2025 10:00\",\"Clabe Interbancaria\": \"124180553522369174\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Fecha Ultima Actualizacion":"📆🔄️ 22/07/2025 10:00"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-07-22 16:00:09.630709] [notice] Logging level set to:debug +[2025-07-22 16:00:09.630798] [debug] valor del webhook: {"uuid":"5490d75c-a587-4992-9a6e-85ed71d799bd","changeType":"draft_approved","entity":"invoice","entityId":"2197","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2197,"clientId":148,"number":"002147","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2200,"type":"service","label":"plan300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":116,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El AR","clientLastName":"Real 3D","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"24 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},"entityBeforeEdit":null}} + +[2025-07-22 16:00:09.803584] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-22 16:00:09.803649] [debug] Valor de JSON: {"uuid":"5490d75c-a587-4992-9a6e-85ed71d799bd","changeType":"draft_approved","entity":"invoice","entityId":"2197","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2197,"clientId":148,"number":"002147","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2200,"type":"service","label":"plan300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":116,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El AR","clientLastName":"Real 3D","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"24 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},"entityBeforeEdit":null}} + +[2025-07-22 16:00:09.803858] [debug] Aprobación de Factura + +[2025-07-22 16:00:09.803916] [debug] {"uuid":"5490d75c-a587-4992-9a6e-85ed71d799bd","changeType":"draft_approved","entity":"invoice","entityId":2197,"message":null,"clientId":148,"eventName":"invoice.draft_approved","clientData":{"id":148,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"24 Campeche","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Campeche 24, 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-08-19T00:00:00-0600","leadConvertedAt":"2024-08-19T15:08:20-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El AR","lastName":"Real 3D","username":null,"contacts":[{"id":152,"clientId":148,"email":"elarquijuve@gmail.com","phone":"41818781806","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":147,"clientId":148,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_Qh0pTQM9a96D8B","clientZoneVisible":true},{"id":148,"clientId":148,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180834778043086","clientZoneVisible":true},{"id":151,"clientId":148,"customAttributeId":8,"name":"conekta","key":"conekta","value":"aasdad","clientZoneVisible":true}],"accountBalance":-1800,"accountCredit":0,"accountOutstanding":1800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#c62828","addressGpsLat":21.1558353,"addressGpsLon":-100.9384629,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2197,"clientId":148,"number":"002147","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2200,"type":"service","label":"plan300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":116,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El AR","clientLastName":"Real 3D","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"24 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},"paymentData":null} + +[2025-07-22 16:00:09.803988] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-07-22 16:00:09.803999] [info] Tipo de contacto normalizado: 'whatsapp' +Notificacion data: {"uuid":"5490d75c-a587-4992-9a6e-85ed71d799bd","changeType":"draft_approved","entity":"invoice","entityId":2197,"message":null,"clientId":148,"eventName":"invoice.draft_approved","clientData":{"id":148,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"24 Campeche","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Campeche 24, 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-08-19T00:00:00-0600","leadConvertedAt":"2024-08-19T15:08:20-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El AR","lastName":"Real 3D","username":null,"contacts":[{"id":152,"clientId":148,"email":"elarquijuve@gmail.com","phone":"41818781806","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":147,"clientId":148,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_Qh0pTQM9a96D8B","clientZoneVisible":true},{"id":148,"clientId":148,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180834778043086","clientZoneVisible":true},{"id":151,"clientId":148,"customAttributeId":8,"name":"conekta","key":"conekta","value":"aasdad","clientZoneVisible":true}],"accountBalance":-1800,"accountCredit":0,"accountOutstanding":1800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#c62828","addressGpsLat":21.1558353,"addressGpsLon":-100.9384629,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2197,"clientId":148,"number":"002147","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2200,"type":"service","label":"plan300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":116,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El AR","clientLastName":"Real 3D","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"24 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},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":368,"clientId":148,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-08-19T15:10:06-0600","amount":3500,"currencyCode":"MXN","note":null,"receiptSentDate":"2024-08-19T15:10:13-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":416,"invoiceId":852,"paymentId":368,"creditNoteId":null,"refundId":null,"amount":3500}],"creditAmount":0,"userId":1015,"attributes":[]}] + +Nombre del cliente que se va a actualizar: El AR Real 3D + +UUID: + +JSON con los datos a actualizar: {"name":"El AR Real 3D","custom_fields":{"Cliente":148,"Domicilio":"\ud83d\udccd Campeche 24, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 El AR Real 3D","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/148","Saldo Actual":"\ud83d\udcb21800 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 3500","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"148\",\"Domicilio\": \"\"Nombre\": \"El AR Real 3D\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/148\",\"Saldo Actual\": \"\ud83d\udcb21800 pendientes\",\"Monto Ultimo Pago\": \"$ 3500\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 19\/08\/2024 15:10 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"22\/07\/2025 10:00\",\"Clabe Interbancaria\": \"002180834778043086\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 19\/08\/2024 15:10 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/07\/2025 10:00","Clabe Interbancaria":"002180834778043086","Site":"","Antena\/Sectorial":""}} + +JSON con los datos a actualizar del resumen: {"Cliente": "148","Domicilio": ""Nombre": "El AR Real 3D","URL": "https://sistema.siip.mx/crm/client/148","Saldo Actual": "💲1800 pendientes","Monto Ultimo Pago": "$ 3500","Estado": "Suspendido","Fecha Ultimo Pago": " 19/08/2024 15:10 con Efectivo 💵","Fecha Ultima Actualizacion": "22/07/2025 10:00","Clabe Interbancaria": "002180834778043086","Site": "","Antena/Sectorial": ""} + +Response Patch CallBell: + +Response 2 Patch CallBell: + +[2025-07-22 16:00:12.357259] [notice] Logging level set to:debug +[2025-07-22 16:00:12.357316] [debug] valor del webhook: {"uuid":"7396985e-d0db-48f1-a431-551c4a6a112b","changeType":"draft_approved","entity":"invoice","entityId":"2198","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2198,"clientId":157,"number":"002148","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2201,"type":"service","label":"plan300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":127,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGEL","clientLastName":"ARVIZU SIIP","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Calle Colima","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-22 16:00:12.531929] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-22 16:00:12.531986] [debug] Valor de JSON: {"uuid":"7396985e-d0db-48f1-a431-551c4a6a112b","changeType":"draft_approved","entity":"invoice","entityId":"2198","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2198,"clientId":157,"number":"002148","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2201,"type":"service","label":"plan300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":127,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGEL","clientLastName":"ARVIZU SIIP","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Calle Colima","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-22 16:00:12.532102] [debug] Aprobación de Factura + +[2025-07-22 16:00:12.532149] [debug] {"uuid":"7396985e-d0db-48f1-a431-551c4a6a112b","changeType":"draft_approved","entity":"invoice","entityId":2198,"message":null,"clientId":157,"eventName":"invoice.draft_approved","clientData":{"id":157,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Colima 45, Mariano Balleza, 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":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANGEL","lastName":"ARVIZU SIIP","username":null,"contacts":[{"id":161,"clientId":157,"email":null,"phone":"5214181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":154,"clientId":157,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RWjBO6Lsy1TgAV","clientZoneVisible":true},{"id":155,"clientId":157,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180695267429334","clientZoneVisible":true}],"accountBalance":-2080,"accountCredit":0,"accountOutstanding":2080,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574303,"addressGpsLon":-100.9275061,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2198,"clientId":157,"number":"002148","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2201,"type":"service","label":"plan300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":127,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGEL","clientLastName":"ARVIZU SIIP","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Calle Colima","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-22 16:00:12.532344] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-07-22 16:00:12.532361] [info] Tipo de contacto normalizado: 'whatsapp' +Notificacion data: {"uuid":"7396985e-d0db-48f1-a431-551c4a6a112b","changeType":"draft_approved","entity":"invoice","entityId":2198,"message":null,"clientId":157,"eventName":"invoice.draft_approved","clientData":{"id":157,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Colima 45, Mariano Balleza, 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":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANGEL","lastName":"ARVIZU SIIP","username":null,"contacts":[{"id":161,"clientId":157,"email":null,"phone":"5214181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":154,"clientId":157,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RWjBO6Lsy1TgAV","clientZoneVisible":true},{"id":155,"clientId":157,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180695267429334","clientZoneVisible":true}],"accountBalance":-2080,"accountCredit":0,"accountOutstanding":2080,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574303,"addressGpsLon":-100.9275061,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2198,"clientId":157,"number":"002148","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2201,"type":"service","label":"plan300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":127,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGEL","clientLastName":"ARVIZU SIIP","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Calle Colima","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} Dentro del proceso del patch: Datos traidos con payment api: [] -Nombre del cliente que se va a actualizar: José Humberto Rodríguez +Nombre del cliente que se va a actualizar: ANGEL ARVIZU SIIP -UUID: 74cc2bb45eb8409f92cd5dba99200d26 +UUID: 362193e0af9b4ffc8ed5d7f930dd120f -JSON con los datos a actualizar: {"name":"Jos\u00e9 Humberto Rodr\u00edguez","custom_fields":{"Cliente":116,"Domicilio":"\ud83d\udccd Chiapas 28, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Jos\u00e9 Humberto Rodr\u00edguez","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/116","Saldo Actual":"\ud83d\udcb28400 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"116\",\"Domicilio\": \"\"Nombre\": \"Jos\u00e9 Humberto Rodr\u00edguez\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/116\",\"Saldo Actual\": \"\ud83d\udcb28400 pendientes\",\"Monto Ultimo Pago\": \"$ \",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 08\/06\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"08\/06\/2025 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 08\/06\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 08\/06\/2025 10:00","Clabe Interbancaria":null,"Site":"","Antena\/Sectorial":""}} +JSON con los datos a actualizar: {"name":"ANGEL ARVIZU SIIP","custom_fields":{"Cliente":157,"Domicilio":"\ud83d\udccd Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 ANGEL ARVIZU SIIP","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/157","Saldo Actual":"\ud83d\udcb22080 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"157\",\"Domicilio\": \"\"Nombre\": \"ANGEL ARVIZU SIIP\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/157\",\"Saldo Actual\": \"\ud83d\udcb22080 pendientes\",\"Monto Ultimo Pago\": \"$ \",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 22\/07\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"22\/07\/2025 10:00\",\"Clabe Interbancaria\": \"124180695267429334\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 22\/07\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/07\/2025 10:00","Clabe Interbancaria":"124180695267429334","Site":"","Antena\/Sectorial":""}} -JSON con los datos a actualizar del resumen: {"Cliente": "116","Domicilio": ""Nombre": "José Humberto Rodríguez","URL": "https://sistema.siip.mx/crm/client/116","Saldo Actual": "💲8400 pendientes","Monto Ultimo Pago": "$ ","Estado": "Suspendido","Fecha Ultimo Pago": " 08/06/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion": "08/06/2025 10:00","Clabe Interbancaria": "","Site": "","Antena/Sectorial": ""} +JSON con los datos a actualizar del resumen: {"Cliente": "157","Domicilio": ""Nombre": "ANGEL ARVIZU SIIP","URL": "https://sistema.siip.mx/crm/client/157","Saldo Actual": "💲2080 pendientes","Monto Ultimo Pago": "$ ","Estado": "Suspendido","Fecha Ultimo Pago": " 22/07/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion": "22/07/2025 10:00","Clabe Interbancaria": "124180695267429334","Site": "","Antena/Sectorial": ""} -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"José Humberto Rodríguez","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-05-25T03:21:32Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":["s0LOCS","Sus"],"assignedUser":"mangelgg@gmail.com","customFields":{"user entry point":"inbound_message","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Site":"0LOCS","Estado":"🔴 Suspendido","Saldo Actual":"💲8400 pendientes","Monto Ultimo Pago":"💲 ","URL":"🌐 https://sistema.siip.mx/crm/client/116","Clabe Interbancaria":"0021804341999569810","Cliente":"116","Domicilio":"📍 Chiapas 28, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","user name":"Daniel Humberto 🐁","Fecha Ultima Actualizacion":"📆🔄️ 08/06/2025 10:00","Resumen":"{\"Cliente\": \"116\",\"Domicilio\": \"\"Nombre\": \"José Humberto Rodríguez\",\"URL\": \"https://sistema.siip.mx/crm/client/116\",\"Saldo Actual\": \"💲8400 pendientes\",\"Monto Ultimo Pago\": \"$ \",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 08/06/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"08/06/2025 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Fecha Ultimo Pago":"📆💸 08/06/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Nombre":"👤 José Humberto Rodríguez"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} +Response Patch CallBell: {"contact":{"uuid":"362193e0af9b4ffc8ed5d7f930dd120f","name":"ANGEL ARVIZU SIIP","phoneNumber":"5214181515664","avatarUrl":null,"createdAt":"2025-01-07T22:55:44Z","closedAt":"2025-03-20T17:12:35Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/362193e0af9b4ffc8ed5d7f930dd120f","conversationHref":"https://dash.callbell.eu/chat/56dec9b4f3334325b737683f2d8ff8b2","tags":[],"assignedUser":null,"customFields":{"Acciones":"NOBOT-SIIP","user entry point":"inbound_message","Estado":"🔴 Suspendido","Clabe Interbancaria":"124180695267429334","Antena/Sectorial":"157","Domicilio":"📍 Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Monto Ultimo Pago":"💲 ","Nombre":"👤 ANGEL ARVIZU SIIP","user name":"Angel 😇/😈","Cliente":"157","URL":"🌐 https://sistema.siip.mx/crm/client/157","Fecha Ultima Actualizacion":"📆🔄️ 22/07/2025 10:00","Resumen":"{\"Cliente\": \"157\",\"Domicilio\": \"\"Nombre\": \"ANGEL ARVIZU SIIP\",\"URL\": \"https://sistema.siip.mx/crm/client/157\",\"Saldo Actual\": \"💲2080 pendientes\",\"Monto Ultimo Pago\": \"$ \",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 22/07/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"22/07/2025 10:00\",\"Clabe Interbancaria\": \"124180695267429334\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Saldo Actual":"💲2080 pendientes","Fecha Ultimo Pago":"📆💸 22/07/2025 16:00 con Desconocido, revisar metodos de pago no contemplados"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} -Response 2 Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"José Humberto Rodríguez","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-05-25T03:21:32Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":["s0LOCS","Sus"],"assignedUser":"mangelgg@gmail.com","customFields":{"user entry point":"inbound_message","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Site":"0LOCS","Estado":"🔴 Suspendido","Saldo Actual":"💲8400 pendientes","Monto Ultimo Pago":"💲 ","URL":"🌐 https://sistema.siip.mx/crm/client/116","Clabe Interbancaria":"0021804341999569810","Cliente":"116","Domicilio":"📍 Chiapas 28, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","user name":"Daniel Humberto 🐁","Fecha Ultima Actualizacion":"📆🔄️ 08/06/2025 10:00","Resumen":"{\"Cliente\": \"116\",\"Domicilio\": \"\"Nombre\": \"José Humberto Rodríguez\",\"URL\": \"https://sistema.siip.mx/crm/client/116\",\"Saldo Actual\": \"💲8400 pendientes\",\"Monto Ultimo Pago\": \"$ \",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 08/06/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"08/06/2025 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Fecha Ultimo Pago":"📆💸 08/06/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Nombre":"👤 José Humberto Rodríguez"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} +Response 2 Patch CallBell: {"contact":{"uuid":"362193e0af9b4ffc8ed5d7f930dd120f","name":"ANGEL ARVIZU SIIP","phoneNumber":"5214181515664","avatarUrl":null,"createdAt":"2025-01-07T22:55:44Z","closedAt":"2025-03-20T17:12:35Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/362193e0af9b4ffc8ed5d7f930dd120f","conversationHref":"https://dash.callbell.eu/chat/56dec9b4f3334325b737683f2d8ff8b2","tags":[],"assignedUser":null,"customFields":{"Acciones":"NOBOT-SIIP","user entry point":"inbound_message","Estado":"🔴 Suspendido","Clabe Interbancaria":"124180695267429334","Antena/Sectorial":"157","Domicilio":"📍 Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Monto Ultimo Pago":"💲 ","Nombre":"👤 ANGEL ARVIZU SIIP","user name":"Angel 😇/😈","Cliente":"157","URL":"🌐 https://sistema.siip.mx/crm/client/157","Fecha Ultima Actualizacion":"📆🔄️ 22/07/2025 10:00","Resumen":"{\"Cliente\": \"157\",\"Domicilio\": \"\"Nombre\": \"ANGEL ARVIZU SIIP\",\"URL\": \"https://sistema.siip.mx/crm/client/157\",\"Saldo Actual\": \"💲2080 pendientes\",\"Monto Ultimo Pago\": \"$ \",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 22/07/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"22/07/2025 10:00\",\"Clabe Interbancaria\": \"124180695267429334\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Saldo Actual":"💲2080 pendientes","Fecha Ultimo Pago":"📆💸 22/07/2025 16:00 con Desconocido, revisar metodos de pago no contemplados"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} -[2025-06-08 16:00:07.854654] [notice] Logging level set to:debug -[2025-06-08 16:00:07.854707] [debug] valor del webhook: {"uuid":"ccc97ee9-85e1-4c97-bb45-fc547c237035","changeType":"draft_approved","entity":"invoice","entityId":"2059","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2059,"clientId":110,"number":"002009","createdDate":"2025-06-08T10:00:01-0600","dueDate":"2025-06-22T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-06T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2062,"type":"service","label":"plan300 07\/05\/2025 \u2013 06\/06\/2025","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":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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},"entityBeforeEdit":null}} +[2025-07-22 16:00:15.528980] [notice] Logging level set to:debug +[2025-07-22 16:00:15.529042] [debug] valor del webhook: {"uuid":"656bf0be-4c7f-4497-b72c-af6e611dd98b","changeType":"draft_approved","entity":"invoice","entityId":"2199","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2199,"clientId":2,"number":"002149","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2202,"type":"service","label":"INTERMEDIO 01\/08\/2025 \u2013 31\/08\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":500,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":773,"invoiceId":2199,"paymentId":662,"creditNoteId":null,"refundId":null,"amount":160},{"id":774,"invoiceId":2199,"paymentId":663,"creditNoteId":null,"refundId":null,"amount":160},{"id":775,"invoiceId":2199,"paymentId":664,"creditNoteId":null,"refundId":null,"amount":160},{"id":776,"invoiceId":2199,"paymentId":665,"creditNoteId":null,"refundId":null,"amount":20}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas 31","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2025-06-08 16:00:08.008590] [debug] valor el evento recibido por webhook: invoice.draft_approved +[2025-07-22 16:00:15.709616] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2025-06-08 16:00:08.008658] [debug] Valor de JSON: {"uuid":"ccc97ee9-85e1-4c97-bb45-fc547c237035","changeType":"draft_approved","entity":"invoice","entityId":"2059","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2059,"clientId":110,"number":"002009","createdDate":"2025-06-08T10:00:01-0600","dueDate":"2025-06-22T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-06T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2062,"type":"service","label":"plan300 07\/05\/2025 \u2013 06\/06\/2025","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":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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},"entityBeforeEdit":null}} +[2025-07-22 16:00:15.709685] [debug] Valor de JSON: {"uuid":"656bf0be-4c7f-4497-b72c-af6e611dd98b","changeType":"draft_approved","entity":"invoice","entityId":"2199","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2199,"clientId":2,"number":"002149","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2202,"type":"service","label":"INTERMEDIO 01\/08\/2025 \u2013 31\/08\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":500,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":773,"invoiceId":2199,"paymentId":662,"creditNoteId":null,"refundId":null,"amount":160},{"id":774,"invoiceId":2199,"paymentId":663,"creditNoteId":null,"refundId":null,"amount":160},{"id":775,"invoiceId":2199,"paymentId":664,"creditNoteId":null,"refundId":null,"amount":160},{"id":776,"invoiceId":2199,"paymentId":665,"creditNoteId":null,"refundId":null,"amount":20}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas 31","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2025-06-08 16:00:08.008795] [debug] Aprobación de Factura +[2025-07-22 16:00:15.709876] [debug] Aprobación de Factura -[2025-06-08 16:00:08.008841] [debug] {"uuid":"ccc97ee9-85e1-4c97-bb45-fc547c237035","changeType":"draft_approved","entity":"invoice","entityId":2059,"message":null,"clientId":110,"eventName":"invoice.draft_approved","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"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-3300,"accountCredit":0,"accountOutstanding":3300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef6c00","addressGpsLat":21.1464449,"addressGpsLon":-100.9141442,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2059,"clientId":110,"number":"002009","createdDate":"2025-06-08T10:00:01-0600","dueDate":"2025-06-22T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-05T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2062,"type":"service","label":"plan300 07\/05\/2025 \u2013 06\/06\/2025","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":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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},"paymentData":null} +[2025-07-22 16:00:15.709949] [debug] {"uuid":"656bf0be-4c7f-4497-b72c-af6e611dd98b","changeType":"draft_approved","entity":"invoice","entityId":2199,"message":null,"clientId":2,"eventName":"invoice.draft_approved","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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":870,"accountCredit":870,"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":{"id":2199,"clientId":2,"number":"002149","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2202,"type":"service","label":"INTERMEDIO 01\/08\/2025 \u2013 31\/08\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":500,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":773,"invoiceId":2199,"paymentId":662,"creditNoteId":null,"refundId":null,"amount":160},{"id":774,"invoiceId":2199,"paymentId":663,"creditNoteId":null,"refundId":null,"amount":160},{"id":775,"invoiceId":2199,"paymentId":664,"creditNoteId":null,"refundId":null,"amount":160},{"id":776,"invoiceId":2199,"paymentId":665,"creditNoteId":null,"refundId":null,"amount":20}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas 31","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} -[2025-06-08 16:00:08.008984] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-08 16:00:08.008996] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"ccc97ee9-85e1-4c97-bb45-fc547c237035","changeType":"draft_approved","entity":"invoice","entityId":2059,"message":null,"clientId":110,"eventName":"invoice.draft_approved","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"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-3300,"accountCredit":0,"accountOutstanding":3300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef6c00","addressGpsLat":21.1464449,"addressGpsLon":-100.9141442,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2059,"clientId":110,"number":"002009","createdDate":"2025-06-08T10:00:01-0600","dueDate":"2025-06-22T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-05T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2062,"type":"service","label":"plan300 07\/05\/2025 \u2013 06\/06\/2025","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":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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},"paymentData":null} +[2025-07-22 16:00:15.710005] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-07-22 16:00:15.710021] [info] Tipo de contacto normalizado: 'whatsapp' +Notificacion data: {"uuid":"656bf0be-4c7f-4497-b72c-af6e611dd98b","changeType":"draft_approved","entity":"invoice","entityId":2199,"message":null,"clientId":2,"eventName":"invoice.draft_approved","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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":870,"accountCredit":870,"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":{"id":2199,"clientId":2,"number":"002149","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2202,"type":"service","label":"INTERMEDIO 01\/08\/2025 \u2013 31\/08\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":500,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":773,"invoiceId":2199,"paymentId":662,"creditNoteId":null,"refundId":null,"amount":160},{"id":774,"invoiceId":2199,"paymentId":663,"creditNoteId":null,"refundId":null,"amount":160},{"id":775,"invoiceId":2199,"paymentId":664,"creditNoteId":null,"refundId":null,"amount":160},{"id":776,"invoiceId":2199,"paymentId":665,"creditNoteId":null,"refundId":null,"amount":20}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas 31","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} Dentro del proceso del patch: -Datos traidos con payment api: [{"id":615,"clientId":110,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-04-07T12:47:38-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":"2025-04-07T12:47:39-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":712,"invoiceId":1812,"paymentId":615,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":null,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Maria la del Barrio Soy - -UUID: 74cc2bb45eb8409f92cd5dba99200d26 - -JSON con los datos a actualizar: {"name":"Maria la del Barrio Soy","custom_fields":{"Cliente":110,"Domicilio":"\ud83d\udccd Morelos 67, Dolores Hidalgo, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Maria la del Barrio Soy","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/110","Saldo Actual":"\ud83d\udcb23300 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"110\",\"Domicilio\": \"\"Nombre\": \"Maria la del Barrio Soy\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/110\",\"Saldo Actual\": \"\ud83d\udcb23300 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 07\/04\/2025 12:47 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"08\/06\/2025 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 07\/04\/2025 12:47 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 08\/06\/2025 10:00","Clabe Interbancaria":null,"Site":"","Antena\/Sectorial":""}} - -JSON con los datos a actualizar del resumen: {"Cliente": "110","Domicilio": ""Nombre": "Maria la del Barrio Soy","URL": "https://sistema.siip.mx/crm/client/110","Saldo Actual": "💲3300 pendientes","Monto Ultimo Pago": "$ 300","Estado": "Suspendido","Fecha Ultimo Pago": " 07/04/2025 12:47 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "08/06/2025 10:00","Clabe Interbancaria": "","Site": "","Antena/Sectorial": ""} - -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Maria la del Barrio Soy","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-05-25T03:21:32Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":["s0LOCS","Sus"],"assignedUser":"mangelgg@gmail.com","customFields":{"user entry point":"inbound_message","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Site":"0LOCS","Estado":"🔴 Suspendido","Saldo Actual":"💲3300 pendientes","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","user name":"Daniel Humberto 🐁","Fecha Ultima Actualizacion":"📆🔄️ 08/06/2025 10:00","Domicilio":"📍 Morelos 67, Dolores Hidalgo, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Cliente":"110","URL":"🌐 https://sistema.siip.mx/crm/client/110","Resumen":"{\"Cliente\": \"110\",\"Domicilio\": \"\"Nombre\": \"Maria la del Barrio Soy\",\"URL\": \"https://sistema.siip.mx/crm/client/110\",\"Saldo Actual\": \"💲3300 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 07/04/2025 12:47 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"08/06/2025 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Fecha Ultimo Pago":"📆💸 07/04/2025 12:47 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Maria la del Barrio Soy"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Maria la del Barrio Soy","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-05-25T03:21:32Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":["s0LOCS","Sus"],"assignedUser":"mangelgg@gmail.com","customFields":{"user entry point":"inbound_message","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Site":"0LOCS","Estado":"🔴 Suspendido","Saldo Actual":"💲3300 pendientes","Monto Ultimo Pago":"💲 300","Clabe Interbancaria":"0021804341999569810","user name":"Daniel Humberto 🐁","Fecha Ultima Actualizacion":"📆🔄️ 08/06/2025 10:00","Domicilio":"📍 Morelos 67, Dolores Hidalgo, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Cliente":"110","URL":"🌐 https://sistema.siip.mx/crm/client/110","Resumen":"{\"Cliente\": \"110\",\"Domicilio\": \"\"Nombre\": \"Maria la del Barrio Soy\",\"URL\": \"https://sistema.siip.mx/crm/client/110\",\"Saldo Actual\": \"💲3300 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 07/04/2025 12:47 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"08/06/2025 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Fecha Ultimo Pago":"📆💸 07/04/2025 12:47 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Maria la del Barrio Soy"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-09 6:25:02.476682] [notice] Logging level set to:debug -[2025-06-09 6:25:02.476775] [debug] valor del webhook: {"uuid":"2f4cf1b5-8221-48db-a920-39f05f63f556","changeType":"overdue","entity":"invoice","entityId":"1958","eventName":"invoice.overdue","extraData":{"entity":{"id":1958,"clientId":1,"number":"001908","createdDate":"2025-05-25T10:00:02-0600","dueDate":"2025-06-08T10:00:02-0600","emailSentDate":"2025-06-09T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-23T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1961,"type":"service","label":"PREMIUM 25\/04\/2025 \u2013 24\/05\/2025","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},"entityBeforeEdit":null}} - -[2025-06-09 6:25:02.680360] [debug] valor el evento recibido por webhook: invoice.overdue - -[2025-06-09 6:25:02.680422] [debug] Valor de JSON: {"uuid":"2f4cf1b5-8221-48db-a920-39f05f63f556","changeType":"overdue","entity":"invoice","entityId":"1958","eventName":"invoice.overdue","extraData":{"entity":{"id":1958,"clientId":1,"number":"001908","createdDate":"2025-05-25T10:00:02-0600","dueDate":"2025-06-08T10:00:02-0600","emailSentDate":"2025-06-09T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-23T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1961,"type":"service","label":"PREMIUM 25\/04\/2025 \u2013 24\/05\/2025","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},"entityBeforeEdit":null}} - -[2025-06-09 6:25:02.680634] [debug] Factura vencida - -[2025-06-09 6:25:02.680680] [debug] datos del notification para el invoice overdue:{"uuid":"2f4cf1b5-8221-48db-a920-39f05f63f556","changeType":"overdue","entity":"invoice","entityId":1958,"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":null,"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}],"accountBalance":-1223.33,"accountCredit":0,"accountOutstanding":1223.33,"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":1958,"clientId":1,"number":"001908","createdDate":"2025-05-25T10:00:02-0600","dueDate":"2025-06-08T10:00:02-0600","emailSentDate":"2025-06-09T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-23T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1961,"type":"service","label":"PREMIUM 25\/04\/2025 \u2013 24\/05\/2025","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},"paymentData":null} - -[2025-06-09 6:25:02.680710] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** - -[2025-06-09 6:25:02.680819] [debug] Numero de cel obtenido - -[2025-06-09 6:25:02.680840] [warning] No se encontró un teléfono celular válido para el cliente: 1 -[2025-06-09 15:30:52.399614] [notice] Logging level set to:debug -[2025-06-09 15:30:52.399746] [debug] valor del webhook: { -"type": "oxxo.request", -"client_id": 2, -"amount": 110 -} - -[2025-06-09 15:30:52.399785] [info] No UUID found in the webhook data -[2025-06-09 15:30:52.399805] [info] Evento de solicitud de referencia de oxxo recibido - -[2025-06-09 15:30:52.399818] [info] Referencia persnoalizada, Valor del monto: 110 - -[2025-06-09 15:30:52.399840] [info] Creando referencia del cliente para OXXO: - -[2025-06-09 15:30:52.533241] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX - -[2025-06-09 15:30:52.533375] [info] Monto proporcionado directamente: 110 - -[2025-06-09 15:30:52.533418] [info] Creando referencia en Stripe por 11000 para el cliente cus_PetN1dhr4rx0kX - -[2025-06-09 15:30:53.934562] [info] Referencia OXXO: 12345678901234657890123456789012 - -[2025-06-09 15:30:53.934617] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDNtbnVuSWludHJGbzV5aVhVbmxJQ0tZdzJhSzdu0100MGfUbjpb - -[2025-06-09 15:30:53.934629] [info] Referencia OXXO creada correctamente. - -[2025-06-09 15:30:54.565305] [error] Error al generar PDF: sh: wkhtmltopdf: not found - -[2025-06-09 15:30:54.567476] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"12345678901234657890123456789012","url":"https:\/\/payments.stripe.com\/oxxo\/voucher\/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDNtbnVuSWludHJGbzV5aVhVbmxJQ0tZdzJhSzdu0100MGfUbjpb","clientID":2,"clientFullName":"Daniel Humberto Soto Villegas","amount":110,"failDescription":"","error":""} - -[2025-06-09 15:30:54.569219] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDNtbnVuSWludHJGbzV5aVhVbmxJQ0tZdzJhSzdu0100MGfUbjpb","oxxo_reference": "12345678901234657890123456789012","error": "","failDescription": "","clientID": "2","clientFullName": "Daniel Humberto Soto Villegas","amount": "110"} -[2025-06-09 15:34:01.904148] [notice] Logging level set to:debug -[2025-06-09 15:34:01.909957] [debug] valor del webhook: {"uuid":"6a6d17aa-aba9-44da-a7f2-af67beb995dc","changeType":"edit","entity":"invoice","entityId":"2057","eventName":"invoice.edit","extraData":{"entity":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":310,"totalUntaxed":466.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":156.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100},{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100},{"id":732,"invoiceId":2057,"paymentId":628,"creditNoteId":null,"refundId":null,"amount":110}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"entityBeforeEdit":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":200,"totalUntaxed":466.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":266.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100},{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100},{"id":732,"invoiceId":2057,"paymentId":628,"creditNoteId":null,"refundId":null,"amount":110}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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}}} - -[2025-06-09 15:34:02.066399] [debug] valor el evento recibido por webhook: invoice.edit - -[2025-06-09 15:34:02.066597] [debug] Valor de JSON: {"uuid":"6a6d17aa-aba9-44da-a7f2-af67beb995dc","changeType":"edit","entity":"invoice","entityId":"2057","eventName":"invoice.edit","extraData":{"entity":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":310,"totalUntaxed":466.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":156.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100},{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100},{"id":732,"invoiceId":2057,"paymentId":628,"creditNoteId":null,"refundId":null,"amount":110}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"entityBeforeEdit":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":200,"totalUntaxed":466.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":266.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100},{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100},{"id":732,"invoiceId":2057,"paymentId":628,"creditNoteId":null,"refundId":null,"amount":110}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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}}} - -[2025-06-09 15:34:02.066847] [debug] Edición de Factura - -[2025-06-09 15:34:02.066943] [debug] {"uuid":"6a6d17aa-aba9-44da-a7f2-af67beb995dc","changeType":"edit","entity":"invoice","entityId":2057,"message":null,"clientId":2,"eventName":"invoice.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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-156.67,"accountCredit":0,"accountOutstanding":156.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":310,"totalUntaxed":466.67,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":156.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100},{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100},{"id":732,"invoiceId":2057,"paymentId":628,"creditNoteId":null,"refundId":null,"amount":110}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} - -[2025-06-09 15:34:02.067059] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-09 15:34:02.067099] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"6a6d17aa-aba9-44da-a7f2-af67beb995dc","changeType":"edit","entity":"invoice","entityId":2057,"message":null,"clientId":2,"eventName":"invoice.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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-156.67,"accountCredit":0,"accountOutstanding":156.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":310,"totalUntaxed":466.67,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":156.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100},{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100},{"id":732,"invoiceId":2057,"paymentId":628,"creditNoteId":null,"refundId":null,"amount":110}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":628,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T09:34:01-0600","amount":110,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":732,"invoiceId":2057,"paymentId":628,"creditNoteId":null,"refundId":null,"amount":110}],"creditAmount":0,"userId":null,"attributes":[]}] +Datos traidos con payment api: [{"id":670,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-17T14:29:55-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]}] Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas UUID: 7352b597ba6b43cf948a5ae86051fb80 -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Guanajuato","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2156.67 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 110","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2156.67 pendientes\",\"Monto Ultimo Pago\": \"$ 110\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 09\/06\/2025 09:34 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"09\/06\/2025 09:34\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 09\/06\/2025 09:34 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 09\/06\/2025 09:34","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2870 a favor","Monto Ultimo Pago":"\ud83d\udcb2 120","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2870 a favor\",\"Monto Ultimo Pago\": \"$ 120\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 17\/07\/2025 14:29 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"22\/07\/2025 10:00\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 17\/07\/2025 14:29 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/07\/2025 10:00","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲156.67 pendientes","Monto Ultimo Pago": "$ 110","Estado": "Activo","Fecha Ultimo Pago": " 09/06/2025 09:34 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "09/06/2025 09:34","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} +JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲870 a favor","Monto Ultimo Pago": "$ 120","Estado": "Activo","Fecha Ultimo Pago": " 17/07/2025 14:29 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "22/07/2025 10:00","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲156.67 pendientes","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 09/06/2025 09:34 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Monto Ultimo Pago":"💲 110","Fecha Ultima Actualizacion":"📆🔄️ 09/06/2025 09:34","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲156.67 pendientes\",\"Monto Ultimo Pago\": \"$ 110\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 09/06/2025 09:34 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"09/06/2025 09:34\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} +Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 22/07/2025 10:00","Monto Ultimo Pago":"💲 120","Estado":"🟢 Activo ","Saldo Actual":"💲870 a favor","Fecha Ultimo Pago":"📆💸 17/07/2025 14:29 con Tarjeta de crédito Stripe 💳","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲870 a favor\",\"Monto Ultimo Pago\": \"$ 120\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 17/07/2025 14:29 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"22/07/2025 10:00\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲156.67 pendientes","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 09/06/2025 09:34 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Monto Ultimo Pago":"💲 110","Fecha Ultima Actualizacion":"📆🔄️ 09/06/2025 09:34","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲156.67 pendientes\",\"Monto Ultimo Pago\": \"$ 110\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 09/06/2025 09:34 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"09/06/2025 09:34\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} +Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 22/07/2025 10:00","Monto Ultimo Pago":"💲 120","Estado":"🟢 Activo ","Saldo Actual":"💲870 a favor","Fecha Ultimo Pago":"📆💸 17/07/2025 14:29 con Tarjeta de crédito Stripe 💳","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲870 a favor\",\"Monto Ultimo Pago\": \"$ 120\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 17/07/2025 14:29 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"22/07/2025 10:00\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} -[2025-06-09 15:34:05.416717] [notice] Logging level set to:debug -[2025-06-09 15:34:05.417010] [debug] valor del webhook: {"uuid":"c070ffbd-4c70-4ad9-9406-23d94a4fc613","changeType":"insert","entity":"payment","entityId":"628","eventName":"payment.add","extraData":{"entity":{"id":628,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T09:34:01-0600","amount":110,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":732,"invoiceId":2057,"paymentId":628,"creditNoteId":null,"refundId":null,"amount":110}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":null}} +[2025-07-22 16:00:18.676119] [notice] Logging level set to:debug +[2025-07-22 16:00:18.676196] [debug] valor del webhook: {"uuid":"7dbd43fa-f3e1-4ca0-b48d-b8345c613e60","changeType":"draft_approved","entity":"invoice","entityId":"2200","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2200,"clientId":114,"number":"002150","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2203,"type":"service","label":"Basico 300 01\/08\/2025 \u2013 31\/08\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":149,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Calavera","clientLastName":"Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Guanajuato","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2025-06-09 15:34:05.548295] [debug] valor el evento recibido por webhook: payment.add +[2025-07-22 16:00:18.817500] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2025-06-09 15:34:05.548460] [debug] Valor de JSON: {"uuid":"c070ffbd-4c70-4ad9-9406-23d94a4fc613","changeType":"insert","entity":"payment","entityId":"628","eventName":"payment.add","extraData":{"entity":{"id":628,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T09:34:01-0600","amount":110,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":732,"invoiceId":2057,"paymentId":628,"creditNoteId":null,"refundId":null,"amount":110}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":null}} +[2025-07-22 16:00:18.817554] [debug] Valor de JSON: {"uuid":"7dbd43fa-f3e1-4ca0-b48d-b8345c613e60","changeType":"draft_approved","entity":"invoice","entityId":"2200","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2200,"clientId":114,"number":"002150","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2203,"type":"service","label":"Basico 300 01\/08\/2025 \u2013 31\/08\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":149,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Calavera","clientLastName":"Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Guanajuato","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2025-06-09 15:34:05.548710] [debug] Notification encodificado en JSON:{"uuid":"c070ffbd-4c70-4ad9-9406-23d94a4fc613","changeType":"insert","entity":"payment","entityId":628,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-156.67,"accountCredit":0,"accountOutstanding":156.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":628,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T09:34:01-0600","amount":110,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":732,"invoiceId":2057,"paymentId":628,"creditNoteId":null,"refundId":null,"amount":110}],"creditAmount":0,"userId":null,"attributes":[]}} +[2025-07-22 16:00:18.817696] [debug] Aprobación de Factura -[2025-06-09 15:34:05.548779] [debug] valor del payment data: {"id":628,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T09:34:01-0600","amount":110,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":732,"invoiceId":2057,"paymentId":628,"creditNoteId":null,"refundId":null,"amount":110}],"creditAmount":0,"userId":null,"attributes":[]} +[2025-07-22 16:00:18.817744] [debug] {"uuid":"7dbd43fa-f3e1-4ca0-b48d-b8345c613e60","changeType":"draft_approved","entity":"invoice","entityId":2200,"message":null,"clientId":114,"eventName":"invoice.draft_approved","clientData":{"id":114,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Guanajuato","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Guanajuato 45, 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-04-24T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan Calavera","lastName":"Gonz\u00e1lez","username":null,"contacts":[{"id":118,"clientId":114,"email":"juancalavera@gmail.com","phone":"41856987412","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":188,"clientId":114,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_S0EQeXBl8NhBZi","clientZoneVisible":true},{"id":189,"clientId":114,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180969856650415","clientZoneVisible":true}],"accountBalance":-1580,"accountCredit":0,"accountOutstanding":1580,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1567207,"addressGpsLon":-100.9310153,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2200,"clientId":114,"number":"002150","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2203,"type":"service","label":"Basico 300 01\/08\/2025 \u2013 31\/08\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":149,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Calavera","clientLastName":"Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Guanajuato","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} -[2025-06-09 15:34:05.548871] [info] {"WhatsApp":["5214181148783"]} -[2025-06-09 15:34:05.548912] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-09 15:34:05.548949] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-09 15:34:05.548984] [debug] ***Se notifica y actualiza al cliente sobre su pago*** - -Eviando comprobante de pago al cliente: 2 con número: 5214181148783 - -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 - -[2025-06-09 15:34:05.779944] [notice] Logging level set to:debug -[2025-06-09 15:34:05.780086] [debug] valor del webhook: {"uuid":"601b22a0-e4fc-4645-a90f-bdc991a1b518","changeType":"edit","entity":"payment","entityId":"628","eventName":"payment.edit","extraData":{"entity":{"id":628,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T09:34:01-0600","amount":110,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":732,"invoiceId":2057,"paymentId":628,"creditNoteId":null,"refundId":null,"amount":110}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":628,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T09:34:01-0600","amount":110,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":732,"invoiceId":2057,"paymentId":628,"creditNoteId":null,"refundId":null,"amount":110}],"creditAmount":0,"userId":null,"attributes":[]}}} - -[2025-06-09 15:34:05.896933] [debug] valor el evento recibido por webhook: payment.edit - -[2025-06-09 15:34:05.897131] [debug] Valor de JSON: {"uuid":"601b22a0-e4fc-4645-a90f-bdc991a1b518","changeType":"edit","entity":"payment","entityId":"628","eventName":"payment.edit","extraData":{"entity":{"id":628,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T09:34:01-0600","amount":110,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":732,"invoiceId":2057,"paymentId":628,"creditNoteId":null,"refundId":null,"amount":110}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":628,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T09:34:01-0600","amount":110,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":732,"invoiceId":2057,"paymentId":628,"creditNoteId":null,"refundId":null,"amount":110}],"creditAmount":0,"userId":null,"attributes":[]}}} - -[2025-06-09 16:00:04.331573] [notice] Logging level set to:debug -[2025-06-09 16:00:04.331754] [debug] valor del webhook: {"uuid":"447038d4-c6a9-435c-a8ea-53191c20e6db","changeType":"draft_approved","entity":"invoice","entityId":"2060","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2060,"clientId":118,"number":"002010","createdDate":"2025-06-09T10:00:02-0600","dueDate":"2025-06-23T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-08T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2063,"type":"service","label":"plan300 09\/05\/2025 \u2013 08\/06\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":105,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Toro Sentado","clientLastName":"Ram\u00edrez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"56 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},"entityBeforeEdit":null}} - -[2025-06-09 16:00:04.475579] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2025-06-09 16:00:04.475647] [debug] Valor de JSON: {"uuid":"447038d4-c6a9-435c-a8ea-53191c20e6db","changeType":"draft_approved","entity":"invoice","entityId":"2060","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2060,"clientId":118,"number":"002010","createdDate":"2025-06-09T10:00:02-0600","dueDate":"2025-06-23T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-08T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2063,"type":"service","label":"plan300 09\/05\/2025 \u2013 08\/06\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":105,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Toro Sentado","clientLastName":"Ram\u00edrez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"56 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},"entityBeforeEdit":null}} - -[2025-06-09 16:00:04.475858] [debug] Aprobación de Factura - -[2025-06-09 16:00:04.475919] [debug] {"uuid":"447038d4-c6a9-435c-a8ea-53191c20e6db","changeType":"draft_approved","entity":"invoice","entityId":2060,"message":null,"clientId":118,"eventName":"invoice.draft_approved","clientData":{"id":118,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"56 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-04-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Toro Sentado","lastName":"Ram\u00edrez","username":null,"contacts":[{"id":122,"clientId":118,"email":"pepeeltoro141089@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":119,"clientId":118,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180173419260258","clientZoneVisible":true}],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#fb8c00","addressGpsLat":21.1572733,"addressGpsLon":-100.9403274,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2060,"clientId":118,"number":"002010","createdDate":"2025-06-09T10:00:02-0600","dueDate":"2025-06-23T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-07T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2063,"type":"service","label":"plan300 09\/05\/2025 \u2013 08\/06\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":105,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Toro Sentado","clientLastName":"Ram\u00edrez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"56 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},"paymentData":null} - -[2025-06-09 16:00:04.475999] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-09 16:00:04.476013] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"447038d4-c6a9-435c-a8ea-53191c20e6db","changeType":"draft_approved","entity":"invoice","entityId":2060,"message":null,"clientId":118,"eventName":"invoice.draft_approved","clientData":{"id":118,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"56 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-04-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Toro Sentado","lastName":"Ram\u00edrez","username":null,"contacts":[{"id":122,"clientId":118,"email":"pepeeltoro141089@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":119,"clientId":118,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180173419260258","clientZoneVisible":true}],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#fb8c00","addressGpsLat":21.1572733,"addressGpsLon":-100.9403274,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2060,"clientId":118,"number":"002010","createdDate":"2025-06-09T10:00:02-0600","dueDate":"2025-06-23T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-07T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2063,"type":"service","label":"plan300 09\/05\/2025 \u2013 08\/06\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":105,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Toro Sentado","clientLastName":"Ram\u00edrez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"56 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},"paymentData":null} +[2025-07-22 16:00:18.817790] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-07-22 16:00:18.817800] [info] Tipo de contacto normalizado: 'whatsapp' +Notificacion data: {"uuid":"7dbd43fa-f3e1-4ca0-b48d-b8345c613e60","changeType":"draft_approved","entity":"invoice","entityId":2200,"message":null,"clientId":114,"eventName":"invoice.draft_approved","clientData":{"id":114,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Guanajuato","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Guanajuato 45, 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-04-24T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan Calavera","lastName":"Gonz\u00e1lez","username":null,"contacts":[{"id":118,"clientId":114,"email":"juancalavera@gmail.com","phone":"41856987412","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":188,"clientId":114,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_S0EQeXBl8NhBZi","clientZoneVisible":true},{"id":189,"clientId":114,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180969856650415","clientZoneVisible":true}],"accountBalance":-1580,"accountCredit":0,"accountOutstanding":1580,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1567207,"addressGpsLon":-100.9310153,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2200,"clientId":114,"number":"002150","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2203,"type":"service","label":"Basico 300 01\/08\/2025 \u2013 31\/08\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":149,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Calavera","clientLastName":"Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Guanajuato","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} Dentro del proceso del patch: Datos traidos con payment api: [] -Nombre del cliente que se va a actualizar: Toro Sentado Ramírez +Nombre del cliente que se va a actualizar: Juan Calavera González -UUID: 74cc2bb45eb8409f92cd5dba99200d26 +UUID: -JSON con los datos a actualizar: {"name":"Toro Sentado Ram\u00edrez","custom_fields":{"Cliente":118,"Domicilio":"\ud83d\udccd Chiapas 56, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Toro Sentado Ram\u00edrez","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/118","Saldo Actual":"\ud83d\udcb23900 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"118\",\"Domicilio\": \"\"Nombre\": \"Toro Sentado Ram\u00edrez\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/118\",\"Saldo Actual\": \"\ud83d\udcb23900 pendientes\",\"Monto Ultimo Pago\": \"$ \",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 09\/06\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"09\/06\/2025 10:00\",\"Clabe Interbancaria\": \"002180173419260258\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 09\/06\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 09\/06\/2025 10:00","Clabe Interbancaria":"002180173419260258","Site":"","Antena\/Sectorial":""}} +JSON con los datos a actualizar: {"name":"Juan Calavera Gonz\u00e1lez","custom_fields":{"Cliente":114,"Domicilio":"\ud83d\udccd Guanajuato 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Juan Calavera Gonz\u00e1lez","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/114","Saldo Actual":"\ud83d\udcb21580 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"114\",\"Domicilio\": \"\"Nombre\": \"Juan Calavera Gonz\u00e1lez\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/114\",\"Saldo Actual\": \"\ud83d\udcb21580 pendientes\",\"Monto Ultimo Pago\": \"$ \",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 22\/07\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"22\/07\/2025 10:00\",\"Clabe Interbancaria\": \"124180969856650415\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 22\/07\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/07\/2025 10:00","Clabe Interbancaria":"124180969856650415","Site":"","Antena\/Sectorial":""}} -JSON con los datos a actualizar del resumen: {"Cliente": "118","Domicilio": ""Nombre": "Toro Sentado Ramírez","URL": "https://sistema.siip.mx/crm/client/118","Saldo Actual": "💲3900 pendientes","Monto Ultimo Pago": "$ ","Estado": "Suspendido","Fecha Ultimo Pago": " 09/06/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion": "09/06/2025 10:00","Clabe Interbancaria": "002180173419260258","Site": "","Antena/Sectorial": ""} +JSON con los datos a actualizar del resumen: {"Cliente": "114","Domicilio": ""Nombre": "Juan Calavera González","URL": "https://sistema.siip.mx/crm/client/114","Saldo Actual": "💲1580 pendientes","Monto Ultimo Pago": "$ ","Estado": "Suspendido","Fecha Ultimo Pago": " 22/07/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion": "22/07/2025 10:00","Clabe Interbancaria": "124180969856650415","Site": "","Antena/Sectorial": ""} -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Toro Sentado Ramírez","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-05-25T03:21:32Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":["s0LOCS","Sus"],"assignedUser":"mangelgg@gmail.com","customFields":{"user entry point":"inbound_message","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Site":"0LOCS","Estado":"🔴 Suspendido","Saldo Actual":"💲3900 pendientes","Monto Ultimo Pago":"💲 ","Clabe Interbancaria":"002180173419260258","user name":"Daniel Humberto 🐁","Fecha Ultima Actualizacion":"📆🔄️ 09/06/2025 10:00","Resumen":"{\"Cliente\": \"118\",\"Domicilio\": \"\"Nombre\": \"Toro Sentado Ramírez\",\"URL\": \"https://sistema.siip.mx/crm/client/118\",\"Saldo Actual\": \"💲3900 pendientes\",\"Monto Ultimo Pago\": \"$ \",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 09/06/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"09/06/2025 10:00\",\"Clabe Interbancaria\": \"002180173419260258\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Domicilio":"📍 Chiapas 56, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Cliente":"118","URL":"🌐 https://sistema.siip.mx/crm/client/118","Fecha Ultimo Pago":"📆💸 09/06/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Nombre":"👤 Toro Sentado Ramírez"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} +Response Patch CallBell: -Response 2 Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Toro Sentado Ramírez","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-05-25T03:21:32Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":["s0LOCS","Sus"],"assignedUser":"mangelgg@gmail.com","customFields":{"user entry point":"inbound_message","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Site":"0LOCS","Estado":"🔴 Suspendido","Saldo Actual":"💲3900 pendientes","Monto Ultimo Pago":"💲 ","Clabe Interbancaria":"002180173419260258","user name":"Daniel Humberto 🐁","Fecha Ultima Actualizacion":"📆🔄️ 09/06/2025 10:00","Resumen":"{\"Cliente\": \"118\",\"Domicilio\": \"\"Nombre\": \"Toro Sentado Ramírez\",\"URL\": \"https://sistema.siip.mx/crm/client/118\",\"Saldo Actual\": \"💲3900 pendientes\",\"Monto Ultimo Pago\": \"$ \",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 09/06/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"09/06/2025 10:00\",\"Clabe Interbancaria\": \"002180173419260258\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Domicilio":"📍 Chiapas 56, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Cliente":"118","URL":"🌐 https://sistema.siip.mx/crm/client/118","Fecha Ultimo Pago":"📆💸 09/06/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Nombre":"👤 Toro Sentado Ramírez"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} +Response 2 Patch CallBell: -[2025-06-09 18:12:20.871535] [notice] Logging level set to:debug -[2025-06-09 18:12:20.871714] [debug] valor del webhook: { -"type": "oxxo.request", -"client_id": 2, -"amount": 120 -} +[2025-07-22 16:00:20.497143] [notice] Logging level set to:debug +[2025-07-22 16:00:20.497226] [debug] valor del webhook: {"uuid":"855580fa-878a-4e2a-8eb7-640029bba93a","changeType":"draft_approved","entity":"invoice","entityId":"2201","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2201,"clientId":129,"number":"002151","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2204,"type":"service","label":"INTERMEDIO 01\/07\/2025 \u2013 31\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":117,"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":"El Loco","clientLastName":"Valdez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Coahuila","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2025-06-09 18:12:20.871783] [info] No UUID found in the webhook data -[2025-06-09 18:12:20.871829] [info] Evento de solicitud de referencia de oxxo recibido +[2025-07-22 16:00:20.672087] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2025-06-09 18:12:20.871867] [info] Referencia persnoalizada, Valor del monto: 120 +[2025-07-22 16:00:20.672142] [debug] Valor de JSON: {"uuid":"855580fa-878a-4e2a-8eb7-640029bba93a","changeType":"draft_approved","entity":"invoice","entityId":"2201","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2201,"clientId":129,"number":"002151","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2204,"type":"service","label":"INTERMEDIO 01\/07\/2025 \u2013 31\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":117,"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":"El Loco","clientLastName":"Valdez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Coahuila","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2025-06-09 18:12:20.871906] [info] Creando referencia del cliente para OXXO: +[2025-07-22 16:00:20.672236] [debug] Aprobación de Factura -[2025-06-09 18:12:20.999542] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX +[2025-07-22 16:00:20.672282] [debug] {"uuid":"855580fa-878a-4e2a-8eb7-640029bba93a","changeType":"draft_approved","entity":"invoice","entityId":2201,"message":null,"clientId":129,"eventName":"invoice.draft_approved","clientData":{"id":129,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"34 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 34, 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-17T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Loco","lastName":"Valdez","username":null,"contacts":[{"id":133,"clientId":129,"email":"pepepeltoro141089@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":133,"clientId":129,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_QJSCgri287Ic0V","clientZoneVisible":true},{"id":134,"clientId":129,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180966482840265","clientZoneVisible":true},{"id":220,"clientId":129,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-3750,"accountCredit":0,"accountOutstanding":3750,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00897b","addressGpsLat":21.1608752,"addressGpsLon":-100.935835,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2201,"clientId":129,"number":"002151","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2204,"type":"service","label":"INTERMEDIO 01\/07\/2025 \u2013 31\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":117,"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":"El Loco","clientLastName":"Valdez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Coahuila","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} -[2025-06-09 18:12:20.999660] [info] Monto proporcionado directamente: 120 +[2025-07-22 16:00:20.787173] [notice] Logging level set to:debug +[2025-07-22 16:00:20.787231] [debug] valor del webhook: {"uuid":"b9f86c28-8755-4d5b-8996-da8ca72693f3","changeType":"draft_approved","entity":"invoice","entityId":"2202","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2202,"clientId":162,"number":"002152","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2205,"type":"service","label":"PREMIUM 01\/07\/2025 \u2013 31\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":128,"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":"Edward","clientLastName":"Elric","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"76 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},"entityBeforeEdit":null}} -[2025-06-09 18:12:20.999716] [info] Creando referencia en Stripe por 12000 para el cliente cus_PetN1dhr4rx0kX +[2025-07-22 16:00:20.960186] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2025-06-09 18:12:22.085000] [info] Referencia OXXO: 12345678901234657890123456789012 +[2025-07-22 16:00:20.960241] [debug] Valor de JSON: {"uuid":"b9f86c28-8755-4d5b-8996-da8ca72693f3","changeType":"draft_approved","entity":"invoice","entityId":"2202","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2202,"clientId":162,"number":"002152","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2205,"type":"service","label":"PREMIUM 01\/07\/2025 \u2013 31\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":128,"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":"Edward","clientLastName":"Elric","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"76 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},"entityBeforeEdit":null}} -[2025-06-09 18:12:22.085449] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDZPVmpXZXR5bTZIY0NEYUpaTEFtbVFxS0ZGWjJH0100u9KOzZJP +[2025-07-22 16:00:20.960344] [debug] Aprobación de Factura -[2025-06-09 18:12:22.085875] [info] Referencia OXXO creada correctamente. +[2025-07-22 16:00:20.960397] [debug] {"uuid":"b9f86c28-8755-4d5b-8996-da8ca72693f3","changeType":"draft_approved","entity":"invoice","entityId":2202,"message":null,"clientId":162,"eventName":"invoice.draft_approved","clientData":{"id":162,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"76 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 76, 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":"2025-01-07T00:00:00-0600","leadConvertedAt":"2025-01-10T10:32:20-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Edward","lastName":"Elric","username":null,"contacts":[{"id":166,"clientId":162,"email":"eduardelric@gmail.com","phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":159,"clientId":162,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"434876867834423324","clientZoneVisible":true},{"id":160,"clientId":162,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RYsuykCEvupaGF","clientZoneVisible":true},{"id":161,"clientId":162,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180599808752427","clientZoneVisible":true},{"id":233,"clientId":162,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-3716.67,"accountCredit":0,"accountOutstanding":3716.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#d84315","addressGpsLat":21.1575488,"addressGpsLon":-100.9409119,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2202,"clientId":162,"number":"002152","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2205,"type":"service","label":"PREMIUM 01\/07\/2025 \u2013 31\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":128,"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":"Edward","clientLastName":"Elric","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"76 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},"paymentData":null} -[2025-06-09 18:12:22.475007] [error] Error al generar PDF: sh: wkhtmltopdf: not found +[2025-07-22 16:00:21.681380] [notice] Logging level set to:debug +[2025-07-22 16:00:21.681452] [debug] valor del webhook: {"uuid":"0a393d5d-fa41-469c-ba64-c1ee971888d7","changeType":"draft_approved","entity":"invoice","entityId":"2203","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2203,"clientId":160,"number":"002153","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2206,"type":"service","label":"Basico 300 01\/08\/2025 \u2013 31\/08\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":151,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Jimy","clientLastName":"Turner","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Jalisco","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2025-06-09 18:12:22.479175] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"12345678901234657890123456789012","url":"https:\/\/payments.stripe.com\/oxxo\/voucher\/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDZPVmpXZXR5bTZIY0NEYUpaTEFtbVFxS0ZGWjJH0100u9KOzZJP","clientID":2,"clientFullName":"Daniel Humberto Soto Villegas","amount":120,"failDescription":"","error":""} +[2025-07-22 16:00:21.820477] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2025-06-09 18:12:22.479412] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDZPVmpXZXR5bTZIY0NEYUpaTEFtbVFxS0ZGWjJH0100u9KOzZJP","oxxo_reference": "12345678901234657890123456789012","error": "","failDescription": "","clientID": "2","clientFullName": "Daniel Humberto Soto Villegas","amount": "120"} -[2025-06-09 18:15:27.534827] [notice] Logging level set to:debug -[2025-06-09 18:15:27.534934] [debug] valor del webhook: {"uuid":"6274f52b-4ee5-4f0c-9217-b3717cf8a3d5","changeType":"edit","entity":"invoice","entityId":"2057","eventName":"invoice.edit","extraData":{"entity":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":430,"totalUntaxed":466.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":36.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100},{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100},{"id":732,"invoiceId":2057,"paymentId":628,"creditNoteId":null,"refundId":null,"amount":110},{"id":733,"invoiceId":2057,"paymentId":629,"creditNoteId":null,"refundId":null,"amount":120}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"entityBeforeEdit":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":310,"totalUntaxed":466.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":156.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100},{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100},{"id":732,"invoiceId":2057,"paymentId":628,"creditNoteId":null,"refundId":null,"amount":110},{"id":733,"invoiceId":2057,"paymentId":629,"creditNoteId":null,"refundId":null,"amount":120}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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}}} +[2025-07-22 16:00:21.820533] [debug] Valor de JSON: {"uuid":"0a393d5d-fa41-469c-ba64-c1ee971888d7","changeType":"draft_approved","entity":"invoice","entityId":"2203","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2203,"clientId":160,"number":"002153","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2206,"type":"service","label":"Basico 300 01\/08\/2025 \u2013 31\/08\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":151,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Jimy","clientLastName":"Turner","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Jalisco","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2025-06-09 18:15:27.679255] [debug] valor el evento recibido por webhook: invoice.edit +[2025-07-22 16:00:21.820667] [debug] Aprobación de Factura -[2025-06-09 18:15:27.679356] [debug] Valor de JSON: {"uuid":"6274f52b-4ee5-4f0c-9217-b3717cf8a3d5","changeType":"edit","entity":"invoice","entityId":"2057","eventName":"invoice.edit","extraData":{"entity":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":430,"totalUntaxed":466.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":36.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100},{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100},{"id":732,"invoiceId":2057,"paymentId":628,"creditNoteId":null,"refundId":null,"amount":110},{"id":733,"invoiceId":2057,"paymentId":629,"creditNoteId":null,"refundId":null,"amount":120}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"entityBeforeEdit":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":310,"totalUntaxed":466.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":156.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100},{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100},{"id":732,"invoiceId":2057,"paymentId":628,"creditNoteId":null,"refundId":null,"amount":110},{"id":733,"invoiceId":2057,"paymentId":629,"creditNoteId":null,"refundId":null,"amount":120}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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}}} +[2025-07-22 16:00:21.820712] [debug] {"uuid":"0a393d5d-fa41-469c-ba64-c1ee971888d7","changeType":"draft_approved","entity":"invoice","entityId":2203,"message":null,"clientId":160,"eventName":"invoice.draft_approved","clientData":{"id":160,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Jalisco","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Jalisco 45, 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":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Jimy","lastName":"Turner","username":"jymy@gmail.com","contacts":[{"id":164,"clientId":160,"email":"jymy@gmail.com","phone":"4186784656","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-1570,"accountCredit":0,"accountOutstanding":1570,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.1544785,"addressGpsLon":-100.9352517,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2203,"clientId":160,"number":"002153","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2206,"type":"service","label":"Basico 300 01\/08\/2025 \u2013 31\/08\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":151,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Jimy","clientLastName":"Turner","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Jalisco","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} -[2025-06-09 18:15:27.679582] [debug] Edición de Factura +[2025-07-22 16:00:23.030539] [notice] Logging level set to:debug +[2025-07-22 16:00:23.030620] [debug] valor del webhook: {"uuid":"40f239a4-ee50-4c16-a757-4e75cb00b33e","changeType":"draft_approved","entity":"invoice","entityId":"2204","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2204,"clientId":141,"number":"002154","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2207,"type":"service","label":"Basico 300 01\/08\/2025 \u2013 31\/08\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":135,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Caim\u00e1n","clientLastName":"Dorado","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"23 Coahuila","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2025-06-09 18:15:27.679651] [debug] {"uuid":"6274f52b-4ee5-4f0c-9217-b3717cf8a3d5","changeType":"edit","entity":"invoice","entityId":2057,"message":null,"clientId":2,"eventName":"invoice.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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-36.67,"accountCredit":0,"accountOutstanding":36.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":430,"totalUntaxed":466.67,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":36.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100},{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100},{"id":732,"invoiceId":2057,"paymentId":628,"creditNoteId":null,"refundId":null,"amount":110},{"id":733,"invoiceId":2057,"paymentId":629,"creditNoteId":null,"refundId":null,"amount":120}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} +[2025-07-22 16:00:23.211539] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2025-06-09 18:15:27.679730] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-09 18:15:27.679745] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"6274f52b-4ee5-4f0c-9217-b3717cf8a3d5","changeType":"edit","entity":"invoice","entityId":2057,"message":null,"clientId":2,"eventName":"invoice.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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-36.67,"accountCredit":0,"accountOutstanding":36.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":430,"totalUntaxed":466.67,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":36.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100},{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100},{"id":732,"invoiceId":2057,"paymentId":628,"creditNoteId":null,"refundId":null,"amount":110},{"id":733,"invoiceId":2057,"paymentId":629,"creditNoteId":null,"refundId":null,"amount":120}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} +[2025-07-22 16:00:23.211596] [debug] Valor de JSON: {"uuid":"40f239a4-ee50-4c16-a757-4e75cb00b33e","changeType":"draft_approved","entity":"invoice","entityId":"2204","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2204,"clientId":141,"number":"002154","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2207,"type":"service","label":"Basico 300 01\/08\/2025 \u2013 31\/08\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":135,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Caim\u00e1n","clientLastName":"Dorado","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"23 Coahuila","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-22 16:00:23.211695] [debug] Aprobación de Factura + +[2025-07-22 16:00:23.211741] [debug] {"uuid":"40f239a4-ee50-4c16-a757-4e75cb00b33e","changeType":"draft_approved","entity":"invoice","entityId":2204,"message":null,"clientId":141,"eventName":"invoice.draft_approved","clientData":{"id":141,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 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-06-26T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Caim\u00e1n","lastName":"Dorado","username":null,"contacts":[{"id":145,"clientId":141,"email":"caimangolden@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":225,"clientId":141,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-1770,"accountCredit":0,"accountOutstanding":1770,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#43a047","addressGpsLat":21.1609302,"addressGpsLon":-100.9360472,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2204,"clientId":141,"number":"002154","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2207,"type":"service","label":"Basico 300 01\/08\/2025 \u2013 31\/08\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":135,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Caim\u00e1n","clientLastName":"Dorado","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"23 Coahuila","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-22 16:00:24.403136] [notice] Logging level set to:debug +[2025-07-22 16:00:24.403207] [debug] valor del webhook: {"uuid":"a85a4416-2185-4605-a75a-d59adeac65d2","changeType":"draft_approved","entity":"invoice","entityId":"2205","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2205,"clientId":112,"number":"002155","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2208,"type":"service","label":"Basico 300 01\/08\/2025 \u2013 31\/08\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":153,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Do\u00f1a petra","clientLastName":"Gonzalez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Tamaulipas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-22 16:00:24.582978] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-22 16:00:24.583038] [debug] Valor de JSON: {"uuid":"a85a4416-2185-4605-a75a-d59adeac65d2","changeType":"draft_approved","entity":"invoice","entityId":"2205","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2205,"clientId":112,"number":"002155","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2208,"type":"service","label":"Basico 300 01\/08\/2025 \u2013 31\/08\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":153,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Do\u00f1a petra","clientLastName":"Gonzalez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Tamaulipas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-22 16:00:24.583169] [debug] Aprobación de Factura + +[2025-07-22 16:00:24.583220] [debug] {"uuid":"a85a4416-2185-4605-a75a-d59adeac65d2","changeType":"draft_approved","entity":"invoice","entityId":2205,"message":null,"clientId":112,"eventName":"invoice.draft_approved","clientData":{"id":112,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Tamaulipas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Tamaulipas 45, 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-04-24T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Do\u00f1a petra","lastName":"Gonzalez","username":null,"contacts":[{"id":116,"clientId":112,"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":196,"clientId":112,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_S6evSxHpI6pSR6","clientZoneVisible":true},{"id":197,"clientId":112,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180438425083672","clientZoneVisible":true},{"id":213,"clientId":112,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-1410,"accountCredit":0,"accountOutstanding":1410,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef5350","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2205,"clientId":112,"number":"002155","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2208,"type":"service","label":"Basico 300 01\/08\/2025 \u2013 31\/08\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":153,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Do\u00f1a petra","clientLastName":"Gonzalez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Tamaulipas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-22 16:00:25.830928] [notice] Logging level set to:debug +[2025-07-22 16:00:25.830986] [debug] valor del webhook: {"uuid":"d4a8dd3b-541e-48c5-b596-d0496114aa76","changeType":"draft_approved","entity":"invoice","entityId":"2206","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2206,"clientId":146,"number":"002156","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2209,"type":"service","label":"Basico 300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":131,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Delfino","clientLastName":"De los Mares","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"36 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},"entityBeforeEdit":null}} + +[2025-07-22 16:00:25.969491] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-22 16:00:25.969542] [debug] Valor de JSON: {"uuid":"d4a8dd3b-541e-48c5-b596-d0496114aa76","changeType":"draft_approved","entity":"invoice","entityId":"2206","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2206,"clientId":146,"number":"002156","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2209,"type":"service","label":"Basico 300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":131,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Delfino","clientLastName":"De los Mares","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"36 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},"entityBeforeEdit":null}} + +[2025-07-22 16:00:25.969655] [debug] Aprobación de Factura + +[2025-07-22 16:00:25.969707] [debug] {"uuid":"d4a8dd3b-541e-48c5-b596-d0496114aa76","changeType":"draft_approved","entity":"invoice","entityId":2206,"message":null,"clientId":146,"eventName":"invoice.draft_approved","clientData":{"id":146,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"36 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Yucat\u00e1n 36, 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-07-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Delfino","lastName":"De los Mares","username":null,"contacts":[{"id":150,"clientId":146,"email":"mariscoselsietemares@gmail.com","phone":"4188897415","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":145,"clientId":146,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_QZ7T1h3th3Dr7w","clientZoneVisible":true},{"id":146,"clientId":146,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180695453333629","clientZoneVisible":true}],"accountBalance":-2000,"accountCredit":0,"accountOutstanding":2000,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3949ab","addressGpsLat":21.1561796,"addressGpsLon":-100.9371826,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2206,"clientId":146,"number":"002156","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2209,"type":"service","label":"Basico 300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":131,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Delfino","clientLastName":"De los Mares","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"36 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},"paymentData":null} + +[2025-07-22 16:00:25.969747] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-07-22 16:00:25.969758] [info] Tipo de contacto normalizado: 'whatsapp' +Notificacion data: {"uuid":"d4a8dd3b-541e-48c5-b596-d0496114aa76","changeType":"draft_approved","entity":"invoice","entityId":2206,"message":null,"clientId":146,"eventName":"invoice.draft_approved","clientData":{"id":146,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"36 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Yucat\u00e1n 36, 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-07-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Delfino","lastName":"De los Mares","username":null,"contacts":[{"id":150,"clientId":146,"email":"mariscoselsietemares@gmail.com","phone":"4188897415","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":145,"clientId":146,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_QZ7T1h3th3Dr7w","clientZoneVisible":true},{"id":146,"clientId":146,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180695453333629","clientZoneVisible":true}],"accountBalance":-2000,"accountCredit":0,"accountOutstanding":2000,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3949ab","addressGpsLat":21.1561796,"addressGpsLon":-100.9371826,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2206,"clientId":146,"number":"002156","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2209,"type":"service","label":"Basico 300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":131,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Delfino","clientLastName":"De los Mares","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"36 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},"paymentData":null} Dentro del proceso del patch: -Datos traidos con payment api: [{"id":629,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T12:15:27-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":733,"invoiceId":2057,"paymentId":629,"creditNoteId":null,"refundId":null,"amount":120}],"creditAmount":0,"userId":null,"attributes":[]}] +Datos traidos con payment api: [] -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas +Nombre del cliente que se va a actualizar: Delfino De los Mares -UUID: 7352b597ba6b43cf948a5ae86051fb80 +UUID: -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Guanajuato","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb236.67 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 120","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb236.67 pendientes\",\"Monto Ultimo Pago\": \"$ 120\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 09\/06\/2025 12:15 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"09\/06\/2025 12:15\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 09\/06\/2025 12:15 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 09\/06\/2025 12:15","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} +JSON con los datos a actualizar: {"name":"Delfino De los Mares","custom_fields":{"Cliente":146,"Domicilio":"\ud83d\udccd Yucat\u00e1n 36, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Delfino De los Mares","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/146","Saldo Actual":"\ud83d\udcb22000 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"146\",\"Domicilio\": \"\"Nombre\": \"Delfino De los Mares\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/146\",\"Saldo Actual\": \"\ud83d\udcb22000 pendientes\",\"Monto Ultimo Pago\": \"$ \",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 22\/07\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"22\/07\/2025 10:00\",\"Clabe Interbancaria\": \"002180695453333629\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 22\/07\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/07\/2025 10:00","Clabe Interbancaria":"002180695453333629","Site":"","Antena\/Sectorial":""}} -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲36.67 pendientes","Monto Ultimo Pago": "$ 120","Estado": "Activo","Fecha Ultimo Pago": " 09/06/2025 12:15 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "09/06/2025 12:15","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} +JSON con los datos a actualizar del resumen: {"Cliente": "146","Domicilio": ""Nombre": "Delfino De los Mares","URL": "https://sistema.siip.mx/crm/client/146","Saldo Actual": "💲2000 pendientes","Monto Ultimo Pago": "$ ","Estado": "Suspendido","Fecha Ultimo Pago": " 22/07/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion": "22/07/2025 10:00","Clabe Interbancaria": "002180695453333629","Site": "","Antena/Sectorial": ""} -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲36.67 pendientes","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 09/06/2025 12:15 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 09/06/2025 12:15","Monto Ultimo Pago":"💲 120","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲36.67 pendientes\",\"Monto Ultimo Pago\": \"$ 120\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 09/06/2025 12:15 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"09/06/2025 12:15\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} +Response Patch CallBell: -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲36.67 pendientes","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 09/06/2025 12:15 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 09/06/2025 12:15","Monto Ultimo Pago":"💲 120","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲36.67 pendientes\",\"Monto Ultimo Pago\": \"$ 120\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 09/06/2025 12:15 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"09/06/2025 12:15\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} +Response 2 Patch CallBell: -[2025-06-09 18:15:30.632162] [notice] Logging level set to:debug -[2025-06-09 18:15:30.632356] [debug] valor del webhook: {"uuid":"89d7b392-0d12-4f70-a4c7-f3c2e24d22b8","changeType":"insert","entity":"payment","entityId":"629","eventName":"payment.add","extraData":{"entity":{"id":629,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T12:15:27-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":733,"invoiceId":2057,"paymentId":629,"creditNoteId":null,"refundId":null,"amount":120}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":null}} +[2025-07-22 16:00:29.795413] [notice] Logging level set to:debug +[2025-07-22 16:00:29.795470] [debug] valor del webhook: {"uuid":"6256991a-f57f-4baf-8425-280874e20e1e","changeType":"draft_approved","entity":"invoice","entityId":"2207","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2207,"clientId":138,"number":"002157","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2210,"type":"service","label":"Basico 300 01\/08\/2025 \u2013 31\/08\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":148,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Mofles","clientLastName":"El Ruco Lopez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"89 Baja California Sur","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2025-06-09 18:15:30.768441] [debug] valor el evento recibido por webhook: payment.add +[2025-07-22 16:00:29.944894] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2025-06-09 18:15:30.768579] [debug] Valor de JSON: {"uuid":"89d7b392-0d12-4f70-a4c7-f3c2e24d22b8","changeType":"insert","entity":"payment","entityId":"629","eventName":"payment.add","extraData":{"entity":{"id":629,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T12:15:27-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":733,"invoiceId":2057,"paymentId":629,"creditNoteId":null,"refundId":null,"amount":120}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":null}} +[2025-07-22 16:00:29.944947] [debug] Valor de JSON: {"uuid":"6256991a-f57f-4baf-8425-280874e20e1e","changeType":"draft_approved","entity":"invoice","entityId":"2207","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2207,"clientId":138,"number":"002157","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2210,"type":"service","label":"Basico 300 01\/08\/2025 \u2013 31\/08\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":148,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Mofles","clientLastName":"El Ruco Lopez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"89 Baja California Sur","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2025-06-09 18:15:30.768770] [debug] Notification encodificado en JSON:{"uuid":"89d7b392-0d12-4f70-a4c7-f3c2e24d22b8","changeType":"insert","entity":"payment","entityId":629,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-36.67,"accountCredit":0,"accountOutstanding":36.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":629,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T12:15:27-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":733,"invoiceId":2057,"paymentId":629,"creditNoteId":null,"refundId":null,"amount":120}],"creditAmount":0,"userId":null,"attributes":[]}} +[2025-07-22 16:00:29.945070] [debug] Aprobación de Factura -[2025-06-09 18:15:30.768834] [debug] valor del payment data: {"id":629,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T12:15:27-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":733,"invoiceId":2057,"paymentId":629,"creditNoteId":null,"refundId":null,"amount":120}],"creditAmount":0,"userId":null,"attributes":[]} +[2025-07-22 16:00:29.945116] [debug] {"uuid":"6256991a-f57f-4baf-8425-280874e20e1e","changeType":"draft_approved","entity":"invoice","entityId":2207,"message":null,"clientId":138,"eventName":"invoice.draft_approved","clientData":{"id":138,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"89 Baja California Sur","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Baja California Sur 89, 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-26T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Mofles","lastName":"El Ruco Lopez","username":null,"contacts":[{"id":142,"clientId":138,"email":"moblesruco24@gmail.com","phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":186,"clientId":138,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_S0ELEIMpRfdeLs","clientZoneVisible":true},{"id":187,"clientId":138,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180174170666420","clientZoneVisible":true},{"id":205,"clientId":138,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-1200,"accountCredit":0,"accountOutstanding":1200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ffb300","addressGpsLat":21.1532569,"addressGpsLon":-100.9408275,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2207,"clientId":138,"number":"002157","createdDate":"2025-07-22T10:00:02-0600","dueDate":"2025-08-05T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2210,"type":"service","label":"Basico 300 01\/08\/2025 \u2013 31\/08\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":148,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Mofles","clientLastName":"El Ruco Lopez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"89 Baja California Sur","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} -[2025-06-09 18:15:30.768920] [info] {"WhatsApp":["5214181148783"]} -[2025-06-09 18:15:30.768958] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-09 18:15:30.768991] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-09 18:15:30.769026] [debug] ***Se notifica y actualiza al cliente sobre su pago*** +[2025-07-24 6:25:02.416454] [notice] Logging level set to:debug +[2025-07-24 6:25:02.416533] [debug] valor del webhook: {"uuid":"042a780f-4f42-4378-ba3a-348be2a85a31","changeType":"overdue","entity":"invoice","entityId":"2186","eventName":"invoice.overdue","extraData":{"entity":{"id":2186,"clientId":118,"number":"002136","createdDate":"2025-07-09T10:00:01-0600","dueDate":"2025-07-23T10:00:01-0600","emailSentDate":"2025-07-24T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-07-07T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2189,"type":"service","label":"plan300 09\/06\/2025 \u2013 08\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":105,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Toro Sentado","clientLastName":"Ram\u00edrez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"56 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},"entityBeforeEdit":null}} -Eviando comprobante de pago al cliente: 2 con número: 5214181148783 +[2025-07-24 6:25:02.653769] [debug] valor el evento recibido por webhook: invoice.overdue -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 +[2025-07-24 6:25:02.653829] [debug] Valor de JSON: {"uuid":"042a780f-4f42-4378-ba3a-348be2a85a31","changeType":"overdue","entity":"invoice","entityId":"2186","eventName":"invoice.overdue","extraData":{"entity":{"id":2186,"clientId":118,"number":"002136","createdDate":"2025-07-09T10:00:01-0600","dueDate":"2025-07-23T10:00:01-0600","emailSentDate":"2025-07-24T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-07-07T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2189,"type":"service","label":"plan300 09\/06\/2025 \u2013 08\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":105,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Toro Sentado","clientLastName":"Ram\u00edrez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"56 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},"entityBeforeEdit":null}} -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 +[2025-07-24 6:25:02.656270] [debug] Factura vencida -[2025-06-09 18:15:31.016015] [notice] Logging level set to:debug -[2025-06-09 18:15:31.016181] [debug] valor del webhook: {"uuid":"ff333ae4-fc9d-41be-8568-80aa9e045709","changeType":"edit","entity":"payment","entityId":"629","eventName":"payment.edit","extraData":{"entity":{"id":629,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T12:15:27-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":733,"invoiceId":2057,"paymentId":629,"creditNoteId":null,"refundId":null,"amount":120}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":629,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T12:15:27-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":733,"invoiceId":2057,"paymentId":629,"creditNoteId":null,"refundId":null,"amount":120}],"creditAmount":0,"userId":null,"attributes":[]}}} +[2025-07-24 6:25:02.656332] [debug] datos del notification para el invoice overdue:{"uuid":"042a780f-4f42-4378-ba3a-348be2a85a31","changeType":"overdue","entity":"invoice","entityId":2186,"message":null,"clientId":118,"eventName":"invoice.overdue","clientData":{"id":118,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"56 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-04-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Toro Sentado","lastName":"Ram\u00edrez","username":null,"contacts":[{"id":122,"clientId":118,"email":"pepeeltoro141089@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":119,"clientId":118,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180173419260258","clientZoneVisible":true},{"id":216,"clientId":118,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#fb8c00","addressGpsLat":21.1572733,"addressGpsLon":-100.9403274,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2186,"clientId":118,"number":"002136","createdDate":"2025-07-09T10:00:01-0600","dueDate":"2025-07-23T10:00:01-0600","emailSentDate":"2025-07-24T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-07-07T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2189,"type":"service","label":"plan300 09\/06\/2025 \u2013 08\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":105,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Toro Sentado","clientLastName":"Ram\u00edrez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"56 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},"paymentData":null} -[2025-06-09 18:15:31.149209] [debug] valor el evento recibido por webhook: payment.edit +[2025-07-24 6:25:02.656363] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** -[2025-06-09 18:15:31.149266] [debug] Valor de JSON: {"uuid":"ff333ae4-fc9d-41be-8568-80aa9e045709","changeType":"edit","entity":"payment","entityId":"629","eventName":"payment.edit","extraData":{"entity":{"id":629,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T12:15:27-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":733,"invoiceId":2057,"paymentId":629,"creditNoteId":null,"refundId":null,"amount":120}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":629,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T12:15:27-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":733,"invoiceId":2057,"paymentId":629,"creditNoteId":null,"refundId":null,"amount":120}],"creditAmount":0,"userId":null,"attributes":[]}}} +contac vacio +[2025-07-24 6:25:02.656526] [debug] Numero de cel obtenido -[2025-06-09 18:30:03.411870] [notice] Logging level set to:debug -[2025-06-09 18:30:03.412297] [debug] valor del webhook: {"uuid":"dcbac69e-6440-4044-a148-ffd4b1d16ae0","changeType":"suspend","entity":"service","entityId":"132","eventName":"service.suspend","extraData":{"entity":{"id":132,"prepaid":false,"clientId":1,"status":3,"name":"PREMIUM","fullAddress":"Calle Morelos 34, Dolores Hidalgo, 37800","street1":"Calle Morelos 34","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1572096,"addressGpsLon":-100.9377327,"servicePlanId":4,"servicePlanPeriodId":19,"price":700,"hasIndividualPrice":false,"totalPrice":700,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2024-03-25T00: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-02-18T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":25,"nextInvoicingDayAdjustment":0,"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":"2025-05-24T00:00:00-0600","unmsClientSiteId":"4e9a790b-b72c-4082-a58d-da7760848f95","attributes":[{"id":"2f9ed7d5-614c-413b-b77a-8d22623f9ca5","serviceId":132,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":1,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":101,"startDate":"2024-07-06T00:00:00-0600","endDate":"2024-12-11T00:00:00-0600"},{"id":116,"startDate":"2024-12-11T00:00:00-0600","endDate":"2025-02-18T00:00:00-0600"},{"id":167,"startDate":"2025-06-09T12:30:02-0600","endDate":null}],"surcharges":[]},"entityBeforeEdit":{"id":132,"prepaid":false,"clientId":1,"status":1,"name":"PREMIUM","fullAddress":"Calle Morelos 34, Dolores Hidalgo, 37800","street1":"Calle Morelos 34","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1572096,"addressGpsLon":-100.9377327,"servicePlanId":4,"servicePlanPeriodId":19,"price":700,"hasIndividualPrice":false,"totalPrice":700,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2024-03-25T00: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-02-18T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":25,"nextInvoicingDayAdjustment":0,"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":"2025-05-24T00:00:00-0600","unmsClientSiteId":"4e9a790b-b72c-4082-a58d-da7760848f95","attributes":[{"id":"2f9ed7d5-614c-413b-b77a-8d22623f9ca5","serviceId":132,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":101,"startDate":"2024-07-06T00:00:00-0600","endDate":"2024-12-11T00:00:00-0600"},{"id":116,"startDate":"2024-12-11T00:00:00-0600","endDate":"2025-02-18T00:00:00-0600"},{"id":167,"startDate":"2025-06-09T12:30:02-0600","endDate":null}],"surcharges":[]}}} +[2025-07-24 6:25:02.656538] [warning] No se encontró un teléfono celular válido para el cliente: 118 +[2025-07-24 16:00:04.476917] [notice] Logging level set to:debug +[2025-07-24 16:00:04.477004] [debug] valor del webhook: {"uuid":"c550591b-7a70-4410-a0fb-172af02ab34e","changeType":"draft_approved","entity":"invoice","entityId":"2208","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2208,"clientId":126,"number":"002158","createdDate":"2025-07-24T10:00:02-0600","dueDate":"2025-08-07T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-23T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2211,"type":"service","label":"PREMIUM 24\/06\/2025 \u2013 23\/07\/2025","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},"entityBeforeEdit":null}} -[2025-06-09 18:30:03.692717] [debug] valor el evento recibido por webhook: service.suspend +[2025-07-24 16:00:04.627583] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2025-06-09 18:30:03.692905] [debug] Valor de JSON: {"uuid":"dcbac69e-6440-4044-a148-ffd4b1d16ae0","changeType":"suspend","entity":"service","entityId":"132","eventName":"service.suspend","extraData":{"entity":{"id":132,"prepaid":false,"clientId":1,"status":3,"name":"PREMIUM","fullAddress":"Calle Morelos 34, Dolores Hidalgo, 37800","street1":"Calle Morelos 34","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1572096,"addressGpsLon":-100.9377327,"servicePlanId":4,"servicePlanPeriodId":19,"price":700,"hasIndividualPrice":false,"totalPrice":700,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2024-03-25T00: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-02-18T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":25,"nextInvoicingDayAdjustment":0,"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":"2025-05-24T00:00:00-0600","unmsClientSiteId":"4e9a790b-b72c-4082-a58d-da7760848f95","attributes":[{"id":"2f9ed7d5-614c-413b-b77a-8d22623f9ca5","serviceId":132,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":1,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":101,"startDate":"2024-07-06T00:00:00-0600","endDate":"2024-12-11T00:00:00-0600"},{"id":116,"startDate":"2024-12-11T00:00:00-0600","endDate":"2025-02-18T00:00:00-0600"},{"id":167,"startDate":"2025-06-09T12:30:02-0600","endDate":null}],"surcharges":[]},"entityBeforeEdit":{"id":132,"prepaid":false,"clientId":1,"status":1,"name":"PREMIUM","fullAddress":"Calle Morelos 34, Dolores Hidalgo, 37800","street1":"Calle Morelos 34","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1572096,"addressGpsLon":-100.9377327,"servicePlanId":4,"servicePlanPeriodId":19,"price":700,"hasIndividualPrice":false,"totalPrice":700,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2024-03-25T00: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-02-18T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":25,"nextInvoicingDayAdjustment":0,"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":"2025-05-24T00:00:00-0600","unmsClientSiteId":"4e9a790b-b72c-4082-a58d-da7760848f95","attributes":[{"id":"2f9ed7d5-614c-413b-b77a-8d22623f9ca5","serviceId":132,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":101,"startDate":"2024-07-06T00:00:00-0600","endDate":"2024-12-11T00:00:00-0600"},{"id":116,"startDate":"2024-12-11T00:00:00-0600","endDate":"2025-02-18T00:00:00-0600"},{"id":167,"startDate":"2025-06-09T12:30:02-0600","endDate":null}],"surcharges":[]}}} +[2025-07-24 16:00:04.627645] [debug] Valor de JSON: {"uuid":"c550591b-7a70-4410-a0fb-172af02ab34e","changeType":"draft_approved","entity":"invoice","entityId":"2208","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2208,"clientId":126,"number":"002158","createdDate":"2025-07-24T10:00:02-0600","dueDate":"2025-08-07T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-23T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2211,"type":"service","label":"PREMIUM 24\/06\/2025 \u2013 23\/07\/2025","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},"entityBeforeEdit":null}} -[2025-06-09 18:30:03.693226] [debug] Se suspendió el servicio a un cliente +[2025-07-24 16:00:04.627852] [debug] Aprobación de Factura -[2025-06-09 18:30:03.693346] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-09 18:30:03.693392] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-09 18:30:03.693487] [info] {"uuid":"dcbac69e-6440-4044-a148-ffd4b1d16ae0","changeType":"suspend","entity":"service","entityId":132,"message":null,"clientId":1,"eventName":"service.suspend","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":null,"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}],"accountBalance":-1223.33,"accountCredit":0,"accountOutstanding":1223.33,"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":{"id":132,"prepaid":false,"clientId":1,"status":3,"name":"PREMIUM","fullAddress":"Calle Morelos 34, Dolores Hidalgo, 37800","street1":"Calle Morelos 34","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1572096,"addressGpsLon":-100.9377327,"servicePlanId":4,"servicePlanPeriodId":19,"price":700,"hasIndividualPrice":false,"totalPrice":700,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2024-03-25T00: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-02-18T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":25,"nextInvoicingDayAdjustment":0,"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":"2025-05-24T00:00:00-0600","unmsClientSiteId":"4e9a790b-b72c-4082-a58d-da7760848f95","attributes":[{"id":"2f9ed7d5-614c-413b-b77a-8d22623f9ca5","serviceId":132,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":1,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":101,"startDate":"2024-07-06T00:00:00-0600","endDate":"2024-12-11T00:00:00-0600"},{"id":116,"startDate":"2024-12-11T00:00:00-0600","endDate":"2025-02-18T00:00:00-0600"},{"id":167,"startDate":"2025-06-09T00:00:00-0600","endDate":null}],"surcharges":[],"stopReason":"Payments overdue"},"invoiceData":null,"paymentData":null} +[2025-07-24 16:00:04.627912] [debug] {"uuid":"c550591b-7a70-4410-a0fb-172af02ab34e","changeType":"draft_approved","entity":"invoice","entityId":2208,"message":null,"clientId":126,"eventName":"invoice.draft_approved","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":-5600,"accountCredit":0,"accountOutstanding":5600,"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":2208,"clientId":126,"number":"002158","createdDate":"2025-07-24T10:00:02-0600","dueDate":"2025-08-07T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-22T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2211,"type":"service","label":"PREMIUM 24\/06\/2025 \u2013 23\/07\/2025","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},"paymentData":null} -Actualizando estado del servicio +[2025-07-25 16:00:03.647886] [notice] Logging level set to:debug +[2025-07-25 16:00:03.647964] [debug] valor del webhook: {"uuid":"e3fb4129-bb71-4045-ba5e-ab485edbe937","changeType":"draft_approved","entity":"invoice","entityId":"2209","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2209,"clientId":1,"number":"002159","createdDate":"2025-07-25T10:00:01-0600","dueDate":"2025-08-08T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-24T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2212,"type":"service","label":"PREMIUM 25\/06\/2025 \u2013 24\/07\/2025","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},"entityBeforeEdit":null}} -Nombre del cliente al que se va a actualizar el estado del servicio: Don Miguel Ángel Guerrero González +[2025-07-25 16:00:03.795012] [debug] valor el evento recibido por webhook: invoice.draft_approved -UUID: 0e53e926ce424db5b9284a75915d24fe +[2025-07-25 16:00:03.795077] [debug] Valor de JSON: {"uuid":"e3fb4129-bb71-4045-ba5e-ab485edbe937","changeType":"draft_approved","entity":"invoice","entityId":"2209","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2209,"clientId":1,"number":"002159","createdDate":"2025-07-25T10:00:01-0600","dueDate":"2025-08-08T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-24T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2212,"type":"service","label":"PREMIUM 25\/06\/2025 \u2013 24\/07\/2025","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},"entityBeforeEdit":null}} -JSON con los datos a actualizar: {"name":"Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez","custom_fields":{"Estado":"\ud83d\udfe0 Suspendido","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 09\/06\/2025 12:30"}} +[2025-07-25 16:00:03.795283] [debug] Aprobación de Factura -Response Patch CallBell: {"contact":{"uuid":"0e53e926ce424db5b9284a75915d24fe","name":"Don Miguel Ángel Guerrero González","phoneNumber":"5214181148554","avatarUrl":null,"createdAt":"2024-01-26T17:29:28Z","closedAt":"2025-03-18T17:21:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/0e53e926ce424db5b9284a75915d24fe","conversationHref":"https://dash.callbell.eu/chat/f017e454a6b94ab297509274216c6795","tags":["SIIP"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clientes Relacionados":"oxxo","Antena/Sectorial":"1","Nombre":"👤 Don Miguel Ángel Guerrero González","Clabe Interbancaria":"002180697144444854","Acciones":"1","Domicilio":"📍 Calle Morelos 34, Dolores Hidalgo, 37800","URL":"🌐 https://sistema.siip.mx/crm/client/1","Cliente":"1","user name":"Angel","Monto Ultimo Pago":"💲 190","Fecha Ultimo Pago":"📆💸 07/03/2025 23:51 con Tarjeta de crédito Stripe 💳","Estado":"🟠 Suspendido","Resumen":"{\"Cliente\": \"1\",\"Domicilio\": \"\"Nombre\": \"Don Miguel Ángel Guerrero González\",\"URL\": \"https://sistema.siip.mx/crm/client/1\",\"Saldo Actual\": \"💲1223.33 pendientes\",\"Monto Ultimo Pago\": \"$ 190\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 07/03/2025 23:51 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"27/05/2025 10:00\",\"Clabe Interbancaria\": \"002180697144444854\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Saldo Actual":"💲1223.33 pendientes","Fecha Ultima Actualizacion":"📆🔄️ 09/06/2025 12:30"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} +[2025-07-25 16:00:03.795342] [debug] {"uuid":"e3fb4129-bb71-4045-ba5e-ab485edbe937","changeType":"draft_approved","entity":"invoice","entityId":2209,"message":null,"clientId":1,"eventName":"invoice.draft_approved","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":null,"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":-2923.33,"accountCredit":0,"accountOutstanding":2923.33,"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":2209,"clientId":1,"number":"002159","createdDate":"2025-07-25T10:00:01-0600","dueDate":"2025-08-08T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-23T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2212,"type":"service","label":"PREMIUM 25\/06\/2025 \u2013 24\/07\/2025","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},"paymentData":null} -[2025-06-09 18:30:05.611773] [notice] Logging level set to:debug -[2025-06-09 18:30:05.611859] [debug] valor del webhook: {"uuid":"7db56faa-7476-4ba1-85f2-79ecbdfa3c66","changeType":"edit","entity":"service","entityId":"132","eventName":"service.edit","extraData":{"entity":{"id":132,"prepaid":false,"clientId":1,"status":3,"name":"PREMIUM","fullAddress":"Calle Morelos 34, Dolores Hidalgo, 37800","street1":"Calle Morelos 34","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1572096,"addressGpsLon":-100.9377327,"servicePlanId":4,"servicePlanPeriodId":19,"price":700,"hasIndividualPrice":false,"totalPrice":700,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2024-03-25T00: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-02-18T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":25,"nextInvoicingDayAdjustment":0,"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":"2025-05-24T00:00:00-0600","unmsClientSiteId":"4e9a790b-b72c-4082-a58d-da7760848f95","attributes":[{"id":"2f9ed7d5-614c-413b-b77a-8d22623f9ca5","serviceId":132,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":1,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":101,"startDate":"2024-07-06T00:00:00-0600","endDate":"2024-12-11T00:00:00-0600"},{"id":116,"startDate":"2024-12-11T00:00:00-0600","endDate":"2025-02-18T00:00:00-0600"},{"id":167,"startDate":"2025-06-09T12:30:02-0600","endDate":null}],"surcharges":[]},"entityBeforeEdit":{"id":132,"prepaid":false,"clientId":1,"status":1,"name":"PREMIUM","fullAddress":"Calle Morelos 34, Dolores Hidalgo, 37800","street1":"Calle Morelos 34","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1572096,"addressGpsLon":-100.9377327,"servicePlanId":4,"servicePlanPeriodId":19,"price":700,"hasIndividualPrice":false,"totalPrice":700,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2024-03-25T00: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-02-18T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":25,"nextInvoicingDayAdjustment":0,"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":"2025-05-24T00:00:00-0600","unmsClientSiteId":"4e9a790b-b72c-4082-a58d-da7760848f95","attributes":[{"id":"2f9ed7d5-614c-413b-b77a-8d22623f9ca5","serviceId":132,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":101,"startDate":"2024-07-06T00:00:00-0600","endDate":"2024-12-11T00:00:00-0600"},{"id":116,"startDate":"2024-12-11T00:00:00-0600","endDate":"2025-02-18T00:00:00-0600"},{"id":167,"startDate":"2025-06-09T12:30:02-0600","endDate":null}],"surcharges":[]}}} - -[2025-06-09 18:30:05.788002] [debug] valor el evento recibido por webhook: service.edit - -[2025-06-09 18:30:05.788168] [debug] Valor de JSON: {"uuid":"7db56faa-7476-4ba1-85f2-79ecbdfa3c66","changeType":"edit","entity":"service","entityId":"132","eventName":"service.edit","extraData":{"entity":{"id":132,"prepaid":false,"clientId":1,"status":3,"name":"PREMIUM","fullAddress":"Calle Morelos 34, Dolores Hidalgo, 37800","street1":"Calle Morelos 34","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1572096,"addressGpsLon":-100.9377327,"servicePlanId":4,"servicePlanPeriodId":19,"price":700,"hasIndividualPrice":false,"totalPrice":700,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2024-03-25T00: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-02-18T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":25,"nextInvoicingDayAdjustment":0,"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":"2025-05-24T00:00:00-0600","unmsClientSiteId":"4e9a790b-b72c-4082-a58d-da7760848f95","attributes":[{"id":"2f9ed7d5-614c-413b-b77a-8d22623f9ca5","serviceId":132,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":1,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":101,"startDate":"2024-07-06T00:00:00-0600","endDate":"2024-12-11T00:00:00-0600"},{"id":116,"startDate":"2024-12-11T00:00:00-0600","endDate":"2025-02-18T00:00:00-0600"},{"id":167,"startDate":"2025-06-09T12:30:02-0600","endDate":null}],"surcharges":[]},"entityBeforeEdit":{"id":132,"prepaid":false,"clientId":1,"status":1,"name":"PREMIUM","fullAddress":"Calle Morelos 34, Dolores Hidalgo, 37800","street1":"Calle Morelos 34","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1572096,"addressGpsLon":-100.9377327,"servicePlanId":4,"servicePlanPeriodId":19,"price":700,"hasIndividualPrice":false,"totalPrice":700,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2024-03-25T00: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-02-18T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":25,"nextInvoicingDayAdjustment":0,"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":"2025-05-24T00:00:00-0600","unmsClientSiteId":"4e9a790b-b72c-4082-a58d-da7760848f95","attributes":[{"id":"2f9ed7d5-614c-413b-b77a-8d22623f9ca5","serviceId":132,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":101,"startDate":"2024-07-06T00:00:00-0600","endDate":"2024-12-11T00:00:00-0600"},{"id":116,"startDate":"2024-12-11T00:00:00-0600","endDate":"2025-02-18T00:00:00-0600"},{"id":167,"startDate":"2025-06-09T12:30:02-0600","endDate":null}],"surcharges":[]}}} - -[2025-06-09 18:30:05.788337] [debug] Se editó el servicio a un cliente - -[2025-06-09 18:30:05.788419] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-09 18:30:05.788463] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-09 18:30:05.788536] [info] {"uuid":"7db56faa-7476-4ba1-85f2-79ecbdfa3c66","changeType":"edit","entity":"service","entityId":132,"message":null,"clientId":1,"eventName":"service.edit","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":null,"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}],"accountBalance":-1223.33,"accountCredit":0,"accountOutstanding":1223.33,"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":{"id":132,"prepaid":false,"clientId":1,"status":3,"name":"PREMIUM","fullAddress":"Calle Morelos 34, Dolores Hidalgo, 37800","street1":"Calle Morelos 34","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1572096,"addressGpsLon":-100.9377327,"servicePlanId":4,"servicePlanPeriodId":19,"price":700,"hasIndividualPrice":false,"totalPrice":700,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2024-03-25T00: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-02-18T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":25,"nextInvoicingDayAdjustment":0,"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":"2025-05-24T00:00:00-0600","unmsClientSiteId":"4e9a790b-b72c-4082-a58d-da7760848f95","attributes":[{"id":"2f9ed7d5-614c-413b-b77a-8d22623f9ca5","serviceId":132,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":1,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":101,"startDate":"2024-07-06T00:00:00-0600","endDate":"2024-12-11T00:00:00-0600"},{"id":116,"startDate":"2024-12-11T00:00:00-0600","endDate":"2025-02-18T00:00:00-0600"},{"id":167,"startDate":"2025-06-09T00:00:00-0600","endDate":null}],"surcharges":[],"stopReason":"Payments overdue"},"invoiceData":null,"paymentData":null} - -Actualizando estado del servicio - -Nombre del cliente al que se va a actualizar el estado del servicio: Don Miguel Ángel Guerrero González - -UUID: 0e53e926ce424db5b9284a75915d24fe - -JSON con los datos a actualizar: {"name":"Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez","custom_fields":{"Estado":"\ud83d\udfe0 Suspendido","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 09\/06\/2025 12:30"}} - -Response Patch CallBell: {"contact":{"uuid":"0e53e926ce424db5b9284a75915d24fe","name":"Don Miguel Ángel Guerrero González","phoneNumber":"5214181148554","avatarUrl":null,"createdAt":"2024-01-26T17:29:28Z","closedAt":"2025-03-18T17:21:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/0e53e926ce424db5b9284a75915d24fe","conversationHref":"https://dash.callbell.eu/chat/f017e454a6b94ab297509274216c6795","tags":["SIIP"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clientes Relacionados":"oxxo","Antena/Sectorial":"1","Nombre":"👤 Don Miguel Ángel Guerrero González","Clabe Interbancaria":"002180697144444854","Acciones":"1","Domicilio":"📍 Calle Morelos 34, Dolores Hidalgo, 37800","URL":"🌐 https://sistema.siip.mx/crm/client/1","Cliente":"1","user name":"Angel","Monto Ultimo Pago":"💲 190","Fecha Ultimo Pago":"📆💸 07/03/2025 23:51 con Tarjeta de crédito Stripe 💳","Estado":"🟠 Suspendido","Resumen":"{\"Cliente\": \"1\",\"Domicilio\": \"\"Nombre\": \"Don Miguel Ángel Guerrero González\",\"URL\": \"https://sistema.siip.mx/crm/client/1\",\"Saldo Actual\": \"💲1223.33 pendientes\",\"Monto Ultimo Pago\": \"$ 190\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 07/03/2025 23:51 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"27/05/2025 10:00\",\"Clabe Interbancaria\": \"002180697144444854\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Saldo Actual":"💲1223.33 pendientes","Fecha Ultima Actualizacion":"📆🔄️ 09/06/2025 12:30"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-09 18:30:07.826987] [info] ID correspondiente a 'passwordAntenaCliente': 17 - -[2025-06-09 18:30:07.827173] [info] El valor de passwordAntenaValue es null o cadena vacía, se manda llamar la función getVaultCredentials - -[2025-06-09 18:30:07.827224] [info] El valor de password es: gYAIEK:Be}SK*01z5+/V - -[2025-06-09 18:30:08.087585] [info] Se actualizó el custom attribute del cliente 1 - -[2025-06-09 18:30:08.088685] [info] Se actualizó el atributo personalizado passwordAntenaCliente con el valor: gYAIEK:Be}SK*01z5+/V - -[2025-06-09 18:30:08.252945] [notice] Logging level set to:debug -[2025-06-09 18:30:08.253098] [debug] valor del webhook: {"uuid":"5572769a-a367-4cde-bf22-eda85ae601a4","changeType":"edit","entity":"client","entityId":"1","eventName":"client.edit","extraData":{"entity":{"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":null,"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":-1223.33,"accountCredit":0,"accountOutstanding":1223.33,"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},"entityBeforeEdit":{"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":null,"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}],"accountBalance":-1223.33,"accountCredit":0,"accountOutstanding":1223.33,"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}}} - -[2025-06-09 18:30:08.334721] [debug] valor el evento recibido por webhook: client.edit - -[2025-06-09 18:30:08.334927] [debug] Valor de JSON: {"uuid":"5572769a-a367-4cde-bf22-eda85ae601a4","changeType":"edit","entity":"client","entityId":"1","eventName":"client.edit","extraData":{"entity":{"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":null,"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":-1223.33,"accountCredit":0,"accountOutstanding":1223.33,"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},"entityBeforeEdit":{"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":null,"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}],"accountBalance":-1223.33,"accountCredit":0,"accountOutstanding":1223.33,"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}}} - -[2025-06-09 18:30:08.335103] [debug] Se actualiza a un cliente -[2025-06-09 18:30:08.335179] [debug] Valor de json_data: {"uuid":"5572769a-a367-4cde-bf22-eda85ae601a4","changeType":"edit","entity":"client","entityId":"1","eventName":"client.edit","extraData":{"entity":{"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":null,"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":-1223.33,"accountCredit":0,"accountOutstanding":1223.33,"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},"entityBeforeEdit":{"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":null,"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}],"accountBalance":-1223.33,"accountCredit":0,"accountOutstanding":1223.33,"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}}} -[2025-06-09 18:30:08.382817] [info] ID correspondiente a 'passwordAntenaCliente': 17 - -[2025-06-09 18:30:08.382951] [info] El valor de passwordAntenaValue es: gYAIEK:Be}SK*01z5+/V - -[2025-06-09 18:30:08.383008] [info] Ya existe un valor de passwordAntenaValue: gYAIEK:Be}SK*01z5+/V - -[2025-06-09 18:30:08.383052] [debug] El cliente no cambió de potencial a cliente -[2025-06-09 18:30:08.383091] [debug] Validando claves dentro de entity y entityBeforeEdit -[2025-06-09 18:30:08.383130] [debug] Los datos entity y entityBeforeEdit contienen el campo tags -[2025-06-09 18:30:08.383166] [debug] Validando si la etiqueta STRIPE existe en entity pero no en entityBeforeEdit -[2025-06-09 18:30:08.383235] [debug] {"uuid":"5572769a-a367-4cde-bf22-eda85ae601a4","changeType":"edit","entity":"client","entityId":1,"message":null,"clientId":1,"eventName":"client.edit","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":null,"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":-1223.33,"accountCredit":0,"accountOutstanding":1223.33,"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":null,"paymentData":null} - -[2025-06-09 18:30:08.383356] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-09 18:30:08.383408] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"5572769a-a367-4cde-bf22-eda85ae601a4","changeType":"edit","entity":"client","entityId":1,"message":null,"clientId":1,"eventName":"client.edit","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":null,"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":-1223.33,"accountCredit":0,"accountOutstanding":1223.33,"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":null,"paymentData":null} +[2025-07-25 16:00:03.795418] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-07-25 16:00:03.795428] [info] Tipo de contacto normalizado: 'whatsapp' +Notificacion data: {"uuid":"e3fb4129-bb71-4045-ba5e-ab485edbe937","changeType":"draft_approved","entity":"invoice","entityId":2209,"message":null,"clientId":1,"eventName":"invoice.draft_approved","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":null,"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":-2923.33,"accountCredit":0,"accountOutstanding":2923.33,"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":2209,"clientId":1,"number":"002159","createdDate":"2025-07-25T10:00:01-0600","dueDate":"2025-08-08T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-23T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2212,"type":"service","label":"PREMIUM 25\/06\/2025 \u2013 24\/07\/2025","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},"paymentData":null} Dentro del proceso del patch: @@ -6394,782 +725,630 @@ Nombre del cliente que se va a actualizar: Don Miguel Ángel Guerrero González UUID: 0e53e926ce424db5b9284a75915d24fe -JSON con los datos a actualizar: {"name":"Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez","custom_fields":{"Cliente":1,"Domicilio":"\ud83d\udccd Calle Morelos 34, Dolores Hidalgo, 37800","Nombre":"\ud83d\udc64 Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/1","Saldo Actual":"\ud83d\udcb21223.33 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 190","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"1\",\"Domicilio\": \"\"Nombre\": \"Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/1\",\"Saldo Actual\": \"\ud83d\udcb21223.33 pendientes\",\"Monto Ultimo Pago\": \"$ 190\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 07\/03\/2025 23:51 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"09\/06\/2025 12:30\",\"Clabe Interbancaria\": \"002180697144444854\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 07\/03\/2025 23:51 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 09\/06\/2025 12:30","Clabe Interbancaria":"002180697144444854","Site":"","Antena\/Sectorial":""}} +JSON con los datos a actualizar: {"name":"Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez","custom_fields":{"Cliente":1,"Domicilio":"\ud83d\udccd Calle Morelos 34, Dolores Hidalgo, 37800","Nombre":"\ud83d\udc64 Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/1","Saldo Actual":"\ud83d\udcb22923.33 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 190","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"1\",\"Domicilio\": \"\"Nombre\": \"Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/1\",\"Saldo Actual\": \"\ud83d\udcb22923.33 pendientes\",\"Monto Ultimo Pago\": \"$ 190\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 07\/03\/2025 23:51 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"25\/07\/2025 10:00\",\"Clabe Interbancaria\": \"002180697144444854\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 07\/03\/2025 23:51 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 25\/07\/2025 10:00","Clabe Interbancaria":"002180697144444854","Site":"","Antena\/Sectorial":""}} -JSON con los datos a actualizar del resumen: {"Cliente": "1","Domicilio": ""Nombre": "Don Miguel Ángel Guerrero González","URL": "https://sistema.siip.mx/crm/client/1","Saldo Actual": "💲1223.33 pendientes","Monto Ultimo Pago": "$ 190","Estado": "Suspendido","Fecha Ultimo Pago": " 07/03/2025 23:51 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "09/06/2025 12:30","Clabe Interbancaria": "002180697144444854","Site": "","Antena/Sectorial": ""} +JSON con los datos a actualizar del resumen: {"Cliente": "1","Domicilio": ""Nombre": "Don Miguel Ángel Guerrero González","URL": "https://sistema.siip.mx/crm/client/1","Saldo Actual": "💲2923.33 pendientes","Monto Ultimo Pago": "$ 190","Estado": "Suspendido","Fecha Ultimo Pago": " 07/03/2025 23:51 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "25/07/2025 10:00","Clabe Interbancaria": "002180697144444854","Site": "","Antena/Sectorial": ""} -Response Patch CallBell: {"contact":{"uuid":"0e53e926ce424db5b9284a75915d24fe","name":"Don Miguel Ángel Guerrero González","phoneNumber":"5214181148554","avatarUrl":null,"createdAt":"2024-01-26T17:29:28Z","closedAt":"2025-03-18T17:21:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/0e53e926ce424db5b9284a75915d24fe","conversationHref":"https://dash.callbell.eu/chat/f017e454a6b94ab297509274216c6795","tags":["SIIP"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clientes Relacionados":"oxxo","Antena/Sectorial":"1","Nombre":"👤 Don Miguel Ángel Guerrero González","Clabe Interbancaria":"002180697144444854","Acciones":"1","Domicilio":"📍 Calle Morelos 34, Dolores Hidalgo, 37800","URL":"🌐 https://sistema.siip.mx/crm/client/1","Cliente":"1","user name":"Angel","Monto Ultimo Pago":"💲 190","Fecha Ultimo Pago":"📆💸 07/03/2025 23:51 con Tarjeta de crédito Stripe 💳","Saldo Actual":"💲1223.33 pendientes","Fecha Ultima Actualizacion":"📆🔄️ 09/06/2025 12:30","Resumen":"{\"Cliente\": \"1\",\"Domicilio\": \"\"Nombre\": \"Don Miguel Ángel Guerrero González\",\"URL\": \"https://sistema.siip.mx/crm/client/1\",\"Saldo Actual\": \"💲1223.33 pendientes\",\"Monto Ultimo Pago\": \"$ 190\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 07/03/2025 23:51 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"09/06/2025 12:30\",\"Clabe Interbancaria\": \"002180697144444854\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Estado":"🔴 Suspendido"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} +Response Patch CallBell: {"contact":{"uuid":"0e53e926ce424db5b9284a75915d24fe","name":"Don Miguel Ángel Guerrero González","phoneNumber":"5214181148554","avatarUrl":null,"createdAt":"2024-01-26T17:29:28Z","closedAt":"2025-03-18T17:21:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/0e53e926ce424db5b9284a75915d24fe","conversationHref":"https://dash.callbell.eu/chat/f017e454a6b94ab297509274216c6795","tags":["SIIP"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clientes Relacionados":"oxxo","Antena/Sectorial":"1","Nombre":"👤 Don Miguel Ángel Guerrero González","Clabe Interbancaria":"002180697144444854","Acciones":"1","Domicilio":"📍 Calle Morelos 34, Dolores Hidalgo, 37800","URL":"🌐 https://sistema.siip.mx/crm/client/1","Cliente":"1","user name":"Angel","Monto Ultimo Pago":"💲 190","Fecha Ultimo Pago":"📆💸 07/03/2025 23:51 con Tarjeta de crédito Stripe 💳","Saldo Actual":"💲2923.33 pendientes","Fecha Ultima Actualizacion":"📆🔄️ 25/07/2025 10:00","Estado":"🔴 Suspendido","Resumen":"{\"Cliente\": \"1\",\"Domicilio\": \"\"Nombre\": \"Don Miguel Ángel Guerrero González\",\"URL\": \"https://sistema.siip.mx/crm/client/1\",\"Saldo Actual\": \"💲2923.33 pendientes\",\"Monto Ultimo Pago\": \"$ 190\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 07/03/2025 23:51 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"25/07/2025 10:00\",\"Clabe Interbancaria\": \"002180697144444854\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} -Response 2 Patch CallBell: {"contact":{"uuid":"0e53e926ce424db5b9284a75915d24fe","name":"Don Miguel Ángel Guerrero González","phoneNumber":"5214181148554","avatarUrl":null,"createdAt":"2024-01-26T17:29:28Z","closedAt":"2025-03-18T17:21:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/0e53e926ce424db5b9284a75915d24fe","conversationHref":"https://dash.callbell.eu/chat/f017e454a6b94ab297509274216c6795","tags":["SIIP"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clientes Relacionados":"oxxo","Antena/Sectorial":"1","Nombre":"👤 Don Miguel Ángel Guerrero González","Clabe Interbancaria":"002180697144444854","Acciones":"1","Domicilio":"📍 Calle Morelos 34, Dolores Hidalgo, 37800","URL":"🌐 https://sistema.siip.mx/crm/client/1","Cliente":"1","user name":"Angel","Monto Ultimo Pago":"💲 190","Fecha Ultimo Pago":"📆💸 07/03/2025 23:51 con Tarjeta de crédito Stripe 💳","Saldo Actual":"💲1223.33 pendientes","Fecha Ultima Actualizacion":"📆🔄️ 09/06/2025 12:30","Resumen":"{\"Cliente\": \"1\",\"Domicilio\": \"\"Nombre\": \"Don Miguel Ángel Guerrero González\",\"URL\": \"https://sistema.siip.mx/crm/client/1\",\"Saldo Actual\": \"💲1223.33 pendientes\",\"Monto Ultimo Pago\": \"$ 190\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 07/03/2025 23:51 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"09/06/2025 12:30\",\"Clabe Interbancaria\": \"002180697144444854\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Estado":"🔴 Suspendido"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} +Response 2 Patch CallBell: {"contact":{"uuid":"0e53e926ce424db5b9284a75915d24fe","name":"Don Miguel Ángel Guerrero González","phoneNumber":"5214181148554","avatarUrl":null,"createdAt":"2024-01-26T17:29:28Z","closedAt":"2025-03-18T17:21:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/0e53e926ce424db5b9284a75915d24fe","conversationHref":"https://dash.callbell.eu/chat/f017e454a6b94ab297509274216c6795","tags":["SIIP"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clientes Relacionados":"oxxo","Antena/Sectorial":"1","Nombre":"👤 Don Miguel Ángel Guerrero González","Clabe Interbancaria":"002180697144444854","Acciones":"1","Domicilio":"📍 Calle Morelos 34, Dolores Hidalgo, 37800","URL":"🌐 https://sistema.siip.mx/crm/client/1","Cliente":"1","user name":"Angel","Monto Ultimo Pago":"💲 190","Fecha Ultimo Pago":"📆💸 07/03/2025 23:51 con Tarjeta de crédito Stripe 💳","Saldo Actual":"💲2923.33 pendientes","Fecha Ultima Actualizacion":"📆🔄️ 25/07/2025 10:00","Estado":"🔴 Suspendido","Resumen":"{\"Cliente\": \"1\",\"Domicilio\": \"\"Nombre\": \"Don Miguel Ángel Guerrero González\",\"URL\": \"https://sistema.siip.mx/crm/client/1\",\"Saldo Actual\": \"💲2923.33 pendientes\",\"Monto Ultimo Pago\": \"$ 190\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 07/03/2025 23:51 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"25/07/2025 10:00\",\"Clabe Interbancaria\": \"002180697144444854\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} -[2025-06-09 19:09:34.077672] [notice] Logging level set to:debug -[2025-06-09 19:09:34.077860] [debug] valor del webhook: { +[2025-07-27 16:00:03.904509] [notice] Logging level set to:debug +[2025-07-27 16:00:03.904587] [debug] valor del webhook: {"uuid":"8b281318-dcd9-4f48-941f-3f8b87b006a0","changeType":"draft_approved","entity":"invoice","entityId":"2210","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2210,"clientId":3,"number":"002160","createdDate":"2025-07-27T10:00:01-0600","dueDate":"2025-08-10T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-26T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2213,"type":"service","label":"plan300 27\/06\/2025 \u2013 26\/07\/2025","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},"entityBeforeEdit":null}} + +[2025-07-27 16:00:04.097801] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-27 16:00:04.097865] [debug] Valor de JSON: {"uuid":"8b281318-dcd9-4f48-941f-3f8b87b006a0","changeType":"draft_approved","entity":"invoice","entityId":"2210","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2210,"clientId":3,"number":"002160","createdDate":"2025-07-27T10:00:01-0600","dueDate":"2025-08-10T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-26T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2213,"type":"service","label":"plan300 27\/06\/2025 \u2013 26\/07\/2025","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},"entityBeforeEdit":null}} + +[2025-07-27 16:00:04.098083] [debug] Aprobación de Factura + +[2025-07-27 16:00:04.098139] [debug] {"uuid":"8b281318-dcd9-4f48-941f-3f8b87b006a0","changeType":"draft_approved","entity":"invoice","entityId":2210,"message":null,"clientId":3,"eventName":"invoice.draft_approved","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}],"accountBalance":-2400,"accountCredit":0,"accountOutstanding":2400,"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":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2210,"clientId":3,"number":"002160","createdDate":"2025-07-27T10:00:01-0600","dueDate":"2025-08-10T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-25T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2213,"type":"service","label":"plan300 27\/06\/2025 \u2013 26\/07\/2025","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},"paymentData":null} + +[2025-07-27 16:00:05.209131] [notice] Logging level set to:debug +[2025-07-27 16:00:05.209216] [debug] valor del webhook: {"uuid":"af55ddd9-25aa-4bc4-8fa1-29502fca3910","changeType":"draft_approved","entity":"invoice","entityId":"2211","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2211,"clientId":4,"number":"002161","createdDate":"2025-07-27T10:00:01-0600","dueDate":"2025-08-10T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-26T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2214,"type":"service","label":"plan300 27\/06\/2025 \u2013 26\/07\/2025","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},"entityBeforeEdit":null}} + +[2025-07-27 16:00:05.366038] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-27 16:00:05.366106] [debug] Valor de JSON: {"uuid":"af55ddd9-25aa-4bc4-8fa1-29502fca3910","changeType":"draft_approved","entity":"invoice","entityId":"2211","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2211,"clientId":4,"number":"002161","createdDate":"2025-07-27T10:00:01-0600","dueDate":"2025-08-10T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-26T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2214,"type":"service","label":"plan300 27\/06\/2025 \u2013 26\/07\/2025","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},"entityBeforeEdit":null}} + +[2025-07-27 16:00:05.366230] [debug] Aprobación de Factura + +[2025-07-27 16:00:05.366277] [debug] {"uuid":"af55ddd9-25aa-4bc4-8fa1-29502fca3910","changeType":"draft_approved","entity":"invoice","entityId":2211,"message":null,"clientId":4,"eventName":"invoice.draft_approved","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":[],"accountBalance":-5700,"accountCredit":0,"accountOutstanding":5700,"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":2211,"clientId":4,"number":"002161","createdDate":"2025-07-27T10:00:01-0600","dueDate":"2025-08-10T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-25T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2214,"type":"service","label":"plan300 27\/06\/2025 \u2013 26\/07\/2025","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},"paymentData":null} + +[2025-07-27 16:00:05.366312] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-07-27 16:00:05.366322] [info] Tipo de contacto normalizado: 'whatsapp' +Notificacion data: {"uuid":"af55ddd9-25aa-4bc4-8fa1-29502fca3910","changeType":"draft_approved","entity":"invoice","entityId":2211,"message":null,"clientId":4,"eventName":"invoice.draft_approved","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":[],"accountBalance":-5700,"accountCredit":0,"accountOutstanding":5700,"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":2211,"clientId":4,"number":"002161","createdDate":"2025-07-27T10:00:01-0600","dueDate":"2025-08-10T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-25T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2214,"type":"service","label":"plan300 27\/06\/2025 \u2013 26\/07\/2025","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},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [] + +Nombre del cliente que se va a actualizar: Griselda Avalos + +UUID: 6620b434a8594fc489e18e90363d59bd + +JSON con los datos a actualizar: {"name":"Griselda Avalos","custom_fields":{"Cliente":4,"Domicilio":"\ud83d\udccd Yucat\u00e1n 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Griselda Avalos","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/4","Saldo Actual":"\ud83d\udcb25700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"4\",\"Domicilio\": \"\"Nombre\": \"Griselda Avalos\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/4\",\"Saldo Actual\": \"\ud83d\udcb25700 pendientes\",\"Monto Ultimo Pago\": \"$ \",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 27\/07\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"27\/07\/2025 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 27\/07\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 27\/07\/2025 10:00","Clabe Interbancaria":null,"Site":"","Antena\/Sectorial":""}} + +JSON con los datos a actualizar del resumen: {"Cliente": "4","Domicilio": ""Nombre": "Griselda Avalos","URL": "https://sistema.siip.mx/crm/client/4","Saldo Actual": "💲5700 pendientes","Monto Ultimo Pago": "$ ","Estado": "Suspendido","Fecha Ultimo Pago": " 27/07/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion": "27/07/2025 10:00","Clabe Interbancaria": "","Site": "","Antena/Sectorial": ""} + +Response Patch CallBell: {"contact":{"uuid":"6620b434a8594fc489e18e90363d59bd","name":"Griselda Avalos","phoneNumber":"5214181156999","avatarUrl":null,"createdAt":"2025-01-28T20:37:36Z","closedAt":"2025-01-28T22:38:41Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/6620b434a8594fc489e18e90363d59bd","conversationHref":"https://dash.callbell.eu/chat/1a14b3d2ad4141fa8447878f95cce1d6","tags":[],"assignedUser":null,"customFields":{"Antena/Sectorial":"4","Domicilio":"📍 Yucatán 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🔴 Suspendido","Monto Ultimo Pago":"💲 ","Nombre":"👤 Griselda Avalos","Cliente":"4","URL":"🌐 https://sistema.siip.mx/crm/client/4","Fecha Ultima Actualizacion":"📆🔄️ 27/07/2025 10:00","Saldo Actual":"💲5700 pendientes","Resumen":"{\"Cliente\": \"4\",\"Domicilio\": \"\"Nombre\": \"Griselda Avalos\",\"URL\": \"https://sistema.siip.mx/crm/client/4\",\"Saldo Actual\": \"💲5700 pendientes\",\"Monto Ultimo Pago\": \"$ \",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 27/07/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"27/07/2025 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Fecha Ultimo Pago":"📆💸 27/07/2025 16:00 con Desconocido, revisar metodos de pago no contemplados"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +Response 2 Patch CallBell: {"contact":{"uuid":"6620b434a8594fc489e18e90363d59bd","name":"Griselda Avalos","phoneNumber":"5214181156999","avatarUrl":null,"createdAt":"2025-01-28T20:37:36Z","closedAt":"2025-01-28T22:38:41Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/6620b434a8594fc489e18e90363d59bd","conversationHref":"https://dash.callbell.eu/chat/1a14b3d2ad4141fa8447878f95cce1d6","tags":[],"assignedUser":null,"customFields":{"Antena/Sectorial":"4","Domicilio":"📍 Yucatán 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🔴 Suspendido","Monto Ultimo Pago":"💲 ","Nombre":"👤 Griselda Avalos","Cliente":"4","URL":"🌐 https://sistema.siip.mx/crm/client/4","Fecha Ultima Actualizacion":"📆🔄️ 27/07/2025 10:00","Saldo Actual":"💲5700 pendientes","Resumen":"{\"Cliente\": \"4\",\"Domicilio\": \"\"Nombre\": \"Griselda Avalos\",\"URL\": \"https://sistema.siip.mx/crm/client/4\",\"Saldo Actual\": \"💲5700 pendientes\",\"Monto Ultimo Pago\": \"$ \",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 27/07/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"27/07/2025 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Fecha Ultimo Pago":"📆💸 27/07/2025 16:00 con Desconocido, revisar metodos de pago no contemplados"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-07-27 16:00:08.723249] [notice] Logging level set to:debug +[2025-07-27 16:00:08.723308] [debug] valor del webhook: {"uuid":"539bab41-175b-4670-8922-13dfb92dcb4e","changeType":"draft_approved","entity":"invoice","entityId":"2212","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2212,"clientId":1,"number":"002162","createdDate":"2025-07-27T10:00:01-0600","dueDate":"2025-08-10T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-26T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2215,"type":"service","label":"plan300 27\/06\/2025 \u2013 26\/07\/2025","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},"entityBeforeEdit":null}} + +[2025-07-27 16:00:08.877722] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-27 16:00:08.877774] [debug] Valor de JSON: {"uuid":"539bab41-175b-4670-8922-13dfb92dcb4e","changeType":"draft_approved","entity":"invoice","entityId":"2212","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2212,"clientId":1,"number":"002162","createdDate":"2025-07-27T10:00:01-0600","dueDate":"2025-08-10T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-26T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2215,"type":"service","label":"plan300 27\/06\/2025 \u2013 26\/07\/2025","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},"entityBeforeEdit":null}} + +[2025-07-27 16:00:08.877903] [debug] Aprobación de Factura + +[2025-07-27 16:00:08.877958] [debug] {"uuid":"539bab41-175b-4670-8922-13dfb92dcb4e","changeType":"draft_approved","entity":"invoice","entityId":2212,"message":null,"clientId":1,"eventName":"invoice.draft_approved","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":null,"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":-3223.33,"accountCredit":0,"accountOutstanding":3223.33,"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":2212,"clientId":1,"number":"002162","createdDate":"2025-07-27T10:00:01-0600","dueDate":"2025-08-10T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-25T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2215,"type":"service","label":"plan300 27\/06\/2025 \u2013 26\/07\/2025","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},"paymentData":null} + +[2025-07-27 16:00:08.878002] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-07-27 16:00:08.878014] [info] Tipo de contacto normalizado: 'whatsapp' +Notificacion data: {"uuid":"539bab41-175b-4670-8922-13dfb92dcb4e","changeType":"draft_approved","entity":"invoice","entityId":2212,"message":null,"clientId":1,"eventName":"invoice.draft_approved","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":null,"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":-3223.33,"accountCredit":0,"accountOutstanding":3223.33,"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":2212,"clientId":1,"number":"002162","createdDate":"2025-07-27T10:00:01-0600","dueDate":"2025-08-10T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-25T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2215,"type":"service","label":"plan300 27\/06\/2025 \u2013 26\/07\/2025","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},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":608,"clientId":1,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-07T23:51:02-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":726,"invoiceId":1837,"paymentId":608,"creditNoteId":null,"refundId":null,"amount":113.33},{"id":727,"invoiceId":1839,"paymentId":608,"creditNoteId":null,"refundId":null,"amount":76.67}],"creditAmount":0,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Don Miguel Ángel Guerrero González + +UUID: 0e53e926ce424db5b9284a75915d24fe + +JSON con los datos a actualizar: {"name":"Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez","custom_fields":{"Cliente":1,"Domicilio":"\ud83d\udccd Calle Morelos 34, Dolores Hidalgo, 37800","Nombre":"\ud83d\udc64 Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/1","Saldo Actual":"\ud83d\udcb23223.33 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 190","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"1\",\"Domicilio\": \"\"Nombre\": \"Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/1\",\"Saldo Actual\": \"\ud83d\udcb23223.33 pendientes\",\"Monto Ultimo Pago\": \"$ 190\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 07\/03\/2025 23:51 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"27\/07\/2025 10:00\",\"Clabe Interbancaria\": \"002180697144444854\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 07\/03\/2025 23:51 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 27\/07\/2025 10:00","Clabe Interbancaria":"002180697144444854","Site":"","Antena\/Sectorial":""}} + +JSON con los datos a actualizar del resumen: {"Cliente": "1","Domicilio": ""Nombre": "Don Miguel Ángel Guerrero González","URL": "https://sistema.siip.mx/crm/client/1","Saldo Actual": "💲3223.33 pendientes","Monto Ultimo Pago": "$ 190","Estado": "Suspendido","Fecha Ultimo Pago": " 07/03/2025 23:51 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "27/07/2025 10:00","Clabe Interbancaria": "002180697144444854","Site": "","Antena/Sectorial": ""} + +Response Patch CallBell: {"contact":{"uuid":"0e53e926ce424db5b9284a75915d24fe","name":"Don Miguel Ángel Guerrero González","phoneNumber":"5214181148554","avatarUrl":null,"createdAt":"2024-01-26T17:29:28Z","closedAt":"2025-03-18T17:21:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/0e53e926ce424db5b9284a75915d24fe","conversationHref":"https://dash.callbell.eu/chat/f017e454a6b94ab297509274216c6795","tags":["SIIP"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clientes Relacionados":"oxxo","Antena/Sectorial":"1","Nombre":"👤 Don Miguel Ángel Guerrero González","Clabe Interbancaria":"002180697144444854","Acciones":"1","Domicilio":"📍 Calle Morelos 34, Dolores Hidalgo, 37800","URL":"🌐 https://sistema.siip.mx/crm/client/1","Cliente":"1","user name":"Angel","Monto Ultimo Pago":"💲 190","Fecha Ultimo Pago":"📆💸 07/03/2025 23:51 con Tarjeta de crédito Stripe 💳","Saldo Actual":"💲3223.33 pendientes","Fecha Ultima Actualizacion":"📆🔄️ 27/07/2025 10:00","Estado":"🔴 Suspendido","Resumen":"{\"Cliente\": \"1\",\"Domicilio\": \"\"Nombre\": \"Don Miguel Ángel Guerrero González\",\"URL\": \"https://sistema.siip.mx/crm/client/1\",\"Saldo Actual\": \"💲3223.33 pendientes\",\"Monto Ultimo Pago\": \"$ 190\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 07/03/2025 23:51 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"27/07/2025 10:00\",\"Clabe Interbancaria\": \"002180697144444854\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +Response 2 Patch CallBell: {"contact":{"uuid":"0e53e926ce424db5b9284a75915d24fe","name":"Don Miguel Ángel Guerrero González","phoneNumber":"5214181148554","avatarUrl":null,"createdAt":"2024-01-26T17:29:28Z","closedAt":"2025-03-18T17:21:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/0e53e926ce424db5b9284a75915d24fe","conversationHref":"https://dash.callbell.eu/chat/f017e454a6b94ab297509274216c6795","tags":["SIIP"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clientes Relacionados":"oxxo","Antena/Sectorial":"1","Nombre":"👤 Don Miguel Ángel Guerrero González","Clabe Interbancaria":"002180697144444854","Acciones":"1","Domicilio":"📍 Calle Morelos 34, Dolores Hidalgo, 37800","URL":"🌐 https://sistema.siip.mx/crm/client/1","Cliente":"1","user name":"Angel","Monto Ultimo Pago":"💲 190","Fecha Ultimo Pago":"📆💸 07/03/2025 23:51 con Tarjeta de crédito Stripe 💳","Saldo Actual":"💲3223.33 pendientes","Fecha Ultima Actualizacion":"📆🔄️ 27/07/2025 10:00","Estado":"🔴 Suspendido","Resumen":"{\"Cliente\": \"1\",\"Domicilio\": \"\"Nombre\": \"Don Miguel Ángel Guerrero González\",\"URL\": \"https://sistema.siip.mx/crm/client/1\",\"Saldo Actual\": \"💲3223.33 pendientes\",\"Monto Ultimo Pago\": \"$ 190\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 07/03/2025 23:51 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"27/07/2025 10:00\",\"Clabe Interbancaria\": \"002180697144444854\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-07-28 19:21:32.927534] [notice] Logging level set to:debug +[2025-07-28 19:21:32.927972] [debug] valor del webhook: { +"type": "oxxo.request", +"client_id": 2, +"amount": 0 +} + +[2025-07-28 19:21:32.928080] [info] No UUID found in the webhook data +[2025-07-28 19:21:32.928143] [info] Evento de solicitud de referencia de oxxo recibido + +[2025-07-28 19:21:32.928210] [info] Creando referencia del cliente para OXXO: + +[2025-07-28 19:21:33.084233] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX + +[2025-07-28 19:21:33.084361] [info] Este cliente no tiene adeudos. + +[2025-07-28 19:21:33.084800] [info] Creando referencia del cliente para OXXO: + +[2025-07-28 19:21:33.194279] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX + +[2025-07-28 19:21:33.194410] [info] Este cliente no tiene adeudos. + +[2025-07-28 19:21:33.194869] [info] Creando referencia del cliente para OXXO: + +[2025-07-28 19:21:33.318295] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX + +[2025-07-28 19:21:33.318346] [info] Este cliente no tiene adeudos. + +[2025-07-28 19:25:26.568010] [notice] Logging level set to:debug +[2025-07-28 19:25:26.576582] [debug] valor del webhook: {"uuid":"f5f2da24-1b47-464d-b862-2eb9956f5ff8","changeType":"insert","entity":"invoice","entityId":"2213","eventName":"invoice.add","extraData":{"entity":{"id":2213,"clientId":2,"number":"002163","createdDate":"2025-07-28T13:25:01-0600","dueDate":"2025-08-11T13:25:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-28T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2216,"type":"other","label":"ajuste","price":870,"quantity":1,"total":870,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":null,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":870,"discount":null,"discountLabel":"Descuento","taxes":[],"total":870,"amountPaid":870,"totalUntaxed":870,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":777,"invoiceId":2213,"paymentId":665,"creditNoteId":null,"refundId":null,"amount":120},{"id":778,"invoiceId":2213,"paymentId":666,"creditNoteId":null,"refundId":null,"amount":50},{"id":779,"invoiceId":2213,"paymentId":667,"creditNoteId":null,"refundId":null,"amount":30},{"id":780,"invoiceId":2213,"paymentId":668,"creditNoteId":null,"refundId":null,"amount":300},{"id":781,"invoiceId":2213,"paymentId":669,"creditNoteId":null,"refundId":null,"amount":250},{"id":782,"invoiceId":2213,"paymentId":670,"creditNoteId":null,"refundId":null,"amount":120}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas 31","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-28 19:25:26.874195] [debug] valor el evento recibido por webhook: invoice.add + +[2025-07-28 19:25:26.874387] [debug] Valor de JSON: {"uuid":"f5f2da24-1b47-464d-b862-2eb9956f5ff8","changeType":"insert","entity":"invoice","entityId":"2213","eventName":"invoice.add","extraData":{"entity":{"id":2213,"clientId":2,"number":"002163","createdDate":"2025-07-28T13:25:01-0600","dueDate":"2025-08-11T13:25:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-28T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2216,"type":"other","label":"ajuste","price":870,"quantity":1,"total":870,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":null,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":870,"discount":null,"discountLabel":"Descuento","taxes":[],"total":870,"amountPaid":870,"totalUntaxed":870,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":777,"invoiceId":2213,"paymentId":665,"creditNoteId":null,"refundId":null,"amount":120},{"id":778,"invoiceId":2213,"paymentId":666,"creditNoteId":null,"refundId":null,"amount":50},{"id":779,"invoiceId":2213,"paymentId":667,"creditNoteId":null,"refundId":null,"amount":30},{"id":780,"invoiceId":2213,"paymentId":668,"creditNoteId":null,"refundId":null,"amount":300},{"id":781,"invoiceId":2213,"paymentId":669,"creditNoteId":null,"refundId":null,"amount":250},{"id":782,"invoiceId":2213,"paymentId":670,"creditNoteId":null,"refundId":null,"amount":120}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas 31","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-28 19:25:26.874655] [debug] Adición de Factura + +[2025-07-28 19:25:26.874761] [debug] datos del notification para el invoice add:{"uuid":"f5f2da24-1b47-464d-b862-2eb9956f5ff8","changeType":"insert","entity":"invoice","entityId":2213,"message":null,"clientId":2,"eventName":"invoice.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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"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":{"id":2213,"clientId":2,"number":"002163","createdDate":"2025-07-28T13:25:01-0600","dueDate":"2025-08-11T13:25:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-28T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2216,"type":"other","label":"ajuste","price":870,"quantity":1,"total":870,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":null,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":870,"discount":null,"discountLabel":"Descuento","taxes":[],"total":870,"amountPaid":870,"totalUntaxed":870,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":777,"invoiceId":2213,"paymentId":665,"creditNoteId":null,"refundId":null,"amount":120},{"id":778,"invoiceId":2213,"paymentId":666,"creditNoteId":null,"refundId":null,"amount":50},{"id":779,"invoiceId":2213,"paymentId":667,"creditNoteId":null,"refundId":null,"amount":30},{"id":780,"invoiceId":2213,"paymentId":668,"creditNoteId":null,"refundId":null,"amount":300},{"id":781,"invoiceId":2213,"paymentId":669,"creditNoteId":null,"refundId":null,"amount":250},{"id":782,"invoiceId":2213,"paymentId":670,"creditNoteId":null,"refundId":null,"amount":120}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas 31","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-28 19:25:26.874818] [debug] Account Balance: 0 + +[2025-07-28 19:25:26.874897] [debug] {"uuid":"f5f2da24-1b47-464d-b862-2eb9956f5ff8","changeType":"insert","entity":"invoice","entityId":2213,"message":null,"clientId":2,"eventName":"invoice.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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"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":{"id":2213,"clientId":2,"number":"002163","createdDate":"2025-07-28T13:25:01-0600","dueDate":"2025-08-11T13:25:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-28T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2216,"type":"other","label":"ajuste","price":870,"quantity":1,"total":870,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":null,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":870,"discount":null,"discountLabel":"Descuento","taxes":[],"total":870,"amountPaid":870,"totalUntaxed":870,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":777,"invoiceId":2213,"paymentId":665,"creditNoteId":null,"refundId":null,"amount":120},{"id":778,"invoiceId":2213,"paymentId":666,"creditNoteId":null,"refundId":null,"amount":50},{"id":779,"invoiceId":2213,"paymentId":667,"creditNoteId":null,"refundId":null,"amount":30},{"id":780,"invoiceId":2213,"paymentId":668,"creditNoteId":null,"refundId":null,"amount":300},{"id":781,"invoiceId":2213,"paymentId":669,"creditNoteId":null,"refundId":null,"amount":250},{"id":782,"invoiceId":2213,"paymentId":670,"creditNoteId":null,"refundId":null,"amount":120}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas 31","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-28 19:25:26.875021] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-07-28 19:25:26.875065] [info] Tipo de contacto normalizado: 'whatsapp' +Notificacion data: {"uuid":"f5f2da24-1b47-464d-b862-2eb9956f5ff8","changeType":"insert","entity":"invoice","entityId":2213,"message":null,"clientId":2,"eventName":"invoice.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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"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":{"id":2213,"clientId":2,"number":"002163","createdDate":"2025-07-28T13:25:01-0600","dueDate":"2025-08-11T13:25:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-28T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2216,"type":"other","label":"ajuste","price":870,"quantity":1,"total":870,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":null,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":870,"discount":null,"discountLabel":"Descuento","taxes":[],"total":870,"amountPaid":870,"totalUntaxed":870,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":777,"invoiceId":2213,"paymentId":665,"creditNoteId":null,"refundId":null,"amount":120},{"id":778,"invoiceId":2213,"paymentId":666,"creditNoteId":null,"refundId":null,"amount":50},{"id":779,"invoiceId":2213,"paymentId":667,"creditNoteId":null,"refundId":null,"amount":30},{"id":780,"invoiceId":2213,"paymentId":668,"creditNoteId":null,"refundId":null,"amount":300},{"id":781,"invoiceId":2213,"paymentId":669,"creditNoteId":null,"refundId":null,"amount":250},{"id":782,"invoiceId":2213,"paymentId":670,"creditNoteId":null,"refundId":null,"amount":120}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas 31","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":670,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-17T14:29:55-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":782,"invoiceId":2213,"paymentId":670,"creditNoteId":null,"refundId":null,"amount":120}],"creditAmount":0,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas + +UUID: 7352b597ba6b43cf948a5ae86051fb80 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 120","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"$ 120\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 17\/07\/2025 14:29 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"28\/07\/2025 13:25\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 17\/07\/2025 14:29 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/07\/2025 13:25","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} + +JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲0 está al corriente","Monto Ultimo Pago": "$ 120","Estado": "Activo","Fecha Ultimo Pago": " 17/07/2025 14:29 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "28/07/2025 13:25","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} + +Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"$ 120\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 17/07/2025 14:29 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"28/07/2025 13:25\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 28/07/2025 13:25","Monto Ultimo Pago":"💲 120","Estado":"🟢 Activo ","Saldo Actual":"💲0 está al corriente","Fecha Ultimo Pago":"📆💸 17/07/2025 14:29 con Tarjeta de crédito Stripe 💳"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"$ 120\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 17/07/2025 14:29 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"28/07/2025 13:25\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 28/07/2025 13:25","Monto Ultimo Pago":"💲 120","Estado":"🟢 Activo ","Saldo Actual":"💲0 está al corriente","Fecha Ultimo Pago":"📆💸 17/07/2025 14:29 con Tarjeta de crédito Stripe 💳"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-07-28 19:25:37.563909] [notice] Logging level set to:debug +[2025-07-28 19:25:37.566559] [debug] valor del webhook: {"uuid":"91cb8142-0941-496a-8fc5-e08269577a7b","changeType":"insert","entity":"invoice","entityId":"2214","eventName":"invoice.add","extraData":{"entity":{"id":2214,"clientId":2,"number":"002164","createdDate":"2025-07-28T13:25:32-0600","dueDate":"2025-08-11T13:25:32-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-28T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2217,"type":"service","label":"Basico 300 01\/09\/2025 \u2013 30\/09\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":"Daniel Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas 31","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-28 19:25:37.747226] [debug] valor el evento recibido por webhook: invoice.add + +[2025-07-28 19:25:37.747379] [debug] Valor de JSON: {"uuid":"91cb8142-0941-496a-8fc5-e08269577a7b","changeType":"insert","entity":"invoice","entityId":"2214","eventName":"invoice.add","extraData":{"entity":{"id":2214,"clientId":2,"number":"002164","createdDate":"2025-07-28T13:25:32-0600","dueDate":"2025-08-11T13:25:32-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-28T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2217,"type":"service","label":"Basico 300 01\/09\/2025 \u2013 30\/09\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":"Daniel Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas 31","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-28 19:25:37.747536] [debug] Adición de Factura + +[2025-07-28 19:25:37.747641] [debug] datos del notification para el invoice add:{"uuid":"91cb8142-0941-496a-8fc5-e08269577a7b","changeType":"insert","entity":"invoice","entityId":2214,"message":null,"clientId":2,"eventName":"invoice.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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"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":{"id":2214,"clientId":2,"number":"002164","createdDate":"2025-07-28T13:25:32-0600","dueDate":"2025-08-11T13:25:32-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-28T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2217,"type":"service","label":"Basico 300 01\/09\/2025 \u2013 30\/09\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":"Daniel Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas 31","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-28 19:25:37.747706] [debug] Account Balance: -300 + +[2025-07-28 19:25:37.747772] [debug] {"uuid":"91cb8142-0941-496a-8fc5-e08269577a7b","changeType":"insert","entity":"invoice","entityId":2214,"message":null,"clientId":2,"eventName":"invoice.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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"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":{"id":2214,"clientId":2,"number":"002164","createdDate":"2025-07-28T13:25:32-0600","dueDate":"2025-08-11T13:25:32-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-28T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2217,"type":"service","label":"Basico 300 01\/09\/2025 \u2013 30\/09\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":"Daniel Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas 31","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-28 19:25:37.747849] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-07-28 19:25:37.747888] [info] Tipo de contacto normalizado: 'whatsapp' +Notificacion data: {"uuid":"91cb8142-0941-496a-8fc5-e08269577a7b","changeType":"insert","entity":"invoice","entityId":2214,"message":null,"clientId":2,"eventName":"invoice.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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"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":{"id":2214,"clientId":2,"number":"002164","createdDate":"2025-07-28T13:25:32-0600","dueDate":"2025-08-11T13:25:32-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-28T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2217,"type":"service","label":"Basico 300 01\/09\/2025 \u2013 30\/09\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":"Daniel Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas 31","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":670,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-17T14:29:55-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":782,"invoiceId":2213,"paymentId":670,"creditNoteId":null,"refundId":null,"amount":120}],"creditAmount":0,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas + +UUID: 7352b597ba6b43cf948a5ae86051fb80 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2300 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 120","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2300 pendientes\",\"Monto Ultimo Pago\": \"$ 120\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 17\/07\/2025 14:29 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"28\/07\/2025 13:25\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 17\/07\/2025 14:29 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/07\/2025 13:25","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} + +JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲300 pendientes","Monto Ultimo Pago": "$ 120","Estado": "Activo","Fecha Ultimo Pago": " 17/07/2025 14:29 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "28/07/2025 13:25","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} + +Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲300 pendientes\",\"Monto Ultimo Pago\": \"$ 120\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 17/07/2025 14:29 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"28/07/2025 13:25\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 28/07/2025 13:25","Monto Ultimo Pago":"💲 120","Estado":"🟢 Activo ","Saldo Actual":"💲300 pendientes","Fecha Ultimo Pago":"📆💸 17/07/2025 14:29 con Tarjeta de crédito Stripe 💳"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲300 pendientes\",\"Monto Ultimo Pago\": \"$ 120\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 17/07/2025 14:29 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"28/07/2025 13:25\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 28/07/2025 13:25","Monto Ultimo Pago":"💲 120","Estado":"🟢 Activo ","Saldo Actual":"💲300 pendientes","Fecha Ultimo Pago":"📆💸 17/07/2025 14:29 con Tarjeta de crédito Stripe 💳"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-07-28 19:25:55.353873] [notice] Logging level set to:debug +[2025-07-28 19:25:55.354320] [debug] valor del webhook: { +"type": "oxxo.request", +"client_id": 2, +"amount": 0 +} + +[2025-07-28 19:25:55.354449] [info] No UUID found in the webhook data +[2025-07-28 19:25:55.354535] [info] Evento de solicitud de referencia de oxxo recibido + +[2025-07-28 19:25:55.354612] [info] Creando referencia del cliente para OXXO: + +[2025-07-28 19:25:55.482171] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX + +[2025-07-28 19:25:55.482301] [info] Creando referencia en Stripe por 300 para el cliente cus_PetN1dhr4rx0kX + +[2025-07-28 19:25:58.139873] [info] Referencia OXXO: 12345678901234657890123456789012 + +[2025-07-28 19:25:58.140556] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TbFRkaFFnOU5Rd3RtcWdZZGhGNkxuRmozcmFRTmh40100ZS088mdA + +[2025-07-28 19:25:58.140762] [info] Referencia OXXO creada correctamente. + +[2025-07-28 19:26:00.530636] [debug] Status Code: 200 +[2025-07-28 19:26:00.530930] [debug] Content Type: image/jpeg +[2025-07-28 19:26:00.532181] [debug] ¡Imagen guardada exitosamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1753730758.jpeg +Subiendo voucher a worpdpress + +file_to_upload: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1753730758.jpeg + +Conexión FTP exitosa + +El archivo ha sido cargado exitosamente. + +La URL es: https://siip.mx/wp/wp-content/uploads/vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1753730758.jpeg + +No se pudo obtener la lista de archivos de la carpeta FTP + +[2025-07-28 19:26:02.118480] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TbFRkaFFnOU5Rd3RtcWdZZGhGNkxuRmozcmFRTmh40100ZS088mdA","oxxo_reference": "12345678901234657890123456789012","voucher_image_url": "https://siip.mx/wp/wp-content/uploads/vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1753730758.jpeg","error": "","failDescription": "","clientID": "2","clientFullName": "Daniel Humberto Soto Villegas","amount": "300"} +[2025-07-28 19:27:11.642201] [notice] Logging level set to:debug +[2025-07-28 19:27:11.642359] [debug] valor del webhook: { +"type": "oxxo.request", +"client_id": 2, +"amount": "100" +} + +[2025-07-28 19:27:11.642430] [info] No UUID found in the webhook data +[2025-07-28 19:27:11.642460] [info] Evento de solicitud de referencia de oxxo recibido + +[2025-07-28 19:27:11.642486] [info] Referencia personalizada, Valor del monto: 100 + +[2025-07-28 19:27:11.642524] [info] Creando referencia del cliente para OXXO: + +[2025-07-28 19:27:11.784871] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX + +[2025-07-28 19:27:11.785011] [info] Monto proporcionado directamente: 100 + +[2025-07-28 19:27:11.785056] [info] Creando referencia en Stripe por 100 para el cliente cus_PetN1dhr4rx0kX + +[2025-07-28 19:27:13.389933] [info] Referencia OXXO: 12345678901234657890123456789012 + +[2025-07-28 19:27:13.390481] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TbFRlcGRmc1YweFdIbHpRM1hGS3Z0VUlKZ2hwejJY0100Leti1cmt + +[2025-07-28 19:27:13.390719] [info] Referencia OXXO creada correctamente. + +[2025-07-28 19:27:15.577925] [debug] Status Code: 200 +[2025-07-28 19:27:15.578430] [debug] Content Type: image/jpeg +[2025-07-28 19:27:15.579910] [debug] ¡Imagen guardada exitosamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1753730833.jpeg +Subiendo voucher a worpdpress + +file_to_upload: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1753730833.jpeg + +Conexión FTP exitosa + +El archivo ha sido cargado exitosamente. + +La URL es: https://siip.mx/wp/wp-content/uploads/vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1753730833.jpeg + +No se pudo obtener la lista de archivos de la carpeta FTP + +[2025-07-28 19:27:17.470942] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"12345678901234657890123456789012","url":"https:\/\/payments.stripe.com\/oxxo\/voucher\/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TbFRlcGRmc1YweFdIbHpRM1hGS3Z0VUlKZ2hwejJY0100Leti1cmt","error":"","failDescription":"","clientID":2,"clientFullName":"Daniel Humberto Soto Villegas","amount":"100","voucher_image_url":"https:\/\/siip.mx\/wp\/wp-content\/uploads\/vouchers_oxxo\/voucher_Daniel_Humberto_Soto_Villegas_1753730833.jpeg"} + +[2025-07-28 19:27:17.471101] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TbFRlcGRmc1YweFdIbHpRM1hGS3Z0VUlKZ2hwejJY0100Leti1cmt","oxxo_reference": "12345678901234657890123456789012","voucher_image_url": "https://siip.mx/wp/wp-content/uploads/vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1753730833.jpeg","error": "","failDescription": "","clientID": "2","clientFullName": "Daniel Humberto Soto Villegas","amount": "100"} +[2025-07-28 19:30:17.452227] [notice] Logging level set to:debug +[2025-07-28 19:30:17.452590] [debug] valor del webhook: {"uuid":"b8aedf8e-993e-4ae2-99a4-1c65e3869a79","changeType":"edit","entity":"invoice","entityId":"2214","eventName":"invoice.edit","extraData":{"entity":{"id":2214,"clientId":2,"number":"002164","createdDate":"2025-07-28T13:25:32-0600","dueDate":"2025-08-11T13:25:32-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-28T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2217,"type":"service","label":"Basico 300 01\/09\/2025 \u2013 30\/09\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":100,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":200,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":783,"invoiceId":2214,"paymentId":671,"creditNoteId":null,"refundId":null,"amount":100}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas 31","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":{"id":2214,"clientId":2,"number":"002164","createdDate":"2025-07-28T13:25:32-0600","dueDate":"2025-08-11T13:25:32-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-28T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2217,"type":"service","label":"Basico 300 01\/09\/2025 \u2013 30\/09\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":783,"invoiceId":2214,"paymentId":671,"creditNoteId":null,"refundId":null,"amount":100}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas 31","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false}}} + +[2025-07-28 19:30:17.651782] [debug] valor el evento recibido por webhook: invoice.edit + +[2025-07-28 19:30:17.651988] [debug] Valor de JSON: {"uuid":"b8aedf8e-993e-4ae2-99a4-1c65e3869a79","changeType":"edit","entity":"invoice","entityId":"2214","eventName":"invoice.edit","extraData":{"entity":{"id":2214,"clientId":2,"number":"002164","createdDate":"2025-07-28T13:25:32-0600","dueDate":"2025-08-11T13:25:32-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-28T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2217,"type":"service","label":"Basico 300 01\/09\/2025 \u2013 30\/09\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":100,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":200,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":783,"invoiceId":2214,"paymentId":671,"creditNoteId":null,"refundId":null,"amount":100}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas 31","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":{"id":2214,"clientId":2,"number":"002164","createdDate":"2025-07-28T13:25:32-0600","dueDate":"2025-08-11T13:25:32-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-28T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2217,"type":"service","label":"Basico 300 01\/09\/2025 \u2013 30\/09\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":783,"invoiceId":2214,"paymentId":671,"creditNoteId":null,"refundId":null,"amount":100}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas 31","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false}}} + +[2025-07-28 19:30:17.652673] [debug] Edición de Factura + +[2025-07-28 19:30:17.652815] [debug] {"uuid":"b8aedf8e-993e-4ae2-99a4-1c65e3869a79","changeType":"edit","entity":"invoice","entityId":2214,"message":null,"clientId":2,"eventName":"invoice.edit","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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-200,"accountCredit":0,"accountOutstanding":200,"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":{"id":2214,"clientId":2,"number":"002164","createdDate":"2025-07-28T13:25:32-0600","dueDate":"2025-08-11T13:25:32-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-28T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2217,"type":"service","label":"Basico 300 01\/09\/2025 \u2013 30\/09\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":100,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":200,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":783,"invoiceId":2214,"paymentId":671,"creditNoteId":null,"refundId":null,"amount":100}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas 31","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-28 19:30:17.655297] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-07-28 19:30:17.655390] [info] Tipo de contacto normalizado: 'whatsapp' +Notificacion data: {"uuid":"b8aedf8e-993e-4ae2-99a4-1c65e3869a79","changeType":"edit","entity":"invoice","entityId":2214,"message":null,"clientId":2,"eventName":"invoice.edit","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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-200,"accountCredit":0,"accountOutstanding":200,"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":{"id":2214,"clientId":2,"number":"002164","createdDate":"2025-07-28T13:25:32-0600","dueDate":"2025-08-11T13:25:32-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-28T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2217,"type":"service","label":"Basico 300 01\/09\/2025 \u2013 30\/09\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":100,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":200,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":783,"invoiceId":2214,"paymentId":671,"creditNoteId":null,"refundId":null,"amount":100}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas 31","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":671,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-28T13:30:16-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":783,"invoiceId":2214,"paymentId":671,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas + +UUID: 7352b597ba6b43cf948a5ae86051fb80 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2200 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 100","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2200 pendientes\",\"Monto Ultimo Pago\": \"$ 100\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 28\/07\/2025 13:30 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"28\/07\/2025 13:30\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 28\/07\/2025 13:30 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/07\/2025 13:30","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} + +JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲200 pendientes","Monto Ultimo Pago": "$ 100","Estado": "Activo","Fecha Ultimo Pago": " 28/07/2025 13:30 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "28/07/2025 13:30","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} + +Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲200 pendientes\",\"Monto Ultimo Pago\": \"$ 100\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 28/07/2025 13:30 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"28/07/2025 13:30\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 28/07/2025 13:30","Monto Ultimo Pago":"💲 100","Estado":"🟢 Activo ","Saldo Actual":"💲200 pendientes","Fecha Ultimo Pago":"📆💸 28/07/2025 13:30 con Tarjeta de crédito Stripe 💳"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲200 pendientes\",\"Monto Ultimo Pago\": \"$ 100\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 28/07/2025 13:30 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"28/07/2025 13:30\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 28/07/2025 13:30","Monto Ultimo Pago":"💲 100","Estado":"🟢 Activo ","Saldo Actual":"💲200 pendientes","Fecha Ultimo Pago":"📆💸 28/07/2025 13:30 con Tarjeta de crédito Stripe 💳"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-07-28 19:30:21.263533] [notice] Logging level set to:debug +[2025-07-28 19:30:21.263850] [debug] valor del webhook: {"uuid":"00ac5e21-c680-4231-af84-dcb7ee61fb9f","changeType":"insert","entity":"payment","entityId":"671","eventName":"payment.add","extraData":{"entity":{"id":671,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-28T13:30:16-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":783,"invoiceId":2214,"paymentId":671,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":null}} + +[2025-07-28 19:30:21.403570] [debug] valor el evento recibido por webhook: payment.add + +[2025-07-28 19:30:21.403703] [debug] Valor de JSON: {"uuid":"00ac5e21-c680-4231-af84-dcb7ee61fb9f","changeType":"insert","entity":"payment","entityId":"671","eventName":"payment.add","extraData":{"entity":{"id":671,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-28T13:30:16-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":783,"invoiceId":2214,"paymentId":671,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":null}} + +[2025-07-28 19:30:21.404088] [debug] Notification encodificado en JSON:{"uuid":"00ac5e21-c680-4231-af84-dcb7ee61fb9f","changeType":"insert","entity":"payment","entityId":671,"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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-200,"accountCredit":0,"accountOutstanding":200,"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":671,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-28T13:30:16-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":783,"invoiceId":2214,"paymentId":671,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]}} + +[2025-07-28 19:30:21.404149] [debug] valor del payment data: {"id":671,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-28T13:30:16-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":783,"invoiceId":2214,"paymentId":671,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]} + +[2025-07-28 19:30:21.404261] [info] {"WhatsApp":["5214181148783"]} +[2025-07-28 19:30:21.404298] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-07-28 19:30:21.404323] [info] Tipo de contacto normalizado: 'whatsapp' +[2025-07-28 19:30:21.404354] [debug] ***Se notifica y actualiza al cliente sobre su pago*** + +Eviando comprobante de pago al cliente: 2 con número: 5214181148783 + +Error al manejar el comprobante de pago: Client error: `GET https://172.16.5.134/crm/api/v1.0/payments/671/pdf` resulted in a `401 Unauthorized` response: +{"code":401,"message":"Authentication Required"} + + +[2025-07-28 19:30:21.520699] [warning] No se pudo enviar el comprobante para este cliente + +[2025-07-28 19:30:21.631720] [notice] Logging level set to:debug +[2025-07-28 19:30:21.631805] [debug] valor del webhook: {"uuid":"06146a57-5144-4fe6-906a-c59ff78bad3f","changeType":"edit","entity":"payment","entityId":"671","eventName":"payment.edit","extraData":{"entity":{"id":671,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-28T13:30:16-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":783,"invoiceId":2214,"paymentId":671,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":671,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-28T13:30:16-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":783,"invoiceId":2214,"paymentId":671,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]}}} + +[2025-07-28 19:30:21.747622] [debug] valor el evento recibido por webhook: payment.edit + +[2025-07-28 19:30:21.747675] [debug] Valor de JSON: {"uuid":"06146a57-5144-4fe6-906a-c59ff78bad3f","changeType":"edit","entity":"payment","entityId":"671","eventName":"payment.edit","extraData":{"entity":{"id":671,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-28T13:30:16-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":783,"invoiceId":2214,"paymentId":671,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":671,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-28T13:30:16-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":783,"invoiceId":2214,"paymentId":671,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]}}} + +[2025-07-28 20:16:32.280926] [notice] Logging level set to:debug +[2025-07-28 20:16:32.281332] [debug] valor del webhook: { +"type": "oxxo.request", +"client_id": 2, +"amount": "$120" +} + +[2025-07-28 20:16:32.281413] [info] No UUID found in the webhook data +[2025-07-28 20:16:32.281429] [info] Evento de solicitud de referencia de oxxo recibido + +[2025-07-28 20:16:32.281436] [info] Referencia personalizada, Valor del monto: $120 + +[2025-07-28 20:16:32.281452] [info] Creando referencia del cliente para OXXO: + +[2025-07-28 20:16:32.394663] [error] Error al obtener el cliente en CRM (Error 401): Client error: `GET https://172.16.5.134/crm/api/v1.0/clients/2` resulted in a `401 Unauthorized` response: +{"code":401,"message":"Authentication Required"} + + +[2025-07-28 20:16:32.395203] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"","url":"","error":"errorGetClient","failDescription":"Error al obtener el cliente en CRM: 2","clientID":2,"clientFullName":"","amount":"$120","voucher_image_url":""} + +[2025-07-28 20:16:32.395292] [info] Creando referencia del cliente para OXXO: + +[2025-07-28 20:16:32.468811] [error] Error al obtener el cliente en CRM (Error 401): Client error: `GET https://172.16.5.134/crm/api/v1.0/clients/2` resulted in a `401 Unauthorized` response: +{"code":401,"message":"Authentication Required"} + + +[2025-07-28 20:16:32.469347] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"","url":"","error":"errorGetClient","failDescription":"Error al obtener el cliente en CRM: 2","clientID":2,"clientFullName":"","amount":"$120","voucher_image_url":""} + +[2025-07-28 20:16:32.469434] [info] Creando referencia del cliente para OXXO: + +[2025-07-28 20:16:32.549936] [error] Error al obtener el cliente en CRM (Error 401): Client error: `GET https://172.16.5.134/crm/api/v1.0/clients/2` resulted in a `401 Unauthorized` response: +{"code":401,"message":"Authentication Required"} + + +[2025-07-28 20:16:32.550622] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"","url":"","error":"errorGetClient","failDescription":"Error al obtener el cliente en CRM: 2","clientID":2,"clientFullName":"","amount":"$120","voucher_image_url":""} + +[2025-07-28 20:28:17.263937] [notice] Logging level set to:debug +[2025-07-28 20:28:17.264316] [debug] valor del webhook: {"uuid":"e6fa6b00-d5d7-4a48-aa4b-d0d3d487e870","changeType":"edit","entity":"invoice","entityId":"2214","eventName":"invoice.edit","extraData":{"entity":{"id":2214,"clientId":2,"number":"002164","createdDate":"2025-07-28T13:25:32-0600","dueDate":"2025-08-11T13:25:32-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-28T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2217,"type":"service","label":"Basico 300 01\/09\/2025 \u2013 30\/09\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":783,"invoiceId":2214,"paymentId":671,"creditNoteId":null,"refundId":null,"amount":100},{"id":784,"invoiceId":2214,"paymentId":672,"creditNoteId":null,"refundId":null,"amount":200}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas 31","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":{"id":2214,"clientId":2,"number":"002164","createdDate":"2025-07-28T13:25:32-0600","dueDate":"2025-08-11T13:25:32-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-28T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2217,"type":"service","label":"Basico 300 01\/09\/2025 \u2013 30\/09\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":100,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":200,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":783,"invoiceId":2214,"paymentId":671,"creditNoteId":null,"refundId":null,"amount":100},{"id":784,"invoiceId":2214,"paymentId":672,"creditNoteId":null,"refundId":null,"amount":200}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas 31","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false}}} + +[2025-07-28 20:28:17.451524] [debug] valor el evento recibido por webhook: invoice.edit + +[2025-07-28 20:28:17.451754] [debug] Valor de JSON: {"uuid":"e6fa6b00-d5d7-4a48-aa4b-d0d3d487e870","changeType":"edit","entity":"invoice","entityId":"2214","eventName":"invoice.edit","extraData":{"entity":{"id":2214,"clientId":2,"number":"002164","createdDate":"2025-07-28T13:25:32-0600","dueDate":"2025-08-11T13:25:32-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-28T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2217,"type":"service","label":"Basico 300 01\/09\/2025 \u2013 30\/09\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":783,"invoiceId":2214,"paymentId":671,"creditNoteId":null,"refundId":null,"amount":100},{"id":784,"invoiceId":2214,"paymentId":672,"creditNoteId":null,"refundId":null,"amount":200}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas 31","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":{"id":2214,"clientId":2,"number":"002164","createdDate":"2025-07-28T13:25:32-0600","dueDate":"2025-08-11T13:25:32-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-28T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2217,"type":"service","label":"Basico 300 01\/09\/2025 \u2013 30\/09\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":100,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":200,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":783,"invoiceId":2214,"paymentId":671,"creditNoteId":null,"refundId":null,"amount":100},{"id":784,"invoiceId":2214,"paymentId":672,"creditNoteId":null,"refundId":null,"amount":200}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas 31","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false}}} + +[2025-07-28 20:28:17.452039] [debug] Edición de Factura + +[2025-07-28 20:28:17.452157] [debug] {"uuid":"e6fa6b00-d5d7-4a48-aa4b-d0d3d487e870","changeType":"edit","entity":"invoice","entityId":2214,"message":null,"clientId":2,"eventName":"invoice.edit","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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":100,"accountCredit":100,"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":{"id":2214,"clientId":2,"number":"002164","createdDate":"2025-07-28T13:25:32-0600","dueDate":"2025-08-11T13:25:32-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-28T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2217,"type":"service","label":"Basico 300 01\/09\/2025 \u2013 30\/09\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":783,"invoiceId":2214,"paymentId":671,"creditNoteId":null,"refundId":null,"amount":100},{"id":784,"invoiceId":2214,"paymentId":672,"creditNoteId":null,"refundId":null,"amount":200}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas 31","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-28 20:28:17.452267] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-07-28 20:28:17.452311] [info] Tipo de contacto normalizado: 'whatsapp' +Notificacion data: {"uuid":"e6fa6b00-d5d7-4a48-aa4b-d0d3d487e870","changeType":"edit","entity":"invoice","entityId":2214,"message":null,"clientId":2,"eventName":"invoice.edit","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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":100,"accountCredit":100,"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":{"id":2214,"clientId":2,"number":"002164","createdDate":"2025-07-28T13:25:32-0600","dueDate":"2025-08-11T13:25:32-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-28T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2217,"type":"service","label":"Basico 300 01\/09\/2025 \u2013 30\/09\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":783,"invoiceId":2214,"paymentId":671,"creditNoteId":null,"refundId":null,"amount":100},{"id":784,"invoiceId":2214,"paymentId":672,"creditNoteId":null,"refundId":null,"amount":200}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas 31","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":672,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-28T14:28:16-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":784,"invoiceId":2214,"paymentId":672,"creditNoteId":null,"refundId":null,"amount":200}],"creditAmount":100,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas + +UUID: 7352b597ba6b43cf948a5ae86051fb80 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2100 a favor","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2100 a favor\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 28\/07\/2025 14:28 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"28\/07\/2025 14:28\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 28\/07\/2025 14:28 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/07\/2025 14:28","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} + +JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲100 a favor","Monto Ultimo Pago": "$ 300","Estado": "Activo","Fecha Ultimo Pago": " 28/07/2025 14:28 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "28/07/2025 14:28","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} + +Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Nombre":"👤 Daniel Humberto Soto Villegas","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲100 a favor\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 28/07/2025 14:28 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"28/07/2025 14:28\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 28/07/2025 14:28","Monto Ultimo Pago":"💲 300","Estado":"🟢 Activo ","Saldo Actual":"💲100 a favor","Fecha Ultimo Pago":"📆💸 28/07/2025 14:28 con Tarjeta de crédito Stripe 💳"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Nombre":"👤 Daniel Humberto Soto Villegas","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲100 a favor\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 28/07/2025 14:28 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"28/07/2025 14:28\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 28/07/2025 14:28","Monto Ultimo Pago":"💲 300","Estado":"🟢 Activo ","Saldo Actual":"💲100 a favor","Fecha Ultimo Pago":"📆💸 28/07/2025 14:28 con Tarjeta de crédito Stripe 💳"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-07-28 20:28:20.564655] [notice] Logging level set to:debug +[2025-07-28 20:28:20.564831] [debug] valor del webhook: {"uuid":"ef151967-c14b-483c-9738-ec6cd3f183cf","changeType":"insert","entity":"payment","entityId":"672","eventName":"payment.add","extraData":{"entity":{"id":672,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-28T14:28:16-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":784,"invoiceId":2214,"paymentId":672,"creditNoteId":null,"refundId":null,"amount":200}],"creditAmount":100,"userId":null,"attributes":[]},"entityBeforeEdit":null}} + +[2025-07-28 20:28:20.724329] [debug] valor el evento recibido por webhook: payment.add + +[2025-07-28 20:28:20.724395] [debug] Valor de JSON: {"uuid":"ef151967-c14b-483c-9738-ec6cd3f183cf","changeType":"insert","entity":"payment","entityId":"672","eventName":"payment.add","extraData":{"entity":{"id":672,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-28T14:28:16-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":784,"invoiceId":2214,"paymentId":672,"creditNoteId":null,"refundId":null,"amount":200}],"creditAmount":100,"userId":null,"attributes":[]},"entityBeforeEdit":null}} + +[2025-07-28 20:28:20.724567] [debug] Notification encodificado en JSON:{"uuid":"ef151967-c14b-483c-9738-ec6cd3f183cf","changeType":"insert","entity":"payment","entityId":672,"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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":100,"accountCredit":100,"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":672,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-28T14:28:16-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":784,"invoiceId":2214,"paymentId":672,"creditNoteId":null,"refundId":null,"amount":200}],"creditAmount":100,"userId":null,"attributes":[]}} + +[2025-07-28 20:28:20.724600] [debug] valor del payment data: {"id":672,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-28T14:28:16-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":784,"invoiceId":2214,"paymentId":672,"creditNoteId":null,"refundId":null,"amount":200}],"creditAmount":100,"userId":null,"attributes":[]} + +[2025-07-28 20:28:20.724819] [info] {"WhatsApp":["5214181148783"]} +[2025-07-28 20:28:20.724838] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-07-28 20:28:20.724847] [info] Tipo de contacto normalizado: 'whatsapp' +[2025-07-28 20:28:20.724857] [debug] ***Se notifica y actualiza al cliente sobre su pago*** + +Eviando comprobante de pago al cliente: 2 con número: 5214181148783 + +Error al manejar el comprobante de pago: Client error: `GET https://172.16.5.134/crm/api/v1.0/payments/672/pdf` resulted in a `401 Unauthorized` response: +{"code":401,"message":"Authentication Required"} + + +[2025-07-28 20:28:20.836646] [warning] No se pudo enviar el comprobante para este cliente + +[2025-07-28 20:28:20.950511] [notice] Logging level set to:debug +[2025-07-28 20:28:20.950696] [debug] valor del webhook: {"uuid":"3bfad67b-797c-41f7-bcff-7e42ae86861b","changeType":"edit","entity":"payment","entityId":"672","eventName":"payment.edit","extraData":{"entity":{"id":672,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-28T14:28:16-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":784,"invoiceId":2214,"paymentId":672,"creditNoteId":null,"refundId":null,"amount":200}],"creditAmount":100,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":672,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-28T14:28:16-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":784,"invoiceId":2214,"paymentId":672,"creditNoteId":null,"refundId":null,"amount":200}],"creditAmount":100,"userId":null,"attributes":[]}}} + +[2025-07-28 20:28:21.070863] [debug] valor el evento recibido por webhook: payment.edit + +[2025-07-28 20:28:21.071013] [debug] Valor de JSON: {"uuid":"3bfad67b-797c-41f7-bcff-7e42ae86861b","changeType":"edit","entity":"payment","entityId":"672","eventName":"payment.edit","extraData":{"entity":{"id":672,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-28T14:28:16-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":784,"invoiceId":2214,"paymentId":672,"creditNoteId":null,"refundId":null,"amount":200}],"creditAmount":100,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":672,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-28T14:28:16-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":784,"invoiceId":2214,"paymentId":672,"creditNoteId":null,"refundId":null,"amount":200}],"creditAmount":100,"userId":null,"attributes":[]}}} + +[2025-07-28 20:38:48.492378] [notice] Logging level set to:debug +[2025-07-28 20:38:48.492675] [debug] valor del webhook: { +"type": "oxxo.request", +"client_id": 2, +"amount": "$120" +} + +[2025-07-28 20:38:48.492788] [info] No UUID found in the webhook data +[2025-07-28 20:38:48.492882] [info] Evento de solicitud de referencia de oxxo recibido + +[2025-07-28 20:38:48.492953] [info] Referencia personalizada, Valor del monto: $120 + +[2025-07-28 20:38:48.493027] [info] Creando referencia del cliente para OXXO: + +[2025-07-28 20:38:48.596466] [error] Error al obtener el cliente en CRM (Error 401): Client error: `GET https://172.16.5.134/crm/api/v1.0/clients/2` resulted in a `401 Unauthorized` response: +{"code":401,"message":"Authentication Required"} + + +[2025-07-28 20:38:48.597043] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"","url":"","error":"errorGetClient","failDescription":"Error al obtener el cliente en CRM: 2","clientID":2,"clientFullName":"","amount":"$120","voucher_image_url":""} + +[2025-07-28 20:38:48.597157] [info] Creando referencia del cliente para OXXO: + +[2025-07-28 20:38:48.694930] [error] Error al obtener el cliente en CRM (Error 401): Client error: `GET https://172.16.5.134/crm/api/v1.0/clients/2` resulted in a `401 Unauthorized` response: +{"code":401,"message":"Authentication Required"} + + +[2025-07-28 20:38:48.695380] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"","url":"","error":"errorGetClient","failDescription":"Error al obtener el cliente en CRM: 2","clientID":2,"clientFullName":"","amount":"$120","voucher_image_url":""} + +[2025-07-28 20:38:48.695475] [info] Creando referencia del cliente para OXXO: + +[2025-07-28 20:38:48.773040] [error] Error al obtener el cliente en CRM (Error 401): Client error: `GET https://172.16.5.134/crm/api/v1.0/clients/2` resulted in a `401 Unauthorized` response: +{"code":401,"message":"Authentication Required"} + + +[2025-07-28 20:38:48.773473] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"","url":"","error":"errorGetClient","failDescription":"Error al obtener el cliente en CRM: 2","clientID":2,"clientFullName":"","amount":"$120","voucher_image_url":""} + +[2025-07-28 20:39:12.570755] [notice] Logging level set to:debug +[2025-07-28 20:39:12.571203] [debug] valor del webhook: { +"type": "oxxo.request", +"client_id": 2, +"amount": "120" +} + +[2025-07-28 20:39:12.571340] [info] No UUID found in the webhook data +[2025-07-28 20:39:12.571418] [info] Evento de solicitud de referencia de oxxo recibido + +[2025-07-28 20:39:12.571475] [info] Referencia personalizada, Valor del monto: 120 + +[2025-07-28 20:39:12.571535] [info] Creando referencia del cliente para OXXO: + +[2025-07-28 20:39:12.660475] [error] Error al obtener el cliente en CRM (Error 401): Client error: `GET https://172.16.5.134/crm/api/v1.0/clients/2` resulted in a `401 Unauthorized` response: +{"code":401,"message":"Authentication Required"} + + +[2025-07-28 20:39:12.660968] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"","url":"","error":"errorGetClient","failDescription":"Error al obtener el cliente en CRM: 2","clientID":2,"clientFullName":"","amount":"120","voucher_image_url":""} + +[2025-07-28 20:39:12.661061] [info] Creando referencia del cliente para OXXO: + +[2025-07-28 20:39:12.734368] [error] Error al obtener el cliente en CRM (Error 401): Client error: `GET https://172.16.5.134/crm/api/v1.0/clients/2` resulted in a `401 Unauthorized` response: +{"code":401,"message":"Authentication Required"} + + +[2025-07-28 20:39:12.734778] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"","url":"","error":"errorGetClient","failDescription":"Error al obtener el cliente en CRM: 2","clientID":2,"clientFullName":"","amount":"120","voucher_image_url":""} + +[2025-07-28 20:39:12.734870] [info] Creando referencia del cliente para OXXO: + +[2025-07-28 20:39:12.810878] [error] Error al obtener el cliente en CRM (Error 401): Client error: `GET https://172.16.5.134/crm/api/v1.0/clients/2` resulted in a `401 Unauthorized` response: +{"code":401,"message":"Authentication Required"} + + +[2025-07-28 20:39:12.811481] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"","url":"","error":"errorGetClient","failDescription":"Error al obtener el cliente en CRM: 2","clientID":2,"clientFullName":"","amount":"120","voucher_image_url":""} + +[2025-07-28 21:23:14.390568] [notice] Logging level set to:debug +[2025-07-28 21:23:14.390903] [debug] valor del webhook: { +"type": "oxxo.request", +"client_id": 2, +"amount": "120" +} + +[2025-07-28 21:23:14.391041] [info] No UUID found in the webhook data +[2025-07-28 21:23:14.391153] [info] Evento de solicitud de referencia de oxxo recibido + +[2025-07-28 21:23:14.391243] [info] Referencia personalizada, Valor del monto: 120 + +[2025-07-28 21:23:14.391336] [info] Creando referencia del cliente para OXXO: + +[2025-07-28 21:23:14.487656] [error] Error al obtener el cliente en CRM (Error 401): Client error: `GET https://172.16.5.134/crm/api/v1.0/clients/2` resulted in a `401 Unauthorized` response: +{"code":401,"message":"Authentication Required"} + + +[2025-07-28 21:23:14.488394] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"","url":"","error":"errorGetClient","failDescription":"Error al obtener el cliente en CRM: 2","clientID":2,"clientFullName":"","amount":"120","voucher_image_url":""} + +[2025-07-28 21:23:14.488495] [info] Creando referencia del cliente para OXXO: + +[2025-07-28 21:23:14.561542] [error] Error al obtener el cliente en CRM (Error 401): Client error: `GET https://172.16.5.134/crm/api/v1.0/clients/2` resulted in a `401 Unauthorized` response: +{"code":401,"message":"Authentication Required"} + + +[2025-07-28 21:23:14.562108] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"","url":"","error":"errorGetClient","failDescription":"Error al obtener el cliente en CRM: 2","clientID":2,"clientFullName":"","amount":"120","voucher_image_url":""} + +[2025-07-28 21:23:14.562192] [info] Creando referencia del cliente para OXXO: + +[2025-07-28 21:23:14.647078] [error] Error al obtener el cliente en CRM (Error 401): Client error: `GET https://172.16.5.134/crm/api/v1.0/clients/2` resulted in a `401 Unauthorized` response: +{"code":401,"message":"Authentication Required"} + + +[2025-07-28 21:23:14.647624] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"","url":"","error":"errorGetClient","failDescription":"Error al obtener el cliente en CRM: 2","clientID":2,"clientFullName":"","amount":"120","voucher_image_url":""} + +[2025-07-30 17:12:02.372308] [notice] Logging level set to:debug +[2025-07-30 17:12:02.372437] [debug] valor del webhook: { "type": "oxxo.request", "client_id": 2, "amount": 120 } -[2025-06-09 19:09:34.077923] [info] No UUID found in the webhook data -[2025-06-09 19:09:34.077956] [info] Evento de solicitud de referencia de oxxo recibido +[2025-07-30 17:12:02.372467] [info] No UUID found in the webhook data +[2025-07-30 17:12:02.372493] [info] Evento de solicitud de referencia de oxxo recibido -[2025-06-09 19:09:34.077981] [info] Referencia persnoalizada, Valor del monto: 120 +[2025-07-30 17:12:02.372503] [info] Referencia personalizada, Valor del monto: 120 -[2025-06-09 19:09:34.078016] [info] Creando referencia del cliente para OXXO: +[2025-07-30 17:12:02.372514] [info] Creando referencia del cliente para OXXO: -[2025-06-09 19:09:34.202605] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX +[2025-07-30 17:12:02.510895] [error] Error al obtener el cliente en CRM (Error 401): Client error: `GET https://172.16.5.134/crm/api/v1.0/clients/2` resulted in a `401 Unauthorized` response: +{"code":401,"message":"Authentication Required"} -[2025-06-09 19:09:34.202651] [info] Monto proporcionado directamente: 120 -[2025-06-09 19:09:34.202662] [info] Creando referencia en Stripe por 12000 para el cliente cus_PetN1dhr4rx0kX +[2025-07-30 17:12:02.511526] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"","url":"","error":"errorGetClient","failDescription":"Error al obtener el cliente en CRM: 2","clientID":2,"clientFullName":"","amount":120,"voucher_image_url":""} -[2025-06-09 19:09:35.641258] [info] Referencia OXXO: 12345678901234657890123456789012 +[2025-07-30 17:12:02.511619] [info] Creando referencia del cliente para OXXO: -[2025-06-09 19:09:35.641350] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDdKcnFQNTQ2RkhRMEdGSkpQWVZWSU9jcUJRaDMy0100ZxQpx1Wr +[2025-07-30 17:12:02.604825] [error] Error al obtener el cliente en CRM (Error 401): Client error: `GET https://172.16.5.134/crm/api/v1.0/clients/2` resulted in a `401 Unauthorized` response: +{"code":401,"message":"Authentication Required"} -[2025-06-09 19:09:35.641375] [info] Referencia OXXO creada correctamente. -[2025-06-09 19:09:35.645944] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"12345678901234657890123456789012","url":"https:\/\/payments.stripe.com\/oxxo\/voucher\/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDdKcnFQNTQ2RkhRMEdGSkpQWVZWSU9jcUJRaDMy0100ZxQpx1Wr","clientID":2,"clientFullName":"Daniel Humberto Soto Villegas","amount":120,"failDescription":"","error":""} +[2025-07-30 17:12:02.605376] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"","url":"","error":"errorGetClient","failDescription":"Error al obtener el cliente en CRM: 2","clientID":2,"clientFullName":"","amount":120,"voucher_image_url":""} -[2025-06-09 19:09:35.646048] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDdKcnFQNTQ2RkhRMEdGSkpQWVZWSU9jcUJRaDMy0100ZxQpx1Wr","oxxo_reference": "12345678901234657890123456789012","error": "","failDescription": "","clientID": "2","clientFullName": "Daniel Humberto Soto Villegas","amount": "120"} -[2025-06-09 19:12:40.202851] [notice] Logging level set to:debug -[2025-06-09 19:12:40.202960] [debug] valor del webhook: {"uuid":"655b2160-fec1-4da2-9a18-2fdd927c33e4","changeType":"edit","entity":"invoice","entityId":"2057","eventName":"invoice.edit","extraData":{"entity":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":466.67,"totalUntaxed":466.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100},{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100},{"id":732,"invoiceId":2057,"paymentId":628,"creditNoteId":null,"refundId":null,"amount":110},{"id":733,"invoiceId":2057,"paymentId":629,"creditNoteId":null,"refundId":null,"amount":120},{"id":734,"invoiceId":2057,"paymentId":630,"creditNoteId":null,"refundId":null,"amount":36.67}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"entityBeforeEdit":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":430,"totalUntaxed":466.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":36.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100},{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100},{"id":732,"invoiceId":2057,"paymentId":628,"creditNoteId":null,"refundId":null,"amount":110},{"id":733,"invoiceId":2057,"paymentId":629,"creditNoteId":null,"refundId":null,"amount":120},{"id":734,"invoiceId":2057,"paymentId":630,"creditNoteId":null,"refundId":null,"amount":36.67}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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}}} +[2025-07-30 17:12:02.605465] [info] Creando referencia del cliente para OXXO: -[2025-06-09 19:12:40.411118] [debug] valor el evento recibido por webhook: invoice.edit +[2025-07-30 17:12:02.686634] [error] Error al obtener el cliente en CRM (Error 401): Client error: `GET https://172.16.5.134/crm/api/v1.0/clients/2` resulted in a `401 Unauthorized` response: +{"code":401,"message":"Authentication Required"} -[2025-06-09 19:12:40.411223] [debug] Valor de JSON: {"uuid":"655b2160-fec1-4da2-9a18-2fdd927c33e4","changeType":"edit","entity":"invoice","entityId":"2057","eventName":"invoice.edit","extraData":{"entity":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":466.67,"totalUntaxed":466.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100},{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100},{"id":732,"invoiceId":2057,"paymentId":628,"creditNoteId":null,"refundId":null,"amount":110},{"id":733,"invoiceId":2057,"paymentId":629,"creditNoteId":null,"refundId":null,"amount":120},{"id":734,"invoiceId":2057,"paymentId":630,"creditNoteId":null,"refundId":null,"amount":36.67}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"entityBeforeEdit":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":430,"totalUntaxed":466.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":36.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100},{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100},{"id":732,"invoiceId":2057,"paymentId":628,"creditNoteId":null,"refundId":null,"amount":110},{"id":733,"invoiceId":2057,"paymentId":629,"creditNoteId":null,"refundId":null,"amount":120},{"id":734,"invoiceId":2057,"paymentId":630,"creditNoteId":null,"refundId":null,"amount":36.67}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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}}} -[2025-06-09 19:12:40.411452] [debug] Edición de Factura +[2025-07-30 17:12:02.687150] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"","url":"","error":"errorGetClient","failDescription":"Error al obtener el cliente en CRM: 2","clientID":2,"clientFullName":"","amount":120,"voucher_image_url":""} -[2025-06-09 19:12:40.411525] [debug] {"uuid":"655b2160-fec1-4da2-9a18-2fdd927c33e4","changeType":"edit","entity":"invoice","entityId":2057,"message":null,"clientId":2,"eventName":"invoice.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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":83.33,"accountCredit":83.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":466.67,"totalUntaxed":466.67,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100},{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100},{"id":732,"invoiceId":2057,"paymentId":628,"creditNoteId":null,"refundId":null,"amount":110},{"id":733,"invoiceId":2057,"paymentId":629,"creditNoteId":null,"refundId":null,"amount":120},{"id":734,"invoiceId":2057,"paymentId":630,"creditNoteId":null,"refundId":null,"amount":36.67}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} - -[2025-06-09 19:12:40.411607] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-09 19:12:40.411622] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"655b2160-fec1-4da2-9a18-2fdd927c33e4","changeType":"edit","entity":"invoice","entityId":2057,"message":null,"clientId":2,"eventName":"invoice.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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":83.33,"accountCredit":83.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2057,"clientId":2,"number":"002007","createdDate":"2025-06-03T12:03:42-0600","dueDate":"2025-06-17T12:03:42-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-03T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2060,"type":"service","label":"INTERMEDIO 03\/06\/2025 \u2013 30\/06\/2025","price":500,"quantity":0.93333333333333,"total":466.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":157,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":466.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":466.67,"amountPaid":466.67,"totalUntaxed":466.67,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":730,"invoiceId":2057,"paymentId":626,"creditNoteId":null,"refundId":null,"amount":100},{"id":731,"invoiceId":2057,"paymentId":627,"creditNoteId":null,"refundId":null,"amount":100},{"id":732,"invoiceId":2057,"paymentId":628,"creditNoteId":null,"refundId":null,"amount":110},{"id":733,"invoiceId":2057,"paymentId":629,"creditNoteId":null,"refundId":null,"amount":120},{"id":734,"invoiceId":2057,"paymentId":630,"creditNoteId":null,"refundId":null,"amount":36.67}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":630,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T13:12:39-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":734,"invoiceId":2057,"paymentId":630,"creditNoteId":null,"refundId":null,"amount":36.67}],"creditAmount":83.33,"userId":null,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Guanajuato","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb283.33 a favor","Monto Ultimo Pago":"\ud83d\udcb2 120","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb283.33 a favor\",\"Monto Ultimo Pago\": \"$ 120\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 09\/06\/2025 13:12 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"09\/06\/2025 13:12\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 09\/06\/2025 13:12 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 09\/06\/2025 13:12","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲83.33 a favor","Monto Ultimo Pago": "$ 120","Estado": "Activo","Fecha Ultimo Pago": " 09/06/2025 13:12 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "09/06/2025 13:12","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲83.33 a favor","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 09/06/2025 13:12 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 09/06/2025 13:12","Monto Ultimo Pago":"💲 120","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲83.33 a favor\",\"Monto Ultimo Pago\": \"$ 120\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 09/06/2025 13:12 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"09/06/2025 13:12\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲83.33 a favor","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 09/06/2025 13:12 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 09/06/2025 13:12","Monto Ultimo Pago":"💲 120","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲83.33 a favor\",\"Monto Ultimo Pago\": \"$ 120\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 09/06/2025 13:12 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"09/06/2025 13:12\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-09 19:12:43.291928] [notice] Logging level set to:debug -[2025-06-09 19:12:43.292095] [debug] valor del webhook: {"uuid":"f67d2957-3a05-47c9-871c-4390713d3606","changeType":"insert","entity":"payment","entityId":"630","eventName":"payment.add","extraData":{"entity":{"id":630,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T13:12:39-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":734,"invoiceId":2057,"paymentId":630,"creditNoteId":null,"refundId":null,"amount":36.67}],"creditAmount":83.33,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-09 19:12:43.432288] [debug] valor el evento recibido por webhook: payment.add - -[2025-06-09 19:12:43.432492] [debug] Valor de JSON: {"uuid":"f67d2957-3a05-47c9-871c-4390713d3606","changeType":"insert","entity":"payment","entityId":"630","eventName":"payment.add","extraData":{"entity":{"id":630,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T13:12:39-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":734,"invoiceId":2057,"paymentId":630,"creditNoteId":null,"refundId":null,"amount":36.67}],"creditAmount":83.33,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-09 19:12:43.432693] [debug] Notification encodificado en JSON:{"uuid":"f67d2957-3a05-47c9-871c-4390713d3606","changeType":"insert","entity":"payment","entityId":630,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":83.33,"accountCredit":83.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":630,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T13:12:39-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":734,"invoiceId":2057,"paymentId":630,"creditNoteId":null,"refundId":null,"amount":36.67}],"creditAmount":83.33,"userId":null,"attributes":[]}} - -[2025-06-09 19:12:43.432760] [debug] valor del payment data: {"id":630,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T13:12:39-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":734,"invoiceId":2057,"paymentId":630,"creditNoteId":null,"refundId":null,"amount":36.67}],"creditAmount":83.33,"userId":null,"attributes":[]} - -[2025-06-09 19:12:43.432841] [info] {"WhatsApp":["5214181148783"]} -[2025-06-09 19:12:43.432879] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-09 19:12:43.432917] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-09 19:12:43.432965] [debug] ***Se notifica y actualiza al cliente sobre su pago*** - -Eviando comprobante de pago al cliente: 2 con número: 5214181148783 - -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 - -[2025-06-09 19:12:43.682478] [notice] Logging level set to:debug -[2025-06-09 19:12:43.682630] [debug] valor del webhook: {"uuid":"d35cbf22-0634-49fd-b3a1-beb91ccf6108","changeType":"edit","entity":"payment","entityId":"630","eventName":"payment.edit","extraData":{"entity":{"id":630,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T13:12:39-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":734,"invoiceId":2057,"paymentId":630,"creditNoteId":null,"refundId":null,"amount":36.67}],"creditAmount":83.33,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":630,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T13:12:39-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":734,"invoiceId":2057,"paymentId":630,"creditNoteId":null,"refundId":null,"amount":36.67}],"creditAmount":83.33,"userId":null,"attributes":[]}}} - -[2025-06-09 19:12:43.803765] [debug] valor el evento recibido por webhook: payment.edit - -[2025-06-09 19:12:43.803941] [debug] Valor de JSON: {"uuid":"d35cbf22-0634-49fd-b3a1-beb91ccf6108","changeType":"edit","entity":"payment","entityId":"630","eventName":"payment.edit","extraData":{"entity":{"id":630,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T13:12:39-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":734,"invoiceId":2057,"paymentId":630,"creditNoteId":null,"refundId":null,"amount":36.67}],"creditAmount":83.33,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":630,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T13:12:39-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":734,"invoiceId":2057,"paymentId":630,"creditNoteId":null,"refundId":null,"amount":36.67}],"creditAmount":83.33,"userId":null,"attributes":[]}}} - -[2025-06-09 19:44:44.298584] [notice] Logging level set to:debug -[2025-06-09 19:44:44.298998] [debug] valor del webhook: { +[2025-07-30 18:10:50.052238] [notice] Logging level set to:debug +[2025-07-30 18:10:50.052500] [debug] valor del webhook: { "type": "oxxo.request", "client_id": 2, -"amount": 130 +"amount": 120 } -[2025-06-09 19:44:44.299098] [info] No UUID found in the webhook data -[2025-06-09 19:44:44.299159] [info] Evento de solicitud de referencia de oxxo recibido +[2025-07-30 18:10:50.052599] [info] No UUID found in the webhook data +[2025-07-30 18:10:50.052676] [info] Evento de solicitud de referencia de oxxo recibido -[2025-06-09 19:44:44.299206] [info] Referencia persnoalizada, Valor del monto: 130 +[2025-07-30 18:10:50.052740] [info] Referencia personalizada, Valor del monto: 120 -[2025-06-09 19:44:44.299252] [info] Creando referencia del cliente para OXXO: +[2025-07-30 18:10:50.052810] [info] Creando referencia del cliente para OXXO: -[2025-06-09 19:44:44.441438] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX +[2025-07-30 18:10:50.180107] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX -[2025-06-09 19:44:44.441489] [info] Monto proporcionado directamente: 130 +[2025-07-30 18:10:50.180155] [info] Monto proporcionado directamente: 120 -[2025-06-09 19:44:44.441502] [info] Creando referencia en Stripe por 13000 para el cliente cus_PetN1dhr4rx0kX +[2025-07-30 18:10:50.180167] [info] Creando referencia en Stripe por 120 para el cliente cus_PetN1dhr4rx0kX -[2025-06-09 19:44:45.961339] [info] Referencia OXXO: 12345678901234657890123456789012 +[2025-07-30 18:10:51.721916] [info] Referencia OXXO: 12345678901234657890123456789012 -[2025-06-09 19:44:45.961872] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDdzMGdsUmZZQnFaZTRCN2VidG5tYjJHU2Z3UHhQ0100YZsvx3ME +[2025-07-30 18:10:51.721988] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TbUNzZFpveTF1eXI1cGNVbU5tOENlUmxPejlwaUxR0100b0ug6ZCE -[2025-06-09 19:44:45.962101] [info] Referencia OXXO creada correctamente. +[2025-07-30 18:10:51.722002] [info] Referencia OXXO creada correctamente. -[2025-06-09 19:44:45.967133] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"12345678901234657890123456789012","url":"https:\/\/payments.stripe.com\/oxxo\/voucher\/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDdzMGdsUmZZQnFaZTRCN2VidG5tYjJHU2Z3UHhQ0100YZsvx3ME","clientID":2,"clientFullName":"Daniel Humberto Soto Villegas","amount":130,"failDescription":"","error":""} - -[2025-06-09 19:44:45.967371] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDdzMGdsUmZZQnFaZTRCN2VidG5tYjJHU2Z3UHhQ0100YZsvx3ME","oxxo_reference": "12345678901234657890123456789012","error": "","failDescription": "","clientID": "2","clientFullName": "Daniel Humberto Soto Villegas","amount": "130"} -[2025-06-09 19:47:50.229664] [notice] Logging level set to:debug -[2025-06-09 19:47:50.229826] [debug] valor del webhook: {"uuid":"88d889eb-7d52-4451-86f4-de5b255c343d","changeType":"insert","entity":"payment","entityId":"631","eventName":"payment.add","extraData":{"entity":{"id":631,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T13:47:49-0600","amount":130,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":130,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-09 19:47:50.343493] [debug] valor el evento recibido por webhook: payment.add - -[2025-06-09 19:47:50.343545] [debug] Valor de JSON: {"uuid":"88d889eb-7d52-4451-86f4-de5b255c343d","changeType":"insert","entity":"payment","entityId":"631","eventName":"payment.add","extraData":{"entity":{"id":631,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T13:47:49-0600","amount":130,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":130,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-09 19:47:50.343767] [debug] Notification encodificado en JSON:{"uuid":"88d889eb-7d52-4451-86f4-de5b255c343d","changeType":"insert","entity":"payment","entityId":631,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":213.33,"accountCredit":213.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":631,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T13:47:49-0600","amount":130,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":130,"userId":null,"attributes":[]}} - -[2025-06-09 19:47:50.343789] [debug] valor del payment data: {"id":631,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T13:47:49-0600","amount":130,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":130,"userId":null,"attributes":[]} - -[2025-06-09 19:47:50.343866] [info] {"WhatsApp":["5214181148783"]} -[2025-06-09 19:47:50.343878] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-09 19:47:50.343888] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-09 19:47:50.343914] [debug] ***Se notifica y actualiza al cliente sobre su pago*** - -Eviando comprobante de pago al cliente: 2 con número: 5214181148783 - -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 - -[2025-06-09 19:47:50.928447] [notice] Logging level set to:debug -[2025-06-09 19:47:50.928509] [debug] valor del webhook: {"uuid":"2cc8361a-f947-4393-b916-993238161687","changeType":"edit","entity":"payment","entityId":"631","eventName":"payment.edit","extraData":{"entity":{"id":631,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T13:47:49-0600","amount":130,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":130,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":631,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T13:47:49-0600","amount":130,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":130,"userId":null,"attributes":[]}}} - -[2025-06-09 19:47:51.061580] [debug] valor el evento recibido por webhook: payment.edit - -[2025-06-09 19:47:51.061633] [debug] Valor de JSON: {"uuid":"2cc8361a-f947-4393-b916-993238161687","changeType":"edit","entity":"payment","entityId":"631","eventName":"payment.edit","extraData":{"entity":{"id":631,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T13:47:49-0600","amount":130,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":130,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":631,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T13:47:49-0600","amount":130,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":130,"userId":null,"attributes":[]}}} - -[2025-06-09 19:48:48.788074] [notice] Logging level set to:debug -[2025-06-09 19:48:48.788505] [debug] valor del webhook: { -"type": "oxxo.request", -"client_id": 2, -"amount": 140 -} - -[2025-06-09 19:48:48.788592] [info] No UUID found in the webhook data -[2025-06-09 19:48:48.788642] [info] Evento de solicitud de referencia de oxxo recibido - -[2025-06-09 19:48:48.788680] [info] Referencia persnoalizada, Valor del monto: 140 - -[2025-06-09 19:48:48.788718] [info] Creando referencia del cliente para OXXO: - -[2025-06-09 19:48:48.918921] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX - -[2025-06-09 19:48:48.919054] [info] Monto proporcionado directamente: 140 - -[2025-06-09 19:48:48.919099] [info] Creando referencia en Stripe por 14000 para el cliente cus_PetN1dhr4rx0kX - -[2025-06-09 19:48:50.376910] [info] Referencia OXXO: 12345678901234657890123456789012 - -[2025-06-09 19:48:50.377490] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDd3UTVRWjMxSnBDWm5LckdoN3JpVmdOUTh5M2V40100OnUXGJlm - -[2025-06-09 19:48:50.377686] [info] Referencia OXXO creada correctamente. - -[2025-06-09 19:48:50.382822] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"12345678901234657890123456789012","url":"https:\/\/payments.stripe.com\/oxxo\/voucher\/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDd3UTVRWjMxSnBDWm5LckdoN3JpVmdOUTh5M2V40100OnUXGJlm","clientID":2,"clientFullName":"Daniel Humberto Soto Villegas","amount":140,"failDescription":"","error":""} - -[2025-06-09 19:48:50.383069] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDd3UTVRWjMxSnBDWm5LckdoN3JpVmdOUTh5M2V40100OnUXGJlm","oxxo_reference": "12345678901234657890123456789012","error": "","failDescription": "","clientID": "2","clientFullName": "Daniel Humberto Soto Villegas","amount": "140"} -[2025-06-09 19:51:57.374445] [notice] Logging level set to:debug -[2025-06-09 19:51:57.374533] [debug] valor del webhook: {"uuid":"54d78963-43ba-4651-9d3a-456aabb70379","changeType":"insert","entity":"payment","entityId":"632","eventName":"payment.add","extraData":{"entity":{"id":632,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T13:51:57-0600","amount":140,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":140,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-09 19:51:57.492826] [debug] valor el evento recibido por webhook: payment.add - -[2025-06-09 19:51:57.492882] [debug] Valor de JSON: {"uuid":"54d78963-43ba-4651-9d3a-456aabb70379","changeType":"insert","entity":"payment","entityId":"632","eventName":"payment.add","extraData":{"entity":{"id":632,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T13:51:57-0600","amount":140,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":140,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-09 19:51:57.493133] [debug] Notification encodificado en JSON:{"uuid":"54d78963-43ba-4651-9d3a-456aabb70379","changeType":"insert","entity":"payment","entityId":632,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":353.33,"accountCredit":353.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":632,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T13:51:57-0600","amount":140,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":140,"userId":null,"attributes":[]}} - -[2025-06-09 19:51:57.493186] [debug] valor del payment data: {"id":632,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T13:51:57-0600","amount":140,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":140,"userId":null,"attributes":[]} - -[2025-06-09 19:51:57.493257] [info] {"WhatsApp":["5214181148783"]} -[2025-06-09 19:51:57.493271] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-09 19:51:57.493279] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-09 19:51:57.493304] [debug] ***Se notifica y actualiza al cliente sobre su pago*** - -Eviando comprobante de pago al cliente: 2 con número: 5214181148783 - -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 - -[2025-06-09 19:51:58.014118] [notice] Logging level set to:debug -[2025-06-09 19:51:58.014337] [debug] valor del webhook: {"uuid":"56149e3d-4a5b-4979-8fab-0504c1543dfc","changeType":"edit","entity":"payment","entityId":"632","eventName":"payment.edit","extraData":{"entity":{"id":632,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T13:51:57-0600","amount":140,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":140,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":632,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T13:51:57-0600","amount":140,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":140,"userId":null,"attributes":[]}}} - -[2025-06-09 19:51:58.145626] [debug] valor el evento recibido por webhook: payment.edit - -[2025-06-09 19:51:58.145685] [debug] Valor de JSON: {"uuid":"56149e3d-4a5b-4979-8fab-0504c1543dfc","changeType":"edit","entity":"payment","entityId":"632","eventName":"payment.edit","extraData":{"entity":{"id":632,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T13:51:57-0600","amount":140,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":140,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":632,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T13:51:57-0600","amount":140,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":140,"userId":null,"attributes":[]}}} - -[2025-06-09 19:57:06.556930] [notice] Logging level set to:debug -[2025-06-09 19:57:06.557569] [debug] valor del webhook: { -"type": "oxxo.request", -"client_id": 2, -"amount": 150 -} - -[2025-06-09 19:57:06.557739] [info] No UUID found in the webhook data -[2025-06-09 19:57:06.557847] [info] Evento de solicitud de referencia de oxxo recibido - -[2025-06-09 19:57:06.557933] [info] Referencia persnoalizada, Valor del monto: 150 - -[2025-06-09 19:57:06.558020] [info] Creando referencia del cliente para OXXO: - -[2025-06-09 19:57:06.681411] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX - -[2025-06-09 19:57:06.681457] [info] Monto proporcionado directamente: 150 - -[2025-06-09 19:57:06.681468] [info] Creando referencia en Stripe por 15000 para el cliente cus_PetN1dhr4rx0kX - -[2025-06-09 19:57:07.788564] [info] Referencia OXXO: 12345678901234657890123456789012 - -[2025-06-09 19:57:07.788628] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDg0N2pONTI5VERWUGRkd1VjSEtaZ1dIc2N1enBt01006gdzvUxY - -[2025-06-09 19:57:07.788640] [info] Referencia OXXO creada correctamente. - -[2025-06-09 19:57:07.790741] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"12345678901234657890123456789012","url":"https:\/\/payments.stripe.com\/oxxo\/voucher\/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDg0N2pONTI5VERWUGRkd1VjSEtaZ1dIc2N1enBt01006gdzvUxY","clientID":2,"clientFullName":"Daniel Humberto Soto Villegas","amount":150,"failDescription":"","error":""} - -[2025-06-09 19:57:07.790792] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDg0N2pONTI5VERWUGRkd1VjSEtaZ1dIc2N1enBt01006gdzvUxY","oxxo_reference": "12345678901234657890123456789012","error": "","failDescription": "","clientID": "2","clientFullName": "Daniel Humberto Soto Villegas","amount": "150"} -[2025-06-09 20:00:11.044064] [notice] Logging level set to:debug -[2025-06-09 20:00:11.044405] [debug] valor del webhook: {"uuid":"9bb85429-63c0-4922-97a0-8d9418d8e77d","changeType":"insert","entity":"payment","entityId":"633","eventName":"payment.add","extraData":{"entity":{"id":633,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:00:10-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":150,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-09 20:00:11.184839] [debug] valor el evento recibido por webhook: payment.add - -[2025-06-09 20:00:11.184983] [debug] Valor de JSON: {"uuid":"9bb85429-63c0-4922-97a0-8d9418d8e77d","changeType":"insert","entity":"payment","entityId":"633","eventName":"payment.add","extraData":{"entity":{"id":633,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:00:10-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":150,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-09 20:00:11.185378] [debug] Notification encodificado en JSON:{"uuid":"9bb85429-63c0-4922-97a0-8d9418d8e77d","changeType":"insert","entity":"payment","entityId":633,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":503.33,"accountCredit":503.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":633,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:00:10-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":150,"userId":null,"attributes":[]}} - -[2025-06-09 20:00:11.185461] [debug] valor del payment data: {"id":633,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:00:10-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":150,"userId":null,"attributes":[]} - -[2025-06-09 20:00:11.185568] [info] {"WhatsApp":["5214181148783"]} -[2025-06-09 20:00:11.185610] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-09 20:00:11.185647] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-09 20:00:11.185695] [debug] ***Se notifica y actualiza al cliente sobre su pago*** - -Eviando comprobante de pago al cliente: 2 con número: 5214181148783 - -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 - -[2025-06-09 20:00:11.722793] [notice] Logging level set to:debug -[2025-06-09 20:00:11.722862] [debug] valor del webhook: {"uuid":"75c1a10d-dd08-44ab-94f3-cade157a4c70","changeType":"edit","entity":"payment","entityId":"633","eventName":"payment.edit","extraData":{"entity":{"id":633,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:00:10-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":150,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":633,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:00:10-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":150,"userId":null,"attributes":[]}}} - -[2025-06-09 20:00:11.836380] [debug] valor el evento recibido por webhook: payment.edit - -[2025-06-09 20:00:11.836515] [debug] Valor de JSON: {"uuid":"75c1a10d-dd08-44ab-94f3-cade157a4c70","changeType":"edit","entity":"payment","entityId":"633","eventName":"payment.edit","extraData":{"entity":{"id":633,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:00:10-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":150,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":633,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:00:10-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":150,"userId":null,"attributes":[]}}} - -[2025-06-09 20:07:56.821434] [notice] Logging level set to:debug -[2025-06-09 20:07:56.821569] [debug] valor del webhook: { -"type": "oxxo.request", -"client_id": 2, -"amount": 160 -} - -[2025-06-09 20:07:56.821602] [info] No UUID found in the webhook data -[2025-06-09 20:07:56.821618] [info] Evento de solicitud de referencia de oxxo recibido - -[2025-06-09 20:07:56.821630] [info] Referencia persnoalizada, Valor del monto: 160 - -[2025-06-09 20:07:56.821645] [info] Creando referencia del cliente para OXXO: - -[2025-06-09 20:07:56.956798] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX - -[2025-06-09 20:07:56.956842] [info] Monto proporcionado directamente: 160 - -[2025-06-09 20:07:56.956855] [info] Creando referencia en Stripe por 16000 para el cliente cus_PetN1dhr4rx0kX - -[2025-06-09 20:07:58.114351] [info] Referencia OXXO: 12345678901234657890123456789012 - -[2025-06-09 20:07:58.114465] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDhGWEhENzNtVVdleXJLaFV3dk9mRUZYTVVkS2hU0100Hw1Taeeh - -[2025-06-09 20:07:58.114499] [info] Referencia OXXO creada correctamente. - -[2025-06-09 20:07:58.119204] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"12345678901234657890123456789012","url":"https:\/\/payments.stripe.com\/oxxo\/voucher\/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDhGWEhENzNtVVdleXJLaFV3dk9mRUZYTVVkS2hU0100Hw1Taeeh","clientID":2,"clientFullName":"Daniel Humberto Soto Villegas","amount":160,"failDescription":"","error":""} - -[2025-06-09 20:07:58.119312] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDhGWEhENzNtVVdleXJLaFV3dk9mRUZYTVVkS2hU0100Hw1Taeeh","oxxo_reference": "12345678901234657890123456789012","error": "","failDescription": "","clientID": "2","clientFullName": "Daniel Humberto Soto Villegas","amount": "160"} -[2025-06-09 20:11:04.897315] [notice] Logging level set to:debug -[2025-06-09 20:11:04.897418] [debug] valor del webhook: {"uuid":"f5195af4-08e1-47c3-afc8-c59af03a971b","changeType":"insert","entity":"payment","entityId":"634","eventName":"payment.add","extraData":{"entity":{"id":634,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:11:04-0600","amount":160,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":160,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-09 20:11:05.019745] [debug] valor el evento recibido por webhook: payment.add - -[2025-06-09 20:11:05.019802] [debug] Valor de JSON: {"uuid":"f5195af4-08e1-47c3-afc8-c59af03a971b","changeType":"insert","entity":"payment","entityId":"634","eventName":"payment.add","extraData":{"entity":{"id":634,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:11:04-0600","amount":160,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":160,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-09 20:11:05.020040] [debug] Notification encodificado en JSON:{"uuid":"f5195af4-08e1-47c3-afc8-c59af03a971b","changeType":"insert","entity":"payment","entityId":634,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":663.33,"accountCredit":663.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":634,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:11:04-0600","amount":160,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":160,"userId":null,"attributes":[]}} - -[2025-06-09 20:11:05.020071] [debug] valor del payment data: {"id":634,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:11:04-0600","amount":160,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":160,"userId":null,"attributes":[]} - -[2025-06-09 20:11:05.020152] [info] {"WhatsApp":["5214181148783"]} -[2025-06-09 20:11:05.020165] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-09 20:11:05.020174] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-09 20:11:05.020194] [debug] ***Se notifica y actualiza al cliente sobre su pago*** - -Eviando comprobante de pago al cliente: 2 con número: 5214181148783 - -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 - -[2025-06-09 20:11:05.600265] [notice] Logging level set to:debug -[2025-06-09 20:11:05.600553] [debug] valor del webhook: {"uuid":"233b35b2-d75e-4b85-9116-dc0015006b83","changeType":"edit","entity":"payment","entityId":"634","eventName":"payment.edit","extraData":{"entity":{"id":634,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:11:04-0600","amount":160,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":160,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":634,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:11:04-0600","amount":160,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":160,"userId":null,"attributes":[]}}} - -[2025-06-09 20:11:05.743024] [debug] valor el evento recibido por webhook: payment.edit - -[2025-06-09 20:11:05.743161] [debug] Valor de JSON: {"uuid":"233b35b2-d75e-4b85-9116-dc0015006b83","changeType":"edit","entity":"payment","entityId":"634","eventName":"payment.edit","extraData":{"entity":{"id":634,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:11:04-0600","amount":160,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":160,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":634,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:11:04-0600","amount":160,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":160,"userId":null,"attributes":[]}}} - -[2025-06-09 20:11:52.217216] [notice] Logging level set to:debug -[2025-06-09 20:11:52.217405] [debug] valor del webhook: { -"type": "oxxo.request", -"client_id": 2, -"amount": 170 -} - -[2025-06-09 20:11:52.217467] [info] No UUID found in the webhook data -[2025-06-09 20:11:52.217509] [info] Evento de solicitud de referencia de oxxo recibido - -[2025-06-09 20:11:52.217541] [info] Referencia persnoalizada, Valor del monto: 170 - -[2025-06-09 20:11:52.217576] [info] Creando referencia del cliente para OXXO: - -[2025-06-09 20:11:52.348300] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX - -[2025-06-09 20:11:52.348460] [info] Monto proporcionado directamente: 170 - -[2025-06-09 20:11:52.348534] [info] Creando referencia en Stripe por 17000 para el cliente cus_PetN1dhr4rx0kX - -[2025-06-09 20:11:54.536547] [info] Referencia OXXO: 12345678901234657890123456789012 - -[2025-06-09 20:11:54.536619] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDhKZDFsT3ZxOEo3blR2bnZJOUdQSGc5TVVrV1I50100mqeajwx9 - -[2025-06-09 20:11:54.536637] [info] Referencia OXXO creada correctamente. - -[2025-06-09 20:11:54.540659] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"12345678901234657890123456789012","url":"https:\/\/payments.stripe.com\/oxxo\/voucher\/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDhKZDFsT3ZxOEo3blR2bnZJOUdQSGc5TVVrV1I50100mqeajwx9","clientID":2,"clientFullName":"Daniel Humberto Soto Villegas","amount":170,"failDescription":"","error":""} - -[2025-06-09 20:11:54.540904] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDhKZDFsT3ZxOEo3blR2bnZJOUdQSGc5TVVrV1I50100mqeajwx9","oxxo_reference": "12345678901234657890123456789012","error": "","failDescription": "","clientID": "2","clientFullName": "Daniel Humberto Soto Villegas","amount": "170"} -[2025-06-09 20:15:01.427726] [notice] Logging level set to:debug -[2025-06-09 20:15:01.429224] [debug] valor del webhook: {"uuid":"89dce065-802d-47ea-98e7-12153bb2abac","changeType":"insert","entity":"payment","entityId":"635","eventName":"payment.add","extraData":{"entity":{"id":635,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:15:00-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-09 20:15:01.707043] [debug] valor el evento recibido por webhook: payment.add - -[2025-06-09 20:15:01.707201] [debug] Valor de JSON: {"uuid":"89dce065-802d-47ea-98e7-12153bb2abac","changeType":"insert","entity":"payment","entityId":"635","eventName":"payment.add","extraData":{"entity":{"id":635,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:15:00-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-09 20:15:01.707485] [debug] Notification encodificado en JSON:{"uuid":"89dce065-802d-47ea-98e7-12153bb2abac","changeType":"insert","entity":"payment","entityId":635,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":833.33,"accountCredit":833.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":635,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:15:00-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":null,"attributes":[]}} - -[2025-06-09 20:15:01.707557] [debug] valor del payment data: {"id":635,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:15:00-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":null,"attributes":[]} - -[2025-06-09 20:15:01.707663] [info] {"WhatsApp":["5214181148783"]} -[2025-06-09 20:15:01.707704] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-09 20:15:01.707740] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-09 20:15:01.707788] [debug] ***Se notifica y actualiza al cliente sobre su pago*** - -Eviando comprobante de pago al cliente: 2 con número: 5214181148783 - -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 - -[2025-06-09 20:15:03.046798] [notice] Logging level set to:debug -[2025-06-09 20:15:03.052475] [debug] valor del webhook: {"uuid":"813b303d-b274-4fcc-8c18-dbdc6f9811ff","changeType":"edit","entity":"payment","entityId":"635","eventName":"payment.edit","extraData":{"entity":{"id":635,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:15:00-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":635,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:15:00-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":null,"attributes":[]}}} - -[2025-06-09 20:15:03.199934] [debug] valor el evento recibido por webhook: payment.edit - -[2025-06-09 20:15:03.200603] [debug] Valor de JSON: {"uuid":"813b303d-b274-4fcc-8c18-dbdc6f9811ff","changeType":"edit","entity":"payment","entityId":"635","eventName":"payment.edit","extraData":{"entity":{"id":635,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:15:00-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":635,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:15:00-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":null,"attributes":[]}}} - -[2025-06-09 20:17:06.988590] [notice] Logging level set to:debug -[2025-06-09 20:17:06.988811] [debug] valor del webhook: { -"type": "oxxo.request", -"client_id": 2, -"amount": 180 -} - -[2025-06-09 20:17:06.988886] [info] No UUID found in the webhook data -[2025-06-09 20:17:06.988945] [info] Evento de solicitud de referencia de oxxo recibido - -[2025-06-09 20:17:06.988992] [info] Referencia persnoalizada, Valor del monto: 180 - -[2025-06-09 20:17:06.989041] [info] Creando referencia del cliente para OXXO: - -[2025-06-09 20:17:07.122550] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX - -[2025-06-09 20:17:07.122596] [info] Monto proporcionado directamente: 180 - -[2025-06-09 20:17:07.122608] [info] Creando referencia en Stripe por 18000 para el cliente cus_PetN1dhr4rx0kX - -[2025-06-09 20:17:08.210839] [info] Referencia OXXO: 12345678901234657890123456789012 - -[2025-06-09 20:17:08.210983] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDhPYTNjVTJIZUh3MmVwYkt2SmFTQkl1YTNNeFdF0100Vd6Dmsfy - -[2025-06-09 20:17:08.211020] [info] Referencia OXXO creada correctamente. - -[2025-06-09 20:17:08.215636] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"12345678901234657890123456789012","url":"https:\/\/payments.stripe.com\/oxxo\/voucher\/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDhPYTNjVTJIZUh3MmVwYkt2SmFTQkl1YTNNeFdF0100Vd6Dmsfy","clientID":2,"clientFullName":"Daniel Humberto Soto Villegas","amount":180,"failDescription":"","error":""} - -[2025-06-09 20:17:08.215744] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDhPYTNjVTJIZUh3MmVwYkt2SmFTQkl1YTNNeFdF0100Vd6Dmsfy","oxxo_reference": "12345678901234657890123456789012","error": "","failDescription": "","clientID": "2","clientFullName": "Daniel Humberto Soto Villegas","amount": "180"} -[2025-06-09 20:20:12.421096] [notice] Logging level set to:debug -[2025-06-09 20:20:12.421451] [debug] valor del webhook: {"uuid":"2437310c-bf5a-4c1d-a6b4-5b5513cdf82e","changeType":"insert","entity":"payment","entityId":"636","eventName":"payment.add","extraData":{"entity":{"id":636,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:20:12-0600","amount":180,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":180,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-09 20:20:12.601265] [debug] valor el evento recibido por webhook: payment.add - -[2025-06-09 20:20:12.601413] [debug] Valor de JSON: {"uuid":"2437310c-bf5a-4c1d-a6b4-5b5513cdf82e","changeType":"insert","entity":"payment","entityId":"636","eventName":"payment.add","extraData":{"entity":{"id":636,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:20:12-0600","amount":180,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":180,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-09 20:20:12.601686] [debug] Notification encodificado en JSON:{"uuid":"2437310c-bf5a-4c1d-a6b4-5b5513cdf82e","changeType":"insert","entity":"payment","entityId":636,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":1013.33,"accountCredit":1013.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":636,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:20:12-0600","amount":180,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":180,"userId":null,"attributes":[]}} - -[2025-06-09 20:20:12.601759] [debug] valor del payment data: {"id":636,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:20:12-0600","amount":180,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":180,"userId":null,"attributes":[]} - -[2025-06-09 20:20:12.601865] [info] {"WhatsApp":["5214181148783"]} -[2025-06-09 20:20:12.601907] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-09 20:20:12.601946] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-09 20:20:12.601995] [debug] ***Se notifica y actualiza al cliente sobre su pago*** - -Eviando comprobante de pago al cliente: 2 con número: 5214181148783 - -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 - -[2025-06-09 20:20:13.071305] [notice] Logging level set to:debug -[2025-06-09 20:20:13.071513] [debug] valor del webhook: {"uuid":"8a12ecba-b2f7-41a3-9f73-9adfcdb67fa4","changeType":"edit","entity":"payment","entityId":"636","eventName":"payment.edit","extraData":{"entity":{"id":636,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:20:12-0600","amount":180,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":180,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":636,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:20:12-0600","amount":180,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":180,"userId":null,"attributes":[]}}} - -[2025-06-09 20:20:13.207174] [debug] valor el evento recibido por webhook: payment.edit - -[2025-06-09 20:20:13.207324] [debug] Valor de JSON: {"uuid":"8a12ecba-b2f7-41a3-9f73-9adfcdb67fa4","changeType":"edit","entity":"payment","entityId":"636","eventName":"payment.edit","extraData":{"entity":{"id":636,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:20:12-0600","amount":180,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":180,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":636,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T14:20:12-0600","amount":180,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":180,"userId":null,"attributes":[]}}} - -[2025-06-09 21:07:49.407314] [notice] Logging level set to:debug -[2025-06-09 21:07:49.407629] [debug] valor del webhook: { -"type": "oxxo.request", -"client_id": 2, -"amount": 190 -} - -[2025-06-09 21:07:49.407752] [info] No UUID found in the webhook data -[2025-06-09 21:07:49.407835] [info] Evento de solicitud de referencia de oxxo recibido - -[2025-06-09 21:07:49.407906] [info] Referencia persnoalizada, Valor del monto: 190 - -[2025-06-09 21:07:49.407987] [info] Creando referencia del cliente para OXXO: - -[2025-06-09 21:07:49.539222] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX - -[2025-06-09 21:07:49.539448] [info] Monto proporcionado directamente: 190 - -[2025-06-09 21:07:49.539499] [info] Creando referencia en Stripe por 19000 para el cliente cus_PetN1dhr4rx0kX - -[2025-06-09 21:07:50.730581] [info] Referencia OXXO: 12345678901234657890123456789012 - -[2025-06-09 21:07:50.730947] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDlESGRjWncwZGpGaXhCV1lzb2NMTTdlWTYzOVFO0100jmyMGwKD - -[2025-06-09 21:07:50.731090] [info] Referencia OXXO creada correctamente. - -[2025-06-09 21:07:52.941682] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"12345678901234657890123456789012","url":"https:\/\/payments.stripe.com\/oxxo\/voucher\/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDlESGRjWncwZGpGaXhCV1lzb2NMTTdlWTYzOVFO0100jmyMGwKD","clientID":2,"clientFullName":"Daniel Humberto Soto Villegas","amount":190,"failDescription":"","error":""} - -[2025-06-09 21:07:52.941915] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVDlESGRjWncwZGpGaXhCV1lzb2NMTTdlWTYzOVFO0100jmyMGwKD","oxxo_reference": "12345678901234657890123456789012","error": "","failDescription": "","clientID": "2","clientFullName": "Daniel Humberto Soto Villegas","amount": "190"} -[2025-06-09 21:10:53.915052] [notice] Logging level set to:debug -[2025-06-09 21:10:53.915234] [debug] valor del webhook: {"uuid":"de17b348-8d29-4e87-972a-61713133715a","changeType":"insert","entity":"payment","entityId":"637","eventName":"payment.add","extraData":{"entity":{"id":637,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T15:10:53-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-09 21:10:54.040252] [debug] valor el evento recibido por webhook: payment.add - -[2025-06-09 21:10:54.040307] [debug] Valor de JSON: {"uuid":"de17b348-8d29-4e87-972a-61713133715a","changeType":"insert","entity":"payment","entityId":"637","eventName":"payment.add","extraData":{"entity":{"id":637,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T15:10:53-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-09 21:10:54.040558] [debug] Notification encodificado en JSON:{"uuid":"de17b348-8d29-4e87-972a-61713133715a","changeType":"insert","entity":"payment","entityId":637,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":1203.33,"accountCredit":1203.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":637,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T15:10:53-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]}} - -[2025-06-09 21:10:54.040590] [debug] valor del payment data: {"id":637,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T15:10:53-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]} - -[2025-06-09 21:10:54.040664] [info] {"WhatsApp":["5214181148783"]} -[2025-06-09 21:10:54.040678] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-09 21:10:54.040688] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-09 21:10:54.040709] [debug] ***Se notifica y actualiza al cliente sobre su pago*** - -Eviando comprobante de pago al cliente: 2 con número: 5214181148783 - -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 - -[2025-06-09 21:10:54.594108] [notice] Logging level set to:debug -[2025-06-09 21:10:54.594238] [debug] valor del webhook: {"uuid":"d2d84392-ce59-4c4b-be18-b4c655cd3d7c","changeType":"edit","entity":"payment","entityId":"637","eventName":"payment.edit","extraData":{"entity":{"id":637,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T15:10:53-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":637,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T15:10:53-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]}}} - -[2025-06-09 21:10:54.710787] [debug] valor el evento recibido por webhook: payment.edit - -[2025-06-09 21:10:54.710856] [debug] Valor de JSON: {"uuid":"d2d84392-ce59-4c4b-be18-b4c655cd3d7c","changeType":"edit","entity":"payment","entityId":"637","eventName":"payment.edit","extraData":{"entity":{"id":637,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T15:10:53-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":637,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T15:10:53-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]}}} - -[2025-06-09 22:46:18.297193] [notice] Logging level set to:debug -[2025-06-09 22:46:18.297574] [debug] valor del webhook: { -"type": "oxxo.request", -"client_id": 2, -"amount": 200 -} - -[2025-06-09 22:46:18.297669] [info] No UUID found in the webhook data -[2025-06-09 22:46:18.297743] [info] Evento de solicitud de referencia de oxxo recibido - -[2025-06-09 22:46:18.297790] [info] Referencia persnoalizada, Valor del monto: 200 - -[2025-06-09 22:46:18.297838] [info] Creando referencia del cliente para OXXO: - -[2025-06-09 22:46:18.427711] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX - -[2025-06-09 22:46:18.427858] [info] Monto proporcionado directamente: 200 - -[2025-06-09 22:46:18.427906] [info] Creando referencia en Stripe por 20000 para el cliente cus_PetN1dhr4rx0kX - -[2025-06-09 22:46:24.279627] [error] Error al confirmar PaymentIntent: cURL error 28: Operation timed out after 5002 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://api.stripe.com/v1/payment_intents/pi_3RYESMEFY1WEUtgR1OoIzzCN/confirm - -[2025-06-09 22:46:24.283803] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"","url":"","error":"errorConfirmPaymentIntent","failDescription":"Error al confirmar PaymentIntent: cURL error 28: Operation timed out after 5002 milliseconds with 0 bytes received (see https:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html) for https:\/\/api.stripe.com\/v1\/payment_intents\/pi_3RYESMEFY1WEUtgR1OoIzzCN\/confirm","clientID":2,"clientFullName":"Daniel Humberto Soto Villegas","amount":200} - -[2025-06-09 22:46:24.283879] [info] Creando referencia del cliente para OXXO: - -[2025-06-09 22:46:24.412530] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX - -[2025-06-09 22:46:24.412667] [info] Monto proporcionado directamente: 200 - -[2025-06-09 22:46:24.412709] [info] Creando referencia en Stripe por 20000 para el cliente cus_PetN1dhr4rx0kX - -[2025-06-09 22:46:26.015772] [info] Referencia OXXO: 12345678901234657890123456789012 - -[2025-06-09 22:46:26.016285] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVEFvbXAzQVBzNkVuQm95SzRKVzFsbk1qNnd1Y0M20100reyO0rjW - -[2025-06-09 22:46:26.016452] [info] Referencia OXXO creada correctamente. - -[2025-06-09 22:46:27.916420] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"12345678901234657890123456789012","url":"https:\/\/payments.stripe.com\/oxxo\/voucher\/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVEFvbXAzQVBzNkVuQm95SzRKVzFsbk1qNnd1Y0M20100reyO0rjW","clientID":2,"clientFullName":"Daniel Humberto Soto Villegas","amount":200,"failDescription":"","error":""} - -[2025-06-09 22:46:27.916677] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVEFvbXAzQVBzNkVuQm95SzRKVzFsbk1qNnd1Y0M20100reyO0rjW","oxxo_reference": "12345678901234657890123456789012","error": "","failDescription": "","clientID": "2","clientFullName": "Daniel Humberto Soto Villegas","amount": "200"} -[2025-06-09 22:49:25.224669] [notice] Logging level set to:debug -[2025-06-09 22:49:25.224756] [debug] valor del webhook: {"uuid":"e76063b4-11c0-4b47-8dfa-635435b69320","changeType":"insert","entity":"payment","entityId":"638","eventName":"payment.add","extraData":{"entity":{"id":638,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T16:49:24-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-09 22:49:25.347173] [debug] valor el evento recibido por webhook: payment.add - -[2025-06-09 22:49:25.347225] [debug] Valor de JSON: {"uuid":"e76063b4-11c0-4b47-8dfa-635435b69320","changeType":"insert","entity":"payment","entityId":"638","eventName":"payment.add","extraData":{"entity":{"id":638,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T16:49:24-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-09 22:49:25.347484] [debug] Notification encodificado en JSON:{"uuid":"e76063b4-11c0-4b47-8dfa-635435b69320","changeType":"insert","entity":"payment","entityId":638,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":1403.33,"accountCredit":1403.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":638,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T16:49:24-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":null,"attributes":[]}} - -[2025-06-09 22:49:25.347506] [debug] valor del payment data: {"id":638,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T16:49:24-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":null,"attributes":[]} - -[2025-06-09 22:49:25.347584] [info] {"WhatsApp":["5214181148783"]} -[2025-06-09 22:49:25.347599] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-09 22:49:25.347606] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-09 22:49:25.347631] [debug] ***Se notifica y actualiza al cliente sobre su pago*** - -Eviando comprobante de pago al cliente: 2 con número: 5214181148783 - -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 - -[2025-06-09 22:49:25.931246] [notice] Logging level set to:debug -[2025-06-09 22:49:25.931313] [debug] valor del webhook: {"uuid":"624a37a2-dbd1-4164-b051-22ea8ba96e68","changeType":"edit","entity":"payment","entityId":"638","eventName":"payment.edit","extraData":{"entity":{"id":638,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T16:49:24-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":638,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T16:49:24-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":null,"attributes":[]}}} - -[2025-06-09 22:49:26.044820] [debug] valor el evento recibido por webhook: payment.edit - -[2025-06-09 22:49:26.044995] [debug] Valor de JSON: {"uuid":"624a37a2-dbd1-4164-b051-22ea8ba96e68","changeType":"edit","entity":"payment","entityId":"638","eventName":"payment.edit","extraData":{"entity":{"id":638,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T16:49:24-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":638,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T16:49:24-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":null,"attributes":[]}}} - -[2025-06-09 22:49:32.969574] [notice] Logging level set to:debug -[2025-06-09 22:49:32.969907] [debug] valor del webhook: {"uuid":"2cfebdc1-f1f8-45f0-8f9f-be80c35cbc0d","changeType":"insert","entity":"payment","entityId":"639","eventName":"payment.add","extraData":{"entity":{"id":639,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T16:49:32-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-09 22:49:33.099237] [debug] valor el evento recibido por webhook: payment.add - -[2025-06-09 22:49:33.099289] [debug] Valor de JSON: {"uuid":"2cfebdc1-f1f8-45f0-8f9f-be80c35cbc0d","changeType":"insert","entity":"payment","entityId":"639","eventName":"payment.add","extraData":{"entity":{"id":639,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T16:49:32-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-09 22:49:33.099436] [debug] Notification encodificado en JSON:{"uuid":"2cfebdc1-f1f8-45f0-8f9f-be80c35cbc0d","changeType":"insert","entity":"payment","entityId":639,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":1603.33,"accountCredit":1603.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":639,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T16:49:32-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":null,"attributes":[]}} - -[2025-06-09 22:49:33.099466] [debug] valor del payment data: {"id":639,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T16:49:32-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":null,"attributes":[]} - -[2025-06-09 22:49:33.099514] [info] {"WhatsApp":["5214181148783"]} -[2025-06-09 22:49:33.099524] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-09 22:49:33.099534] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-09 22:49:33.099543] [debug] ***Se notifica y actualiza al cliente sobre su pago*** - -Eviando comprobante de pago al cliente: 2 con número: 5214181148783 - -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 - -[2025-06-09 22:49:33.749974] [notice] Logging level set to:debug -[2025-06-09 22:49:33.750092] [debug] valor del webhook: {"uuid":"a1faaaf2-6e50-4f34-9592-b8258794e749","changeType":"edit","entity":"payment","entityId":"639","eventName":"payment.edit","extraData":{"entity":{"id":639,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T16:49:32-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":639,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T16:49:32-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":null,"attributes":[]}}} - -[2025-06-09 22:49:33.875128] [debug] valor el evento recibido por webhook: payment.edit - -[2025-06-09 22:49:33.875355] [debug] Valor de JSON: {"uuid":"a1faaaf2-6e50-4f34-9592-b8258794e749","changeType":"edit","entity":"payment","entityId":"639","eventName":"payment.edit","extraData":{"entity":{"id":639,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T16:49:32-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":639,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T16:49:32-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":null,"attributes":[]}}} - -[2025-06-09 23:05:05.461813] [notice] Logging level set to:debug -[2025-06-09 23:05:05.462178] [debug] valor del webhook: { -"type": "oxxo.request", -"client_id": 2, -"amount": 210 -} - -[2025-06-09 23:05:05.462323] [info] No UUID found in the webhook data -[2025-06-09 23:05:05.462440] [info] Evento de solicitud de referencia de oxxo recibido - -[2025-06-09 23:05:05.462533] [info] Referencia persnoalizada, Valor del monto: 210 - -[2025-06-09 23:05:05.462626] [info] Creando referencia del cliente para OXXO: - -[2025-06-09 23:05:05.595669] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX - -[2025-06-09 23:05:05.595715] [info] Monto proporcionado directamente: 210 - -[2025-06-09 23:05:05.595729] [info] Creando referencia en Stripe por 21000 para el cliente cus_PetN1dhr4rx0kX - -[2025-06-09 23:05:07.096807] [info] Referencia OXXO: 12345678901234657890123456789012 - -[2025-06-09 23:05:07.096945] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVEI2M0xoaVBSblYzdWVEc0tPTkYwRUdKb081cTBp0100sDQ3bJOw - -[2025-06-09 23:05:07.096983] [info] Referencia OXXO creada correctamente. - -[2025-06-09 23:05:09.177671] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"12345678901234657890123456789012","url":"https:\/\/payments.stripe.com\/oxxo\/voucher\/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVEI2M0xoaVBSblYzdWVEc0tPTkYwRUdKb081cTBp0100sDQ3bJOw","clientID":2,"clientFullName":"Daniel Humberto Soto Villegas","amount":210,"failDescription":"","error":""} - -[2025-06-09 23:05:09.177727] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVEI2M0xoaVBSblYzdWVEc0tPTkYwRUdKb081cTBp0100sDQ3bJOw","oxxo_reference": "12345678901234657890123456789012","error": "","failDescription": "","clientID": "2","clientFullName": "Daniel Humberto Soto Villegas","amount": "210"} -[2025-06-09 23:08:10.455612] [notice] Logging level set to:debug -[2025-06-09 23:08:10.455698] [debug] valor del webhook: {"uuid":"40f1864b-08bf-4662-81c7-071fc6743290","changeType":"insert","entity":"payment","entityId":"640","eventName":"payment.add","extraData":{"entity":{"id":640,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T17:08:10-0600","amount":210,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":210,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-09 23:08:10.576994] [debug] valor el evento recibido por webhook: payment.add - -[2025-06-09 23:08:10.577183] [debug] Valor de JSON: {"uuid":"40f1864b-08bf-4662-81c7-071fc6743290","changeType":"insert","entity":"payment","entityId":"640","eventName":"payment.add","extraData":{"entity":{"id":640,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T17:08:10-0600","amount":210,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":210,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-09 23:08:10.577466] [debug] Notification encodificado en JSON:{"uuid":"40f1864b-08bf-4662-81c7-071fc6743290","changeType":"insert","entity":"payment","entityId":640,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":1813.33,"accountCredit":1813.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":640,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T17:08:10-0600","amount":210,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":210,"userId":null,"attributes":[]}} - -[2025-06-09 23:08:10.577536] [debug] valor del payment data: {"id":640,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T17:08:10-0600","amount":210,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":210,"userId":null,"attributes":[]} - -[2025-06-09 23:08:10.577650] [info] {"WhatsApp":["5214181148783"]} -[2025-06-09 23:08:10.577693] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-09 23:08:10.577730] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-09 23:08:10.577780] [debug] ***Se notifica y actualiza al cliente sobre su pago*** - -Eviando comprobante de pago al cliente: 2 con número: 5214181148783 - -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 - -[2025-06-09 23:08:11.296202] [notice] Logging level set to:debug -[2025-06-09 23:08:11.296305] [debug] valor del webhook: {"uuid":"c1d79c0a-98aa-4db9-92ec-1c851acfc40e","changeType":"edit","entity":"payment","entityId":"640","eventName":"payment.edit","extraData":{"entity":{"id":640,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T17:08:10-0600","amount":210,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":210,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":640,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T17:08:10-0600","amount":210,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":210,"userId":null,"attributes":[]}}} - -[2025-06-09 23:08:11.464176] [debug] valor el evento recibido por webhook: payment.edit - -[2025-06-09 23:08:11.464234] [debug] Valor de JSON: {"uuid":"c1d79c0a-98aa-4db9-92ec-1c851acfc40e","changeType":"edit","entity":"payment","entityId":"640","eventName":"payment.edit","extraData":{"entity":{"id":640,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T17:08:10-0600","amount":210,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":210,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":640,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T17:08:10-0600","amount":210,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":210,"userId":null,"attributes":[]}}} - -[2025-06-09 23:16:33.980395] [notice] Logging level set to:debug -[2025-06-09 23:16:33.980551] [debug] valor del webhook: { -"type": "oxxo.request", -"client_id": 2, -"amount": 220 -} - -[2025-06-09 23:16:33.980600] [info] No UUID found in the webhook data -[2025-06-09 23:16:33.980623] [info] Evento de solicitud de referencia de oxxo recibido - -[2025-06-09 23:16:33.980643] [info] Referencia persnoalizada, Valor del monto: 220 - -[2025-06-09 23:16:33.980660] [info] Creando referencia del cliente para OXXO: - -[2025-06-09 23:16:34.125338] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX - -[2025-06-09 23:16:34.125382] [info] Monto proporcionado directamente: 220 - -[2025-06-09 23:16:34.125406] [info] Creando referencia en Stripe por 22000 para el cliente cus_PetN1dhr4rx0kX - -[2025-06-09 23:16:35.605911] [info] Referencia OXXO: 12345678901234657890123456789012 - -[2025-06-09 23:16:35.606394] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVEJJT2ZmeTBYcDY2eGI2TmpMd1FJNjdmSm9oUHZq0100IUbeOILl - -[2025-06-09 23:16:35.606555] [info] Referencia OXXO creada correctamente. - -[2025-06-09 23:16:37.413105] [debug] Status Code: 200 -[2025-06-09 23:16:37.413445] [debug] Content Type: image/jpeg -[2025-06-09 23:16:37.413799] [debug] ¡Imagen guardada exitosamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/vouchers_oxxo/voucher_1749510995.jpeg -[2025-06-09 23:16:37.414220] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"12345678901234657890123456789012","url":"https:\/\/payments.stripe.com\/oxxo\/voucher\/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVEJJT2ZmeTBYcDY2eGI2TmpMd1FJNjdmSm9oUHZq0100IUbeOILl","clientID":2,"clientFullName":"Daniel Humberto Soto Villegas","amount":220,"failDescription":"","error":""} - -[2025-06-09 23:16:37.414503] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVEJJT2ZmeTBYcDY2eGI2TmpMd1FJNjdmSm9oUHZq0100IUbeOILl","oxxo_reference": "12345678901234657890123456789012","error": "","failDescription": "","clientID": "2","clientFullName": "Daniel Humberto Soto Villegas","amount": "220"} -[2025-06-09 23:19:42.694834] [notice] Logging level set to:debug -[2025-06-09 23:19:42.695033] [debug] valor del webhook: {"uuid":"5e5c947a-6229-45d9-96bf-5c9d5f09ee66","changeType":"insert","entity":"payment","entityId":"641","eventName":"payment.add","extraData":{"entity":{"id":641,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T17:19:42-0600","amount":220,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":220,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-09 23:19:42.833416] [debug] valor el evento recibido por webhook: payment.add - -[2025-06-09 23:19:42.833545] [debug] Valor de JSON: {"uuid":"5e5c947a-6229-45d9-96bf-5c9d5f09ee66","changeType":"insert","entity":"payment","entityId":"641","eventName":"payment.add","extraData":{"entity":{"id":641,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T17:19:42-0600","amount":220,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":220,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-09 23:19:42.833873] [debug] Notification encodificado en JSON:{"uuid":"5e5c947a-6229-45d9-96bf-5c9d5f09ee66","changeType":"insert","entity":"payment","entityId":641,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":2033.33,"accountCredit":2033.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":641,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T17:19:42-0600","amount":220,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":220,"userId":null,"attributes":[]}} - -[2025-06-09 23:19:42.833956] [debug] valor del payment data: {"id":641,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T17:19:42-0600","amount":220,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":220,"userId":null,"attributes":[]} - -[2025-06-09 23:19:42.834067] [info] {"WhatsApp":["5214181148783"]} -[2025-06-09 23:19:42.834108] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-09 23:19:42.834144] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-09 23:19:42.834197] [debug] ***Se notifica y actualiza al cliente sobre su pago*** - -Eviando comprobante de pago al cliente: 2 con número: 5214181148783 - -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 - -[2025-06-09 23:19:43.418849] [notice] Logging level set to:debug -[2025-06-09 23:19:43.419012] [debug] valor del webhook: {"uuid":"f889623a-1115-493c-a397-4db8d5f26aaa","changeType":"edit","entity":"payment","entityId":"641","eventName":"payment.edit","extraData":{"entity":{"id":641,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T17:19:42-0600","amount":220,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":220,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":641,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T17:19:42-0600","amount":220,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":220,"userId":null,"attributes":[]}}} - -[2025-06-09 23:19:43.552659] [debug] valor el evento recibido por webhook: payment.edit - -[2025-06-09 23:19:43.552824] [debug] Valor de JSON: {"uuid":"f889623a-1115-493c-a397-4db8d5f26aaa","changeType":"edit","entity":"payment","entityId":"641","eventName":"payment.edit","extraData":{"entity":{"id":641,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T17:19:42-0600","amount":220,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":220,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":641,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-09T17:19:42-0600","amount":220,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":220,"userId":null,"attributes":[]}}} - -[2025-06-10 8:15:59.221036] [notice] Logging level set to:debug -[2025-06-10 8:15:59.221146] [debug] valor del webhook: { -"type": "oxxo.request", -"client_id": 2, -"amount": 250 -} - -[2025-06-10 8:15:59.221193] [info] No UUID found in the webhook data -[2025-06-10 8:15:59.221206] [info] Evento de solicitud de referencia de oxxo recibido - -[2025-06-10 8:15:59.221215] [info] Referencia persnoalizada, Valor del monto: 250 - -[2025-06-10 8:15:59.221225] [info] Creando referencia del cliente para OXXO: - -[2025-06-10 8:15:59.387993] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX - -[2025-06-10 8:15:59.388039] [info] Monto proporcionado directamente: 250 - -[2025-06-10 8:15:59.388051] [info] Creando referencia en Stripe por 25000 para el cliente cus_PetN1dhr4rx0kX - -[2025-06-10 8:16:00.912168] [info] Referencia OXXO: 12345678901234657890123456789012 - -[2025-06-10 8:16:00.912225] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVEp6RnlqbXdhQXdCSU11dHVWSVNTVzJUanFUYzVY0100skZIEue8 - -[2025-06-10 8:16:00.912236] [info] Referencia OXXO creada correctamente. - -[2025-06-10 8:16:03.513433] [debug] Status Code: 200 -[2025-06-10 8:16:03.513736] [debug] Content Type: image/jpeg -[2025-06-10 8:16:03.520766] [debug] ¡Imagen guardada exitosamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/vouchers_oxxo/voucher_1749543360.jpeg +[2025-07-30 18:10:54.149885] [debug] Status Code: 200 +[2025-07-30 18:10:54.149945] [debug] Content Type: image/jpeg +[2025-07-30 18:10:54.150094] [debug] ¡Imagen guardada exitosamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1753899051.jpeg Subiendo voucher a worpdpress -file_to_upload: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../vouchers_oxxo/voucher_Daniel Humberto Soto Villegas_1749543360.jpeg +file_to_upload: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1753899051.jpeg Conexión FTP exitosa -Error al cargar el archivo +El archivo ha sido cargado exitosamente. -[2025-06-10 8:16:04.302099] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"12345678901234657890123456789012","url":"https:\/\/payments.stripe.com\/oxxo\/voucher\/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVEp6RnlqbXdhQXdCSU11dHVWSVNTVzJUanFUYzVY0100skZIEue8","error":"","failDescription":"","clientID":2,"clientFullName":"Daniel Humberto Soto Villegas","amount":250,"voucher_image_url":""} +La URL es: https://siip.mx/wp/wp-content/uploads/vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1753899051.jpeg -[2025-06-10 8:16:04.302316] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVEp6RnlqbXdhQXdCSU11dHVWSVNTVzJUanFUYzVY0100skZIEue8","oxxo_reference": "12345678901234657890123456789012","voucher_image_url": "","error": "","failDescription": "","clientID": "2","clientFullName": "Daniel Humberto Soto Villegas","amount": "250"} -[2025-06-10 8:19:05.343847] [notice] Logging level set to:debug -[2025-06-10 8:19:05.343945] [debug] valor del webhook: {"uuid":"fa2987c9-607d-4141-aa0b-eba8dd42bcbe","changeType":"insert","entity":"payment","entityId":"642","eventName":"payment.add","extraData":{"entity":{"id":642,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:19:05-0600","amount":250,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":250,"userId":null,"attributes":[]},"entityBeforeEdit":null}} +No se pudo obtener la lista de archivos de la carpeta FTP -[2025-06-10 8:19:05.470594] [debug] valor el evento recibido por webhook: payment.add +[2025-07-30 18:10:56.715426] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"12345678901234657890123456789012","url":"https:\/\/payments.stripe.com\/oxxo\/voucher\/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TbUNzZFpveTF1eXI1cGNVbU5tOENlUmxPejlwaUxR0100b0ug6ZCE","error":"","failDescription":"","clientID":2,"clientFullName":"Daniel Humberto Soto Villegas","amount":120,"voucher_image_url":"https:\/\/siip.mx\/wp\/wp-content\/uploads\/vouchers_oxxo\/voucher_Daniel_Humberto_Soto_Villegas_1753899051.jpeg"} -[2025-06-10 8:19:05.470649] [debug] Valor de JSON: {"uuid":"fa2987c9-607d-4141-aa0b-eba8dd42bcbe","changeType":"insert","entity":"payment","entityId":"642","eventName":"payment.add","extraData":{"entity":{"id":642,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:19:05-0600","amount":250,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":250,"userId":null,"attributes":[]},"entityBeforeEdit":null}} +[2025-07-30 18:10:56.715698] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TbUNzZFpveTF1eXI1cGNVbU5tOENlUmxPejlwaUxR0100b0ug6ZCE","oxxo_reference": "12345678901234657890123456789012","voucher_image_url": "https://siip.mx/wp/wp-content/uploads/vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1753899051.jpeg","error": "","failDescription": "","clientID": "2","clientFullName": "Daniel Humberto Soto Villegas","amount": "120"} +[2025-07-30 18:13:54.937751] [notice] Logging level set to:debug +[2025-07-30 18:13:54.937958] [debug] valor del webhook: {"uuid":"36d0ab7b-c6e6-4393-9aef-2305715e6e87","changeType":"insert","entity":"payment","entityId":"673","eventName":"payment.add","extraData":{"entity":{"id":673,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-30T12:13:54-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]},"entityBeforeEdit":null}} -[2025-06-10 8:19:05.470896] [debug] Notification encodificado en JSON:{"uuid":"fa2987c9-607d-4141-aa0b-eba8dd42bcbe","changeType":"insert","entity":"payment","entityId":642,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":2283.33,"accountCredit":2283.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":642,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:19:05-0600","amount":250,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":250,"userId":null,"attributes":[]}} +[2025-07-30 18:13:55.061347] [debug] valor el evento recibido por webhook: payment.add -[2025-06-10 8:19:05.470928] [debug] valor del payment data: {"id":642,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:19:05-0600","amount":250,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":250,"userId":null,"attributes":[]} +[2025-07-30 18:13:55.061539] [debug] Valor de JSON: {"uuid":"36d0ab7b-c6e6-4393-9aef-2305715e6e87","changeType":"insert","entity":"payment","entityId":"673","eventName":"payment.add","extraData":{"entity":{"id":673,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-30T12:13:54-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]},"entityBeforeEdit":null}} -[2025-06-10 8:19:05.471002] [info] {"WhatsApp":["5214181148783"]} -[2025-06-10 8:19:05.471014] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-10 8:19:05.471021] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-10 8:19:05.471040] [debug] ***Se notifica y actualiza al cliente sobre su pago*** +[2025-07-30 18:13:55.061822] [debug] Notification encodificado en JSON:{"uuid":"36d0ab7b-c6e6-4393-9aef-2305715e6e87","changeType":"insert","entity":"payment","entityId":673,"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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":220,"accountCredit":220,"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":673,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-30T12:13:54-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]}} + +[2025-07-30 18:13:55.061904] [debug] valor del payment data: {"id":673,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-30T12:13:54-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]} + +[2025-07-30 18:13:55.062010] [info] {"WhatsApp":["5214181148783"]} +[2025-07-30 18:13:55.062056] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-07-30 18:13:55.062098] [info] Tipo de contacto normalizado: 'whatsapp' +[2025-07-30 18:13:55.062165] [debug] ***Se notifica y actualiza al cliente sobre su pago*** Eviando comprobante de pago al cliente: 2 con número: 5214181148783 @@ -7177,123 +1356,1226 @@ El archivo PDF se ha descargado y guardado correctamente en: /data/ucrm/data/plu 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 -El archivo PNG se ha generado correctamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.png +[2025-07-30 18:13:57.108263] [notice] Logging level set to:debug +[2025-07-30 18:13:57.108576] [debug] valor del webhook: {"uuid":"b0adf8b0-2109-4953-bf68-83ded3940071","changeType":"edit","entity":"payment","entityId":"673","eventName":"payment.edit","extraData":{"entity":{"id":673,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-30T12:13:54-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":673,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-30T12:13:54-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]}}} -Subiendo comprobante a worpdpress +[2025-07-30 18:13:57.249813] [debug] valor el evento recibido por webhook: payment.edit -file_to_upload: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.png +[2025-07-30 18:13:57.249989] [debug] Valor de JSON: {"uuid":"b0adf8b0-2109-4953-bf68-83ded3940071","changeType":"edit","entity":"payment","entityId":"673","eventName":"payment.edit","extraData":{"entity":{"id":673,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-30T12:13:54-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":673,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-30T12:13:54-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]}}} -Conexión FTP exitosa +[2025-07-31 16:00:04.404269] [notice] Logging level set to:debug +[2025-07-31 16:00:04.404356] [debug] valor del webhook: {"uuid":"2994ae3c-ba5a-4ce2-9977-38f859ac0ac6","changeType":"draft_approved","entity":"invoice","entityId":"2215","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2215,"clientId":89,"number":"002165","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2218,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":88,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RIO LAJA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -El archivo ha sido cargado exitosamente. +[2025-07-31 16:00:04.635164] [debug] valor el evento recibido por webhook: invoice.draft_approved -La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas.png +[2025-07-31 16:00:04.635226] [debug] Valor de JSON: {"uuid":"2994ae3c-ba5a-4ce2-9977-38f859ac0ac6","changeType":"draft_approved","entity":"invoice","entityId":"2215","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2215,"clientId":89,"number":"002165","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2218,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":88,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RIO LAJA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -No se pudo obtener la lista de archivos de la carpeta FTP +[2025-07-31 16:00:04.635911] [debug] Aprobación de Factura -Se terminó de subir comprobante a wordpress +[2025-07-31 16:00:04.635977] [debug] {"uuid":"2994ae3c-ba5a-4ce2-9977-38f859ac0ac6","changeType":"draft_approved","entity":"invoice","entityId":2215,"message":null,"clientId":89,"eventName":"invoice.draft_approved","clientData":{"id":89,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"RIO LAJA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"RIO LAJA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"TERESA","lastName":"SANCHEZ","username":"tsanchez89","contacts":[{"id":90,"clientId":89,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"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":2215,"clientId":89,"number":"002165","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2218,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":88,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RIO LAJA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "document", - "content": { - "text": "S/M", - "url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas.png" - }, - "template_values": ["Daniel Humberto Soto Villegas", "$250", "$2283.33 a favor"], - "template_uuid": "57ead79cebd14902921477922403093b", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"0d55d2ae40254e3d84d5010762d9b820","status":"enqueued"}} -Hay menos de 100 archivos en el directorio. No se eliminarán archivos. +[2025-07-31 16:00:05.870256] [notice] Logging level set to:debug +[2025-07-31 16:00:05.870359] [debug] valor del webhook: {"uuid":"718fe62b-cbc7-40a3-a147-5318db996500","changeType":"draft_approved","entity":"invoice","entityId":"2216","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2216,"clientId":44,"number":"002166","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2219,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":43,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JAVIER","clientLastName":"BRIONES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ESTANCIA DE ZAMARRIPA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -La notificación fue enviada correctamente con estado: enqueued +[2025-07-31 16:00:06.004014] [debug] valor el evento recibido por webhook: invoice.draft_approved -Notificacion data: {"uuid":"fa2987c9-607d-4141-aa0b-eba8dd42bcbe","changeType":"insert","entity":"payment","entityId":642,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":2283.33,"accountCredit":2283.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":642,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:19:05-0600","amount":250,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":250,"userId":null,"attributes":[]}} +[2025-07-31 16:00:06.004065] [debug] Valor de JSON: {"uuid":"718fe62b-cbc7-40a3-a147-5318db996500","changeType":"draft_approved","entity":"invoice","entityId":"2216","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2216,"clientId":44,"number":"002166","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2219,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":43,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JAVIER","clientLastName":"BRIONES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ESTANCIA DE ZAMARRIPA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:06.004158] [debug] Aprobación de Factura + +[2025-07-31 16:00:06.004209] [debug] {"uuid":"718fe62b-cbc7-40a3-a147-5318db996500","changeType":"draft_approved","entity":"invoice","entityId":2216,"message":null,"clientId":44,"eventName":"invoice.draft_approved","clientData":{"id":44,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"ESTANCIA DE ZAMARRIPA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"ESTANCIA DE ZAMARRIPA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JAVIER","lastName":"BRIONES","username":"jbriones44","contacts":[{"id":45,"clientId":44,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5410,"accountCredit":0,"accountOutstanding":5410,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#c0ca33","addressGpsLat":21.2370877,"addressGpsLon":-101.116799,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2216,"clientId":44,"number":"002166","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2219,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":43,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JAVIER","clientLastName":"BRIONES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ESTANCIA DE ZAMARRIPA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:07.206252] [notice] Logging level set to:debug +[2025-07-31 16:00:07.206336] [debug] valor del webhook: {"uuid":"f5ecee25-e88a-4cf3-af2d-c580533b99b9","changeType":"draft_approved","entity":"invoice","entityId":"2217","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2217,"clientId":95,"number":"002167","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2220,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":94,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SOFIA","clientLastName":"VALENCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:07.377403] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:07.377455] [debug] Valor de JSON: {"uuid":"f5ecee25-e88a-4cf3-af2d-c580533b99b9","changeType":"draft_approved","entity":"invoice","entityId":"2217","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2217,"clientId":95,"number":"002167","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2220,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":94,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SOFIA","clientLastName":"VALENCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:07.377574] [debug] Aprobación de Factura + +[2025-07-31 16:00:07.377619] [debug] {"uuid":"f5ecee25-e88a-4cf3-af2d-c580533b99b9","changeType":"draft_approved","entity":"invoice","entityId":2217,"message":null,"clientId":95,"eventName":"invoice.draft_approved","clientData":{"id":95,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"SOFIA","lastName":"VALENCIA","username":"svalencia95","contacts":[{"id":96,"clientId":95,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-9500,"accountCredit":0,"accountOutstanding":9500,"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":2217,"clientId":95,"number":"002167","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2220,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":94,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SOFIA","clientLastName":"VALENCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:08.554888] [notice] Logging level set to:debug +[2025-07-31 16:00:08.554960] [debug] valor del webhook: {"uuid":"d6411efa-fc4a-4d57-beaf-1ee191c5c0f3","changeType":"draft_approved","entity":"invoice","entityId":"2218","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2218,"clientId":7,"number":"002168","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2221,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":7,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JESUS","clientLastName":"GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:08.685465] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:08.685513] [debug] Valor de JSON: {"uuid":"d6411efa-fc4a-4d57-beaf-1ee191c5c0f3","changeType":"draft_approved","entity":"invoice","entityId":"2218","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2218,"clientId":7,"number":"002168","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2221,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":7,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JESUS","clientLastName":"GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:08.685610] [debug] Aprobación de Factura + +[2025-07-31 16:00:08.685652] [debug] {"uuid":"d6411efa-fc4a-4d57-beaf-1ee191c5c0f3","changeType":"draft_approved","entity":"invoice","entityId":2218,"message":null,"clientId":7,"eventName":"invoice.draft_approved","clientData":{"id":7,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"ADJUNTAS DEL RIO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"ADJUNTAS DEL RIO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JESUS","lastName":"GONZALEZ","username":"jgonzalez07","contacts":[{"id":8,"clientId":7,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"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":2218,"clientId":7,"number":"002168","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2221,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":7,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JESUS","clientLastName":"GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:09.865566] [notice] Logging level set to:debug +[2025-07-31 16:00:09.865641] [debug] valor del webhook: {"uuid":"9bf92a70-2c35-416e-8226-b4e02030cfd8","changeType":"draft_approved","entity":"invoice","entityId":"2219","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2219,"clientId":23,"number":"002169","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2222,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":22,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OSCAR","clientLastName":"GUERRERO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TABASCO #45, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:10.009744] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:10.009795] [debug] Valor de JSON: {"uuid":"9bf92a70-2c35-416e-8226-b4e02030cfd8","changeType":"draft_approved","entity":"invoice","entityId":"2219","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2219,"clientId":23,"number":"002169","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2222,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":22,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OSCAR","clientLastName":"GUERRERO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TABASCO #45, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:10.009891] [debug] Aprobación de Factura + +[2025-07-31 16:00:10.009933] [debug] {"uuid":"9bf92a70-2c35-416e-8226-b4e02030cfd8","changeType":"draft_approved","entity":"invoice","entityId":2219,"message":null,"clientId":23,"eventName":"invoice.draft_approved","clientData":{"id":23,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TABASCO #45, ZONA CENTRO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TABASCO #45, ZONA CENTRO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"OSCAR","lastName":"GUERRERO","username":"oguerrero23","contacts":[{"id":24,"clientId":23,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5700,"accountCredit":0,"accountOutstanding":5700,"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":2219,"clientId":23,"number":"002169","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2222,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":22,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OSCAR","clientLastName":"GUERRERO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TABASCO #45, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:11.162550] [notice] Logging level set to:debug +[2025-07-31 16:00:11.162663] [debug] valor del webhook: {"uuid":"1607039b-b513-48c5-a01b-05addef30eb9","changeType":"draft_approved","entity":"invoice","entityId":"2220","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2220,"clientId":34,"number":"002170","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2223,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":33,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NORMA","clientLastName":"ALMAGUER","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ROSALITO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:11.307976] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:11.308033] [debug] Valor de JSON: {"uuid":"1607039b-b513-48c5-a01b-05addef30eb9","changeType":"draft_approved","entity":"invoice","entityId":"2220","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2220,"clientId":34,"number":"002170","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2223,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":33,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NORMA","clientLastName":"ALMAGUER","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ROSALITO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:11.308151] [debug] Aprobación de Factura + +[2025-07-31 16:00:11.308196] [debug] {"uuid":"1607039b-b513-48c5-a01b-05addef30eb9","changeType":"draft_approved","entity":"invoice","entityId":2220,"message":null,"clientId":34,"eventName":"invoice.draft_approved","clientData":{"id":34,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL ROSALITO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL ROSALITO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"NORMA","lastName":"ALMAGUER","username":"nalmaguer34","contacts":[{"id":35,"clientId":34,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-6010,"accountCredit":0,"accountOutstanding":6010,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#0277bd","addressGpsLat":21.2514711,"addressGpsLon":-100.738323,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2220,"clientId":34,"number":"002170","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2223,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":33,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NORMA","clientLastName":"ALMAGUER","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ROSALITO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:12.461664] [notice] Logging level set to:debug +[2025-07-31 16:00:12.461779] [debug] valor del webhook: {"uuid":"bd5b1847-2ca5-4d91-890e-f9e0f6d3dd72","changeType":"draft_approved","entity":"invoice","entityId":"2221","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2221,"clientId":73,"number":"002171","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2224,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":72,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ERICK","clientLastName":"VAZQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:12.603981] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:12.604038] [debug] Valor de JSON: {"uuid":"bd5b1847-2ca5-4d91-890e-f9e0f6d3dd72","changeType":"draft_approved","entity":"invoice","entityId":"2221","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2221,"clientId":73,"number":"002171","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2224,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":72,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ERICK","clientLastName":"VAZQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:12.604146] [debug] Aprobación de Factura + +[2025-07-31 16:00:12.604190] [debug] {"uuid":"bd5b1847-2ca5-4d91-890e-f9e0f6d3dd72","changeType":"draft_approved","entity":"invoice","entityId":2221,"message":null,"clientId":73,"eventName":"invoice.draft_approved","clientData":{"id":73,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ERICK","lastName":"VAZQUEZ","username":"evazquez73","contacts":[{"id":74,"clientId":73,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"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":2221,"clientId":73,"number":"002171","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2224,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":72,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ERICK","clientLastName":"VAZQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:13.780605] [notice] Logging level set to:debug +[2025-07-31 16:00:13.780682] [debug] valor del webhook: {"uuid":"1100d57f-4e38-4423-8648-f9b32760e8c4","changeType":"draft_approved","entity":"invoice","entityId":"2222","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2222,"clientId":45,"number":"002172","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2225,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":44,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALBERTO","clientLastName":"GRANADOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:13.913455] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:13.913511] [debug] Valor de JSON: {"uuid":"1100d57f-4e38-4423-8648-f9b32760e8c4","changeType":"draft_approved","entity":"invoice","entityId":"2222","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2222,"clientId":45,"number":"002172","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2225,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":44,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALBERTO","clientLastName":"GRANADOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:13.913614] [debug] Aprobación de Factura + +[2025-07-31 16:00:13.913660] [debug] {"uuid":"1100d57f-4e38-4423-8648-f9b32760e8c4","changeType":"draft_approved","entity":"invoice","entityId":2222,"message":null,"clientId":45,"eventName":"invoice.draft_approved","clientData":{"id":45,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALBERTO","lastName":"GRANADOS","username":"agranados45","contacts":[{"id":46,"clientId":45,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":98,"clientId":45,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtN1E1ePcRAA689","clientZoneVisible":true},{"id":99,"clientId":45,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"9271357829475893","clientZoneVisible":true}],"accountBalance":-5410,"accountCredit":0,"accountOutstanding":5410,"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":2222,"clientId":45,"number":"002172","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2225,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":44,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALBERTO","clientLastName":"GRANADOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:15.077594] [notice] Logging level set to:debug +[2025-07-31 16:00:15.077688] [debug] valor del webhook: {"uuid":"6cc3c6a6-b486-4ced-b7cc-c00706597e8c","changeType":"draft_approved","entity":"invoice","entityId":"2223","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2223,"clientId":19,"number":"002173","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2226,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":18,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARIA","clientLastName":"RODRIGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:15.223016] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:15.223083] [debug] Valor de JSON: {"uuid":"6cc3c6a6-b486-4ced-b7cc-c00706597e8c","changeType":"draft_approved","entity":"invoice","entityId":"2223","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2223,"clientId":19,"number":"002173","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2226,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":18,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARIA","clientLastName":"RODRIGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:15.223231] [debug] Aprobación de Factura + +[2025-07-31 16:00:15.223295] [debug] {"uuid":"6cc3c6a6-b486-4ced-b7cc-c00706597e8c","changeType":"draft_approved","entity":"invoice","entityId":2223,"message":null,"clientId":19,"eventName":"invoice.draft_approved","clientData":{"id":19,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MARIA","lastName":"RODRIGUEZ","username":"mrodriguez19","contacts":[{"id":20,"clientId":19,"email":null,"phone":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":-10933.33,"accountCredit":0,"accountOutstanding":10933.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":2223,"clientId":19,"number":"002173","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2226,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":18,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARIA","clientLastName":"RODRIGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:16.402863] [notice] Logging level set to:debug +[2025-07-31 16:00:16.403004] [debug] valor del webhook: {"uuid":"44aa7bbf-c140-4cc0-8d88-a832736d53bc","changeType":"draft_approved","entity":"invoice","entityId":"2224","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2224,"clientId":20,"number":"002174","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2227,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":19,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEFANIA","clientLastName":"BUENROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN PABLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:16.530432] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:16.530483] [debug] Valor de JSON: {"uuid":"44aa7bbf-c140-4cc0-8d88-a832736d53bc","changeType":"draft_approved","entity":"invoice","entityId":"2224","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2224,"clientId":20,"number":"002174","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2227,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":19,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEFANIA","clientLastName":"BUENROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN PABLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:16.530647] [debug] Aprobación de Factura + +[2025-07-31 16:00:16.530695] [debug] {"uuid":"44aa7bbf-c140-4cc0-8d88-a832736d53bc","changeType":"draft_approved","entity":"invoice","entityId":2224,"message":null,"clientId":20,"eventName":"invoice.draft_approved","clientData":{"id":20,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN PABLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN PABLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ESTEFANIA","lastName":"BUENROSTRO","username":"ebuenrostro20","contacts":[{"id":21,"clientId":20,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5380,"accountCredit":0,"accountOutstanding":5380,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#0277bd","addressGpsLat":21.1575375,"addressGpsLon":-100.9440518,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2224,"clientId":20,"number":"002174","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2227,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":19,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEFANIA","clientLastName":"BUENROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN PABLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:17.681308] [notice] Logging level set to:debug +[2025-07-31 16:00:17.681416] [debug] valor del webhook: {"uuid":"2da74704-daad-44e0-8f5d-936efa4d6c18","changeType":"draft_approved","entity":"invoice","entityId":"2225","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2225,"clientId":85,"number":"002175","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2228,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":84,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GISELLE","clientLastName":"ARREDONDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GARABATILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:17.816338] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:17.816397] [debug] Valor de JSON: {"uuid":"2da74704-daad-44e0-8f5d-936efa4d6c18","changeType":"draft_approved","entity":"invoice","entityId":"2225","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2225,"clientId":85,"number":"002175","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2228,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":84,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GISELLE","clientLastName":"ARREDONDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GARABATILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:17.816517] [debug] Aprobación de Factura + +[2025-07-31 16:00:17.816565] [debug] {"uuid":"2da74704-daad-44e0-8f5d-936efa4d6c18","changeType":"draft_approved","entity":"invoice","entityId":2225,"message":null,"clientId":85,"eventName":"invoice.draft_approved","clientData":{"id":85,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"GARABATILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"GARABATILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"GISELLE","lastName":"ARREDONDO","username":"garredondo85","contacts":[{"id":86,"clientId":85,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-8900,"accountCredit":0,"accountOutstanding":8900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef6c00","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2225,"clientId":85,"number":"002175","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2228,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":84,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GISELLE","clientLastName":"ARREDONDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GARABATILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:18.972146] [notice] Logging level set to:debug +[2025-07-31 16:00:18.972210] [debug] valor del webhook: {"uuid":"63a8939a-4d07-401a-876b-ab6fa259c5fe","changeType":"draft_approved","entity":"invoice","entityId":"2226","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2226,"clientId":75,"number":"002176","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2229,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":74,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAUL","clientLastName":"AYALA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:19.108082] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:19.108138] [debug] Valor de JSON: {"uuid":"63a8939a-4d07-401a-876b-ab6fa259c5fe","changeType":"draft_approved","entity":"invoice","entityId":"2226","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2226,"clientId":75,"number":"002176","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2229,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":74,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAUL","clientLastName":"AYALA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:19.108261] [debug] Aprobación de Factura + +[2025-07-31 16:00:19.108305] [debug] {"uuid":"63a8939a-4d07-401a-876b-ab6fa259c5fe","changeType":"draft_approved","entity":"invoice","entityId":2226,"message":null,"clientId":75,"eventName":"invoice.draft_approved","clientData":{"id":75,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ELIAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ELIAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"RAUL","lastName":"AYALA","username":"rayala75","contacts":[{"id":76,"clientId":75,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"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":2226,"clientId":75,"number":"002176","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2229,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":74,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAUL","clientLastName":"AYALA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:20.260992] [notice] Logging level set to:debug +[2025-07-31 16:00:20.261102] [debug] valor del webhook: {"uuid":"7353fc68-a55f-4728-8259-072d2f0d5498","changeType":"draft_approved","entity":"invoice","entityId":"2227","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2227,"clientId":10,"number":"002177","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2230,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":10,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CARLOS","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:20.401814] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:20.401873] [debug] Valor de JSON: {"uuid":"7353fc68-a55f-4728-8259-072d2f0d5498","changeType":"draft_approved","entity":"invoice","entityId":"2227","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2227,"clientId":10,"number":"002177","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2230,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":10,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CARLOS","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:20.401973] [debug] Aprobación de Factura + +[2025-07-31 16:00:20.402018] [debug] {"uuid":"7353fc68-a55f-4728-8259-072d2f0d5498","changeType":"draft_approved","entity":"invoice","entityId":2227,"message":null,"clientId":10,"eventName":"invoice.draft_approved","clientData":{"id":10,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"CARLOS","lastName":"MESA","username":"cmesa10","contacts":[{"id":11,"clientId":10,"email":null,"phone":"4425476911","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1001,"name":"WhatsApptmp"}]}],"attributes":[],"accountBalance":-6000,"accountCredit":0,"accountOutstanding":6000,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00695c","addressGpsLat":21.1574,"addressGpsLon":-100.934617,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2227,"clientId":10,"number":"002177","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2230,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":10,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CARLOS","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:21.572069] [notice] Logging level set to:debug +[2025-07-31 16:00:21.572129] [debug] valor del webhook: {"uuid":"48946163-d096-4384-90ed-52f3c6a55a45","changeType":"draft_approved","entity":"invoice","entityId":"2228","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2228,"clientId":29,"number":"002178","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2231,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":28,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTELA","clientLastName":"ORTIZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EJIDO DOLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:21.716408] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:21.716460] [debug] Valor de JSON: {"uuid":"48946163-d096-4384-90ed-52f3c6a55a45","changeType":"draft_approved","entity":"invoice","entityId":"2228","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2228,"clientId":29,"number":"002178","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2231,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":28,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTELA","clientLastName":"ORTIZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EJIDO DOLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:21.716579] [debug] Aprobación de Factura + +[2025-07-31 16:00:21.716624] [debug] {"uuid":"48946163-d096-4384-90ed-52f3c6a55a45","changeType":"draft_approved","entity":"invoice","entityId":2228,"message":null,"clientId":29,"eventName":"invoice.draft_approved","clientData":{"id":29,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EJIDO DOLORES","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EJIDO DOLORES, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ESTELA","lastName":"ORTIZ","username":"eortiz29","contacts":[{"id":30,"clientId":29,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-9316.67,"accountCredit":0,"accountOutstanding":9316.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":2228,"clientId":29,"number":"002178","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2231,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":28,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTELA","clientLastName":"ORTIZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EJIDO DOLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:22.842291] [notice] Logging level set to:debug +[2025-07-31 16:00:22.842365] [debug] valor del webhook: {"uuid":"12bfff80-f803-4db5-93c2-0dbee1c8d931","changeType":"draft_approved","entity":"invoice","entityId":"2229","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2229,"clientId":94,"number":"002179","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2232,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":93,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARTIN","clientLastName":"TREJO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:22.977991] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:22.978060] [debug] Valor de JSON: {"uuid":"12bfff80-f803-4db5-93c2-0dbee1c8d931","changeType":"draft_approved","entity":"invoice","entityId":"2229","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2229,"clientId":94,"number":"002179","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2232,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":93,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARTIN","clientLastName":"TREJO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:22.978178] [debug] Aprobación de Factura + +[2025-07-31 16:00:22.978236] [debug] {"uuid":"12bfff80-f803-4db5-93c2-0dbee1c8d931","changeType":"draft_approved","entity":"invoice","entityId":2229,"message":null,"clientId":94,"eventName":"invoice.draft_approved","clientData":{"id":94,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MARTIN","lastName":"TREJO","username":"mtrejo94","contacts":[{"id":95,"clientId":94,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-5700,"accountCredit":0,"accountOutstanding":5700,"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":2229,"clientId":94,"number":"002179","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2232,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":93,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARTIN","clientLastName":"TREJO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:22.978281] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-07-31 16:00:22.978293] [info] Tipo de contacto normalizado: 'whatsapp' +Notificacion data: {"uuid":"12bfff80-f803-4db5-93c2-0dbee1c8d931","changeType":"draft_approved","entity":"invoice","entityId":2229,"message":null,"clientId":94,"eventName":"invoice.draft_approved","clientData":{"id":94,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MARTIN","lastName":"TREJO","username":"mtrejo94","contacts":[{"id":95,"clientId":94,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-5700,"accountCredit":0,"accountOutstanding":5700,"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":2229,"clientId":94,"number":"002179","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2232,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":93,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARTIN","clientLastName":"TREJO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} Dentro del proceso del patch: -Datos traidos con payment api: [{"id":642,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:19:05-0600","amount":250,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":250,"userId":null,"attributes":[]}] +Datos traidos con payment api: [{"id":17,"clientId":94,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-01-31T15:59:03-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":22,"invoiceId":87,"paymentId":17,"creditNoteId":null,"refundId":null,"amount":200}],"creditAmount":0,"userId":1000,"attributes":[]}] -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas +Nombre del cliente que se va a actualizar: MARTIN TREJO -UUID: 7352b597ba6b43cf948a5ae86051fb80 +UUID: 92dd9fb15b8f4ff6860f8a32ea9bd7e4 -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Guanajuato","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb22283.33 a favor","Monto Ultimo Pago":"\ud83d\udcb2 250","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb22283.33 a favor\",\"Monto Ultimo Pago\": \"$ 250\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 10\/06\/2025 02:19 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"10\/06\/2025 02:19\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 10\/06\/2025 02:19 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 10\/06\/2025 02:19","Clabe Interbancaria":null,"Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} +JSON con los datos a actualizar: {"name":"MARTIN TREJO","custom_fields":{"Cliente":94,"Domicilio":"\ud83d\udccd Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Nombre":"\ud83d\udc64 MARTIN TREJO","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/94","Saldo Actual":"\ud83d\udcb25700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 200","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"94\",\"Domicilio\": \"\"Nombre\": \"MARTIN TREJO\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/94\",\"Saldo Actual\": \"\ud83d\udcb25700 pendientes\",\"Monto Ultimo Pago\": \"$ 200\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 31\/01\/2024 15:59 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"31\/07\/2025 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 31\/01\/2024 15:59 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 31\/07\/2025 10:00","Clabe Interbancaria":null,"Site":"","Antena\/Sectorial":""}} -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲2283.33 a favor","Monto Ultimo Pago": "$ 250","Estado": "Activo","Fecha Ultimo Pago": " 10/06/2025 02:19 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "10/06/2025 02:19","Clabe Interbancaria": "","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} +JSON con los datos a actualizar del resumen: {"Cliente": "94","Domicilio": ""Nombre": "MARTIN TREJO","URL": "https://sistema.siip.mx/crm/client/94","Saldo Actual": "💲5700 pendientes","Monto Ultimo Pago": "$ 200","Estado": "Suspendido","Fecha Ultimo Pago": " 31/01/2024 15:59 con Efectivo 💵","Fecha Ultima Actualizacion": "31/07/2025 10:00","Clabe Interbancaria": "","Site": "","Antena/Sectorial": ""} -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲2283.33 a favor","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 10/06/2025 02:19 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 10/06/2025 02:19","Monto Ultimo Pago":"💲 250","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲2283.33 a favor\",\"Monto Ultimo Pago\": \"$ 250\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 10/06/2025 02:19 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"10/06/2025 02:19\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} +Response Patch CallBell: {"contact":{"uuid":"92dd9fb15b8f4ff6860f8a32ea9bd7e4","name":"MARTIN TREJO","phoneNumber":"5214181091933","avatarUrl":null,"createdAt":"2023-12-22T16:55:50Z","closedAt":"2024-07-11T22:49:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/92dd9fb15b8f4ff6860f8a32ea9bd7e4","conversationHref":"https://dash.callbell.eu/chat/04a3e26142e0431789260acb0b60a3ac","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"124180650659256341","Antena/Sectorial":"Sec3-Sb 172.16.55.13/24","Site":"SBARB","Domicilio":"📍 Dolores Hidalgo Cuna de la Independencia Nacional, 37800","URL":"🌐 https://sistema.siip.mx/crm/client/94","Monto Ultimo Pago":"💲 200","Nombre":"👤 MARTIN TREJO","Fecha Ultima Actualizacion":"📆🔄️ 31/07/2025 10:00","Resumen":"{\"Cliente\": \"94\",\"Domicilio\": \"\"Nombre\": \"MARTIN TREJO\",\"URL\": \"https://sistema.siip.mx/crm/client/94\",\"Saldo Actual\": \"💲5700 pendientes\",\"Monto Ultimo Pago\": \"$ 200\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 31/01/2024 15:59 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/07/2025 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Estado":"🔴 Suspendido","Cliente":"94","Saldo Actual":"💲5700 pendientes","Fecha Ultimo Pago":"📆💸 31/01/2024 15:59 con Efectivo 💵"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲2283.33 a favor","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 10/06/2025 02:19 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 10/06/2025 02:19","Monto Ultimo Pago":"💲 250","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲2283.33 a favor\",\"Monto Ultimo Pago\": \"$ 250\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 10/06/2025 02:19 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"10/06/2025 02:19\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} +Response 2 Patch CallBell: {"contact":{"uuid":"92dd9fb15b8f4ff6860f8a32ea9bd7e4","name":"MARTIN TREJO","phoneNumber":"5214181091933","avatarUrl":null,"createdAt":"2023-12-22T16:55:50Z","closedAt":"2024-07-11T22:49:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/92dd9fb15b8f4ff6860f8a32ea9bd7e4","conversationHref":"https://dash.callbell.eu/chat/04a3e26142e0431789260acb0b60a3ac","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"124180650659256341","Antena/Sectorial":"Sec3-Sb 172.16.55.13/24","Site":"SBARB","Domicilio":"📍 Dolores Hidalgo Cuna de la Independencia Nacional, 37800","URL":"🌐 https://sistema.siip.mx/crm/client/94","Monto Ultimo Pago":"💲 200","Nombre":"👤 MARTIN TREJO","Fecha Ultima Actualizacion":"📆🔄️ 31/07/2025 10:00","Resumen":"{\"Cliente\": \"94\",\"Domicilio\": \"\"Nombre\": \"MARTIN TREJO\",\"URL\": \"https://sistema.siip.mx/crm/client/94\",\"Saldo Actual\": \"💲5700 pendientes\",\"Monto Ultimo Pago\": \"$ 200\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 31/01/2024 15:59 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/07/2025 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Estado":"🔴 Suspendido","Cliente":"94","Saldo Actual":"💲5700 pendientes","Fecha Ultimo Pago":"📆💸 31/01/2024 15:59 con Efectivo 💵"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} -[2025-06-10 8:19:12.284193] [notice] Logging level set to:debug -[2025-06-10 8:19:12.284254] [debug] valor del webhook: {"uuid":"64cf537d-d573-44c1-acec-4a072cdf0063","changeType":"edit","entity":"payment","entityId":"642","eventName":"payment.edit","extraData":{"entity":{"id":642,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:19:05-0600","amount":250,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":250,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":642,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:19:05-0600","amount":250,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":250,"userId":null,"attributes":[]}}} +[2025-07-31 16:00:26.368391] [notice] Logging level set to:debug +[2025-07-31 16:00:26.368448] [debug] valor del webhook: {"uuid":"084adbfd-3ee6-4c67-b99f-d49426ba2485","changeType":"draft_approved","entity":"invoice","entityId":"2230","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2230,"clientId":57,"number":"002180","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2233,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":56,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SANDRO","clientLastName":"MARQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2025-06-10 8:19:12.399074] [debug] valor el evento recibido por webhook: payment.edit +[2025-07-31 16:00:26.579544] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2025-06-10 8:19:12.399250] [debug] Valor de JSON: {"uuid":"64cf537d-d573-44c1-acec-4a072cdf0063","changeType":"edit","entity":"payment","entityId":"642","eventName":"payment.edit","extraData":{"entity":{"id":642,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:19:05-0600","amount":250,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":250,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":642,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:19:05-0600","amount":250,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":250,"userId":null,"attributes":[]}}} +[2025-07-31 16:00:26.579596] [debug] Valor de JSON: {"uuid":"084adbfd-3ee6-4c67-b99f-d49426ba2485","changeType":"draft_approved","entity":"invoice","entityId":"2230","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2230,"clientId":57,"number":"002180","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2233,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":56,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SANDRO","clientLastName":"MARQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2025-06-10 8:20:19.760288] [notice] Logging level set to:debug -[2025-06-10 8:20:19.760780] [debug] valor del webhook: { +[2025-07-31 16:00:26.579704] [debug] Aprobación de Factura + +[2025-07-31 16:00:26.579746] [debug] {"uuid":"084adbfd-3ee6-4c67-b99f-d49426ba2485","changeType":"draft_approved","entity":"invoice","entityId":2230,"message":null,"clientId":57,"eventName":"invoice.draft_approved","clientData":{"id":57,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"SANDRO","lastName":"MARQUEZ","username":"smarquez57","contacts":[{"id":58,"clientId":57,"email":null,"phone":"181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"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":2230,"clientId":57,"number":"002180","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2233,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":56,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SANDRO","clientLastName":"MARQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:27.483572] [notice] Logging level set to:debug +[2025-07-31 16:00:27.483628] [debug] valor del webhook: {"uuid":"9c1fa483-f273-40f0-bb03-a67ef86c2580","changeType":"draft_approved","entity":"invoice","entityId":"2231","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2231,"clientId":83,"number":"002181","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2234,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":82,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"SOLIS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL VERGEL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:27.623457] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:27.623511] [debug] Valor de JSON: {"uuid":"9c1fa483-f273-40f0-bb03-a67ef86c2580","changeType":"draft_approved","entity":"invoice","entityId":"2231","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2231,"clientId":83,"number":"002181","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2234,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":82,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"SOLIS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL VERGEL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:27.623605] [debug] Aprobación de Factura + +[2025-07-31 16:00:27.623648] [debug] {"uuid":"9c1fa483-f273-40f0-bb03-a67ef86c2580","changeType":"draft_approved","entity":"invoice","entityId":2231,"message":null,"clientId":83,"eventName":"invoice.draft_approved","clientData":{"id":83,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL VERGEL","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL VERGEL, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"EDUARDO","lastName":"SOLIS","username":"esolis83","contacts":[{"id":84,"clientId":83,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-12000,"accountCredit":0,"accountOutstanding":12000,"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":2231,"clientId":83,"number":"002181","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2234,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":82,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"SOLIS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL VERGEL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:28.811358] [notice] Logging level set to:debug +[2025-07-31 16:00:28.811422] [debug] valor del webhook: {"uuid":"a9585cb0-09c1-4a6b-9f6c-af85ac040358","changeType":"draft_approved","entity":"invoice","entityId":"2232","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2232,"clientId":79,"number":"002182","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2235,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":78,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"ESPONIZA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:28.963026] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:28.963080] [debug] Valor de JSON: {"uuid":"a9585cb0-09c1-4a6b-9f6c-af85ac040358","changeType":"draft_approved","entity":"invoice","entityId":"2232","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2232,"clientId":79,"number":"002182","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2235,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":78,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"ESPONIZA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:28.963170] [debug] Aprobación de Factura + +[2025-07-31 16:00:28.963210] [debug] {"uuid":"a9585cb0-09c1-4a6b-9f6c-af85ac040358","changeType":"draft_approved","entity":"invoice","entityId":2232,"message":null,"clientId":79,"eventName":"invoice.draft_approved","clientData":{"id":79,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LAS YERBAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LAS YERBAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"SEBASTIAN","lastName":"ESPONIZA","username":"sesponiza79","contacts":[{"id":80,"clientId":79,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-9000,"accountCredit":0,"accountOutstanding":9000,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2e7d32","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2232,"clientId":79,"number":"002182","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2235,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":78,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"ESPONIZA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:30.199179] [notice] Logging level set to:debug +[2025-07-31 16:00:30.199254] [debug] valor del webhook: {"uuid":"3482c9c4-1842-495a-bec7-fde276132282","changeType":"draft_approved","entity":"invoice","entityId":"2233","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2233,"clientId":87,"number":"002183","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2236,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":86,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ANTON","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:30.355376] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:30.355444] [debug] Valor de JSON: {"uuid":"3482c9c4-1842-495a-bec7-fde276132282","changeType":"draft_approved","entity":"invoice","entityId":"2233","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2233,"clientId":87,"number":"002183","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2236,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":86,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ANTON","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:30.355604] [debug] Aprobación de Factura + +[2025-07-31 16:00:30.355668] [debug] {"uuid":"3482c9c4-1842-495a-bec7-fde276132282","changeType":"draft_approved","entity":"invoice","entityId":2233,"message":null,"clientId":87,"eventName":"invoice.draft_approved","clientData":{"id":87,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ANTON","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ANTON, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"TERESA","lastName":"REYES","username":"treyes87","contacts":[{"id":88,"clientId":87,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5700,"accountCredit":0,"accountOutstanding":5700,"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":2233,"clientId":87,"number":"002183","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2236,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":86,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ANTON","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:31.526179] [notice] Logging level set to:debug +[2025-07-31 16:00:31.526293] [debug] valor del webhook: {"uuid":"a40529c7-c2ae-43dc-a800-019b222e9069","changeType":"draft_approved","entity":"invoice","entityId":"2234","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2234,"clientId":63,"number":"002184","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2237,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":62,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONELA","clientLastName":"ROBLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:31.664534] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:31.664588] [debug] Valor de JSON: {"uuid":"a40529c7-c2ae-43dc-a800-019b222e9069","changeType":"draft_approved","entity":"invoice","entityId":"2234","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2234,"clientId":63,"number":"002184","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2237,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":62,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONELA","clientLastName":"ROBLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:31.664685] [debug] Aprobación de Factura + +[2025-07-31 16:00:31.664726] [debug] {"uuid":"a40529c7-c2ae-43dc-a800-019b222e9069","changeType":"draft_approved","entity":"invoice","entityId":2234,"message":null,"clientId":63,"eventName":"invoice.draft_approved","clientData":{"id":63,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ELIAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ELIAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANTONELA","lastName":"ROBLES","username":"arobles63","contacts":[{"id":64,"clientId":63,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"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":2234,"clientId":63,"number":"002184","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2237,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":62,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONELA","clientLastName":"ROBLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:32.801651] [notice] Logging level set to:debug +[2025-07-31 16:00:32.801723] [debug] valor del webhook: {"uuid":"6ef05066-f818-4428-8121-4230fe93674c","changeType":"draft_approved","entity":"invoice","entityId":"2235","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2235,"clientId":65,"number":"002185","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2238,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":64,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS MONCADA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:32.928574] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:32.928626] [debug] Valor de JSON: {"uuid":"6ef05066-f818-4428-8121-4230fe93674c","changeType":"draft_approved","entity":"invoice","entityId":"2235","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2235,"clientId":65,"number":"002185","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2238,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":64,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS MONCADA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:32.928725] [debug] Aprobación de Factura + +[2025-07-31 16:00:32.928771] [debug] {"uuid":"6ef05066-f818-4428-8121-4230fe93674c","changeType":"draft_approved","entity":"invoice","entityId":2235,"message":null,"clientId":65,"eventName":"invoice.draft_approved","clientData":{"id":65,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LOS MONCADA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LOS MONCADA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"SEBASTIAN","lastName":"MESA","username":"smesa65","contacts":[{"id":66,"clientId":65,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3949ab","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2235,"clientId":65,"number":"002185","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2238,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":64,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS MONCADA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:34.088519] [notice] Logging level set to:debug +[2025-07-31 16:00:34.088603] [debug] valor del webhook: {"uuid":"51a7f7fd-f7b7-460f-b040-7134206a5acb","changeType":"draft_approved","entity":"invoice","entityId":"2236","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2236,"clientId":27,"number":"002186","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2239,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":26,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXIS","clientLastName":"DIAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA RITA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:34.227962] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:34.228027] [debug] Valor de JSON: {"uuid":"51a7f7fd-f7b7-460f-b040-7134206a5acb","changeType":"draft_approved","entity":"invoice","entityId":"2236","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2236,"clientId":27,"number":"002186","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2239,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":26,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXIS","clientLastName":"DIAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA RITA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:34.228142] [debug] Aprobación de Factura + +[2025-07-31 16:00:34.228185] [debug] {"uuid":"51a7f7fd-f7b7-460f-b040-7134206a5acb","changeType":"draft_approved","entity":"invoice","entityId":2236,"message":null,"clientId":27,"eventName":"invoice.draft_approved","clientData":{"id":27,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA RITA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA RITA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALEXIS","lastName":"DIAZ","username":"adiaz27","contacts":[{"id":28,"clientId":27,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5410,"accountCredit":0,"accountOutstanding":5410,"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":2236,"clientId":27,"number":"002186","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2239,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":26,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXIS","clientLastName":"DIAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA RITA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:35.370049] [notice] Logging level set to:debug +[2025-07-31 16:00:35.370135] [debug] valor del webhook: {"uuid":"5d82014f-1508-487c-9798-9b9f22934ec9","changeType":"draft_approved","entity":"invoice","entityId":"2237","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2237,"clientId":36,"number":"002187","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2240,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":35,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURORA","clientLastName":"FLORES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS FLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:35.515645] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:35.515718] [debug] Valor de JSON: {"uuid":"5d82014f-1508-487c-9798-9b9f22934ec9","changeType":"draft_approved","entity":"invoice","entityId":"2237","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2237,"clientId":36,"number":"002187","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2240,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":35,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURORA","clientLastName":"FLORES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS FLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:35.515872] [debug] Aprobación de Factura + +[2025-07-31 16:00:35.515947] [debug] {"uuid":"5d82014f-1508-487c-9798-9b9f22934ec9","changeType":"draft_approved","entity":"invoice","entityId":2237,"message":null,"clientId":36,"eventName":"invoice.draft_approved","clientData":{"id":36,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LAS FLORES","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LAS FLORES, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"AURORA","lastName":"FLORES","username":"aflores36","contacts":[{"id":37,"clientId":36,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-7190,"accountCredit":0,"accountOutstanding":7190,"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":2237,"clientId":36,"number":"002187","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2240,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":35,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURORA","clientLastName":"FLORES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS FLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:36.730207] [notice] Logging level set to:debug +[2025-07-31 16:00:36.730288] [debug] valor del webhook: {"uuid":"6c7e396c-fcc6-44cb-be97-f0aa8fe03592","changeType":"draft_approved","entity":"invoice","entityId":"2238","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2238,"clientId":62,"number":"002188","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2241,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":61,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"BERNAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:36.883507] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:36.883560] [debug] Valor de JSON: {"uuid":"6c7e396c-fcc6-44cb-be97-f0aa8fe03592","changeType":"draft_approved","entity":"invoice","entityId":"2238","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2238,"clientId":62,"number":"002188","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2241,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":61,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"BERNAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:36.883661] [debug] Aprobación de Factura + +[2025-07-31 16:00:36.883706] [debug] {"uuid":"6c7e396c-fcc6-44cb-be97-f0aa8fe03592","changeType":"draft_approved","entity":"invoice","entityId":2238,"message":null,"clientId":62,"eventName":"invoice.draft_approved","clientData":{"id":62,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TRANCAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TRANCAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"DANIEL","lastName":"BERNAL","username":"dbernal62","contacts":[{"id":63,"clientId":62,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"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":2238,"clientId":62,"number":"002188","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2241,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":61,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"BERNAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:38.053021] [notice] Logging level set to:debug +[2025-07-31 16:00:38.053108] [debug] valor del webhook: {"uuid":"293daa7c-e1c6-446e-a170-08072dd25162","changeType":"draft_approved","entity":"invoice","entityId":"2239","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2239,"clientId":96,"number":"002189","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2242,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":95,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PAMELA","clientLastName":"RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:38.213943] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:38.213999] [debug] Valor de JSON: {"uuid":"293daa7c-e1c6-446e-a170-08072dd25162","changeType":"draft_approved","entity":"invoice","entityId":"2239","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2239,"clientId":96,"number":"002189","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2242,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":95,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PAMELA","clientLastName":"RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:38.214107] [debug] Aprobación de Factura + +[2025-07-31 16:00:38.214150] [debug] {"uuid":"293daa7c-e1c6-446e-a170-08072dd25162","changeType":"draft_approved","entity":"invoice","entityId":2239,"message":null,"clientId":96,"eventName":"invoice.draft_approved","clientData":{"id":96,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"PAMELA","lastName":"RAMIREZ","username":"pramirez96","contacts":[{"id":97,"clientId":96,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-1800,"accountCredit":0,"accountOutstanding":1800,"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":2239,"clientId":96,"number":"002189","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2242,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":95,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PAMELA","clientLastName":"RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:39.363415] [notice] Logging level set to:debug +[2025-07-31 16:00:39.363523] [debug] valor del webhook: {"uuid":"70b6f22e-5d0b-4034-9f0c-0557b478050c","changeType":"draft_approved","entity":"invoice","entityId":"2240","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2240,"clientId":90,"number":"002190","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2243,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":89,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PEDRO","clientLastName":"HORNEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:39.497642] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:39.497690] [debug] Valor de JSON: {"uuid":"70b6f22e-5d0b-4034-9f0c-0557b478050c","changeType":"draft_approved","entity":"invoice","entityId":"2240","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2240,"clientId":90,"number":"002190","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2243,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":89,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PEDRO","clientLastName":"HORNEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:39.497780] [debug] Aprobación de Factura + +[2025-07-31 16:00:39.497826] [debug] {"uuid":"70b6f22e-5d0b-4034-9f0c-0557b478050c","changeType":"draft_approved","entity":"invoice","entityId":2240,"message":null,"clientId":90,"eventName":"invoice.draft_approved","clientData":{"id":90,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"ADJUNTAS DEL RIO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"ADJUNTAS DEL RIO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"PEDRO","lastName":"HORNEDO","username":"phornedo90","contacts":[{"id":91,"clientId":90,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5700,"accountCredit":0,"accountOutstanding":5700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2240,"clientId":90,"number":"002190","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2243,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":89,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PEDRO","clientLastName":"HORNEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:40.646460] [notice] Logging level set to:debug +[2025-07-31 16:00:40.646576] [debug] valor del webhook: {"uuid":"77b024c8-0b8e-4e0d-8a1c-e4cc1843a13c","changeType":"draft_approved","entity":"invoice","entityId":"2241","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2241,"clientId":46,"number":"002191","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2244,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":45,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ISMAEL","clientLastName":"PUGA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ROSILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:40.785006] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:40.785059] [debug] Valor de JSON: {"uuid":"77b024c8-0b8e-4e0d-8a1c-e4cc1843a13c","changeType":"draft_approved","entity":"invoice","entityId":"2241","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2241,"clientId":46,"number":"002191","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2244,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":45,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ISMAEL","clientLastName":"PUGA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ROSILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:40.785155] [debug] Aprobación de Factura + +[2025-07-31 16:00:40.785198] [debug] {"uuid":"77b024c8-0b8e-4e0d-8a1c-e4cc1843a13c","changeType":"draft_approved","entity":"invoice","entityId":2241,"message":null,"clientId":46,"eventName":"invoice.draft_approved","clientData":{"id":46,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL ROSILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL ROSILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ISMAEL","lastName":"PUGA","username":"ipuga46","contacts":[{"id":47,"clientId":46,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":100,"clientId":46,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtMzv6GBcULCcTh","clientZoneVisible":true},{"id":101,"clientId":46,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"6881305189499928","clientZoneVisible":true}],"accountBalance":-5700,"accountCredit":0,"accountOutstanding":5700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2e7d32","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2241,"clientId":46,"number":"002191","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2244,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":45,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ISMAEL","clientLastName":"PUGA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ROSILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:41.963876] [notice] Logging level set to:debug +[2025-07-31 16:00:41.963975] [debug] valor del webhook: {"uuid":"4026e3d8-c549-4d80-a280-e2a7b2aecd55","changeType":"draft_approved","entity":"invoice","entityId":"2242","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2242,"clientId":15,"number":"002192","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2245,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":15,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"VILLEGAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:42.140713] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:42.140782] [debug] Valor de JSON: {"uuid":"4026e3d8-c549-4d80-a280-e2a7b2aecd55","changeType":"draft_approved","entity":"invoice","entityId":"2242","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2242,"clientId":15,"number":"002192","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2245,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":15,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"VILLEGAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:42.140892] [debug] Aprobación de Factura + +[2025-07-31 16:00:42.140938] [debug] {"uuid":"4026e3d8-c549-4d80-a280-e2a7b2aecd55","changeType":"draft_approved","entity":"invoice","entityId":2242,"message":null,"clientId":15,"eventName":"invoice.draft_approved","clientData":{"id":15,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"EDUARDO","lastName":"VILLEGAZ","username":"evillegaz15","contacts":[{"id":16,"clientId":15,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-14000,"accountCredit":0,"accountOutstanding":14000,"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":2242,"clientId":15,"number":"002192","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2245,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":15,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"VILLEGAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:42.140985] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-07-31 16:00:42.140995] [info] Tipo de contacto normalizado: 'whatsapp' +Notificacion data: {"uuid":"4026e3d8-c549-4d80-a280-e2a7b2aecd55","changeType":"draft_approved","entity":"invoice","entityId":2242,"message":null,"clientId":15,"eventName":"invoice.draft_approved","clientData":{"id":15,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"EDUARDO","lastName":"VILLEGAZ","username":"evillegaz15","contacts":[{"id":16,"clientId":15,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-14000,"accountCredit":0,"accountOutstanding":14000,"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":2242,"clientId":15,"number":"002192","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2245,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":15,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"VILLEGAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":16,"clientId":15,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-01-29T16:50:24-0600","amount":3500,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":18,"invoiceId":25,"paymentId":16,"creditNoteId":null,"refundId":null,"amount":3500}],"creditAmount":0,"userId":1000,"attributes":[]}] + +Nombre del cliente que se va a actualizar: EDUARDO VILLEGAZ + +UUID: 92dd9fb15b8f4ff6860f8a32ea9bd7e4 + +JSON con los datos a actualizar: {"name":"EDUARDO VILLEGAZ","custom_fields":{"Cliente":15,"Domicilio":"\ud83d\udccd SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Nombre":"\ud83d\udc64 EDUARDO VILLEGAZ","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/15","Saldo Actual":"\ud83d\udcb214000 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 3500","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"15\",\"Domicilio\": \"\"Nombre\": \"EDUARDO VILLEGAZ\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/15\",\"Saldo Actual\": \"\ud83d\udcb214000 pendientes\",\"Monto Ultimo Pago\": \"$ 3500\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29\/01\/2024 16:50 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"31\/07\/2025 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 29\/01\/2024 16:50 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 31\/07\/2025 10:00","Clabe Interbancaria":null,"Site":"","Antena\/Sectorial":""}} + +JSON con los datos a actualizar del resumen: {"Cliente": "15","Domicilio": ""Nombre": "EDUARDO VILLEGAZ","URL": "https://sistema.siip.mx/crm/client/15","Saldo Actual": "💲14000 pendientes","Monto Ultimo Pago": "$ 3500","Estado": "Suspendido","Fecha Ultimo Pago": " 29/01/2024 16:50 con Efectivo 💵","Fecha Ultima Actualizacion": "31/07/2025 10:00","Clabe Interbancaria": "","Site": "","Antena/Sectorial": ""} + +Response Patch CallBell: {"contact":{"uuid":"92dd9fb15b8f4ff6860f8a32ea9bd7e4","name":"EDUARDO VILLEGAZ","phoneNumber":"5214181091933","avatarUrl":null,"createdAt":"2023-12-22T16:55:50Z","closedAt":"2024-07-11T22:49:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/92dd9fb15b8f4ff6860f8a32ea9bd7e4","conversationHref":"https://dash.callbell.eu/chat/04a3e26142e0431789260acb0b60a3ac","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"124180650659256341","Antena/Sectorial":"Sec3-Sb 172.16.55.13/24","Site":"SBARB","Domicilio":"📍 SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","URL":"🌐 https://sistema.siip.mx/crm/client/15","Monto Ultimo Pago":"💲 3500","Fecha Ultima Actualizacion":"📆🔄️ 31/07/2025 10:00","Resumen":"{\"Cliente\": \"15\",\"Domicilio\": \"\"Nombre\": \"EDUARDO VILLEGAZ\",\"URL\": \"https://sistema.siip.mx/crm/client/15\",\"Saldo Actual\": \"💲14000 pendientes\",\"Monto Ultimo Pago\": \"$ 3500\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29/01/2024 16:50 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/07/2025 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Estado":"🔴 Suspendido","Cliente":"15","Saldo Actual":"💲14000 pendientes","Fecha Ultimo Pago":"📆💸 29/01/2024 16:50 con Efectivo 💵","Nombre":"👤 EDUARDO VILLEGAZ"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +Response 2 Patch CallBell: {"contact":{"uuid":"92dd9fb15b8f4ff6860f8a32ea9bd7e4","name":"EDUARDO VILLEGAZ","phoneNumber":"5214181091933","avatarUrl":null,"createdAt":"2023-12-22T16:55:50Z","closedAt":"2024-07-11T22:49:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/92dd9fb15b8f4ff6860f8a32ea9bd7e4","conversationHref":"https://dash.callbell.eu/chat/04a3e26142e0431789260acb0b60a3ac","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"124180650659256341","Antena/Sectorial":"Sec3-Sb 172.16.55.13/24","Site":"SBARB","Domicilio":"📍 SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","URL":"🌐 https://sistema.siip.mx/crm/client/15","Monto Ultimo Pago":"💲 3500","Fecha Ultima Actualizacion":"📆🔄️ 31/07/2025 10:00","Resumen":"{\"Cliente\": \"15\",\"Domicilio\": \"\"Nombre\": \"EDUARDO VILLEGAZ\",\"URL\": \"https://sistema.siip.mx/crm/client/15\",\"Saldo Actual\": \"💲14000 pendientes\",\"Monto Ultimo Pago\": \"$ 3500\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29/01/2024 16:50 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/07/2025 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Estado":"🔴 Suspendido","Cliente":"15","Saldo Actual":"💲14000 pendientes","Fecha Ultimo Pago":"📆💸 29/01/2024 16:50 con Efectivo 💵","Nombre":"👤 EDUARDO VILLEGAZ"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-07-31 16:00:45.651247] [notice] Logging level set to:debug +[2025-07-31 16:00:45.651328] [debug] valor del webhook: {"uuid":"0c56d9ed-1401-4ed7-9486-e26f2fc8d9bf","changeType":"draft_approved","entity":"invoice","entityId":"2243","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2243,"clientId":14,"number":"002193","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2246,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":14,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDRO","clientLastName":"ARIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:45.821780] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:45.821836] [debug] Valor de JSON: {"uuid":"0c56d9ed-1401-4ed7-9486-e26f2fc8d9bf","changeType":"draft_approved","entity":"invoice","entityId":"2243","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2243,"clientId":14,"number":"002193","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2246,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":14,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDRO","clientLastName":"ARIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:45.821949] [debug] Aprobación de Factura + +[2025-07-31 16:00:45.821993] [debug] {"uuid":"0c56d9ed-1401-4ed7-9486-e26f2fc8d9bf","changeType":"draft_approved","entity":"invoice","entityId":2243,"message":null,"clientId":14,"eventName":"invoice.draft_approved","clientData":{"id":14,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LINDAVISTA","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LINDAVISTA, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALEXANDRO","lastName":"ARIAS","username":"aarias14","contacts":[{"id":15,"clientId":14,"email":null,"phone":"+1 682-260-4759","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"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":2243,"clientId":14,"number":"002193","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2246,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":14,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDRO","clientLastName":"ARIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:45.822041] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-07-31 16:00:45.822056] [info] Tipo de contacto normalizado: 'whatsapp' +Notificacion data: {"uuid":"0c56d9ed-1401-4ed7-9486-e26f2fc8d9bf","changeType":"draft_approved","entity":"invoice","entityId":2243,"message":null,"clientId":14,"eventName":"invoice.draft_approved","clientData":{"id":14,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LINDAVISTA","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LINDAVISTA, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALEXANDRO","lastName":"ARIAS","username":"aarias14","contacts":[{"id":15,"clientId":14,"email":null,"phone":"+1 682-260-4759","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"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":2243,"clientId":14,"number":"002193","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2246,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":14,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDRO","clientLastName":"ARIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":15,"clientId":14,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-01-29T12:00:41-0600","amount":1800,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":17,"invoiceId":23,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300},{"id":19,"invoiceId":67,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300},{"id":36,"invoiceId":126,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300},{"id":122,"invoiceId":318,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300},{"id":125,"invoiceId":382,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300},{"id":312,"invoiceId":582,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1000,"attributes":[]}] + +Nombre del cliente que se va a actualizar: ALEXANDRO ARIAS + +UUID: be760b254a694e8b94b002789d68d388 + +JSON con los datos a actualizar: {"name":"ALEXANDRO ARIAS","custom_fields":{"Cliente":14,"Domicilio":"\ud83d\udccd LINDAVISTA, Dolores Hidalgo, 37800","Nombre":"\ud83d\udc64 ALEXANDRO ARIAS","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/14","Saldo Actual":"\ud83d\udcb24200 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 1800","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"14\",\"Domicilio\": \"\"Nombre\": \"ALEXANDRO ARIAS\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/14\",\"Saldo Actual\": \"\ud83d\udcb24200 pendientes\",\"Monto Ultimo Pago\": \"$ 1800\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29\/01\/2024 12:00 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"31\/07\/2025 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 29\/01\/2024 12:00 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 31\/07\/2025 10:00","Clabe Interbancaria":null,"Site":"","Antena\/Sectorial":""}} + +JSON con los datos a actualizar del resumen: {"Cliente": "14","Domicilio": ""Nombre": "ALEXANDRO ARIAS","URL": "https://sistema.siip.mx/crm/client/14","Saldo Actual": "💲4200 pendientes","Monto Ultimo Pago": "$ 1800","Estado": "Suspendido","Fecha Ultimo Pago": " 29/01/2024 12:00 con Efectivo 💵","Fecha Ultima Actualizacion": "31/07/2025 10:00","Clabe Interbancaria": "","Site": "","Antena/Sectorial": ""} + +Response Patch CallBell: {"contact":{"uuid":"be760b254a694e8b94b002789d68d388","name":"ALEXANDRO ARIAS","phoneNumber":"+1 682-260-4759","avatarUrl":null,"createdAt":"2024-01-29T18:03:03Z","closedAt":"2024-01-29T18:32:46Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/be760b254a694e8b94b002789d68d388","conversationHref":"https://dash.callbell.eu/chat/b95896c60a7e4541b9d378d9d9ef938b","tags":[],"assignedUser":null,"customFields":{"Antena/Sectorial":"14","Nombre":"👤 ALEXANDRO ARIAS","Cliente":"14","Domicilio":"📍 LINDAVISTA, Dolores Hidalgo, 37800","Fecha Ultimo Pago":"📆💸 29/01/2024 12:00 con Efectivo 💵","Monto Ultimo Pago":"💲 1800","URL":"🌐 https://sistema.siip.mx/crm/client/14","Estado":"🔴 Suspendido","Saldo Actual":"💲4200 pendientes","Fecha Ultima Actualizacion":"📆🔄️ 31/07/2025 10:00","Resumen":"{\"Cliente\": \"14\",\"Domicilio\": \"\"Nombre\": \"ALEXANDRO ARIAS\",\"URL\": \"https://sistema.siip.mx/crm/client/14\",\"Saldo Actual\": \"💲4200 pendientes\",\"Monto Ultimo Pago\": \"$ 1800\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29/01/2024 12:00 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/07/2025 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +Response 2 Patch CallBell: {"contact":{"uuid":"be760b254a694e8b94b002789d68d388","name":"ALEXANDRO ARIAS","phoneNumber":"+1 682-260-4759","avatarUrl":null,"createdAt":"2024-01-29T18:03:03Z","closedAt":"2024-01-29T18:32:46Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/be760b254a694e8b94b002789d68d388","conversationHref":"https://dash.callbell.eu/chat/b95896c60a7e4541b9d378d9d9ef938b","tags":[],"assignedUser":null,"customFields":{"Antena/Sectorial":"14","Nombre":"👤 ALEXANDRO ARIAS","Cliente":"14","Domicilio":"📍 LINDAVISTA, Dolores Hidalgo, 37800","Fecha Ultimo Pago":"📆💸 29/01/2024 12:00 con Efectivo 💵","Monto Ultimo Pago":"💲 1800","URL":"🌐 https://sistema.siip.mx/crm/client/14","Estado":"🔴 Suspendido","Saldo Actual":"💲4200 pendientes","Fecha Ultima Actualizacion":"📆🔄️ 31/07/2025 10:00","Resumen":"{\"Cliente\": \"14\",\"Domicilio\": \"\"Nombre\": \"ALEXANDRO ARIAS\",\"URL\": \"https://sistema.siip.mx/crm/client/14\",\"Saldo Actual\": \"💲4200 pendientes\",\"Monto Ultimo Pago\": \"$ 1800\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29/01/2024 12:00 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/07/2025 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-07-31 16:00:48.601550] [notice] Logging level set to:debug +[2025-07-31 16:00:48.601625] [debug] valor del webhook: {"uuid":"647fe164-e235-4215-9c42-226fd60a5a37","changeType":"draft_approved","entity":"invoice","entityId":"2244","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2244,"clientId":88,"number":"002194","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2247,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":87,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CECILIA","clientLastName":"GRANDE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIFORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:48.747850] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:48.747905] [debug] Valor de JSON: {"uuid":"647fe164-e235-4215-9c42-226fd60a5a37","changeType":"draft_approved","entity":"invoice","entityId":"2244","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2244,"clientId":88,"number":"002194","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2247,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":87,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CECILIA","clientLastName":"GRANDE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIFORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:48.748018] [debug] Aprobación de Factura + +[2025-07-31 16:00:48.748193] [debug] {"uuid":"647fe164-e235-4215-9c42-226fd60a5a37","changeType":"draft_approved","entity":"invoice","entityId":2244,"message":null,"clientId":88,"eventName":"invoice.draft_approved","clientData":{"id":88,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA CALIFORNIA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA CALIFORNIA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"CECILIA","lastName":"GRANDE","username":"cgrande88","contacts":[{"id":89,"clientId":88,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-13100,"accountCredit":0,"accountOutstanding":13100,"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":2244,"clientId":88,"number":"002194","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2247,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":87,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CECILIA","clientLastName":"GRANDE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIFORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:48.863692] [notice] Logging level set to:debug +[2025-07-31 16:00:48.863745] [debug] valor del webhook: {"uuid":"913b819a-3269-4c66-9910-02a4de84cb28","changeType":"draft_approved","entity":"invoice","entityId":"2245","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2245,"clientId":11,"number":"002195","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2248,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":11,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"KARIME","clientLastName":"QUINTERO HERNANDEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:48.997689] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:48.997741] [debug] Valor de JSON: {"uuid":"913b819a-3269-4c66-9910-02a4de84cb28","changeType":"draft_approved","entity":"invoice","entityId":"2245","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2245,"clientId":11,"number":"002195","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2248,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":11,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"KARIME","clientLastName":"QUINTERO HERNANDEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:48.997828] [debug] Aprobación de Factura + +[2025-07-31 16:00:48.997869] [debug] {"uuid":"913b819a-3269-4c66-9910-02a4de84cb28","changeType":"draft_approved","entity":"invoice","entityId":2245,"message":null,"clientId":11,"eventName":"invoice.draft_approved","clientData":{"id":11,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TRANCAS","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TRANCAS, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"KARIME","lastName":"QUINTERO HERNANDEZ","username":"kquintero11","contacts":[{"id":12,"clientId":11,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4500,"accountCredit":0,"accountOutstanding":4500,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.2271959,"addressGpsLon":-101.0269744,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2245,"clientId":11,"number":"002195","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2248,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":11,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"KARIME","clientLastName":"QUINTERO HERNANDEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:49.754065] [notice] Logging level set to:debug +[2025-07-31 16:00:49.754173] [debug] valor del webhook: {"uuid":"41f8334c-d97a-4a03-baa3-1417e792c725","changeType":"draft_approved","entity":"invoice","entityId":"2246","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2246,"clientId":84,"number":"002196","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2249,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":83,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ROLANDO","clientLastName":"CALVILLLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:49.885813] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:49.885867] [debug] Valor de JSON: {"uuid":"41f8334c-d97a-4a03-baa3-1417e792c725","changeType":"draft_approved","entity":"invoice","entityId":"2246","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2246,"clientId":84,"number":"002196","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2249,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":83,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ROLANDO","clientLastName":"CALVILLLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:49.885968] [debug] Aprobación de Factura + +[2025-07-31 16:00:49.886012] [debug] {"uuid":"41f8334c-d97a-4a03-baa3-1417e792c725","changeType":"draft_approved","entity":"invoice","entityId":2246,"message":null,"clientId":84,"eventName":"invoice.draft_approved","clientData":{"id":84,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ELIAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ELIAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ROLANDO","lastName":"CALVILLLO","username":"rcalvilllo84","contacts":[{"id":85,"clientId":84,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5700,"accountCredit":0,"accountOutstanding":5700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2196f3","addressGpsLat":21.2516667,"addressGpsLon":-101.0924998,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2246,"clientId":84,"number":"002196","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2249,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":83,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ROLANDO","clientLastName":"CALVILLLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:51.058180] [notice] Logging level set to:debug +[2025-07-31 16:00:51.058244] [debug] valor del webhook: {"uuid":"e474be90-0060-4990-ada5-e0a11f5a5203","changeType":"draft_approved","entity":"invoice","entityId":"2247","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2247,"clientId":99,"number":"002197","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2250,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":98,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BELINDA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:51.210319] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:51.210372] [debug] Valor de JSON: {"uuid":"e474be90-0060-4990-ada5-e0a11f5a5203","changeType":"draft_approved","entity":"invoice","entityId":"2247","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2247,"clientId":99,"number":"002197","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2250,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":98,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BELINDA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:51.210494] [debug] Aprobación de Factura + +[2025-07-31 16:00:51.210544] [debug] {"uuid":"e474be90-0060-4990-ada5-e0a11f5a5203","changeType":"draft_approved","entity":"invoice","entityId":2247,"message":null,"clientId":99,"eventName":"invoice.draft_approved","clientData":{"id":99,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"MONTELONGO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"MONTELONGO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"BELINDA","lastName":"REYES","username":"breyes99","contacts":[{"id":100,"clientId":99,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-6900,"accountCredit":0,"accountOutstanding":6900,"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":2247,"clientId":99,"number":"002197","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2250,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":98,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BELINDA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:52.328363] [notice] Logging level set to:debug +[2025-07-31 16:00:52.328444] [debug] valor del webhook: {"uuid":"93a40789-a1ca-47b0-88a7-996a67dd8c72","changeType":"draft_approved","entity":"invoice","entityId":"2248","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2248,"clientId":24,"number":"002198","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2251,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":23,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JACIEL","clientLastName":"CERVANTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTO NI\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:52.478507] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:52.478568] [debug] Valor de JSON: {"uuid":"93a40789-a1ca-47b0-88a7-996a67dd8c72","changeType":"draft_approved","entity":"invoice","entityId":"2248","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2248,"clientId":24,"number":"002198","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2251,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":23,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JACIEL","clientLastName":"CERVANTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTO NI\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:52.478679] [debug] Aprobación de Factura + +[2025-07-31 16:00:52.478734] [debug] {"uuid":"93a40789-a1ca-47b0-88a7-996a67dd8c72","changeType":"draft_approved","entity":"invoice","entityId":2248,"message":null,"clientId":24,"eventName":"invoice.draft_approved","clientData":{"id":24,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTO NI\u00d1O","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTO NI\u00d1O, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JACIEL","lastName":"CERVANTES","username":"jcervantes24","contacts":[{"id":25,"clientId":24,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5680,"accountCredit":0,"accountOutstanding":5680,"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":2248,"clientId":24,"number":"002198","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2251,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":23,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JACIEL","clientLastName":"CERVANTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTO NI\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:53.647717] [notice] Logging level set to:debug +[2025-07-31 16:00:53.647799] [debug] valor del webhook: {"uuid":"d68eac13-8a1d-4474-8842-ee306f524055","changeType":"draft_approved","entity":"invoice","entityId":"2249","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2249,"clientId":42,"number":"002199","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2252,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":41,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORENA","clientLastName":"MARTINEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:53.802023] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:53.802078] [debug] Valor de JSON: {"uuid":"d68eac13-8a1d-4474-8842-ee306f524055","changeType":"draft_approved","entity":"invoice","entityId":"2249","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2249,"clientId":42,"number":"002199","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2252,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":41,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORENA","clientLastName":"MARTINEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:53.802187] [debug] Aprobación de Factura + +[2025-07-31 16:00:53.802237] [debug] {"uuid":"d68eac13-8a1d-4474-8842-ee306f524055","changeType":"draft_approved","entity":"invoice","entityId":2249,"message":null,"clientId":42,"eventName":"invoice.draft_approved","clientData":{"id":42,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"LORENA","lastName":"MARTINEZ","username":"lmartinez42","contacts":[{"id":43,"clientId":42,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5710,"accountCredit":0,"accountOutstanding":5710,"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":2249,"clientId":42,"number":"002199","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2252,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":41,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORENA","clientLastName":"MARTINEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:54.958723] [notice] Logging level set to:debug +[2025-07-31 16:00:54.958807] [debug] valor del webhook: {"uuid":"75e5dce5-7eea-479f-9367-510084a4b69e","changeType":"draft_approved","entity":"invoice","entityId":"2250","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2250,"clientId":30,"number":"002200","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2253,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":29,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUANA","clientLastName":"MONTES DE OCA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:55.103981] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:55.104039] [debug] Valor de JSON: {"uuid":"75e5dce5-7eea-479f-9367-510084a4b69e","changeType":"draft_approved","entity":"invoice","entityId":"2250","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2250,"clientId":30,"number":"002200","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2253,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":29,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUANA","clientLastName":"MONTES DE OCA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:55.104162] [debug] Aprobación de Factura + +[2025-07-31 16:00:55.104206] [debug] {"uuid":"75e5dce5-7eea-479f-9367-510084a4b69e","changeType":"draft_approved","entity":"invoice","entityId":2250,"message":null,"clientId":30,"eventName":"invoice.draft_approved","clientData":{"id":30,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"FRACCIONAMIENTO GUANAJUATO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JUANA","lastName":"MONTES DE OCA","username":"jmontes30","contacts":[{"id":31,"clientId":30,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-14000,"accountCredit":0,"accountOutstanding":14000,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#0277bd","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2250,"clientId":30,"number":"002200","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2253,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":29,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUANA","clientLastName":"MONTES DE OCA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:56.273334] [notice] Logging level set to:debug +[2025-07-31 16:00:56.273438] [debug] valor del webhook: {"uuid":"4918e78f-ccc4-43fb-aa16-f37a5e34d1dd","changeType":"draft_approved","entity":"invoice","entityId":"2251","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2251,"clientId":78,"number":"002201","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2254,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":77,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDER","clientLastName":"ROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:56.405538] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:56.405595] [debug] Valor de JSON: {"uuid":"4918e78f-ccc4-43fb-aa16-f37a5e34d1dd","changeType":"draft_approved","entity":"invoice","entityId":"2251","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2251,"clientId":78,"number":"002201","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2254,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":77,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDER","clientLastName":"ROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:56.405704] [debug] Aprobación de Factura + +[2025-07-31 16:00:56.405747] [debug] {"uuid":"4918e78f-ccc4-43fb-aa16-f37a5e34d1dd","changeType":"draft_approved","entity":"invoice","entityId":2251,"message":null,"clientId":78,"eventName":"invoice.draft_approved","clientData":{"id":78,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL BOBO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL BOBO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALEXANDER","lastName":"ROSTRO","username":"arostro78","contacts":[{"id":79,"clientId":78,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#9c27b0","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2251,"clientId":78,"number":"002201","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2254,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":77,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDER","clientLastName":"ROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:57.523578] [notice] Logging level set to:debug +[2025-07-31 16:00:57.523685] [debug] valor del webhook: {"uuid":"905e720b-d8fa-4a35-9644-03f58c5d3753","changeType":"draft_approved","entity":"invoice","entityId":"2252","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2252,"clientId":50,"number":"002202","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2255,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":49,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GLORIA","clientLastName":"DELGADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:57.676047] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:57.676105] [debug] Valor de JSON: {"uuid":"905e720b-d8fa-4a35-9644-03f58c5d3753","changeType":"draft_approved","entity":"invoice","entityId":"2252","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2252,"clientId":50,"number":"002202","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2255,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":49,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GLORIA","clientLastName":"DELGADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:57.676234] [debug] Aprobación de Factura + +[2025-07-31 16:00:57.676284] [debug] {"uuid":"905e720b-d8fa-4a35-9644-03f58c5d3753","changeType":"draft_approved","entity":"invoice","entityId":2252,"message":null,"clientId":50,"eventName":"invoice.draft_approved","clientData":{"id":50,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL BOBO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL BOBO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"GLORIA","lastName":"DELGADO","username":"gdelgado50","contacts":[{"id":51,"clientId":50,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":108,"clientId":50,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtN2hegnjiQhR7M","clientZoneVisible":true},{"id":109,"clientId":50,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"1847644339402745","clientZoneVisible":true}],"accountBalance":-5410,"accountCredit":0,"accountOutstanding":5410,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ffc107","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2252,"clientId":50,"number":"002202","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2255,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":49,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GLORIA","clientLastName":"DELGADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:00:58.797508] [notice] Logging level set to:debug +[2025-07-31 16:00:58.797578] [debug] valor del webhook: {"uuid":"07a03d91-1a99-41c1-8e51-5ebcb7f44007","changeType":"draft_approved","entity":"invoice","entityId":"2253","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2253,"clientId":81,"number":"002203","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2256,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":80,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"FERNANDO","clientLastName":"ALCAZAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:58.932338] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:00:58.932398] [debug] Valor de JSON: {"uuid":"07a03d91-1a99-41c1-8e51-5ebcb7f44007","changeType":"draft_approved","entity":"invoice","entityId":"2253","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2253,"clientId":81,"number":"002203","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2256,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":80,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"FERNANDO","clientLastName":"ALCAZAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:00:58.932518] [debug] Aprobación de Factura + +[2025-07-31 16:00:58.932564] [debug] {"uuid":"07a03d91-1a99-41c1-8e51-5ebcb7f44007","changeType":"draft_approved","entity":"invoice","entityId":2253,"message":null,"clientId":81,"eventName":"invoice.draft_approved","clientData":{"id":81,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"FERNANDO","lastName":"ALCAZAR","username":"falcazar81","contacts":[{"id":82,"clientId":81,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-13300,"accountCredit":0,"accountOutstanding":13300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#d81b60","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2253,"clientId":81,"number":"002203","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2256,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":80,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"FERNANDO","clientLastName":"ALCAZAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:00.075959] [notice] Logging level set to:debug +[2025-07-31 16:01:00.076016] [debug] valor del webhook: {"uuid":"bbd7bad4-698b-4b66-89e5-d93c157c9c95","changeType":"draft_approved","entity":"invoice","entityId":"2254","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2254,"clientId":49,"number":"002204","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2257,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":48,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"ARGOTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:00.226700] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:00.226788] [debug] Valor de JSON: {"uuid":"bbd7bad4-698b-4b66-89e5-d93c157c9c95","changeType":"draft_approved","entity":"invoice","entityId":"2254","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2254,"clientId":49,"number":"002204","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2257,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":48,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"ARGOTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:00.226914] [debug] Aprobación de Factura + +[2025-07-31 16:01:00.226960] [debug] {"uuid":"bbd7bad4-698b-4b66-89e5-d93c157c9c95","changeType":"draft_approved","entity":"invoice","entityId":2254,"message":null,"clientId":49,"eventName":"invoice.draft_approved","clientData":{"id":49,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"HUMBERTO","lastName":"ARGOTE","username":"hargote49","contacts":[{"id":50,"clientId":49,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":106,"clientId":49,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtN1TKNidnkizX4","clientZoneVisible":true},{"id":107,"clientId":49,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"5239864893662909","clientZoneVisible":true}],"accountBalance":-5410,"accountCredit":0,"accountOutstanding":5410,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2254,"clientId":49,"number":"002204","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2257,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":48,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"ARGOTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:01.843252] [notice] Logging level set to:debug +[2025-07-31 16:01:01.843333] [debug] valor del webhook: {"uuid":"7e802628-e704-4990-a398-ea380f5f26a3","changeType":"draft_approved","entity":"invoice","entityId":"2255","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2255,"clientId":26,"number":"002205","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2258,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":25,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SAMANTA","clientLastName":"FUENTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GUSANO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:01.986030] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:01.986082] [debug] Valor de JSON: {"uuid":"7e802628-e704-4990-a398-ea380f5f26a3","changeType":"draft_approved","entity":"invoice","entityId":"2255","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2255,"clientId":26,"number":"002205","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2258,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":25,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SAMANTA","clientLastName":"FUENTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GUSANO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:01.986183] [debug] Aprobación de Factura + +[2025-07-31 16:01:01.986231] [debug] {"uuid":"7e802628-e704-4990-a398-ea380f5f26a3","changeType":"draft_approved","entity":"invoice","entityId":2255,"message":null,"clientId":26,"eventName":"invoice.draft_approved","clientData":{"id":26,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"GUSANO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"GUSANO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"SAMANTA","lastName":"FUENTES","username":"sfuentes26","contacts":[{"id":27,"clientId":26,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-6280,"accountCredit":0,"accountOutstanding":6280,"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":2255,"clientId":26,"number":"002205","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2258,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":25,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SAMANTA","clientLastName":"FUENTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GUSANO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:03.133135] [notice] Logging level set to:debug +[2025-07-31 16:01:03.133209] [debug] valor del webhook: {"uuid":"a08e2005-b421-4729-99fc-c31763709133","changeType":"draft_approved","entity":"invoice","entityId":"2256","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2256,"clientId":86,"number":"002206","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2259,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":85,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PALMITAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:03.286133] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:03.286189] [debug] Valor de JSON: {"uuid":"a08e2005-b421-4729-99fc-c31763709133","changeType":"draft_approved","entity":"invoice","entityId":"2256","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2256,"clientId":86,"number":"002206","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2259,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":85,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PALMITAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:03.286305] [debug] Aprobación de Factura + +[2025-07-31 16:01:03.286348] [debug] {"uuid":"a08e2005-b421-4729-99fc-c31763709133","changeType":"draft_approved","entity":"invoice","entityId":2256,"message":null,"clientId":86,"eventName":"invoice.draft_approved","clientData":{"id":86,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"PALMITAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"PALMITAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"HUMBERTO","lastName":"CASTILLO","username":"hcastillo86","contacts":[{"id":87,"clientId":86,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-9600,"accountCredit":0,"accountOutstanding":9600,"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":2256,"clientId":86,"number":"002206","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2259,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":85,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PALMITAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:04.438522] [notice] Logging level set to:debug +[2025-07-31 16:01:04.438617] [debug] valor del webhook: {"uuid":"f2916513-cf47-4696-a2c9-a9f35ea756f9","changeType":"draft_approved","entity":"invoice","entityId":"2257","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2257,"clientId":71,"number":"002207","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2260,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":70,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MNARIA","clientLastName":"ALVAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:04.576805] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:04.576860] [debug] Valor de JSON: {"uuid":"f2916513-cf47-4696-a2c9-a9f35ea756f9","changeType":"draft_approved","entity":"invoice","entityId":"2257","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2257,"clientId":71,"number":"002207","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2260,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":70,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MNARIA","clientLastName":"ALVAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:04.576966] [debug] Aprobación de Factura + +[2025-07-31 16:01:04.577014] [debug] {"uuid":"f2916513-cf47-4696-a2c9-a9f35ea756f9","changeType":"draft_approved","entity":"invoice","entityId":2257,"message":null,"clientId":71,"eventName":"invoice.draft_approved","clientData":{"id":71,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MNARIA","lastName":"ALVAREZ","username":"malvarez71","contacts":[{"id":72,"clientId":71,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-1500,"accountCredit":0,"accountOutstanding":1500,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#4caf50","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2257,"clientId":71,"number":"002207","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2260,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":70,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MNARIA","clientLastName":"ALVAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:05.710273] [notice] Logging level set to:debug +[2025-07-31 16:01:05.710369] [debug] valor del webhook: {"uuid":"a78de99d-fd46-4f66-b8a5-3350a415584b","changeType":"draft_approved","entity":"invoice","entityId":"2258","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2258,"clientId":17,"number":"002208","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2261,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":16,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUAN","clientLastName":"LOPEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CIENEGUILLA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:05.836503] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:05.836563] [debug] Valor de JSON: {"uuid":"a78de99d-fd46-4f66-b8a5-3350a415584b","changeType":"draft_approved","entity":"invoice","entityId":"2258","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2258,"clientId":17,"number":"002208","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2261,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":16,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUAN","clientLastName":"LOPEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CIENEGUILLA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:05.836661] [debug] Aprobación de Factura + +[2025-07-31 16:01:05.836702] [debug] {"uuid":"a78de99d-fd46-4f66-b8a5-3350a415584b","changeType":"draft_approved","entity":"invoice","entityId":2258,"message":null,"clientId":17,"eventName":"invoice.draft_approved","clientData":{"id":17,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"CIENEGUILLA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"CIENEGUILLA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JUAN","lastName":"LOPEZ","username":"jlopez17","contacts":[{"id":18,"clientId":17,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-6290,"accountCredit":0,"accountOutstanding":6290,"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":2258,"clientId":17,"number":"002208","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2261,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":16,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUAN","clientLastName":"LOPEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CIENEGUILLA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:07.019663] [notice] Logging level set to:debug +[2025-07-31 16:01:07.019763] [debug] valor del webhook: {"uuid":"301a0222-e3c4-4f2e-bf3a-3b13fd36e0de","changeType":"draft_approved","entity":"invoice","entityId":"2259","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2259,"clientId":21,"number":"002209","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2262,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":20,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NATALIA","clientLastName":"JUAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:07.174360] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:07.174412] [debug] Valor de JSON: {"uuid":"301a0222-e3c4-4f2e-bf3a-3b13fd36e0de","changeType":"draft_approved","entity":"invoice","entityId":"2259","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2259,"clientId":21,"number":"002209","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2262,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":20,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NATALIA","clientLastName":"JUAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:07.174520] [debug] Aprobación de Factura + +[2025-07-31 16:01:07.174563] [debug] {"uuid":"301a0222-e3c4-4f2e-bf3a-3b13fd36e0de","changeType":"draft_approved","entity":"invoice","entityId":2259,"message":null,"clientId":21,"eventName":"invoice.draft_approved","clientData":{"id":21,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"MEZQUITAL","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"MEZQUITAL, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"NATALIA","lastName":"JUAREZ","username":"njuarez21","contacts":[{"id":22,"clientId":21,"email":null,"phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-6000,"accountCredit":0,"accountOutstanding":6000,"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":2259,"clientId":21,"number":"002209","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2262,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":20,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NATALIA","clientLastName":"JUAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:08.374444] [notice] Logging level set to:debug +[2025-07-31 16:01:08.374500] [debug] valor del webhook: {"uuid":"bc511fac-ad19-46b5-8bec-931ce7c9aaa3","changeType":"draft_approved","entity":"invoice","entityId":"2260","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2260,"clientId":12,"number":"002210","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2263,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":12,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MIRIAM","clientLastName":"ZURITA RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:08.507308] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:08.507371] [debug] Valor de JSON: {"uuid":"bc511fac-ad19-46b5-8bec-931ce7c9aaa3","changeType":"draft_approved","entity":"invoice","entityId":"2260","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2260,"clientId":12,"number":"002210","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2263,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":12,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MIRIAM","clientLastName":"ZURITA RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:08.507462] [debug] Aprobación de Factura + +[2025-07-31 16:01:08.507507] [debug] {"uuid":"bc511fac-ad19-46b5-8bec-931ce7c9aaa3","changeType":"draft_approved","entity":"invoice","entityId":2260,"message":null,"clientId":12,"eventName":"invoice.draft_approved","clientData":{"id":12,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"DOLORES HIDALGO","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MIRIAM","lastName":"ZURITA RAMIREZ","username":"mzurita12","contacts":[{"id":13,"clientId":12,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-10933.33,"accountCredit":0,"accountOutstanding":10933.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#9c27b0","addressGpsLat":21.1574,"addressGpsLon":-100.934617,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2260,"clientId":12,"number":"002210","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2263,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":12,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MIRIAM","clientLastName":"ZURITA RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:08.507536] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-07-31 16:01:08.507545] [info] Tipo de contacto normalizado: 'whatsapp' +Notificacion data: {"uuid":"bc511fac-ad19-46b5-8bec-931ce7c9aaa3","changeType":"draft_approved","entity":"invoice","entityId":2260,"message":null,"clientId":12,"eventName":"invoice.draft_approved","clientData":{"id":12,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"DOLORES HIDALGO","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MIRIAM","lastName":"ZURITA RAMIREZ","username":"mzurita12","contacts":[{"id":13,"clientId":12,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-10933.33,"accountCredit":0,"accountOutstanding":10933.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#9c27b0","addressGpsLat":21.1574,"addressGpsLon":-100.934617,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2260,"clientId":12,"number":"002210","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2263,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":12,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MIRIAM","clientLastName":"ZURITA RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":11,"clientId":12,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-01-29T11:46:50-0600","amount":3500,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":13,"invoiceId":20,"paymentId":11,"creditNoteId":null,"refundId":null,"amount":3500}],"creditAmount":0,"userId":1000,"attributes":[]}] + +Nombre del cliente que se va a actualizar: MIRIAM ZURITA RAMIREZ + +UUID: 7ec1948ad8af4bcd8eff0d7c2a995d09 + +JSON con los datos a actualizar: {"name":"MIRIAM ZURITA RAMIREZ","custom_fields":{"Cliente":12,"Domicilio":"\ud83d\udccd DOLORES HIDALGO","Nombre":"\ud83d\udc64 MIRIAM ZURITA RAMIREZ","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/12","Saldo Actual":"\ud83d\udcb210933.33 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 3500","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"12\",\"Domicilio\": \"\"Nombre\": \"MIRIAM ZURITA RAMIREZ\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/12\",\"Saldo Actual\": \"\ud83d\udcb210933.33 pendientes\",\"Monto Ultimo Pago\": \"$ 3500\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29\/01\/2024 11:46 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"31\/07\/2025 10:01\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 29\/01\/2024 11:46 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 31\/07\/2025 10:01","Clabe Interbancaria":null,"Site":"","Antena\/Sectorial":""}} + +JSON con los datos a actualizar del resumen: {"Cliente": "12","Domicilio": ""Nombre": "MIRIAM ZURITA RAMIREZ","URL": "https://sistema.siip.mx/crm/client/12","Saldo Actual": "💲10933.33 pendientes","Monto Ultimo Pago": "$ 3500","Estado": "Suspendido","Fecha Ultimo Pago": " 29/01/2024 11:46 con Efectivo 💵","Fecha Ultima Actualizacion": "31/07/2025 10:01","Clabe Interbancaria": "","Site": "","Antena/Sectorial": ""} + +Response Patch CallBell: {"contact":{"uuid":"7ec1948ad8af4bcd8eff0d7c2a995d09","name":"MIRIAM ZURITA RAMIREZ","phoneNumber":"5214181577623","avatarUrl":null,"createdAt":"2023-12-22T16:52:57Z","closedAt":"2025-01-07T23:12:30Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7ec1948ad8af4bcd8eff0d7c2a995d09","conversationHref":"https://dash.callbell.eu/chat/d06f5a96768c4945b7a659a6930e5fa0","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clabe Interbancaria":"124180650725363841","user name":"Míriam Moctezuma","Antena/Sectorial":"SECTORIAL-2 172.16.12.11/24","Site":"GPE1","Cliente":"12","Monto Ultimo Pago":"💲 3500","Fecha Ultimo Pago":"📆💸 29/01/2024 11:46 con Efectivo 💵","Fecha Ultima Actualizacion":"📆🔄️ 31/07/2025 10:01","Nombre":"👤 MIRIAM ZURITA RAMIREZ","Resumen":"{\"Cliente\": \"12\",\"Domicilio\": \"\"Nombre\": \"MIRIAM ZURITA RAMIREZ\",\"URL\": \"https://sistema.siip.mx/crm/client/12\",\"Saldo Actual\": \"💲10933.33 pendientes\",\"Monto Ultimo Pago\": \"$ 3500\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29/01/2024 11:46 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/07/2025 10:01\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Domicilio":"📍 DOLORES HIDALGO","Estado":"🔴 Suspendido","URL":"🌐 https://sistema.siip.mx/crm/client/12","Saldo Actual":"💲10933.33 pendientes"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +Response 2 Patch CallBell: {"contact":{"uuid":"7ec1948ad8af4bcd8eff0d7c2a995d09","name":"MIRIAM ZURITA RAMIREZ","phoneNumber":"5214181577623","avatarUrl":null,"createdAt":"2023-12-22T16:52:57Z","closedAt":"2025-01-07T23:12:30Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7ec1948ad8af4bcd8eff0d7c2a995d09","conversationHref":"https://dash.callbell.eu/chat/d06f5a96768c4945b7a659a6930e5fa0","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clabe Interbancaria":"124180650725363841","user name":"Míriam Moctezuma","Antena/Sectorial":"SECTORIAL-2 172.16.12.11/24","Site":"GPE1","Cliente":"12","Monto Ultimo Pago":"💲 3500","Fecha Ultimo Pago":"📆💸 29/01/2024 11:46 con Efectivo 💵","Fecha Ultima Actualizacion":"📆🔄️ 31/07/2025 10:01","Nombre":"👤 MIRIAM ZURITA RAMIREZ","Resumen":"{\"Cliente\": \"12\",\"Domicilio\": \"\"Nombre\": \"MIRIAM ZURITA RAMIREZ\",\"URL\": \"https://sistema.siip.mx/crm/client/12\",\"Saldo Actual\": \"💲10933.33 pendientes\",\"Monto Ultimo Pago\": \"$ 3500\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29/01/2024 11:46 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/07/2025 10:01\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Domicilio":"📍 DOLORES HIDALGO","Estado":"🔴 Suspendido","URL":"🌐 https://sistema.siip.mx/crm/client/12","Saldo Actual":"💲10933.33 pendientes"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-07-31 16:01:11.165862] [notice] Logging level set to:debug +[2025-07-31 16:01:11.165935] [debug] valor del webhook: {"uuid":"f548465e-d1a0-4577-a428-8e4b3035f9a1","changeType":"draft_approved","entity":"invoice","entityId":"2261","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2261,"clientId":101,"number":"002211","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2264,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":100,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OCTAVIO","clientLastName":"VIDAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ESTA\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:11.317173] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:11.317226] [debug] Valor de JSON: {"uuid":"f548465e-d1a0-4577-a428-8e4b3035f9a1","changeType":"draft_approved","entity":"invoice","entityId":"2261","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2261,"clientId":101,"number":"002211","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2264,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":100,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OCTAVIO","clientLastName":"VIDAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ESTA\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:11.317336] [debug] Aprobación de Factura + +[2025-07-31 16:01:11.317379] [debug] {"uuid":"f548465e-d1a0-4577-a428-8e4b3035f9a1","changeType":"draft_approved","entity":"invoice","entityId":2261,"message":null,"clientId":101,"eventName":"invoice.draft_approved","clientData":{"id":101,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL ESTA\u00d1O","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL ESTA\u00d1O, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"OCTAVIO","lastName":"VIDAL","username":"ovidal01","contacts":[{"id":102,"clientId":101,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5700,"accountCredit":0,"accountOutstanding":5700,"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":2261,"clientId":101,"number":"002211","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2264,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":100,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OCTAVIO","clientLastName":"VIDAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ESTA\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:12.311487] [notice] Logging level set to:debug +[2025-07-31 16:01:12.311549] [debug] valor del webhook: {"uuid":"ba461a9d-39ae-43fb-8372-8bbb9c656147","changeType":"draft_approved","entity":"invoice","entityId":"2262","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2262,"clientId":82,"number":"002212","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2265,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":81,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AGUSTINA","clientLastName":"PERICLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:12.442462] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:12.442521] [debug] Valor de JSON: {"uuid":"ba461a9d-39ae-43fb-8372-8bbb9c656147","changeType":"draft_approved","entity":"invoice","entityId":"2262","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2262,"clientId":82,"number":"002212","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2265,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":81,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AGUSTINA","clientLastName":"PERICLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:12.442614] [debug] Aprobación de Factura + +[2025-07-31 16:01:12.442656] [debug] {"uuid":"ba461a9d-39ae-43fb-8372-8bbb9c656147","changeType":"draft_approved","entity":"invoice","entityId":2262,"message":null,"clientId":82,"eventName":"invoice.draft_approved","clientData":{"id":82,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"AGUSTINA","lastName":"PERICLES","username":"apericles82","contacts":[{"id":83,"clientId":82,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5700,"accountCredit":0,"accountOutstanding":5700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2262,"clientId":82,"number":"002212","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2265,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":81,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AGUSTINA","clientLastName":"PERICLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:13.593861] [notice] Logging level set to:debug +[2025-07-31 16:01:13.593950] [debug] valor del webhook: {"uuid":"a083b477-c3cf-4e9f-b931-52eab580fdd2","changeType":"draft_approved","entity":"invoice","entityId":"2263","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2263,"clientId":31,"number":"002213","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2266,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":30,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANA","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SIETE REALES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:13.739193] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:13.739247] [debug] Valor de JSON: {"uuid":"a083b477-c3cf-4e9f-b931-52eab580fdd2","changeType":"draft_approved","entity":"invoice","entityId":"2263","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2263,"clientId":31,"number":"002213","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2266,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":30,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANA","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SIETE REALES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:13.739355] [debug] Aprobación de Factura + +[2025-07-31 16:01:13.739403] [debug] {"uuid":"a083b477-c3cf-4e9f-b931-52eab580fdd2","changeType":"draft_approved","entity":"invoice","entityId":2263,"message":null,"clientId":31,"eventName":"invoice.draft_approved","clientData":{"id":31,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SIETE REALES","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SIETE REALES, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANA","lastName":"CASTILLO","username":"acastillo31","contacts":[{"id":32,"clientId":31,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5380,"accountCredit":0,"accountOutstanding":5380,"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":2263,"clientId":31,"number":"002213","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2266,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":30,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANA","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SIETE REALES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:14.907594] [notice] Logging level set to:debug +[2025-07-31 16:01:14.907713] [debug] valor del webhook: {"uuid":"3737c41f-67e2-40f0-a08f-3ee495e63a6a","changeType":"draft_approved","entity":"invoice","entityId":"2264","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2264,"clientId":33,"number":"002214","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2267,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":32,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURELIA","clientLastName":"BARAJAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA CECILIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:15.066883] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:15.066932] [debug] Valor de JSON: {"uuid":"3737c41f-67e2-40f0-a08f-3ee495e63a6a","changeType":"draft_approved","entity":"invoice","entityId":"2264","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2264,"clientId":33,"number":"002214","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2267,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":32,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURELIA","clientLastName":"BARAJAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA CECILIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:15.067059] [debug] Aprobación de Factura + +[2025-07-31 16:01:15.067101] [debug] {"uuid":"3737c41f-67e2-40f0-a08f-3ee495e63a6a","changeType":"draft_approved","entity":"invoice","entityId":2264,"message":null,"clientId":33,"eventName":"invoice.draft_approved","clientData":{"id":33,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA CECILIA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA CECILIA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"AURELIA","lastName":"BARAJAS","username":"abarajas33","contacts":[{"id":34,"clientId":33,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5950,"accountCredit":0,"accountOutstanding":5950,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#8bc34a","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2264,"clientId":33,"number":"002214","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2267,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":32,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURELIA","clientLastName":"BARAJAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA CECILIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:16.255433] [notice] Logging level set to:debug +[2025-07-31 16:01:16.255526] [debug] valor del webhook: {"uuid":"6232de66-8505-4326-88c1-55c3e8c7f8fb","changeType":"draft_approved","entity":"invoice","entityId":"2265","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2265,"clientId":53,"number":"002215","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2268,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":52,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONIO","clientLastName":"CHAVEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:16.389436] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:16.389488] [debug] Valor de JSON: {"uuid":"6232de66-8505-4326-88c1-55c3e8c7f8fb","changeType":"draft_approved","entity":"invoice","entityId":"2265","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2265,"clientId":53,"number":"002215","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2268,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":52,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONIO","clientLastName":"CHAVEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:16.389590] [debug] Aprobación de Factura + +[2025-07-31 16:01:16.389631] [debug] {"uuid":"6232de66-8505-4326-88c1-55c3e8c7f8fb","changeType":"draft_approved","entity":"invoice","entityId":2265,"message":null,"clientId":53,"eventName":"invoice.draft_approved","clientData":{"id":53,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA VENTA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA VENTA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANTONIO","lastName":"CHAVEZ","username":"achavez53","contacts":[{"id":54,"clientId":53,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"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":2265,"clientId":53,"number":"002215","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2268,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":52,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONIO","clientLastName":"CHAVEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:17.520756] [notice] Logging level set to:debug +[2025-07-31 16:01:17.520837] [debug] valor del webhook: {"uuid":"fb0fc763-e433-4aae-b5ff-0cf69021d94b","changeType":"draft_approved","entity":"invoice","entityId":"2266","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2266,"clientId":8,"number":"002216","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2269,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":8,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALFREDO","clientLastName":"GUTIERREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:17.678061] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:17.678116] [debug] Valor de JSON: {"uuid":"fb0fc763-e433-4aae-b5ff-0cf69021d94b","changeType":"draft_approved","entity":"invoice","entityId":"2266","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2266,"clientId":8,"number":"002216","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2269,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":8,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALFREDO","clientLastName":"GUTIERREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:17.678239] [debug] Aprobación de Factura + +[2025-07-31 16:01:17.678282] [debug] {"uuid":"fb0fc763-e433-4aae-b5ff-0cf69021d94b","changeType":"draft_approved","entity":"invoice","entityId":2266,"message":null,"clientId":8,"eventName":"invoice.draft_approved","clientData":{"id":8,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL BOBO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL BOBO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALFREDO","lastName":"GUTIERREZ","username":"agutierrez08","contacts":[{"id":9,"clientId":8,"email":null,"phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-9530,"accountCredit":0,"accountOutstanding":9530,"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":2266,"clientId":8,"number":"002216","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2269,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":8,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALFREDO","clientLastName":"GUTIERREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:18.841113] [notice] Logging level set to:debug +[2025-07-31 16:01:18.841180] [debug] valor del webhook: {"uuid":"b3cb9b66-e443-46e6-8ff3-26f32c66af6c","changeType":"draft_approved","entity":"invoice","entityId":"2267","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2267,"clientId":102,"number":"002217","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2270,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":101,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"XX","clientLastName":"XX","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:18.981307] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:18.981359] [debug] Valor de JSON: {"uuid":"b3cb9b66-e443-46e6-8ff3-26f32c66af6c","changeType":"draft_approved","entity":"invoice","entityId":"2267","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2267,"clientId":102,"number":"002217","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2270,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":101,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"XX","clientLastName":"XX","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:18.981447] [debug] Aprobación de Factura + +[2025-07-31 16:01:18.981489] [debug] {"uuid":"b3cb9b66-e443-46e6-8ff3-26f32c66af6c","changeType":"draft_approved","entity":"invoice","entityId":2267,"message":null,"clientId":102,"eventName":"invoice.draft_approved","clientData":{"id":102,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"YERBAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"YERBAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"XX","lastName":"XX","username":"xxx02","contacts":[{"id":103,"clientId":102,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5700,"accountCredit":0,"accountOutstanding":5700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2e7d32","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2267,"clientId":102,"number":"002217","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2270,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":101,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"XX","clientLastName":"XX","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:20.102397] [notice] Logging level set to:debug +[2025-07-31 16:01:20.102483] [debug] valor del webhook: {"uuid":"5577e672-bb24-454f-add2-ccea6d435d3b","changeType":"draft_approved","entity":"invoice","entityId":"2268","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2268,"clientId":39,"number":"002218","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2271,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":38,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"FRANCISCO","clientLastName":"BALDERAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA PIEDRA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:20.236411] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:20.236465] [debug] Valor de JSON: {"uuid":"5577e672-bb24-454f-add2-ccea6d435d3b","changeType":"draft_approved","entity":"invoice","entityId":"2268","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2268,"clientId":39,"number":"002218","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2271,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":38,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"FRANCISCO","clientLastName":"BALDERAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA PIEDRA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:20.236577] [debug] Aprobación de Factura + +[2025-07-31 16:01:20.236620] [debug] {"uuid":"5577e672-bb24-454f-add2-ccea6d435d3b","changeType":"draft_approved","entity":"invoice","entityId":2268,"message":null,"clientId":39,"eventName":"invoice.draft_approved","clientData":{"id":39,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA PIEDRA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA PIEDRA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"FRANCISCO","lastName":"BALDERAS","username":"fbalderas39","contacts":[{"id":40,"clientId":39,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5710,"accountCredit":0,"accountOutstanding":5710,"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":2268,"clientId":39,"number":"002218","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2271,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":38,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"FRANCISCO","clientLastName":"BALDERAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA PIEDRA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:21.367916] [notice] Logging level set to:debug +[2025-07-31 16:01:21.368043] [debug] valor del webhook: {"uuid":"80852caa-c567-4e06-97b9-6c0af9718273","changeType":"draft_approved","entity":"invoice","entityId":"2269","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2269,"clientId":61,"number":"002219","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2272,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":60,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LUIS","clientLastName":"AGULAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AGUILAR","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:21.500911] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:21.500965] [debug] Valor de JSON: {"uuid":"80852caa-c567-4e06-97b9-6c0af9718273","changeType":"draft_approved","entity":"invoice","entityId":"2269","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2269,"clientId":61,"number":"002219","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2272,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":60,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LUIS","clientLastName":"AGULAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AGUILAR","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:21.501055] [debug] Aprobación de Factura + +[2025-07-31 16:01:21.501096] [debug] {"uuid":"80852caa-c567-4e06-97b9-6c0af9718273","changeType":"draft_approved","entity":"invoice","entityId":2269,"message":null,"clientId":61,"eventName":"invoice.draft_approved","clientData":{"id":61,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LOS AGUILAR","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LOS AGUILAR, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"LUIS","lastName":"AGULAR","username":"lagular61","contacts":[{"id":62,"clientId":61,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"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":2269,"clientId":61,"number":"002219","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2272,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":60,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LUIS","clientLastName":"AGULAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AGUILAR","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:25.575371] [notice] Logging level set to:debug +[2025-07-31 16:01:25.575474] [debug] valor del webhook: {"uuid":"e8a374bd-4bb2-445a-b30a-c77b7866275b","changeType":"draft_approved","entity":"invoice","entityId":"2270","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2270,"clientId":72,"number":"002220","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2273,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":71,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BRANDOM","clientLastName":"EZQUIVEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:25.741216] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:25.741282] [debug] Valor de JSON: {"uuid":"e8a374bd-4bb2-445a-b30a-c77b7866275b","changeType":"draft_approved","entity":"invoice","entityId":"2270","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2270,"clientId":72,"number":"002220","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2273,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":71,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BRANDOM","clientLastName":"EZQUIVEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:25.741413] [debug] Aprobación de Factura + +[2025-07-31 16:01:25.741461] [debug] {"uuid":"e8a374bd-4bb2-445a-b30a-c77b7866275b","changeType":"draft_approved","entity":"invoice","entityId":2270,"message":null,"clientId":72,"eventName":"invoice.draft_approved","clientData":{"id":72,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"MONTELONGO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"MONTELONGO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"BRANDOM","lastName":"EZQUIVEL","username":"bezquivel72","contacts":[{"id":73,"clientId":72,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"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":2270,"clientId":72,"number":"002220","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2273,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":71,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BRANDOM","clientLastName":"EZQUIVEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:26.944542] [notice] Logging level set to:debug +[2025-07-31 16:01:26.944603] [debug] valor del webhook: {"uuid":"fe03926d-3fe1-42c9-b677-e10e6c95b501","changeType":"draft_approved","entity":"invoice","entityId":"2271","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2271,"clientId":52,"number":"002221","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2274,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":51,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RODRIGO","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL CARMEN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:27.091310] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:27.091371] [debug] Valor de JSON: {"uuid":"fe03926d-3fe1-42c9-b677-e10e6c95b501","changeType":"draft_approved","entity":"invoice","entityId":"2271","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2271,"clientId":52,"number":"002221","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2274,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":51,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RODRIGO","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL CARMEN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:27.091473] [debug] Aprobación de Factura + +[2025-07-31 16:01:27.091519] [debug] {"uuid":"fe03926d-3fe1-42c9-b677-e10e6c95b501","changeType":"draft_approved","entity":"invoice","entityId":2271,"message":null,"clientId":52,"eventName":"invoice.draft_approved","clientData":{"id":52,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL CARMEN","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":null,"fullAddress":"EL CARMEN, Dolores Hidalgo Cuna de la Independencia Nacional","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"RODRIGO","lastName":"PE\u00d1A","username":"rpe\u00d1a52","contacts":[{"id":53,"clientId":52,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"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":2271,"clientId":52,"number":"002221","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2274,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":51,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RODRIGO","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL CARMEN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:28.247421] [notice] Logging level set to:debug +[2025-07-31 16:01:28.247512] [debug] valor del webhook: {"uuid":"9dce1a05-8d3c-429f-9ab9-3a6c1e584254","changeType":"draft_approved","entity":"invoice","entityId":"2272","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2272,"clientId":43,"number":"002222","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2275,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":42,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"VICTORIO","clientLastName":"DIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS FLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:28.387595] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:28.387646] [debug] Valor de JSON: {"uuid":"9dce1a05-8d3c-429f-9ab9-3a6c1e584254","changeType":"draft_approved","entity":"invoice","entityId":"2272","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2272,"clientId":43,"number":"002222","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2275,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":42,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"VICTORIO","clientLastName":"DIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS FLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:28.387762] [debug] Aprobación de Factura + +[2025-07-31 16:01:28.387804] [debug] {"uuid":"9dce1a05-8d3c-429f-9ab9-3a6c1e584254","changeType":"draft_approved","entity":"invoice","entityId":2272,"message":null,"clientId":43,"eventName":"invoice.draft_approved","clientData":{"id":43,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LAS FLORES","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LAS FLORES, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"VICTORIO","lastName":"DIAS","username":"vdias43","contacts":[{"id":44,"clientId":43,"email":null,"phone":"4181818706","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-12623.33,"accountCredit":0,"accountOutstanding":12623.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":2272,"clientId":43,"number":"002222","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2275,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":42,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"VICTORIO","clientLastName":"DIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS FLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:29.564116] [notice] Logging level set to:debug +[2025-07-31 16:01:29.564223] [debug] valor del webhook: {"uuid":"eea1d4f3-3936-408a-aa69-51e8210903fe","changeType":"draft_approved","entity":"invoice","entityId":"2273","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2273,"clientId":76,"number":"002223","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2276,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":75,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"RANGEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:29.689152] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:29.689203] [debug] Valor de JSON: {"uuid":"eea1d4f3-3936-408a-aa69-51e8210903fe","changeType":"draft_approved","entity":"invoice","entityId":"2273","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2273,"clientId":76,"number":"002223","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2276,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":75,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"RANGEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:29.689302] [debug] Aprobación de Factura + +[2025-07-31 16:01:29.689344] [debug] {"uuid":"eea1d4f3-3936-408a-aa69-51e8210903fe","changeType":"draft_approved","entity":"invoice","entityId":2273,"message":null,"clientId":76,"eventName":"invoice.draft_approved","clientData":{"id":76,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TRANCAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TRANCAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"EDGAR","lastName":"RANGEL","username":"erangel76","contacts":[{"id":77,"clientId":76,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"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":2273,"clientId":76,"number":"002223","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2276,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":75,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"RANGEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:30.832609] [notice] Logging level set to:debug +[2025-07-31 16:01:30.832716] [debug] valor del webhook: {"uuid":"ca391a72-7180-4961-8e16-05c55bd501e0","changeType":"draft_approved","entity":"invoice","entityId":"2274","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2274,"clientId":68,"number":"002224","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2277,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":67,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DOLORES","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:30.991348] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:30.991403] [debug] Valor de JSON: {"uuid":"ca391a72-7180-4961-8e16-05c55bd501e0","changeType":"draft_approved","entity":"invoice","entityId":"2274","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2274,"clientId":68,"number":"002224","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2277,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":67,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DOLORES","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:30.991506] [debug] Aprobación de Factura + +[2025-07-31 16:01:30.991549] [debug] {"uuid":"ca391a72-7180-4961-8e16-05c55bd501e0","changeType":"draft_approved","entity":"invoice","entityId":2274,"message":null,"clientId":68,"eventName":"invoice.draft_approved","clientData":{"id":68,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ELIAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ELIAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"DOLORES","lastName":"GARCIA","username":"dgarcia68","contacts":[{"id":69,"clientId":68,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#9e9d24","addressGpsLat":21.2516667,"addressGpsLon":-101.0924998,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2274,"clientId":68,"number":"002224","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2277,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":67,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DOLORES","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:32.106280] [notice] Logging level set to:debug +[2025-07-31 16:01:32.106347] [debug] valor del webhook: {"uuid":"aad8965f-98a4-48f9-ae7f-ef5f975d687b","changeType":"draft_approved","entity":"invoice","entityId":"2275","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2275,"clientId":56,"number":"002225","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2278,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":55,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NOE","clientLastName":"SANDOVAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTIAGUILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:32.253016] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:32.253066] [debug] Valor de JSON: {"uuid":"aad8965f-98a4-48f9-ae7f-ef5f975d687b","changeType":"draft_approved","entity":"invoice","entityId":"2275","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2275,"clientId":56,"number":"002225","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2278,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":55,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NOE","clientLastName":"SANDOVAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTIAGUILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:32.253196] [debug] Aprobación de Factura + +[2025-07-31 16:01:32.253247] [debug] {"uuid":"aad8965f-98a4-48f9-ae7f-ef5f975d687b","changeType":"draft_approved","entity":"invoice","entityId":2275,"message":null,"clientId":56,"eventName":"invoice.draft_approved","clientData":{"id":56,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTIAGUILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":null,"fullAddress":"SANTIAGUILLO, Dolores Hidalgo Cuna de la Independencia Nacional","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"NOE","lastName":"SANDOVAL","username":"nsandoval56","contacts":[{"id":57,"clientId":56,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"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":2275,"clientId":56,"number":"002225","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2278,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":55,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NOE","clientLastName":"SANDOVAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTIAGUILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:33.384455] [notice] Logging level set to:debug +[2025-07-31 16:01:33.384541] [debug] valor del webhook: {"uuid":"23c31e60-1e4b-4030-8e9d-f625503146e8","changeType":"draft_approved","entity":"invoice","entityId":"2276","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2276,"clientId":6,"number":"002226","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2279,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":6,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEJANDRO","clientLastName":"MOCTEZUMA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:33.528827] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:33.528889] [debug] Valor de JSON: {"uuid":"23c31e60-1e4b-4030-8e9d-f625503146e8","changeType":"draft_approved","entity":"invoice","entityId":"2276","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2276,"clientId":6,"number":"002226","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2279,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":6,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEJANDRO","clientLastName":"MOCTEZUMA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:33.529002] [debug] Aprobación de Factura + +[2025-07-31 16:01:33.529048] [debug] {"uuid":"23c31e60-1e4b-4030-8e9d-f625503146e8","changeType":"draft_approved","entity":"invoice","entityId":2276,"message":null,"clientId":6,"eventName":"invoice.draft_approved","clientData":{"id":6,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"ALEJANDRO","lastName":"MOCTEZUMA","username":"amoctezuma06","contacts":[{"id":7,"clientId":6,"email":null,"phone":"5214181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-5380,"accountCredit":0,"accountOutstanding":5380,"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":2276,"clientId":6,"number":"002226","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2279,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":6,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEJANDRO","clientLastName":"MOCTEZUMA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:33.529074] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-07-31 16:01:33.529083] [info] Tipo de contacto normalizado: 'whatsapp' +Notificacion data: {"uuid":"23c31e60-1e4b-4030-8e9d-f625503146e8","changeType":"draft_approved","entity":"invoice","entityId":2276,"message":null,"clientId":6,"eventName":"invoice.draft_approved","clientData":{"id":6,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"ALEJANDRO","lastName":"MOCTEZUMA","username":"amoctezuma06","contacts":[{"id":7,"clientId":6,"email":null,"phone":"5214181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-5380,"accountCredit":0,"accountOutstanding":5380,"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":2276,"clientId":6,"number":"002226","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2279,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":6,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEJANDRO","clientLastName":"MOCTEZUMA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":27,"clientId":6,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-02-01T12:57:53-0600","amount":2000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":30,"invoiceId":7,"paymentId":27,"creditNoteId":null,"refundId":null,"amount":1700},{"id":31,"invoiceId":5,"paymentId":27,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1000,"attributes":[]}] + +Nombre del cliente que se va a actualizar: ALEJANDRO MOCTEZUMA + +UUID: 71a76e57f89441ff978a5ece070f21d7 + +JSON con los datos a actualizar: {"name":"ALEJANDRO MOCTEZUMA","custom_fields":{"Cliente":6,"Domicilio":"\ud83d\udccd DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","Nombre":"\ud83d\udc64 ALEJANDRO MOCTEZUMA","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/6","Saldo Actual":"\ud83d\udcb25380 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 2000","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"6\",\"Domicilio\": \"\"Nombre\": \"ALEJANDRO MOCTEZUMA\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/6\",\"Saldo Actual\": \"\ud83d\udcb25380 pendientes\",\"Monto Ultimo Pago\": \"$ 2000\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 01\/02\/2024 12:57 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"31\/07\/2025 10:01\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 01\/02\/2024 12:57 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 31\/07\/2025 10:01","Clabe Interbancaria":null,"Site":"","Antena\/Sectorial":""}} + +JSON con los datos a actualizar del resumen: {"Cliente": "6","Domicilio": ""Nombre": "ALEJANDRO MOCTEZUMA","URL": "https://sistema.siip.mx/crm/client/6","Saldo Actual": "💲5380 pendientes","Monto Ultimo Pago": "$ 2000","Estado": "Suspendido","Fecha Ultimo Pago": " 01/02/2024 12:57 con Efectivo 💵","Fecha Ultima Actualizacion": "31/07/2025 10:01","Clabe Interbancaria": "","Site": "","Antena/Sectorial": ""} + +Response Patch CallBell: {"contact":{"uuid":"71a76e57f89441ff978a5ece070f21d7","name":"ALEJANDRO MOCTEZUMA","phoneNumber":"5214181811375","avatarUrl":null,"createdAt":"2021-06-25T15:57:32Z","closedAt":"2025-06-13T16:18:28Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/71a76e57f89441ff978a5ece070f21d7","conversationHref":"https://dash.callbell.eu/chat/6c83978a945141db820592787b7184d5","tags":["SIIP"],"assignedUser":"avalos.mgla@gmail.com","customFields":{"Antena/Sectorial":"6","Nombre":"👤 ALEJANDRO MOCTEZUMA","Domicilio":"📍 DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","Fecha Ultimo Pago":"📆💸 01/02/2024 12:57 con Efectivo 💵","Monto Ultimo Pago":"💲 2000","Estado":"🔴 Suspendido","Cliente":"6","URL":"🌐 https://sistema.siip.mx/crm/client/6","user entry point":"inbound_message","Acciones":"NOBOT-SIIP","user name":"🤩🤤","Resumen":"{\"Cliente\": \"6\",\"Domicilio\": \"\"Nombre\": \"ALEJANDRO MOCTEZUMA\",\"URL\": \"https://sistema.siip.mx/crm/client/6\",\"Saldo Actual\": \"💲5380 pendientes\",\"Monto Ultimo Pago\": \"$ 2000\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 01/02/2024 12:57 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/07/2025 10:01\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Saldo Actual":"💲5380 pendientes","Fecha Ultima Actualizacion":"📆🔄️ 31/07/2025 10:01"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +Response 2 Patch CallBell: {"contact":{"uuid":"71a76e57f89441ff978a5ece070f21d7","name":"ALEJANDRO MOCTEZUMA","phoneNumber":"5214181811375","avatarUrl":null,"createdAt":"2021-06-25T15:57:32Z","closedAt":"2025-06-13T16:18:28Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/71a76e57f89441ff978a5ece070f21d7","conversationHref":"https://dash.callbell.eu/chat/6c83978a945141db820592787b7184d5","tags":["SIIP"],"assignedUser":"avalos.mgla@gmail.com","customFields":{"Antena/Sectorial":"6","Nombre":"👤 ALEJANDRO MOCTEZUMA","Domicilio":"📍 DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","Fecha Ultimo Pago":"📆💸 01/02/2024 12:57 con Efectivo 💵","Monto Ultimo Pago":"💲 2000","Estado":"🔴 Suspendido","Cliente":"6","URL":"🌐 https://sistema.siip.mx/crm/client/6","user entry point":"inbound_message","Acciones":"NOBOT-SIIP","user name":"🤩🤤","Resumen":"{\"Cliente\": \"6\",\"Domicilio\": \"\"Nombre\": \"ALEJANDRO MOCTEZUMA\",\"URL\": \"https://sistema.siip.mx/crm/client/6\",\"Saldo Actual\": \"💲5380 pendientes\",\"Monto Ultimo Pago\": \"$ 2000\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 01/02/2024 12:57 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"31/07/2025 10:01\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Saldo Actual":"💲5380 pendientes","Fecha Ultima Actualizacion":"📆🔄️ 31/07/2025 10:01"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-07-31 16:01:36.338474] [notice] Logging level set to:debug +[2025-07-31 16:01:36.338536] [debug] valor del webhook: {"uuid":"b42ba354-58e1-447d-b794-e798e085ec31","changeType":"draft_approved","entity":"invoice","entityId":"2277","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2277,"clientId":98,"number":"002227","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2280,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":97,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JULIO","clientLastName":"OLACHIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AGUILAR","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:36.476639] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:36.476696] [debug] Valor de JSON: {"uuid":"b42ba354-58e1-447d-b794-e798e085ec31","changeType":"draft_approved","entity":"invoice","entityId":"2277","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2277,"clientId":98,"number":"002227","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2280,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":97,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JULIO","clientLastName":"OLACHIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AGUILAR","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:36.476814] [debug] Aprobación de Factura + +[2025-07-31 16:01:36.476857] [debug] {"uuid":"b42ba354-58e1-447d-b794-e798e085ec31","changeType":"draft_approved","entity":"invoice","entityId":2277,"message":null,"clientId":98,"eventName":"invoice.draft_approved","clientData":{"id":98,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LOS AGUILAR","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LOS AGUILAR, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JULIO","lastName":"OLACHIA","username":"jolachia98","contacts":[{"id":99,"clientId":98,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5700,"accountCredit":0,"accountOutstanding":5700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#9c27b0","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2277,"clientId":98,"number":"002227","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2280,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":97,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JULIO","clientLastName":"OLACHIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AGUILAR","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:37.494723] [notice] Logging level set to:debug +[2025-07-31 16:01:37.494842] [debug] valor del webhook: {"uuid":"eeaa0048-b9a8-4a75-a160-a97feecd2821","changeType":"draft_approved","entity":"invoice","entityId":"2278","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2278,"clientId":22,"number":"002228","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2281,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":21,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEBAN","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA PUERTA DE SAN FRANCISCO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:37.663897] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:37.663966] [debug] Valor de JSON: {"uuid":"eeaa0048-b9a8-4a75-a160-a97feecd2821","changeType":"draft_approved","entity":"invoice","entityId":"2278","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2278,"clientId":22,"number":"002228","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2281,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":21,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEBAN","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA PUERTA DE SAN FRANCISCO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:37.664069] [debug] Aprobación de Factura + +[2025-07-31 16:01:37.664109] [debug] {"uuid":"eeaa0048-b9a8-4a75-a160-a97feecd2821","changeType":"draft_approved","entity":"invoice","entityId":2278,"message":null,"clientId":22,"eventName":"invoice.draft_approved","clientData":{"id":22,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA PUERTA DE SAN FRANCISCO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA PUERTA DE SAN FRANCISCO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ESTEBAN","lastName":"GARCIA","username":"egarcia22","contacts":[{"id":23,"clientId":22,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-6030,"accountCredit":0,"accountOutstanding":6030,"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":2278,"clientId":22,"number":"002228","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2281,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":21,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEBAN","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA PUERTA DE SAN FRANCISCO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:38.888710] [notice] Logging level set to:debug +[2025-07-31 16:01:38.888767] [debug] valor del webhook: {"uuid":"ccd0517b-77ce-44a8-ba36-b1e68e482acb","changeType":"draft_approved","entity":"invoice","entityId":"2279","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2279,"clientId":35,"number":"002229","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2282,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":34,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GABRIELA","clientLastName":"SUASTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CANTERA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:39.024761] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:39.024816] [debug] Valor de JSON: {"uuid":"ccd0517b-77ce-44a8-ba36-b1e68e482acb","changeType":"draft_approved","entity":"invoice","entityId":"2279","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2279,"clientId":35,"number":"002229","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2282,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":34,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GABRIELA","clientLastName":"SUASTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CANTERA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:39.024920] [debug] Aprobación de Factura + +[2025-07-31 16:01:39.024966] [debug] {"uuid":"ccd0517b-77ce-44a8-ba36-b1e68e482acb","changeType":"draft_approved","entity":"invoice","entityId":2279,"message":null,"clientId":35,"eventName":"invoice.draft_approved","clientData":{"id":35,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA CANTERA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA CANTERA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"GABRIELA","lastName":"SUASTE","username":"gsuaste35","contacts":[{"id":36,"clientId":35,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5700,"accountCredit":0,"accountOutstanding":5700,"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":2279,"clientId":35,"number":"002229","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2282,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":34,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GABRIELA","clientLastName":"SUASTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CANTERA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:43.121412] [notice] Logging level set to:debug +[2025-07-31 16:01:43.121464] [debug] valor del webhook: {"uuid":"025f3ead-cd01-48eb-aebe-36ebe4aab8e2","changeType":"draft_approved","entity":"invoice","entityId":"2280","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2280,"clientId":66,"number":"002230","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2283,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":65,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LAURA","clientLastName":"CRUCES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:43.302041] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:43.302105] [debug] Valor de JSON: {"uuid":"025f3ead-cd01-48eb-aebe-36ebe4aab8e2","changeType":"draft_approved","entity":"invoice","entityId":"2280","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2280,"clientId":66,"number":"002230","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2283,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":65,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LAURA","clientLastName":"CRUCES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:43.302229] [debug] Aprobación de Factura + +[2025-07-31 16:01:43.302275] [debug] {"uuid":"025f3ead-cd01-48eb-aebe-36ebe4aab8e2","changeType":"draft_approved","entity":"invoice","entityId":2280,"message":null,"clientId":66,"eventName":"invoice.draft_approved","clientData":{"id":66,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"LAURA","lastName":"CRUCES","username":"lcruces66","contacts":[{"id":67,"clientId":66,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ffb300","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2280,"clientId":66,"number":"002230","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2283,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":65,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LAURA","clientLastName":"CRUCES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:44.441148] [notice] Logging level set to:debug +[2025-07-31 16:01:44.441262] [debug] valor del webhook: {"uuid":"1246f99b-cc5e-403b-98ae-ff84da06e74c","changeType":"draft_approved","entity":"invoice","entityId":"2281","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2281,"clientId":64,"number":"002231","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2284,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":63,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"LANDEROS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:44.589859] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:44.589917] [debug] Valor de JSON: {"uuid":"1246f99b-cc5e-403b-98ae-ff84da06e74c","changeType":"draft_approved","entity":"invoice","entityId":"2281","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2281,"clientId":64,"number":"002231","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2284,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":63,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"LANDEROS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:44.590018] [debug] Aprobación de Factura + +[2025-07-31 16:01:44.590070] [debug] {"uuid":"1246f99b-cc5e-403b-98ae-ff84da06e74c","changeType":"draft_approved","entity":"invoice","entityId":2281,"message":null,"clientId":64,"eventName":"invoice.draft_approved","clientData":{"id":64,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ELIAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ELIAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"OMAR","lastName":"LANDEROS","username":"olanderos64","contacts":[{"id":65,"clientId":64,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5700,"accountCredit":0,"accountOutstanding":5700,"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":2281,"clientId":64,"number":"002231","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2284,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":63,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"LANDEROS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:45.717915] [notice] Logging level set to:debug +[2025-07-31 16:01:45.717971] [debug] valor del webhook: {"uuid":"b8a51c08-3c14-4012-acf1-0a87fe1dc6a2","changeType":"draft_approved","entity":"invoice","entityId":"2282","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2282,"clientId":5,"number":"002232","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2285,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":5,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MUCIO","clientLastName":"ROBLEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CORREGIDORA #61, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:45.853945] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:45.853998] [debug] Valor de JSON: {"uuid":"b8a51c08-3c14-4012-acf1-0a87fe1dc6a2","changeType":"draft_approved","entity":"invoice","entityId":"2282","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2282,"clientId":5,"number":"002232","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2285,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":5,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MUCIO","clientLastName":"ROBLEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CORREGIDORA #61, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:45.854099] [debug] Aprobación de Factura + +[2025-07-31 16:01:45.854150] [debug] {"uuid":"b8a51c08-3c14-4012-acf1-0a87fe1dc6a2","changeType":"draft_approved","entity":"invoice","entityId":2282,"message":null,"clientId":5,"eventName":"invoice.draft_approved","clientData":{"id":5,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"CORREGIDORA #61, ZONA CENTRO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"CORREGIDORA #61, ZONA CENTRO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MUCIO","lastName":"ROBLEDO","username":"mrobledo05","contacts":[{"id":6,"clientId":5,"email":null,"phone":"5214181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-13533.33,"accountCredit":0,"accountOutstanding":13533.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.158357169062,"addressGpsLon":-100.93191261001,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2282,"clientId":5,"number":"002232","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2285,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":5,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MUCIO","clientLastName":"ROBLEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CORREGIDORA #61, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:45.854186] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-07-31 16:01:45.854196] [info] Tipo de contacto normalizado: 'whatsapp' +Notificacion data: {"uuid":"b8a51c08-3c14-4012-acf1-0a87fe1dc6a2","changeType":"draft_approved","entity":"invoice","entityId":2282,"message":null,"clientId":5,"eventName":"invoice.draft_approved","clientData":{"id":5,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"CORREGIDORA #61, ZONA CENTRO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"CORREGIDORA #61, ZONA CENTRO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MUCIO","lastName":"ROBLEDO","username":"mrobledo05","contacts":[{"id":6,"clientId":5,"email":null,"phone":"5214181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-13533.33,"accountCredit":0,"accountOutstanding":13533.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.158357169062,"addressGpsLon":-100.93191261001,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2282,"clientId":5,"number":"002232","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2285,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":5,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MUCIO","clientLastName":"ROBLEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CORREGIDORA #61, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [] + +Nombre del cliente que se va a actualizar: MUCIO ROBLEDO + +UUID: 92dd9fb15b8f4ff6860f8a32ea9bd7e4 + +JSON con los datos a actualizar: {"name":"MUCIO ROBLEDO","custom_fields":{"Cliente":5,"Domicilio":"\ud83d\udccd CORREGIDORA #61, ZONA CENTRO, Dolores Hidalgo, 37800","Nombre":"\ud83d\udc64 MUCIO ROBLEDO","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/5","Saldo Actual":"\ud83d\udcb213533.33 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"5\",\"Domicilio\": \"\"Nombre\": \"MUCIO ROBLEDO\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/5\",\"Saldo Actual\": \"\ud83d\udcb213533.33 pendientes\",\"Monto Ultimo Pago\": \"$ \",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 31\/07\/2025 16:01 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"31\/07\/2025 10:01\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena\/Sectorial\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 31\/07\/2025 16:01 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 31\/07\/2025 10:01","Clabe Interbancaria":null,"Site":"","Antena\/Sectorial":""}} + +JSON con los datos a actualizar del resumen: {"Cliente": "5","Domicilio": ""Nombre": "MUCIO ROBLEDO","URL": "https://sistema.siip.mx/crm/client/5","Saldo Actual": "💲13533.33 pendientes","Monto Ultimo Pago": "$ ","Estado": "Suspendido","Fecha Ultimo Pago": " 31/07/2025 16:01 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion": "31/07/2025 10:01","Clabe Interbancaria": "","Site": "","Antena/Sectorial": ""} + +Response Patch CallBell: {"contact":{"uuid":"92dd9fb15b8f4ff6860f8a32ea9bd7e4","name":"MUCIO ROBLEDO","phoneNumber":"5214181091933","avatarUrl":null,"createdAt":"2023-12-22T16:55:50Z","closedAt":"2024-07-11T22:49:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/92dd9fb15b8f4ff6860f8a32ea9bd7e4","conversationHref":"https://dash.callbell.eu/chat/04a3e26142e0431789260acb0b60a3ac","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"124180650659256341","Antena/Sectorial":"Sec3-Sb 172.16.55.13/24","Site":"SBARB","Domicilio":"📍 CORREGIDORA #61, ZONA CENTRO, Dolores Hidalgo, 37800","URL":"🌐 https://sistema.siip.mx/crm/client/5","Monto Ultimo Pago":"💲 ","Fecha Ultima Actualizacion":"📆🔄️ 31/07/2025 10:01","Resumen":"{\"Cliente\": \"5\",\"Domicilio\": \"\"Nombre\": \"MUCIO ROBLEDO\",\"URL\": \"https://sistema.siip.mx/crm/client/5\",\"Saldo Actual\": \"💲13533.33 pendientes\",\"Monto Ultimo Pago\": \"$ \",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 31/07/2025 16:01 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"31/07/2025 10:01\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Estado":"🔴 Suspendido","Cliente":"5","Saldo Actual":"💲13533.33 pendientes","Fecha Ultimo Pago":"📆💸 31/07/2025 16:01 con Desconocido, revisar metodos de pago no contemplados","Nombre":"👤 MUCIO ROBLEDO"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +Response 2 Patch CallBell: {"contact":{"uuid":"92dd9fb15b8f4ff6860f8a32ea9bd7e4","name":"MUCIO ROBLEDO","phoneNumber":"5214181091933","avatarUrl":null,"createdAt":"2023-12-22T16:55:50Z","closedAt":"2024-07-11T22:49:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/92dd9fb15b8f4ff6860f8a32ea9bd7e4","conversationHref":"https://dash.callbell.eu/chat/04a3e26142e0431789260acb0b60a3ac","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"124180650659256341","Antena/Sectorial":"Sec3-Sb 172.16.55.13/24","Site":"SBARB","Domicilio":"📍 CORREGIDORA #61, ZONA CENTRO, Dolores Hidalgo, 37800","URL":"🌐 https://sistema.siip.mx/crm/client/5","Monto Ultimo Pago":"💲 ","Fecha Ultima Actualizacion":"📆🔄️ 31/07/2025 10:01","Resumen":"{\"Cliente\": \"5\",\"Domicilio\": \"\"Nombre\": \"MUCIO ROBLEDO\",\"URL\": \"https://sistema.siip.mx/crm/client/5\",\"Saldo Actual\": \"💲13533.33 pendientes\",\"Monto Ultimo Pago\": \"$ \",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 31/07/2025 16:01 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"31/07/2025 10:01\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\"}","Estado":"🔴 Suspendido","Cliente":"5","Saldo Actual":"💲13533.33 pendientes","Fecha Ultimo Pago":"📆💸 31/07/2025 16:01 con Desconocido, revisar metodos de pago no contemplados","Nombre":"👤 MUCIO ROBLEDO"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-07-31 16:01:48.795552] [notice] Logging level set to:debug +[2025-07-31 16:01:48.795636] [debug] valor del webhook: {"uuid":"3e652904-602f-4d83-b1ef-4d5a1d6870fe","changeType":"draft_approved","entity":"invoice","entityId":"2283","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2283,"clientId":28,"number":"002233","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2286,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":27,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OSVALDO","clientLastName":"GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN GABRIEL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:48.941009] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:48.941061] [debug] Valor de JSON: {"uuid":"3e652904-602f-4d83-b1ef-4d5a1d6870fe","changeType":"draft_approved","entity":"invoice","entityId":"2283","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2283,"clientId":28,"number":"002233","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2286,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":27,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OSVALDO","clientLastName":"GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN GABRIEL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:48.941169] [debug] Aprobación de Factura + +[2025-07-31 16:01:48.941214] [debug] {"uuid":"3e652904-602f-4d83-b1ef-4d5a1d6870fe","changeType":"draft_approved","entity":"invoice","entityId":2283,"message":null,"clientId":28,"eventName":"invoice.draft_approved","clientData":{"id":28,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN GABRIEL","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN GABRIEL, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"OSVALDO","lastName":"GONZALEZ","username":"ogonzalez28","contacts":[{"id":29,"clientId":28,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-9483.33,"accountCredit":0,"accountOutstanding":9483.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":2283,"clientId":28,"number":"002233","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2286,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":27,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OSVALDO","clientLastName":"GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN GABRIEL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:49.963078] [notice] Logging level set to:debug +[2025-07-31 16:01:49.963162] [debug] valor del webhook: {"uuid":"0a4ebbed-0283-43cb-9542-18d7bf42e151","changeType":"draft_approved","entity":"invoice","entityId":"2284","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2284,"clientId":80,"number":"002234","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2287,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":79,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AXEL","clientLastName":"FERNANDEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN SEBASTIAN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:50.134980] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:50.135061] [debug] Valor de JSON: {"uuid":"0a4ebbed-0283-43cb-9542-18d7bf42e151","changeType":"draft_approved","entity":"invoice","entityId":"2284","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2284,"clientId":80,"number":"002234","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2287,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":79,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AXEL","clientLastName":"FERNANDEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN SEBASTIAN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:50.135209] [debug] Aprobación de Factura + +[2025-07-31 16:01:50.135282] [debug] {"uuid":"0a4ebbed-0283-43cb-9542-18d7bf42e151","changeType":"draft_approved","entity":"invoice","entityId":2284,"message":null,"clientId":80,"eventName":"invoice.draft_approved","clientData":{"id":80,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN SEBASTIAN","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN SEBASTIAN, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"AXEL","lastName":"FERNANDEZ","username":"afernandez80","contacts":[{"id":81,"clientId":80,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"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":2284,"clientId":80,"number":"002234","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2287,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":79,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AXEL","clientLastName":"FERNANDEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN SEBASTIAN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:51.300862] [notice] Logging level set to:debug +[2025-07-31 16:01:51.300937] [debug] valor del webhook: {"uuid":"be9cf0dd-e2fd-4361-8ca7-1e45575dcd47","changeType":"draft_approved","entity":"invoice","entityId":"2285","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2285,"clientId":41,"number":"002235","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2288,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":40,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUDITH","clientLastName":"CUELLAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN SEBASTIAN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:51.430453] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:51.430505] [debug] Valor de JSON: {"uuid":"be9cf0dd-e2fd-4361-8ca7-1e45575dcd47","changeType":"draft_approved","entity":"invoice","entityId":"2285","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2285,"clientId":41,"number":"002235","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2288,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":40,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUDITH","clientLastName":"CUELLAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN SEBASTIAN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:51.430609] [debug] Aprobación de Factura + +[2025-07-31 16:01:51.430651] [debug] {"uuid":"be9cf0dd-e2fd-4361-8ca7-1e45575dcd47","changeType":"draft_approved","entity":"invoice","entityId":2285,"message":null,"clientId":41,"eventName":"invoice.draft_approved","clientData":{"id":41,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN SEBASTIAN","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN SEBASTIAN, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JUDITH","lastName":"CUELLAR","username":"jcuellar41","contacts":[{"id":42,"clientId":41,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5410,"accountCredit":0,"accountOutstanding":5410,"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":2285,"clientId":41,"number":"002235","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2288,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":40,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUDITH","clientLastName":"CUELLAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN SEBASTIAN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:52.560740] [notice] Logging level set to:debug +[2025-07-31 16:01:52.560795] [debug] valor del webhook: {"uuid":"936879b3-b876-45c5-ad0d-5f55f7059557","changeType":"draft_approved","entity":"invoice","entityId":"2286","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2286,"clientId":37,"number":"002236","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2289,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":36,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGEL","clientLastName":"ARVIZU","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA SOLEDAD","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:52.705405] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:52.705472] [debug] Valor de JSON: {"uuid":"936879b3-b876-45c5-ad0d-5f55f7059557","changeType":"draft_approved","entity":"invoice","entityId":"2286","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2286,"clientId":37,"number":"002236","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2289,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":36,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGEL","clientLastName":"ARVIZU","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA SOLEDAD","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:52.705574] [debug] Aprobación de Factura + +[2025-07-31 16:01:52.705622] [debug] {"uuid":"936879b3-b876-45c5-ad0d-5f55f7059557","changeType":"draft_approved","entity":"invoice","entityId":2286,"message":null,"clientId":37,"eventName":"invoice.draft_approved","clientData":{"id":37,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA SOLEDAD","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA SOLEDAD, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANGEL","lastName":"ARVIZU","username":"aarvizu37","contacts":[{"id":38,"clientId":37,"email":null,"phone":"4181818706","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5410,"accountCredit":0,"accountOutstanding":5410,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#009688","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2286,"clientId":37,"number":"002236","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2289,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":36,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGEL","clientLastName":"ARVIZU","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA SOLEDAD","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:53.848110] [notice] Logging level set to:debug +[2025-07-31 16:01:53.848223] [debug] valor del webhook: {"uuid":"b8251397-f0ae-4fd0-9083-23f6a85094b8","changeType":"draft_approved","entity":"invoice","entityId":"2287","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2287,"clientId":32,"number":"002237","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2290,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":31,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EMILIO","clientLastName":"PEREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ANTON DE LAS MINAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:53.980302] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:53.980351] [debug] Valor de JSON: {"uuid":"b8251397-f0ae-4fd0-9083-23f6a85094b8","changeType":"draft_approved","entity":"invoice","entityId":"2287","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2287,"clientId":32,"number":"002237","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2290,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":31,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EMILIO","clientLastName":"PEREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ANTON DE LAS MINAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:53.980453] [debug] Aprobación de Factura + +[2025-07-31 16:01:53.980496] [debug] {"uuid":"b8251397-f0ae-4fd0-9083-23f6a85094b8","changeType":"draft_approved","entity":"invoice","entityId":2287,"message":null,"clientId":32,"eventName":"invoice.draft_approved","clientData":{"id":32,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ANTON DE LAS MINAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ANTON DE LAS MINAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"EMILIO","lastName":"PEREZ","username":"eperez32","contacts":[{"id":33,"clientId":32,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-6640,"accountCredit":0,"accountOutstanding":6640,"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":2287,"clientId":32,"number":"002237","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2290,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":31,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EMILIO","clientLastName":"PEREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ANTON DE LAS MINAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:55.160715] [notice] Logging level set to:debug +[2025-07-31 16:01:55.160794] [debug] valor del webhook: {"uuid":"6f20ca02-42a2-453f-b9c5-15bd32a81483","changeType":"draft_approved","entity":"invoice","entityId":"2288","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2288,"clientId":48,"number":"002238","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2291,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":47,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ISELA","clientLastName":"AZPEITIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTIAGUILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:55.306909] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:55.306962] [debug] Valor de JSON: {"uuid":"6f20ca02-42a2-453f-b9c5-15bd32a81483","changeType":"draft_approved","entity":"invoice","entityId":"2288","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2288,"clientId":48,"number":"002238","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2291,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":47,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ISELA","clientLastName":"AZPEITIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTIAGUILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:55.307091] [debug] Aprobación de Factura + +[2025-07-31 16:01:55.307141] [debug] {"uuid":"6f20ca02-42a2-453f-b9c5-15bd32a81483","changeType":"draft_approved","entity":"invoice","entityId":2288,"message":null,"clientId":48,"eventName":"invoice.draft_approved","clientData":{"id":48,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTIAGUILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTIAGUILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ISELA","lastName":"AZPEITIA","username":"iazpeitia48","contacts":[{"id":49,"clientId":48,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":104,"clientId":48,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtN1VUj6JXVCcUu","clientZoneVisible":true},{"id":105,"clientId":48,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"4896043950637164","clientZoneVisible":true}],"accountBalance":-8400,"accountCredit":0,"accountOutstanding":8400,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#558b2f","addressGpsLat":21.0165209,"addressGpsLon":-100.9831731,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2288,"clientId":48,"number":"002238","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2291,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":47,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ISELA","clientLastName":"AZPEITIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTIAGUILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:56.480941] [notice] Logging level set to:debug +[2025-07-31 16:01:56.481008] [debug] valor del webhook: {"uuid":"9df7f18d-bba4-4fc4-9238-6becc1c65442","changeType":"draft_approved","entity":"invoice","entityId":"2289","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2289,"clientId":25,"number":"002239","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2292,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":24,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ARIEL","clientLastName":"CORTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL DURAZNO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:56.619507] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:56.619556] [debug] Valor de JSON: {"uuid":"9df7f18d-bba4-4fc4-9238-6becc1c65442","changeType":"draft_approved","entity":"invoice","entityId":"2289","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2289,"clientId":25,"number":"002239","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2292,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":24,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ARIEL","clientLastName":"CORTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL DURAZNO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:56.619657] [debug] Aprobación de Factura + +[2025-07-31 16:01:56.619702] [debug] {"uuid":"9df7f18d-bba4-4fc4-9238-6becc1c65442","changeType":"draft_approved","entity":"invoice","entityId":2289,"message":null,"clientId":25,"eventName":"invoice.draft_approved","clientData":{"id":25,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL DURAZNO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL DURAZNO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ARIEL","lastName":"CORTES","username":"acortes25","contacts":[{"id":26,"clientId":25,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-15400,"accountCredit":0,"accountOutstanding":15400,"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":2289,"clientId":25,"number":"002239","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2292,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":24,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ARIEL","clientLastName":"CORTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL DURAZNO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:57.794049] [notice] Logging level set to:debug +[2025-07-31 16:01:57.794125] [debug] valor del webhook: {"uuid":"bd0e746e-3125-4153-8598-ea5698e4606b","changeType":"draft_approved","entity":"invoice","entityId":"2290","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2290,"clientId":59,"number":"002240","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2293,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":58,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAMSES","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GUSANO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:57.943759] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:57.943819] [debug] Valor de JSON: {"uuid":"bd0e746e-3125-4153-8598-ea5698e4606b","changeType":"draft_approved","entity":"invoice","entityId":"2290","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2290,"clientId":59,"number":"002240","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2293,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":58,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAMSES","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GUSANO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:57.943974] [debug] Aprobación de Factura + +[2025-07-31 16:01:57.944025] [debug] {"uuid":"bd0e746e-3125-4153-8598-ea5698e4606b","changeType":"draft_approved","entity":"invoice","entityId":2290,"message":null,"clientId":59,"eventName":"invoice.draft_approved","clientData":{"id":59,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"GUSANO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"GUSANO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"RAMSES","lastName":"HERRERA","username":"rherrera59","contacts":[{"id":60,"clientId":59,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5700,"accountCredit":0,"accountOutstanding":5700,"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":2290,"clientId":59,"number":"002240","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2293,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":58,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAMSES","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GUSANO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:01:59.165586] [notice] Logging level set to:debug +[2025-07-31 16:01:59.165646] [debug] valor del webhook: {"uuid":"de27bd51-9e7d-42d6-b8e6-7958e1b484ee","changeType":"draft_approved","entity":"invoice","entityId":"2291","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2291,"clientId":100,"number":"002241","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2294,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":99,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RENE","clientLastName":"BUSTOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:59.318226] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:01:59.318279] [debug] Valor de JSON: {"uuid":"de27bd51-9e7d-42d6-b8e6-7958e1b484ee","changeType":"draft_approved","entity":"invoice","entityId":"2291","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2291,"clientId":100,"number":"002241","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2294,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":99,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RENE","clientLastName":"BUSTOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:01:59.318409] [debug] Aprobación de Factura + +[2025-07-31 16:01:59.318454] [debug] {"uuid":"de27bd51-9e7d-42d6-b8e6-7958e1b484ee","changeType":"draft_approved","entity":"invoice","entityId":2291,"message":null,"clientId":100,"eventName":"invoice.draft_approved","clientData":{"id":100,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"RENE","lastName":"BUSTOS","username":"rbustos00","contacts":[{"id":101,"clientId":100,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5700,"accountCredit":0,"accountOutstanding":5700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#0277bd","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2291,"clientId":100,"number":"002241","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2294,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":99,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RENE","clientLastName":"BUSTOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:02:00.480994] [notice] Logging level set to:debug +[2025-07-31 16:02:00.481118] [debug] valor del webhook: {"uuid":"ec502083-2e3a-45cc-9369-86bfbd5b81fd","changeType":"draft_approved","entity":"invoice","entityId":"2292","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2292,"clientId":77,"number":"002242","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2295,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":76,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARGARITO","clientLastName":"ESTRADA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTILLA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:00.662931] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:02:00.662986] [debug] Valor de JSON: {"uuid":"ec502083-2e3a-45cc-9369-86bfbd5b81fd","changeType":"draft_approved","entity":"invoice","entityId":"2292","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2292,"clientId":77,"number":"002242","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2295,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":76,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARGARITO","clientLastName":"ESTRADA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTILLA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:00.663078] [debug] Aprobación de Factura + +[2025-07-31 16:02:00.663120] [debug] {"uuid":"ec502083-2e3a-45cc-9369-86bfbd5b81fd","changeType":"draft_approved","entity":"invoice","entityId":2292,"message":null,"clientId":77,"eventName":"invoice.draft_approved","clientData":{"id":77,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA VENTILLA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA VENTILLA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MARGARITO","lastName":"ESTRADA","username":"mestrada77","contacts":[{"id":78,"clientId":77,"email":null,"phone":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":-5400,"accountCredit":0,"accountOutstanding":5400,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#039be5","addressGpsLat":21.1145736,"addressGpsLon":-100.933729,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2292,"clientId":77,"number":"002242","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2295,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":76,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARGARITO","clientLastName":"ESTRADA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTILLA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:02:02.439197] [notice] Logging level set to:debug +[2025-07-31 16:02:02.439254] [debug] valor del webhook: {"uuid":"48c7379e-d708-4fbb-981d-2e526188a2fc","changeType":"draft_approved","entity":"invoice","entityId":"2293","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2293,"clientId":55,"number":"002243","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2296,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":54,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JOSE","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:02.614552] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:02:02.614605] [debug] Valor de JSON: {"uuid":"48c7379e-d708-4fbb-981d-2e526188a2fc","changeType":"draft_approved","entity":"invoice","entityId":"2293","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2293,"clientId":55,"number":"002243","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2296,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":54,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JOSE","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:02.614717] [debug] Aprobación de Factura + +[2025-07-31 16:02:02.614824] [debug] {"uuid":"48c7379e-d708-4fbb-981d-2e526188a2fc","changeType":"draft_approved","entity":"invoice","entityId":2293,"message":null,"clientId":55,"eventName":"invoice.draft_approved","clientData":{"id":55,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL MEZQUITAL","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL MEZQUITAL, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JOSE","lastName":"SANCHEZ","username":"jsanchez55","contacts":[{"id":56,"clientId":55,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"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":2293,"clientId":55,"number":"002243","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2296,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":54,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JOSE","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:02:03.677807] [notice] Logging level set to:debug +[2025-07-31 16:02:03.677874] [debug] valor del webhook: {"uuid":"9b9c6a13-a704-4723-8d8f-fbf0e3fef8de","changeType":"draft_approved","entity":"invoice","entityId":"2294","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2294,"clientId":51,"number":"002244","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2297,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":50,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"MORENO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PADRE HIDALGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:03.818404] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:02:03.818453] [debug] Valor de JSON: {"uuid":"9b9c6a13-a704-4723-8d8f-fbf0e3fef8de","changeType":"draft_approved","entity":"invoice","entityId":"2294","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2294,"clientId":51,"number":"002244","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2297,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":50,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"MORENO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PADRE HIDALGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:03.818542] [debug] Aprobación de Factura + +[2025-07-31 16:02:03.818582] [debug] {"uuid":"9b9c6a13-a704-4723-8d8f-fbf0e3fef8de","changeType":"draft_approved","entity":"invoice","entityId":2294,"message":null,"clientId":51,"eventName":"invoice.draft_approved","clientData":{"id":51,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"PADRE HIDALGO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"PADRE HIDALGO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"DANIEL","lastName":"MORENO","username":"dmoreno51","contacts":[{"id":52,"clientId":51,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-8950,"accountCredit":0,"accountOutstanding":8950,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#fb8c00","addressGpsLat":21.1663422,"addressGpsLon":-100.9347882,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2294,"clientId":51,"number":"002244","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2297,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":50,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"MORENO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PADRE HIDALGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:02:04.982506] [notice] Logging level set to:debug +[2025-07-31 16:02:04.982593] [debug] valor del webhook: {"uuid":"7530fb6b-a620-486d-9f2f-5712b5401ba5","changeType":"draft_approved","entity":"invoice","entityId":"2295","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2295,"clientId":70,"number":"002245","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2298,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":69,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALBERTO","clientLastName":"TRUJILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:05.129194] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:02:05.129249] [debug] Valor de JSON: {"uuid":"7530fb6b-a620-486d-9f2f-5712b5401ba5","changeType":"draft_approved","entity":"invoice","entityId":"2295","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2295,"clientId":70,"number":"002245","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2298,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":69,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALBERTO","clientLastName":"TRUJILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:05.129340] [debug] Aprobación de Factura + +[2025-07-31 16:02:05.129384] [debug] {"uuid":"7530fb6b-a620-486d-9f2f-5712b5401ba5","changeType":"draft_approved","entity":"invoice","entityId":2295,"message":null,"clientId":70,"eventName":"invoice.draft_approved","clientData":{"id":70,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALBERTO","lastName":"TRUJILLO","username":"atrujillo70","contacts":[{"id":71,"clientId":70,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-12600,"accountCredit":0,"accountOutstanding":12600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef6c00","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2295,"clientId":70,"number":"002245","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2298,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":69,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALBERTO","clientLastName":"TRUJILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:02:06.299310] [notice] Logging level set to:debug +[2025-07-31 16:02:06.299364] [debug] valor del webhook: {"uuid":"5797c1b6-0682-43db-8a09-1390a415b095","changeType":"draft_approved","entity":"invoice","entityId":"2296","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2296,"clientId":60,"number":"002246","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2299,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":59,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MANUEL","clientLastName":"CORENEO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:06.443013] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:02:06.443075] [debug] Valor de JSON: {"uuid":"5797c1b6-0682-43db-8a09-1390a415b095","changeType":"draft_approved","entity":"invoice","entityId":"2296","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2296,"clientId":60,"number":"002246","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2299,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":59,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MANUEL","clientLastName":"CORENEO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:06.443198] [debug] Aprobación de Factura + +[2025-07-31 16:02:06.443243] [debug] {"uuid":"5797c1b6-0682-43db-8a09-1390a415b095","changeType":"draft_approved","entity":"invoice","entityId":2296,"message":null,"clientId":60,"eventName":"invoice.draft_approved","clientData":{"id":60,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TECOLOTE","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TECOLOTE, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MANUEL","lastName":"CORENEO","username":"mcoreneo60","contacts":[{"id":61,"clientId":60,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"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":2296,"clientId":60,"number":"002246","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2299,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":59,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MANUEL","clientLastName":"CORENEO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:02:07.648988] [notice] Logging level set to:debug +[2025-07-31 16:02:07.649044] [debug] valor del webhook: {"uuid":"31bbce01-6e4a-47c4-889c-587cb595c29c","changeType":"draft_approved","entity":"invoice","entityId":"2297","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2297,"clientId":9,"number":"002247","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2300,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":9,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JHOVANY","clientLastName":"LOPEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GALLINERO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:07.791629] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:02:07.791697] [debug] Valor de JSON: {"uuid":"31bbce01-6e4a-47c4-889c-587cb595c29c","changeType":"draft_approved","entity":"invoice","entityId":"2297","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2297,"clientId":9,"number":"002247","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2300,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":9,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JHOVANY","clientLastName":"LOPEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GALLINERO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:07.791793] [debug] Aprobación de Factura + +[2025-07-31 16:02:07.791837] [debug] {"uuid":"31bbce01-6e4a-47c4-889c-587cb595c29c","changeType":"draft_approved","entity":"invoice","entityId":2297,"message":null,"clientId":9,"eventName":"invoice.draft_approved","clientData":{"id":9,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"GALLINERO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"GALLINERO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JHOVANY","lastName":"LOPEZ","username":"jlopez09","contacts":[{"id":10,"clientId":9,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-6500,"accountCredit":0,"accountOutstanding":6500,"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":2297,"clientId":9,"number":"002247","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2300,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":9,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JHOVANY","clientLastName":"LOPEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GALLINERO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:02:08.969366] [notice] Logging level set to:debug +[2025-07-31 16:02:08.969476] [debug] valor del webhook: {"uuid":"c142ac38-cd72-46c0-904e-93a7bc306778","changeType":"draft_approved","entity":"invoice","entityId":"2298","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2298,"clientId":54,"number":"002248","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2301,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":53,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORETO","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"COLORADO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:09.116432] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:02:09.116489] [debug] Valor de JSON: {"uuid":"c142ac38-cd72-46c0-904e-93a7bc306778","changeType":"draft_approved","entity":"invoice","entityId":"2298","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2298,"clientId":54,"number":"002248","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2301,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":53,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORETO","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"COLORADO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:09.116591] [debug] Aprobación de Factura + +[2025-07-31 16:02:09.116636] [debug] {"uuid":"c142ac38-cd72-46c0-904e-93a7bc306778","changeType":"draft_approved","entity":"invoice","entityId":2298,"message":null,"clientId":54,"eventName":"invoice.draft_approved","clientData":{"id":54,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"COLORADO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"COLORADO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"LORETO","lastName":"HERRERA","username":"lherrera54","contacts":[{"id":55,"clientId":54,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"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":2298,"clientId":54,"number":"002248","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2301,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":53,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORETO","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"COLORADO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:02:10.259407] [notice] Logging level set to:debug +[2025-07-31 16:02:10.259521] [debug] valor del webhook: {"uuid":"dccb4068-dc9a-4b60-aa90-e0ef68b0076b","changeType":"draft_approved","entity":"invoice","entityId":"2299","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2299,"clientId":38,"number":"002249","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2302,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":37,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGELICA","clientLastName":"ROMAN","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:10.393239] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:02:10.393299] [debug] Valor de JSON: {"uuid":"dccb4068-dc9a-4b60-aa90-e0ef68b0076b","changeType":"draft_approved","entity":"invoice","entityId":"2299","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2299,"clientId":38,"number":"002249","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2302,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":37,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGELICA","clientLastName":"ROMAN","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:10.393425] [debug] Aprobación de Factura + +[2025-07-31 16:02:10.393470] [debug] {"uuid":"dccb4068-dc9a-4b60-aa90-e0ef68b0076b","changeType":"draft_approved","entity":"invoice","entityId":2299,"message":null,"clientId":38,"eventName":"invoice.draft_approved","clientData":{"id":38,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TECOLOTE","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TECOLOTE, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANGELICA","lastName":"ROMAN","username":"aroman38","contacts":[{"id":39,"clientId":38,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5410,"accountCredit":0,"accountOutstanding":5410,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#607d8b","addressGpsLat":21.22987,"addressGpsLon":-101.0648115,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2299,"clientId":38,"number":"002249","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2302,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":37,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGELICA","clientLastName":"ROMAN","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:02:11.546117] [notice] Logging level set to:debug +[2025-07-31 16:02:11.546221] [debug] valor del webhook: {"uuid":"77d157e7-9cad-4c3d-a209-bc9014c8da26","changeType":"draft_approved","entity":"invoice","entityId":"2300","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2300,"clientId":74,"number":"002250","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2303,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":73,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARCELO","clientLastName":"PALACIOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:11.716821] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:02:11.716875] [debug] Valor de JSON: {"uuid":"77d157e7-9cad-4c3d-a209-bc9014c8da26","changeType":"draft_approved","entity":"invoice","entityId":"2300","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2300,"clientId":74,"number":"002250","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2303,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":73,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARCELO","clientLastName":"PALACIOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:11.717019] [debug] Aprobación de Factura + +[2025-07-31 16:02:11.717062] [debug] {"uuid":"77d157e7-9cad-4c3d-a209-bc9014c8da26","changeType":"draft_approved","entity":"invoice","entityId":2300,"message":null,"clientId":74,"eventName":"invoice.draft_approved","clientData":{"id":74,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MARCELO","lastName":"PALACIOS","username":"mpalacios74","contacts":[{"id":75,"clientId":74,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2e7d32","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2300,"clientId":74,"number":"002250","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2303,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":73,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARCELO","clientLastName":"PALACIOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:02:12.861845] [notice] Logging level set to:debug +[2025-07-31 16:02:12.861918] [debug] valor del webhook: {"uuid":"85da7d0b-39a1-42da-9076-7674b7c07ee2","changeType":"draft_approved","entity":"invoice","entityId":"2301","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2301,"clientId":58,"number":"002251","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2304,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":57,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"DOMINGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MOLINO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:13.002808] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:02:13.002856] [debug] Valor de JSON: {"uuid":"85da7d0b-39a1-42da-9076-7674b7c07ee2","changeType":"draft_approved","entity":"invoice","entityId":"2301","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2301,"clientId":58,"number":"002251","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2304,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":57,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"DOMINGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MOLINO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:13.002958] [debug] Aprobación de Factura + +[2025-07-31 16:02:13.003002] [debug] {"uuid":"85da7d0b-39a1-42da-9076-7674b7c07ee2","changeType":"draft_approved","entity":"invoice","entityId":2301,"message":null,"clientId":58,"eventName":"invoice.draft_approved","clientData":{"id":58,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL MOLINO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL MOLINO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"EDGAR","lastName":"DOMINGUEZ","username":"edominguez58","contacts":[{"id":59,"clientId":58,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"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":2301,"clientId":58,"number":"002251","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2304,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":57,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"DOMINGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MOLINO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:02:14.169836] [notice] Logging level set to:debug +[2025-07-31 16:02:14.169898] [debug] valor del webhook: {"uuid":"d487a7c5-624e-444e-b435-3a82867a1255","changeType":"draft_approved","entity":"invoice","entityId":"2302","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2302,"clientId":18,"number":"002252","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2305,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":17,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"INGRID","clientLastName":"CORONADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:14.308502] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:02:14.308563] [debug] Valor de JSON: {"uuid":"d487a7c5-624e-444e-b435-3a82867a1255","changeType":"draft_approved","entity":"invoice","entityId":"2302","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2302,"clientId":18,"number":"002252","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2305,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":17,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"INGRID","clientLastName":"CORONADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:14.308681] [debug] Aprobación de Factura + +[2025-07-31 16:02:14.308727] [debug] {"uuid":"d487a7c5-624e-444e-b435-3a82867a1255","changeType":"draft_approved","entity":"invoice","entityId":2302,"message":null,"clientId":18,"eventName":"invoice.draft_approved","clientData":{"id":18,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"INGRID","lastName":"CORONADO","username":"icoronado18","contacts":[{"id":19,"clientId":18,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-13300,"accountCredit":0,"accountOutstanding":13300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#039be5","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2302,"clientId":18,"number":"002252","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2305,"type":"service","label":"PREMIUM 30\/06\/2025 \u2013 30\/07\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":17,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"INGRID","clientLastName":"CORONADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:02:15.461467] [notice] Logging level set to:debug +[2025-07-31 16:02:15.461577] [debug] valor del webhook: {"uuid":"0d851409-0eb1-4f49-8e22-f27ff085b2f3","changeType":"draft_approved","entity":"invoice","entityId":"2303","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2303,"clientId":97,"number":"002253","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2306,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":96,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"YOLANDA","clientLastName":"CANO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AVILES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:15.606671] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:02:15.606728] [debug] Valor de JSON: {"uuid":"0d851409-0eb1-4f49-8e22-f27ff085b2f3","changeType":"draft_approved","entity":"invoice","entityId":"2303","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2303,"clientId":97,"number":"002253","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2306,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":96,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"YOLANDA","clientLastName":"CANO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AVILES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:15.606847] [debug] Aprobación de Factura + +[2025-07-31 16:02:15.606893] [debug] {"uuid":"0d851409-0eb1-4f49-8e22-f27ff085b2f3","changeType":"draft_approved","entity":"invoice","entityId":2303,"message":null,"clientId":97,"eventName":"invoice.draft_approved","clientData":{"id":97,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LOS AVILES","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LOS AVILES, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"YOLANDA","lastName":"CANO","username":"ycano97","contacts":[{"id":98,"clientId":97,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-9500,"accountCredit":0,"accountOutstanding":9500,"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":2303,"clientId":97,"number":"002253","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2306,"type":"service","label":"INTERMEDIO 30\/06\/2025 \u2013 30\/07\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":96,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"YOLANDA","clientLastName":"CANO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AVILES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:02:16.768554] [notice] Logging level set to:debug +[2025-07-31 16:02:16.768661] [debug] valor del webhook: {"uuid":"41402438-8ce2-4ac5-b7fc-63fb9069172e","changeType":"draft_approved","entity":"invoice","entityId":"2304","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2304,"clientId":91,"number":"002254","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2307,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":90,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CAROLINA","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:16.901417] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:02:16.901470] [debug] Valor de JSON: {"uuid":"41402438-8ce2-4ac5-b7fc-63fb9069172e","changeType":"draft_approved","entity":"invoice","entityId":"2304","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2304,"clientId":91,"number":"002254","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2307,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":90,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CAROLINA","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:16.901566] [debug] Aprobación de Factura + +[2025-07-31 16:02:16.901613] [debug] {"uuid":"41402438-8ce2-4ac5-b7fc-63fb9069172e","changeType":"draft_approved","entity":"invoice","entityId":2304,"message":null,"clientId":91,"eventName":"invoice.draft_approved","clientData":{"id":91,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA CALIORNIA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA CALIORNIA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"CAROLINA","lastName":"PE\u00d1A","username":"cpe\u00d1a91","contacts":[{"id":92,"clientId":91,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-8600,"accountCredit":0,"accountOutstanding":8600,"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":2304,"clientId":91,"number":"002254","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2307,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":90,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CAROLINA","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:02:18.049138] [notice] Logging level set to:debug +[2025-07-31 16:02:18.049196] [debug] valor del webhook: {"uuid":"e435c449-92bc-4015-8a62-82a9c1a5f6c1","changeType":"draft_approved","entity":"invoice","entityId":"2305","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2305,"clientId":40,"number":"002255","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2308,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":39,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"PADRON","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RANCHO GUADALUPE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:18.196863] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:02:18.196918] [debug] Valor de JSON: {"uuid":"e435c449-92bc-4015-8a62-82a9c1a5f6c1","changeType":"draft_approved","entity":"invoice","entityId":"2305","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2305,"clientId":40,"number":"002255","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2308,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":39,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"PADRON","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RANCHO GUADALUPE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:18.197036] [debug] Aprobación de Factura + +[2025-07-31 16:02:18.197084] [debug] {"uuid":"e435c449-92bc-4015-8a62-82a9c1a5f6c1","changeType":"draft_approved","entity":"invoice","entityId":2305,"message":null,"clientId":40,"eventName":"invoice.draft_approved","clientData":{"id":40,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"RANCHO GUADALUPE","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"RANCHO GUADALUPE, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"OMAR","lastName":"PADRON","username":"opadron40","contacts":[{"id":41,"clientId":40,"email":null,"phone":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":-5410,"accountCredit":0,"accountOutstanding":5410,"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":2305,"clientId":40,"number":"002255","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2308,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":39,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"PADRON","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RANCHO GUADALUPE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:02:19.325257] [notice] Logging level set to:debug +[2025-07-31 16:02:19.325359] [debug] valor del webhook: {"uuid":"17367fa9-4550-4693-b6bb-ab526d703a6c","changeType":"draft_approved","entity":"invoice","entityId":"2306","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2306,"clientId":47,"number":"002256","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2309,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":46,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ASRAEL","clientLastName":"PONCE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:19.459316] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:02:19.459367] [debug] Valor de JSON: {"uuid":"17367fa9-4550-4693-b6bb-ab526d703a6c","changeType":"draft_approved","entity":"invoice","entityId":"2306","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2306,"clientId":47,"number":"002256","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2309,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":46,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ASRAEL","clientLastName":"PONCE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:19.459464] [debug] Aprobación de Factura + +[2025-07-31 16:02:19.459512] [debug] {"uuid":"17367fa9-4550-4693-b6bb-ab526d703a6c","changeType":"draft_approved","entity":"invoice","entityId":2306,"message":null,"clientId":47,"eventName":"invoice.draft_approved","clientData":{"id":47,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ASRAEL","lastName":"PONCE","username":"aponce47","contacts":[{"id":48,"clientId":47,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":102,"clientId":47,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtN1ERR1n4E6GPk","clientZoneVisible":true},{"id":103,"clientId":47,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"8205258963078605","clientZoneVisible":true}],"accountBalance":-5380,"accountCredit":0,"accountOutstanding":5380,"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":2306,"clientId":47,"number":"002256","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2309,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":46,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ASRAEL","clientLastName":"PONCE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:02:20.599807] [notice] Logging level set to:debug +[2025-07-31 16:02:20.599863] [debug] valor del webhook: {"uuid":"87e112ab-1b07-4b9a-80ff-c10f759ebde0","changeType":"draft_approved","entity":"invoice","entityId":"2307","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2307,"clientId":67,"number":"002257","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2310,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":66,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TOMAS","clientLastName":"SUASTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:20.734734] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:02:20.734807] [debug] Valor de JSON: {"uuid":"87e112ab-1b07-4b9a-80ff-c10f759ebde0","changeType":"draft_approved","entity":"invoice","entityId":"2307","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2307,"clientId":67,"number":"002257","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2310,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":66,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TOMAS","clientLastName":"SUASTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:20.734906] [debug] Aprobación de Factura + +[2025-07-31 16:02:20.734946] [debug] {"uuid":"87e112ab-1b07-4b9a-80ff-c10f759ebde0","changeType":"draft_approved","entity":"invoice","entityId":2307,"message":null,"clientId":67,"eventName":"invoice.draft_approved","clientData":{"id":67,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"TOMAS","lastName":"SUASTE","username":"tsuaste67","contacts":[{"id":68,"clientId":67,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"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":2307,"clientId":67,"number":"002257","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2310,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":66,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TOMAS","clientLastName":"SUASTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 16:02:21.857547] [notice] Logging level set to:debug +[2025-07-31 16:02:21.857599] [debug] valor del webhook: {"uuid":"be53920a-4613-4277-ba1c-fd7aac06d235","changeType":"draft_approved","entity":"invoice","entityId":"2308","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2308,"clientId":69,"number":"002258","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2311,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":68,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CIRILA","clientLastName":"AVILES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:21.996445] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-07-31 16:02:21.996505] [debug] Valor de JSON: {"uuid":"be53920a-4613-4277-ba1c-fd7aac06d235","changeType":"draft_approved","entity":"invoice","entityId":"2308","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2308,"clientId":69,"number":"002258","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2311,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":68,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CIRILA","clientLastName":"AVILES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-07-31 16:02:21.996620] [debug] Aprobación de Factura + +[2025-07-31 16:02:21.996664] [debug] {"uuid":"be53920a-4613-4277-ba1c-fd7aac06d235","changeType":"draft_approved","entity":"invoice","entityId":2308,"message":null,"clientId":69,"eventName":"invoice.draft_approved","clientData":{"id":69,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"CIRILA","lastName":"AVILES","username":"caviles69","contacts":[{"id":70,"clientId":69,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"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":2308,"clientId":69,"number":"002258","createdDate":"2025-07-31T10:00:01-0600","dueDate":"2025-08-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-07-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2311,"type":"service","label":"plan300 30\/06\/2025 \u2013 30\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":68,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CIRILA","clientLastName":"AVILES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-07-31 17:11:22.305042] [notice] Logging level set to:debug +[2025-07-31 17:11:22.305152] [debug] valor del webhook: { "type": "oxxo.request", "client_id": 2, -"amount": 300 +"amount": "$120" } -[2025-06-10 8:20:19.760904] [info] No UUID found in the webhook data -[2025-06-10 8:20:19.760976] [info] Evento de solicitud de referencia de oxxo recibido +[2025-07-31 17:11:22.305176] [info] No UUID found in the webhook data +[2025-07-31 17:11:22.305187] [info] Evento de solicitud de referencia de oxxo recibido -[2025-06-10 8:20:19.761033] [info] Referencia persnoalizada, Valor del monto: 300 +[2025-07-31 17:11:22.305196] [info] Referencia personalizada, Valor del monto: $120 -[2025-06-10 8:20:19.761097] [info] Creando referencia del cliente para OXXO: +[2025-07-31 17:11:22.305206] [info] Creando referencia del cliente para OXXO: -[2025-06-10 8:20:19.903256] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX +[2025-07-31 17:11:22.434386] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX -[2025-06-10 8:20:19.903388] [info] Monto proporcionado directamente: 300 +[2025-07-31 17:11:22.434576] [info] Monto proporcionado directamente: 120 -[2025-06-10 8:20:19.903434] [info] Creando referencia en Stripe por 30000 para el cliente cus_PetN1dhr4rx0kX +[2025-07-31 17:11:22.434628] [info] Creando referencia en Stripe por 120 para el cliente cus_PetN1dhr4rx0kX -[2025-06-10 8:20:21.383385] [info] Referencia OXXO: 12345678901234657890123456789012 +[2025-07-31 17:11:23.970145] [info] Referencia OXXO: 12345678901234657890123456789012 -[2025-06-10 8:20:21.383923] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVEs0WDN4SzRaYUxNaWFGdlZ1clYxelVCVE5xYmlt0100xRlGtVLY +[2025-07-31 17:11:23.970360] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TbVo5Wm5NQlFocTdDODRLYUxvSWE2U0p2WlVDaDNS010051PxwBE7 -[2025-06-10 8:20:21.384090] [info] Referencia OXXO creada correctamente. +[2025-07-31 17:11:23.970441] [info] Referencia OXXO creada correctamente. -[2025-06-10 8:20:23.687079] [debug] Status Code: 200 -[2025-06-10 8:20:23.687383] [debug] Content Type: image/jpeg -[2025-06-10 8:20:23.687757] [debug] ¡Imagen guardada exitosamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/vouchers_oxxo/voucher_Daniel Humberto Soto Villegas_1749543621.jpeg +[2025-07-31 17:11:26.337779] [debug] Status Code: 200 +[2025-07-31 17:11:26.338092] [debug] Content Type: image/jpeg +[2025-07-31 17:11:26.339217] [debug] ¡Imagen guardada exitosamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1753981883.jpeg Subiendo voucher a worpdpress -file_to_upload: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../vouchers_oxxo/voucher_Daniel Humberto Soto Villegas_1749543621.jpeg +file_to_upload: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1753981883.jpeg Conexión FTP exitosa El archivo ha sido cargado exitosamente. -La URL es: https://siip.mx/wp/wp-content/uploads/vouchers_oxxo/voucher_Daniel Humberto Soto Villegas_1749543621.jpeg +La URL es: https://siip.mx/wp/wp-content/uploads/vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1753981883.jpeg No se pudo obtener la lista de archivos de la carpeta FTP -[2025-06-10 8:20:25.238972] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"12345678901234657890123456789012","url":"https:\/\/payments.stripe.com\/oxxo\/voucher\/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVEs0WDN4SzRaYUxNaWFGdlZ1clYxelVCVE5xYmlt0100xRlGtVLY","error":"","failDescription":"","clientID":2,"clientFullName":"Daniel Humberto Soto Villegas","amount":300,"voucher_image_url":"https:\/\/siip.mx\/wp\/wp-content\/uploads\/vouchers_oxxo\/voucher_Daniel Humberto Soto Villegas_1749543621.jpeg"} +[2025-07-31 17:11:27.875088] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"12345678901234657890123456789012","url":"https:\/\/payments.stripe.com\/oxxo\/voucher\/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TbVo5Wm5NQlFocTdDODRLYUxvSWE2U0p2WlVDaDNS010051PxwBE7","error":"","failDescription":"","clientID":2,"clientFullName":"Daniel Humberto Soto Villegas","amount":"120","voucher_image_url":"https:\/\/siip.mx\/wp\/wp-content\/uploads\/vouchers_oxxo\/voucher_Daniel_Humberto_Soto_Villegas_1753981883.jpeg"} -[2025-06-10 8:20:25.239098] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVEs0WDN4SzRaYUxNaWFGdlZ1clYxelVCVE5xYmlt0100xRlGtVLY","oxxo_reference": "12345678901234657890123456789012","voucher_image_url": "https://siip.mx/wp/wp-content/uploads/vouchers_oxxo/voucher_Daniel Humberto Soto Villegas_1749543621.jpeg","error": "","failDescription": "","clientID": "2","clientFullName": "Daniel Humberto Soto Villegas","amount": "300"} -[2025-06-10 8:23:24.187242] [notice] Logging level set to:debug -[2025-06-10 8:23:24.187344] [debug] valor del webhook: {"uuid":"a119705a-0326-4780-bd71-a7fcd8d7ffff","changeType":"insert","entity":"payment","entityId":"643","eventName":"payment.add","extraData":{"entity":{"id":643,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:23:23-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]},"entityBeforeEdit":null}} +[2025-07-31 17:11:27.875216] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TbVo5Wm5NQlFocTdDODRLYUxvSWE2U0p2WlVDaDNS010051PxwBE7","oxxo_reference": "12345678901234657890123456789012","voucher_image_url": "https://siip.mx/wp/wp-content/uploads/vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1753981883.jpeg","error": "","failDescription": "","clientID": "2","clientFullName": "Daniel Humberto Soto Villegas","amount": "120"} +[2025-07-31 17:14:26.598822] [notice] Logging level set to:debug +[2025-07-31 17:14:26.598920] [debug] valor del webhook: {"uuid":"76765c9c-9f45-4903-b56c-61f4e438ea2d","changeType":"insert","entity":"payment","entityId":"674","eventName":"payment.add","extraData":{"entity":{"id":674,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-31T11:14:26-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]},"entityBeforeEdit":null}} -[2025-06-10 8:23:24.363619] [debug] valor el evento recibido por webhook: payment.add +[2025-07-31 17:14:26.744990] [debug] valor el evento recibido por webhook: payment.add -[2025-06-10 8:23:24.363667] [debug] Valor de JSON: {"uuid":"a119705a-0326-4780-bd71-a7fcd8d7ffff","changeType":"insert","entity":"payment","entityId":"643","eventName":"payment.add","extraData":{"entity":{"id":643,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:23:23-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]},"entityBeforeEdit":null}} +[2025-07-31 17:14:26.745038] [debug] Valor de JSON: {"uuid":"76765c9c-9f45-4903-b56c-61f4e438ea2d","changeType":"insert","entity":"payment","entityId":"674","eventName":"payment.add","extraData":{"entity":{"id":674,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-31T11:14:26-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]},"entityBeforeEdit":null}} -[2025-06-10 8:23:24.363904] [debug] Notification encodificado en JSON:{"uuid":"a119705a-0326-4780-bd71-a7fcd8d7ffff","changeType":"insert","entity":"payment","entityId":643,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":2583.33,"accountCredit":2583.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":643,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:23:23-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}} +[2025-07-31 17:14:26.745451] [debug] Notification encodificado en JSON:{"uuid":"76765c9c-9f45-4903-b56c-61f4e438ea2d","changeType":"insert","entity":"payment","entityId":674,"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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":340,"accountCredit":340,"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":674,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-31T11:14:26-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]}} -[2025-06-10 8:23:24.363938] [debug] valor del payment data: {"id":643,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:23:23-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]} +[2025-07-31 17:14:26.745490] [debug] valor del payment data: {"id":674,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-31T11:14:26-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]} -[2025-06-10 8:23:24.364017] [info] {"WhatsApp":["5214181148783"]} -[2025-06-10 8:23:24.364032] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-10 8:23:24.364042] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-10 8:23:24.364065] [debug] ***Se notifica y actualiza al cliente sobre su pago*** +[2025-07-31 17:14:26.745563] [info] {"WhatsApp":["5214181148783"]} +[2025-07-31 17:14:26.745577] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-07-31 17:14:26.745585] [info] Tipo de contacto normalizado: 'whatsapp' +[2025-07-31 17:14:26.745608] [debug] ***Se notifica y actualiza al cliente sobre su pago*** Eviando comprobante de pago al cliente: 2 con número: 5214181148783 @@ -7301,1174 +2583,10 @@ El archivo PDF se ha descargado y guardado correctamente en: /data/ucrm/data/plu 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 -El archivo PNG se ha generado correctamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.png +[2025-07-31 17:14:27.482251] [notice] Logging level set to:debug +[2025-07-31 17:14:27.482398] [debug] valor del webhook: {"uuid":"642e0442-e9c5-4485-b2b4-ebcc6acc51a1","changeType":"edit","entity":"payment","entityId":"674","eventName":"payment.edit","extraData":{"entity":{"id":674,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-31T11:14:26-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":674,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-31T11:14:26-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]}}} -Subiendo comprobante a worpdpress +[2025-07-31 17:14:27.603179] [debug] valor el evento recibido por webhook: payment.edit -file_to_upload: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.png - -Conexión FTP exitosa - -El archivo ha sido cargado exitosamente. - -La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas.png - -No se pudo obtener la lista de archivos de la carpeta FTP - -Se terminó de subir comprobante a wordpress - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "document", - "content": { - "text": "S/M", - "url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas.png" - }, - "template_values": ["Daniel Humberto Soto Villegas", "$300", "$2583.33 a favor"], - "template_uuid": "57ead79cebd14902921477922403093b", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"2911507849ba41aa98c6f300b073633b","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":"a119705a-0326-4780-bd71-a7fcd8d7ffff","changeType":"insert","entity":"payment","entityId":643,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":2583.33,"accountCredit":2583.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":643,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:23:23-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":643,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:23:23-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Guanajuato","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb22583.33 a favor","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb22583.33 a favor\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 10\/06\/2025 02:23 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"10\/06\/2025 02:23\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 10\/06\/2025 02:23 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 10\/06\/2025 02:23","Clabe Interbancaria":null,"Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲2583.33 a favor","Monto Ultimo Pago": "$ 300","Estado": "Activo","Fecha Ultimo Pago": " 10/06/2025 02:23 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "10/06/2025 02:23","Clabe Interbancaria": "","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲2583.33 a favor","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 10/06/2025 02:23 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 10/06/2025 02:23","Monto Ultimo Pago":"💲 300","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲2583.33 a favor\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 10/06/2025 02:23 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"10/06/2025 02:23\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲2583.33 a favor","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 10/06/2025 02:23 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 10/06/2025 02:23","Monto Ultimo Pago":"💲 300","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲2583.33 a favor\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 10/06/2025 02:23 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"10/06/2025 02:23\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-10 8:23:29.644613] [notice] Logging level set to:debug -[2025-06-10 8:23:29.644715] [debug] valor del webhook: {"uuid":"8ca3493c-75cd-4c06-9aa6-e2f7d4ff1ccd","changeType":"edit","entity":"payment","entityId":"643","eventName":"payment.edit","extraData":{"entity":{"id":643,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:23:23-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":643,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:23:23-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}}} - -[2025-06-10 8:23:29.762285] [debug] valor el evento recibido por webhook: payment.edit - -[2025-06-10 8:23:29.762340] [debug] Valor de JSON: {"uuid":"8ca3493c-75cd-4c06-9aa6-e2f7d4ff1ccd","changeType":"edit","entity":"payment","entityId":"643","eventName":"payment.edit","extraData":{"entity":{"id":643,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:23:23-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":643,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:23:23-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}}} - -[2025-06-10 8:27:44.852210] [notice] Logging level set to:debug -[2025-06-10 8:27:44.852336] [debug] valor del webhook: { -"type": "oxxo.request", -"client_id": 2, -"amount": 320 -} - -[2025-06-10 8:27:44.852370] [info] No UUID found in the webhook data -[2025-06-10 8:27:44.852386] [info] Evento de solicitud de referencia de oxxo recibido - -[2025-06-10 8:27:44.852401] [info] Referencia persnoalizada, Valor del monto: 320 - -[2025-06-10 8:27:44.852420] [info] Creando referencia del cliente para OXXO: - -[2025-06-10 8:27:44.996828] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX - -[2025-06-10 8:27:44.996880] [info] Monto proporcionado directamente: 320 - -[2025-06-10 8:27:44.996896] [info] Creando referencia en Stripe por 32000 para el cliente cus_PetN1dhr4rx0kX - -[2025-06-10 8:27:46.493354] [info] Referencia OXXO: 12345678901234657890123456789012 - -[2025-06-10 8:27:46.493778] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVEtCYU45a3lkVXAwWVY3Wlpxb0ZvWldveTl5RWN60100VPhx7J2y - -[2025-06-10 8:27:46.493910] [info] Referencia OXXO creada correctamente. - -[2025-06-10 8:27:48.971805] [debug] Status Code: 200 -[2025-06-10 8:27:48.972088] [debug] Content Type: image/jpeg -[2025-06-10 8:27:48.972446] [debug] ¡Imagen guardada exitosamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1749544066.jpeg -Subiendo voucher a worpdpress - -file_to_upload: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1749544066.jpeg - -Conexión FTP exitosa - -El archivo ha sido cargado exitosamente. - -La URL es: https://siip.mx/wp/wp-content/uploads/vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1749544066.jpeg - -No se pudo obtener la lista de archivos de la carpeta FTP - -[2025-06-10 8:27:49.957355] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"12345678901234657890123456789012","url":"https:\/\/payments.stripe.com\/oxxo\/voucher\/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVEtCYU45a3lkVXAwWVY3Wlpxb0ZvWldveTl5RWN60100VPhx7J2y","error":"","failDescription":"","clientID":2,"clientFullName":"Daniel Humberto Soto Villegas","amount":320,"voucher_image_url":"https:\/\/siip.mx\/wp\/wp-content\/uploads\/vouchers_oxxo\/voucher_Daniel_Humberto_Soto_Villegas_1749544066.jpeg"} - -[2025-06-10 8:27:49.957503] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVEtCYU45a3lkVXAwWVY3Wlpxb0ZvWldveTl5RWN60100VPhx7J2y","oxxo_reference": "12345678901234657890123456789012","voucher_image_url": "https://siip.mx/wp/wp-content/uploads/vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1749544066.jpeg","error": "","failDescription": "","clientID": "2","clientFullName": "Daniel Humberto Soto Villegas","amount": "320"} -[2025-06-10 8:30:51.769222] [notice] Logging level set to:debug -[2025-06-10 8:30:51.769383] [debug] valor del webhook: {"uuid":"2eef7e99-0706-42d0-a813-14546d593503","changeType":"insert","entity":"payment","entityId":"644","eventName":"payment.add","extraData":{"entity":{"id":644,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:30:51-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":320,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-10 8:30:51.898674] [debug] valor el evento recibido por webhook: payment.add - -[2025-06-10 8:30:51.898803] [debug] Valor de JSON: {"uuid":"2eef7e99-0706-42d0-a813-14546d593503","changeType":"insert","entity":"payment","entityId":"644","eventName":"payment.add","extraData":{"entity":{"id":644,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:30:51-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":320,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-10 8:30:51.902664] [debug] Notification encodificado en JSON:{"uuid":"2eef7e99-0706-42d0-a813-14546d593503","changeType":"insert","entity":"payment","entityId":644,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":2903.33,"accountCredit":2903.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":644,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:30:51-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":320,"userId":null,"attributes":[]}} - -[2025-06-10 8:30:51.902789] [debug] valor del payment data: {"id":644,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:30:51-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":320,"userId":null,"attributes":[]} - -[2025-06-10 8:30:51.902903] [info] {"WhatsApp":["5214181148783"]} -[2025-06-10 8:30:51.902942] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-10 8:30:51.902976] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-10 8:30:51.903027] [debug] ***Se notifica y actualiza al cliente sobre su pago*** - -Eviando comprobante de pago al cliente: 2 con número: 5214181148783 - -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 - -El archivo PNG se ha generado correctamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.png - -Subiendo comprobante a worpdpress - -file_to_upload: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.png - -Conexión FTP exitosa - -El archivo ha sido cargado exitosamente. - -La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas.png - -No se pudo obtener la lista de archivos de la carpeta FTP - -Se terminó de subir comprobante a wordpress - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "document", - "content": { - "text": "S/M", - "url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas.png" - }, - "template_values": ["Daniel Humberto Soto Villegas", "$320", "$2903.33 a favor"], - "template_uuid": "57ead79cebd14902921477922403093b", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"709a600ea0ca49eb8437d4f0e492ecf2","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":"2eef7e99-0706-42d0-a813-14546d593503","changeType":"insert","entity":"payment","entityId":644,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":2903.33,"accountCredit":2903.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":644,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:30:51-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":320,"userId":null,"attributes":[]}} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":644,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:30:51-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":320,"userId":null,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Guanajuato","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb22903.33 a favor","Monto Ultimo Pago":"\ud83d\udcb2 320","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb22903.33 a favor\",\"Monto Ultimo Pago\": \"$ 320\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 10\/06\/2025 02:30 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"10\/06\/2025 02:31\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 10\/06\/2025 02:30 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 10\/06\/2025 02:31","Clabe Interbancaria":null,"Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲2903.33 a favor","Monto Ultimo Pago": "$ 320","Estado": "Activo","Fecha Ultimo Pago": " 10/06/2025 02:30 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "10/06/2025 02:31","Clabe Interbancaria": "","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -[2025-06-10 8:31:01.938877] [notice] Logging level set to:debug -[2025-06-10 8:31:01.938981] [debug] valor del webhook: {"uuid":"e1496568-6164-4317-af9f-7c809b363b79","changeType":"edit","entity":"payment","entityId":"644","eventName":"payment.edit","extraData":{"entity":{"id":644,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:30:51-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":320,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":644,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:30:51-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":320,"userId":null,"attributes":[]}}} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲2903.33 a favor","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 10/06/2025 02:30 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 10/06/2025 02:31","Monto Ultimo Pago":"💲 320","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲2903.33 a favor\",\"Monto Ultimo Pago\": \"$ 320\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 10/06/2025 02:30 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"10/06/2025 02:31\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-10 8:31:02.059937] [debug] valor el evento recibido por webhook: payment.edit - -[2025-06-10 8:31:02.059998] [debug] Valor de JSON: {"uuid":"e1496568-6164-4317-af9f-7c809b363b79","changeType":"edit","entity":"payment","entityId":"644","eventName":"payment.edit","extraData":{"entity":{"id":644,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:30:51-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":320,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":644,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-10T02:30:51-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":320,"userId":null,"attributes":[]}}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲2903.33 a favor","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 10/06/2025 02:30 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 10/06/2025 02:31","Monto Ultimo Pago":"💲 320","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲2903.33 a favor\",\"Monto Ultimo Pago\": \"$ 320\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 10/06/2025 02:30 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"10/06/2025 02:31\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-11 6:25:02.798554] [notice] Logging level set to:debug -[2025-06-11 6:25:02.798650] [debug] valor del webhook: {"uuid":"a1630570-d4a8-4e5c-8e86-dda67c54f8c2","changeType":"overdue","entity":"invoice","entityId":"1959","eventName":"invoice.overdue","extraData":{"entity":{"id":1959,"clientId":3,"number":"001909","createdDate":"2025-05-27T10:00:01-0600","dueDate":"2025-06-10T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-25T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1962,"type":"service","label":"plan300 27\/04\/2025 \u2013 26\/05\/2025","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},"entityBeforeEdit":null}} - -[2025-06-11 6:25:03.039421] [debug] valor el evento recibido por webhook: invoice.overdue - -[2025-06-11 6:25:03.039474] [debug] Valor de JSON: {"uuid":"a1630570-d4a8-4e5c-8e86-dda67c54f8c2","changeType":"overdue","entity":"invoice","entityId":"1959","eventName":"invoice.overdue","extraData":{"entity":{"id":1959,"clientId":3,"number":"001909","createdDate":"2025-05-27T10:00:01-0600","dueDate":"2025-06-10T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-25T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1962,"type":"service","label":"plan300 27\/04\/2025 \u2013 26\/05\/2025","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},"entityBeforeEdit":null}} - -[2025-06-11 6:25:03.039668] [debug] Factura vencida - -[2025-06-11 6:25:03.039710] [debug] datos del notification para el invoice overdue:{"uuid":"a1630570-d4a8-4e5c-8e86-dda67c54f8c2","changeType":"overdue","entity":"invoice","entityId":1959,"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}],"accountBalance":-1800,"accountCredit":0,"accountOutstanding":1800,"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":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1959,"clientId":3,"number":"001909","createdDate":"2025-05-27T10:00:01-0600","dueDate":"2025-06-10T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-05-25T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1962,"type":"service","label":"plan300 27\/04\/2025 \u2013 26\/05\/2025","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},"paymentData":null} - -[2025-06-11 6:25:03.039741] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** - -contac vacio -[2025-06-11 6:25:03.039882] [debug] Numero de cel obtenido - -[2025-06-11 6:25:03.039895] [warning] No se encontró un teléfono celular válido para el cliente: 3 -[2025-06-11 6:25:03.202445] [notice] Logging level set to:debug -[2025-06-11 6:25:03.202500] [debug] valor del webhook: {"uuid":"5f830312-17d9-414c-a807-6fe163348d99","changeType":"overdue","entity":"invoice","entityId":"1960","eventName":"invoice.overdue","extraData":{"entity":{"id":1960,"clientId":4,"number":"001910","createdDate":"2025-05-27T10:00:01-0600","dueDate":"2025-06-10T10:00:01-0600","emailSentDate":"2025-06-11T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-25T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1963,"type":"service","label":"plan300 27\/04\/2025 \u2013 26\/05\/2025","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},"entityBeforeEdit":null}} - -[2025-06-11 6:25:03.336494] [debug] valor el evento recibido por webhook: invoice.overdue - -[2025-06-11 6:25:03.336541] [debug] Valor de JSON: {"uuid":"5f830312-17d9-414c-a807-6fe163348d99","changeType":"overdue","entity":"invoice","entityId":"1960","eventName":"invoice.overdue","extraData":{"entity":{"id":1960,"clientId":4,"number":"001910","createdDate":"2025-05-27T10:00:01-0600","dueDate":"2025-06-10T10:00:01-0600","emailSentDate":"2025-06-11T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-25T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1963,"type":"service","label":"plan300 27\/04\/2025 \u2013 26\/05\/2025","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},"entityBeforeEdit":null}} - -[2025-06-11 6:25:03.336628] [debug] Factura vencida - -[2025-06-11 6:25:03.336663] [debug] datos del notification para el invoice overdue:{"uuid":"5f830312-17d9-414c-a807-6fe163348d99","changeType":"overdue","entity":"invoice","entityId":1960,"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":[],"accountBalance":-5100,"accountCredit":0,"accountOutstanding":5100,"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":1960,"clientId":4,"number":"001910","createdDate":"2025-05-27T10:00:01-0600","dueDate":"2025-06-10T10:00:01-0600","emailSentDate":"2025-06-11T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-25T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1963,"type":"service","label":"plan300 27\/04\/2025 \u2013 26\/05\/2025","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},"paymentData":null} - -[2025-06-11 6:25:03.336684] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** - -[2025-06-11 6:25:03.336736] [debug] Numero de cel obtenido - -[2025-06-11 6:25:03.336746] [warning] No se encontró un teléfono celular válido para el cliente: 4 -[2025-06-11 6:25:03.447501] [notice] Logging level set to:debug -[2025-06-11 6:25:03.448061] [debug] valor del webhook: {"uuid":"2123baa6-c3df-4e9b-b2ba-e0b15074f2be","changeType":"overdue","entity":"invoice","entityId":"1961","eventName":"invoice.overdue","extraData":{"entity":{"id":1961,"clientId":1,"number":"001911","createdDate":"2025-05-27T10:00:01-0600","dueDate":"2025-06-10T10:00:01-0600","emailSentDate":"2025-06-11T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-25T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1964,"type":"service","label":"plan300 27\/04\/2025 \u2013 26\/05\/2025","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},"entityBeforeEdit":null}} - -[2025-06-11 6:25:03.611444] [debug] valor el evento recibido por webhook: invoice.overdue - -[2025-06-11 6:25:03.611496] [debug] Valor de JSON: {"uuid":"2123baa6-c3df-4e9b-b2ba-e0b15074f2be","changeType":"overdue","entity":"invoice","entityId":"1961","eventName":"invoice.overdue","extraData":{"entity":{"id":1961,"clientId":1,"number":"001911","createdDate":"2025-05-27T10:00:01-0600","dueDate":"2025-06-10T10:00:01-0600","emailSentDate":"2025-06-11T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-25T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1964,"type":"service","label":"plan300 27\/04\/2025 \u2013 26\/05\/2025","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},"entityBeforeEdit":null}} - -[2025-06-11 6:25:03.611591] [debug] Factura vencida - -[2025-06-11 6:25:03.611633] [debug] datos del notification para el invoice overdue:{"uuid":"2123baa6-c3df-4e9b-b2ba-e0b15074f2be","changeType":"overdue","entity":"invoice","entityId":1961,"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":null,"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":-1223.33,"accountCredit":0,"accountOutstanding":1223.33,"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":1961,"clientId":1,"number":"001911","createdDate":"2025-05-27T10:00:01-0600","dueDate":"2025-06-10T10:00:01-0600","emailSentDate":"2025-06-11T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-05-25T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1964,"type":"service","label":"plan300 27\/04\/2025 \u2013 26\/05\/2025","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},"paymentData":null} - -[2025-06-11 6:25:03.611655] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** - -[2025-06-11 6:25:03.611711] [debug] Numero de cel obtenido - -[2025-06-11 6:25:03.611722] [warning] No se encontró un teléfono celular válido para el cliente: 1 -[2025-06-11 16:26:49.727128] [notice] Logging level set to:debug -[2025-06-11 16:26:49.727365] [debug] valor del webhook: { -"type": "oxxo.request", -"client_id": 2, -"amount": 300 -} - -[2025-06-11 16:26:49.727462] [info] No UUID found in the webhook data -[2025-06-11 16:26:49.727533] [info] Evento de solicitud de referencia de oxxo recibido - -[2025-06-11 16:26:49.727586] [info] Referencia persnoalizada, Valor del monto: 300 - -[2025-06-11 16:26:49.727638] [info] Creando referencia del cliente para OXXO: - -[2025-06-11 16:26:49.876172] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX - -[2025-06-11 16:26:49.876554] [info] Monto proporcionado directamente: 300 - -[2025-06-11 16:26:49.876607] [info] Creando referencia en Stripe por 30000 para el cliente cus_PetN1dhr4rx0kX - -[2025-06-11 16:26:51.068805] [info] Referencia OXXO: 12345678901234657890123456789012 - -[2025-06-11 16:26:51.068981] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVHA4NUU5RWpnaG5QaWxtQ2Z4aGhxbGM3RDk2S25J0100G2viF04H - -[2025-06-11 16:26:51.069041] [info] Referencia OXXO creada correctamente. - -[2025-06-11 16:26:52.844758] [debug] Status Code: 200 -[2025-06-11 16:26:52.844810] [debug] Content Type: image/jpeg -[2025-06-11 16:26:52.845407] [debug] ¡Imagen guardada exitosamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1749659211.jpeg -Subiendo voucher a worpdpress - -file_to_upload: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1749659211.jpeg - -Conexión FTP exitosa - -El archivo ha sido cargado exitosamente. - -La URL es: https://siip.mx/wp/wp-content/uploads/vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1749659211.jpeg - -No se pudo obtener la lista de archivos de la carpeta FTP - -[2025-06-11 16:26:54.784568] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"12345678901234657890123456789012","url":"https:\/\/payments.stripe.com\/oxxo\/voucher\/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVHA4NUU5RWpnaG5QaWxtQ2Z4aGhxbGM3RDk2S25J0100G2viF04H","error":"","failDescription":"","clientID":2,"clientFullName":"Daniel Humberto Soto Villegas","amount":300,"voucher_image_url":"https:\/\/siip.mx\/wp\/wp-content\/uploads\/vouchers_oxxo\/voucher_Daniel_Humberto_Soto_Villegas_1749659211.jpeg"} - -[2025-06-11 16:26:54.784636] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVHA4NUU5RWpnaG5QaWxtQ2Z4aGhxbGM3RDk2S25J0100G2viF04H","oxxo_reference": "12345678901234657890123456789012","voucher_image_url": "https://siip.mx/wp/wp-content/uploads/vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1749659211.jpeg","error": "","failDescription": "","clientID": "2","clientFullName": "Daniel Humberto Soto Villegas","amount": "300"} -[2025-06-11 16:29:57.405018] [notice] Logging level set to:debug -[2025-06-11 16:29:57.405118] [debug] valor del webhook: {"uuid":"167ea0b5-07d5-42c8-a7ae-0c752d70242a","changeType":"insert","entity":"payment","entityId":"645","eventName":"payment.add","extraData":{"entity":{"id":645,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:29:57-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-11 16:29:57.540318] [debug] valor el evento recibido por webhook: payment.add - -[2025-06-11 16:29:57.540371] [debug] Valor de JSON: {"uuid":"167ea0b5-07d5-42c8-a7ae-0c752d70242a","changeType":"insert","entity":"payment","entityId":"645","eventName":"payment.add","extraData":{"entity":{"id":645,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:29:57-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-11 16:29:57.540683] [debug] Notification encodificado en JSON:{"uuid":"167ea0b5-07d5-42c8-a7ae-0c752d70242a","changeType":"insert","entity":"payment","entityId":645,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":3203.33,"accountCredit":3203.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":645,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:29:57-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}} - -[2025-06-11 16:29:57.540725] [debug] valor del payment data: {"id":645,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:29:57-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]} - -[2025-06-11 16:29:57.540810] [info] {"WhatsApp":["5214181148783"]} -[2025-06-11 16:29:57.540823] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-11 16:29:57.540832] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-11 16:29:57.540858] [debug] ***Se notifica y actualiza al cliente sobre su pago*** - -Eviando comprobante de pago al cliente: 2 con número: 5214181148783 - -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 - -El archivo PNG se ha generado correctamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.png - -Subiendo comprobante a worpdpress - -file_to_upload: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.png - -Conexión FTP exitosa - -El archivo ha sido cargado exitosamente. - -La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas.png - -No se pudo obtener la lista de archivos de la carpeta FTP - -Se terminó de subir comprobante a wordpress - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "document", - "content": { - "text": "S/M", - "url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas.png" - }, - "template_values": ["Daniel Humberto Soto Villegas", "$300", "$3203.33 a favor"], - "template_uuid": "57ead79cebd14902921477922403093b", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"6c5b2e450149472fbe7ee22d60d1e3fa","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":"167ea0b5-07d5-42c8-a7ae-0c752d70242a","changeType":"insert","entity":"payment","entityId":645,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":3203.33,"accountCredit":3203.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":645,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:29:57-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":645,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:29:57-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Guanajuato","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb23203.33 a favor","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb23203.33 a favor\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11\/06\/2025 10:29 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"11\/06\/2025 10:30\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 11\/06\/2025 10:29 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 11\/06\/2025 10:30","Clabe Interbancaria":null,"Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲3203.33 a favor","Monto Ultimo Pago": "$ 300","Estado": "Activo","Fecha Ultimo Pago": " 11/06/2025 10:29 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "11/06/2025 10:30","Clabe Interbancaria": "","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲3203.33 a favor","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 11/06/2025 10:29 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 10:30","Monto Ultimo Pago":"💲 300","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲3203.33 a favor\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 10:29 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 10:30\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲3203.33 a favor","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 11/06/2025 10:29 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 10:30","Monto Ultimo Pago":"💲 300","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲3203.33 a favor\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 10:29 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 10:30\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-11 16:30:05.142530] [notice] Logging level set to:debug -[2025-06-11 16:30:05.142827] [debug] valor del webhook: {"uuid":"c3af1af4-f89a-4497-ab3a-10014c363306","changeType":"edit","entity":"payment","entityId":"645","eventName":"payment.edit","extraData":{"entity":{"id":645,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:29:57-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":645,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:29:57-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}}} - -[2025-06-11 16:30:05.286591] [debug] valor el evento recibido por webhook: payment.edit - -[2025-06-11 16:30:05.286746] [debug] Valor de JSON: {"uuid":"c3af1af4-f89a-4497-ab3a-10014c363306","changeType":"edit","entity":"payment","entityId":"645","eventName":"payment.edit","extraData":{"entity":{"id":645,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:29:57-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":645,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:29:57-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}}} - -[2025-06-11 16:42:17.004506] [notice] Logging level set to:debug -[2025-06-11 16:42:17.004710] [debug] valor del webhook: { -"type": "oxxo.request", -"client_id": 2, -"amount": 150 -} - -[2025-06-11 16:42:17.004774] [info] No UUID found in the webhook data -[2025-06-11 16:42:17.004789] [info] Evento de solicitud de referencia de oxxo recibido - -[2025-06-11 16:42:17.004797] [info] Referencia persnoalizada, Valor del monto: 150 - -[2025-06-11 16:42:17.004813] [info] Creando referencia del cliente para OXXO: - -[2025-06-11 16:42:17.156167] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX - -[2025-06-11 16:42:17.156296] [info] Monto proporcionado directamente: 150 - -[2025-06-11 16:42:17.156373] [info] Creando referencia en Stripe por 15000 para el cliente cus_PetN1dhr4rx0kX - -[2025-06-11 16:42:18.236195] [info] Referencia OXXO: 12345678901234657890123456789012 - -[2025-06-11 16:42:18.236524] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVHBOQzh2T2lDTHgzSGdyQ2NlM1BxSnhBdXhRV21a0100ciytYCp4 - -[2025-06-11 16:42:18.236593] [info] Referencia OXXO creada correctamente. - -[2025-06-11 16:42:20.240428] [debug] Status Code: 200 -[2025-06-11 16:42:20.240715] [debug] Content Type: image/jpeg -[2025-06-11 16:42:20.241044] [debug] ¡Imagen guardada exitosamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1749660138.jpeg -Subiendo voucher a worpdpress - -file_to_upload: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1749660138.jpeg - -Conexión FTP exitosa - -El archivo ha sido cargado exitosamente. - -La URL es: https://siip.mx/wp/wp-content/uploads/vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1749660138.jpeg - -No se pudo obtener la lista de archivos de la carpeta FTP - -[2025-06-11 16:42:21.796847] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"12345678901234657890123456789012","url":"https:\/\/payments.stripe.com\/oxxo\/voucher\/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVHBOQzh2T2lDTHgzSGdyQ2NlM1BxSnhBdXhRV21a0100ciytYCp4","error":"","failDescription":"","clientID":2,"clientFullName":"Daniel Humberto Soto Villegas","amount":15000,"voucher_image_url":"https:\/\/siip.mx\/wp\/wp-content\/uploads\/vouchers_oxxo\/voucher_Daniel_Humberto_Soto_Villegas_1749660138.jpeg"} - -[2025-06-11 16:42:21.796993] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVHBOQzh2T2lDTHgzSGdyQ2NlM1BxSnhBdXhRV21a0100ciytYCp4","oxxo_reference": "12345678901234657890123456789012","voucher_image_url": "https://siip.mx/wp/wp-content/uploads/vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1749660138.jpeg","error": "","failDescription": "","clientID": "2","clientFullName": "Daniel Humberto Soto Villegas","amount": "15000"} -[2025-06-11 16:44:09.516760] [notice] Logging level set to:debug -[2025-06-11 16:44:09.516864] [debug] valor del webhook: {"uuid":"1817b112-aa8f-42c7-983c-0a4d357b86bf","changeType":"insert","entity":"invoice","entityId":"2061","eventName":"invoice.add","extraData":{"entity":{"id":2061,"clientId":2,"number":"002011","createdDate":"2025-06-11T10:43:26-0600","dueDate":"2025-06-25T10:43:26-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2064,"type":"other","label":"prueba","price":3203.33,"quantity":1,"total":3203.33,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":null,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":3203.33,"discount":null,"discountLabel":"Descuento","taxes":[],"total":3203.33,"amountPaid":3203.33,"totalUntaxed":3203.33,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":735,"invoiceId":2061,"paymentId":630,"creditNoteId":null,"refundId":null,"amount":83.33},{"id":736,"invoiceId":2061,"paymentId":631,"creditNoteId":null,"refundId":null,"amount":130},{"id":737,"invoiceId":2061,"paymentId":632,"creditNoteId":null,"refundId":null,"amount":140},{"id":738,"invoiceId":2061,"paymentId":633,"creditNoteId":null,"refundId":null,"amount":150},{"id":739,"invoiceId":2061,"paymentId":634,"creditNoteId":null,"refundId":null,"amount":160},{"id":740,"invoiceId":2061,"paymentId":635,"creditNoteId":null,"refundId":null,"amount":170},{"id":741,"invoiceId":2061,"paymentId":636,"creditNoteId":null,"refundId":null,"amount":180},{"id":742,"invoiceId":2061,"paymentId":637,"creditNoteId":null,"refundId":null,"amount":190},{"id":743,"invoiceId":2061,"paymentId":638,"creditNoteId":null,"refundId":null,"amount":200},{"id":744,"invoiceId":2061,"paymentId":639,"creditNoteId":null,"refundId":null,"amount":200},{"id":745,"invoiceId":2061,"paymentId":640,"creditNoteId":null,"refundId":null,"amount":210},{"id":746,"invoiceId":2061,"paymentId":641,"creditNoteId":null,"refundId":null,"amount":220},{"id":747,"invoiceId":2061,"paymentId":642,"creditNoteId":null,"refundId":null,"amount":250},{"id":748,"invoiceId":2061,"paymentId":643,"creditNoteId":null,"refundId":null,"amount":300},{"id":749,"invoiceId":2061,"paymentId":644,"creditNoteId":null,"refundId":null,"amount":320},{"id":750,"invoiceId":2061,"paymentId":645,"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":"Daniel Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"entityBeforeEdit":null}} - -[2025-06-11 16:44:09.654328] [debug] valor el evento recibido por webhook: invoice.add - -[2025-06-11 16:44:09.654402] [debug] Valor de JSON: {"uuid":"1817b112-aa8f-42c7-983c-0a4d357b86bf","changeType":"insert","entity":"invoice","entityId":"2061","eventName":"invoice.add","extraData":{"entity":{"id":2061,"clientId":2,"number":"002011","createdDate":"2025-06-11T10:43:26-0600","dueDate":"2025-06-25T10:43:26-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2064,"type":"other","label":"prueba","price":3203.33,"quantity":1,"total":3203.33,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":null,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":3203.33,"discount":null,"discountLabel":"Descuento","taxes":[],"total":3203.33,"amountPaid":3203.33,"totalUntaxed":3203.33,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":735,"invoiceId":2061,"paymentId":630,"creditNoteId":null,"refundId":null,"amount":83.33},{"id":736,"invoiceId":2061,"paymentId":631,"creditNoteId":null,"refundId":null,"amount":130},{"id":737,"invoiceId":2061,"paymentId":632,"creditNoteId":null,"refundId":null,"amount":140},{"id":738,"invoiceId":2061,"paymentId":633,"creditNoteId":null,"refundId":null,"amount":150},{"id":739,"invoiceId":2061,"paymentId":634,"creditNoteId":null,"refundId":null,"amount":160},{"id":740,"invoiceId":2061,"paymentId":635,"creditNoteId":null,"refundId":null,"amount":170},{"id":741,"invoiceId":2061,"paymentId":636,"creditNoteId":null,"refundId":null,"amount":180},{"id":742,"invoiceId":2061,"paymentId":637,"creditNoteId":null,"refundId":null,"amount":190},{"id":743,"invoiceId":2061,"paymentId":638,"creditNoteId":null,"refundId":null,"amount":200},{"id":744,"invoiceId":2061,"paymentId":639,"creditNoteId":null,"refundId":null,"amount":200},{"id":745,"invoiceId":2061,"paymentId":640,"creditNoteId":null,"refundId":null,"amount":210},{"id":746,"invoiceId":2061,"paymentId":641,"creditNoteId":null,"refundId":null,"amount":220},{"id":747,"invoiceId":2061,"paymentId":642,"creditNoteId":null,"refundId":null,"amount":250},{"id":748,"invoiceId":2061,"paymentId":643,"creditNoteId":null,"refundId":null,"amount":300},{"id":749,"invoiceId":2061,"paymentId":644,"creditNoteId":null,"refundId":null,"amount":320},{"id":750,"invoiceId":2061,"paymentId":645,"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":"Daniel Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"entityBeforeEdit":null}} - -[2025-06-11 16:44:09.654613] [debug] Adición de Factura - -[2025-06-11 16:44:09.654686] [debug] datos del notification para el invoice add:{"uuid":"1817b112-aa8f-42c7-983c-0a4d357b86bf","changeType":"insert","entity":"invoice","entityId":2061,"message":null,"clientId":2,"eventName":"invoice.add","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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2061,"clientId":2,"number":"002011","createdDate":"2025-06-11T10:43:26-0600","dueDate":"2025-06-25T10:43:26-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2064,"type":"other","label":"prueba","price":3203.33,"quantity":1,"total":3203.33,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":null,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":3203.33,"discount":null,"discountLabel":"Descuento","taxes":[],"total":3203.33,"amountPaid":3203.33,"totalUntaxed":3203.33,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":735,"invoiceId":2061,"paymentId":630,"creditNoteId":null,"refundId":null,"amount":83.33},{"id":736,"invoiceId":2061,"paymentId":631,"creditNoteId":null,"refundId":null,"amount":130},{"id":737,"invoiceId":2061,"paymentId":632,"creditNoteId":null,"refundId":null,"amount":140},{"id":738,"invoiceId":2061,"paymentId":633,"creditNoteId":null,"refundId":null,"amount":150},{"id":739,"invoiceId":2061,"paymentId":634,"creditNoteId":null,"refundId":null,"amount":160},{"id":740,"invoiceId":2061,"paymentId":635,"creditNoteId":null,"refundId":null,"amount":170},{"id":741,"invoiceId":2061,"paymentId":636,"creditNoteId":null,"refundId":null,"amount":180},{"id":742,"invoiceId":2061,"paymentId":637,"creditNoteId":null,"refundId":null,"amount":190},{"id":743,"invoiceId":2061,"paymentId":638,"creditNoteId":null,"refundId":null,"amount":200},{"id":744,"invoiceId":2061,"paymentId":639,"creditNoteId":null,"refundId":null,"amount":200},{"id":745,"invoiceId":2061,"paymentId":640,"creditNoteId":null,"refundId":null,"amount":210},{"id":746,"invoiceId":2061,"paymentId":641,"creditNoteId":null,"refundId":null,"amount":220},{"id":747,"invoiceId":2061,"paymentId":642,"creditNoteId":null,"refundId":null,"amount":250},{"id":748,"invoiceId":2061,"paymentId":643,"creditNoteId":null,"refundId":null,"amount":300},{"id":749,"invoiceId":2061,"paymentId":644,"creditNoteId":null,"refundId":null,"amount":320},{"id":750,"invoiceId":2061,"paymentId":645,"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":"Daniel Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} - -[2025-06-11 16:44:09.654714] [debug] Account Balance: 0 - -[2025-06-11 16:44:09.654768] [debug] {"uuid":"1817b112-aa8f-42c7-983c-0a4d357b86bf","changeType":"insert","entity":"invoice","entityId":2061,"message":null,"clientId":2,"eventName":"invoice.add","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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2061,"clientId":2,"number":"002011","createdDate":"2025-06-11T10:43:26-0600","dueDate":"2025-06-25T10:43:26-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2064,"type":"other","label":"prueba","price":3203.33,"quantity":1,"total":3203.33,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":null,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":3203.33,"discount":null,"discountLabel":"Descuento","taxes":[],"total":3203.33,"amountPaid":3203.33,"totalUntaxed":3203.33,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":735,"invoiceId":2061,"paymentId":630,"creditNoteId":null,"refundId":null,"amount":83.33},{"id":736,"invoiceId":2061,"paymentId":631,"creditNoteId":null,"refundId":null,"amount":130},{"id":737,"invoiceId":2061,"paymentId":632,"creditNoteId":null,"refundId":null,"amount":140},{"id":738,"invoiceId":2061,"paymentId":633,"creditNoteId":null,"refundId":null,"amount":150},{"id":739,"invoiceId":2061,"paymentId":634,"creditNoteId":null,"refundId":null,"amount":160},{"id":740,"invoiceId":2061,"paymentId":635,"creditNoteId":null,"refundId":null,"amount":170},{"id":741,"invoiceId":2061,"paymentId":636,"creditNoteId":null,"refundId":null,"amount":180},{"id":742,"invoiceId":2061,"paymentId":637,"creditNoteId":null,"refundId":null,"amount":190},{"id":743,"invoiceId":2061,"paymentId":638,"creditNoteId":null,"refundId":null,"amount":200},{"id":744,"invoiceId":2061,"paymentId":639,"creditNoteId":null,"refundId":null,"amount":200},{"id":745,"invoiceId":2061,"paymentId":640,"creditNoteId":null,"refundId":null,"amount":210},{"id":746,"invoiceId":2061,"paymentId":641,"creditNoteId":null,"refundId":null,"amount":220},{"id":747,"invoiceId":2061,"paymentId":642,"creditNoteId":null,"refundId":null,"amount":250},{"id":748,"invoiceId":2061,"paymentId":643,"creditNoteId":null,"refundId":null,"amount":300},{"id":749,"invoiceId":2061,"paymentId":644,"creditNoteId":null,"refundId":null,"amount":320},{"id":750,"invoiceId":2061,"paymentId":645,"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":"Daniel Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} - -[2025-06-11 16:44:09.654841] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-11 16:44:09.654855] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"1817b112-aa8f-42c7-983c-0a4d357b86bf","changeType":"insert","entity":"invoice","entityId":2061,"message":null,"clientId":2,"eventName":"invoice.add","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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2061,"clientId":2,"number":"002011","createdDate":"2025-06-11T10:43:26-0600","dueDate":"2025-06-25T10:43:26-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2064,"type":"other","label":"prueba","price":3203.33,"quantity":1,"total":3203.33,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":null,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":3203.33,"discount":null,"discountLabel":"Descuento","taxes":[],"total":3203.33,"amountPaid":3203.33,"totalUntaxed":3203.33,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":735,"invoiceId":2061,"paymentId":630,"creditNoteId":null,"refundId":null,"amount":83.33},{"id":736,"invoiceId":2061,"paymentId":631,"creditNoteId":null,"refundId":null,"amount":130},{"id":737,"invoiceId":2061,"paymentId":632,"creditNoteId":null,"refundId":null,"amount":140},{"id":738,"invoiceId":2061,"paymentId":633,"creditNoteId":null,"refundId":null,"amount":150},{"id":739,"invoiceId":2061,"paymentId":634,"creditNoteId":null,"refundId":null,"amount":160},{"id":740,"invoiceId":2061,"paymentId":635,"creditNoteId":null,"refundId":null,"amount":170},{"id":741,"invoiceId":2061,"paymentId":636,"creditNoteId":null,"refundId":null,"amount":180},{"id":742,"invoiceId":2061,"paymentId":637,"creditNoteId":null,"refundId":null,"amount":190},{"id":743,"invoiceId":2061,"paymentId":638,"creditNoteId":null,"refundId":null,"amount":200},{"id":744,"invoiceId":2061,"paymentId":639,"creditNoteId":null,"refundId":null,"amount":200},{"id":745,"invoiceId":2061,"paymentId":640,"creditNoteId":null,"refundId":null,"amount":210},{"id":746,"invoiceId":2061,"paymentId":641,"creditNoteId":null,"refundId":null,"amount":220},{"id":747,"invoiceId":2061,"paymentId":642,"creditNoteId":null,"refundId":null,"amount":250},{"id":748,"invoiceId":2061,"paymentId":643,"creditNoteId":null,"refundId":null,"amount":300},{"id":749,"invoiceId":2061,"paymentId":644,"creditNoteId":null,"refundId":null,"amount":320},{"id":750,"invoiceId":2061,"paymentId":645,"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":"Daniel Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":645,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:29:57-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":750,"invoiceId":2061,"paymentId":645,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":null,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Guanajuato","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11\/06\/2025 10:29 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"11\/06\/2025 10:44\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 11\/06\/2025 10:29 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 11\/06\/2025 10:44","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲0 está al corriente","Monto Ultimo Pago": "$ 300","Estado": "Activo","Fecha Ultimo Pago": " 11/06/2025 10:29 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "11/06/2025 10:44","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲0 está al corriente","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 11/06/2025 10:29 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 10:44","Monto Ultimo Pago":"💲 300","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 10:29 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 10:44\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Saldo Actual":"💲0 está al corriente","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 11/06/2025 10:29 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 10:44","Monto Ultimo Pago":"💲 300","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 10:29 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 10:44\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-11 16:44:20.182296] [notice] Logging level set to:debug -[2025-06-11 16:44:20.182358] [debug] valor del webhook: {"uuid":"8a0cc800-9b76-4768-9820-db9053876af0","changeType":"insert","entity":"invoice","entityId":"2062","eventName":"invoice.add","extraData":{"entity":{"id":2062,"clientId":2,"number":"002012","createdDate":"2025-06-11T10:44:13-0600","dueDate":"2025-06-25T10:44:13-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2065,"type":"service","label":"Basico 300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":"Daniel Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"entityBeforeEdit":null}} - -[2025-06-11 16:44:20.317290] [debug] valor el evento recibido por webhook: invoice.add - -[2025-06-11 16:44:20.317354] [debug] Valor de JSON: {"uuid":"8a0cc800-9b76-4768-9820-db9053876af0","changeType":"insert","entity":"invoice","entityId":"2062","eventName":"invoice.add","extraData":{"entity":{"id":2062,"clientId":2,"number":"002012","createdDate":"2025-06-11T10:44:13-0600","dueDate":"2025-06-25T10:44:13-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2065,"type":"service","label":"Basico 300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":"Daniel Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"entityBeforeEdit":null}} - -[2025-06-11 16:44:20.317482] [debug] Adición de Factura - -[2025-06-11 16:44:20.317531] [debug] datos del notification para el invoice add:{"uuid":"8a0cc800-9b76-4768-9820-db9053876af0","changeType":"insert","entity":"invoice","entityId":2062,"message":null,"clientId":2,"eventName":"invoice.add","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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2062,"clientId":2,"number":"002012","createdDate":"2025-06-11T10:44:13-0600","dueDate":"2025-06-25T10:44:13-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2065,"type":"service","label":"Basico 300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":"Daniel Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} - -[2025-06-11 16:44:20.317549] [debug] Account Balance: -300 - -[2025-06-11 16:44:20.317589] [debug] {"uuid":"8a0cc800-9b76-4768-9820-db9053876af0","changeType":"insert","entity":"invoice","entityId":2062,"message":null,"clientId":2,"eventName":"invoice.add","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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2062,"clientId":2,"number":"002012","createdDate":"2025-06-11T10:44:13-0600","dueDate":"2025-06-25T10:44:13-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2065,"type":"service","label":"Basico 300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":"Daniel Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} - -[2025-06-11 16:44:20.317631] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-11 16:44:20.317645] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"8a0cc800-9b76-4768-9820-db9053876af0","changeType":"insert","entity":"invoice","entityId":2062,"message":null,"clientId":2,"eventName":"invoice.add","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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2062,"clientId":2,"number":"002012","createdDate":"2025-06-11T10:44:13-0600","dueDate":"2025-06-25T10:44:13-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2065,"type":"service","label":"Basico 300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":"Daniel Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":645,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:29:57-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":750,"invoiceId":2061,"paymentId":645,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":null,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Guanajuato","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2300 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2300 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11\/06\/2025 10:29 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"11\/06\/2025 10:44\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 11\/06\/2025 10:29 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 11\/06\/2025 10:44","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲300 pendientes","Monto Ultimo Pago": "$ 300","Estado": "Activo","Fecha Ultimo Pago": " 11/06/2025 10:29 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "11/06/2025 10:44","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 11/06/2025 10:29 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 10:44","Monto Ultimo Pago":"💲 300","Saldo Actual":"💲300 pendientes","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲300 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 10:29 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 10:44\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 11/06/2025 10:29 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 10:44","Monto Ultimo Pago":"💲 300","Saldo Actual":"💲300 pendientes","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲300 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 10:29 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 10:44\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-11 16:44:31.019607] [notice] Logging level set to:debug -[2025-06-11 16:44:31.019757] [debug] valor del webhook: { -"type": "oxxo.request", -"client_id": 2 -} - -[2025-06-11 16:44:31.019803] [info] No UUID found in the webhook data -[2025-06-11 16:44:31.019831] [info] Evento de solicitud de referencia de oxxo recibido - -[2025-06-11 16:44:31.019890] [info] Creando referencia del cliente para OXXO: - -[2025-06-11 16:44:31.148391] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX - -[2025-06-11 16:44:31.148534] [info] Creando referencia en Stripe por 30000 para el cliente cus_PetN1dhr4rx0kX - -[2025-06-11 16:44:32.202105] [info] Referencia OXXO: 12345678901234657890123456789012 - -[2025-06-11 16:44:32.202457] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVHBRUlVSUzRPZzlvcEVmeEp5Q1o5ZFdZV0syMmUw0100Mked3Mjt - -[2025-06-11 16:44:32.202544] [info] Referencia OXXO creada correctamente. - -[2025-06-11 16:44:37.210247] [error] Error inesperado: cURL error 28: Operation timed out after 5002 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://172.16.5.134:3000/screenshot -[2025-06-11 16:44:37.212681] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVHBRUlVSUzRPZzlvcEVmeEp5Q1o5ZFdZV0syMmUw0100Mked3Mjt","oxxo_reference": "12345678901234657890123456789012","voucher_image_url": "","error": "","failDescription": "","clientID": "2","clientFullName": "Daniel Humberto Soto Villegas","amount": "30000"} -[2025-06-11 16:45:22.064505] [notice] Logging level set to:debug -[2025-06-11 16:45:22.064627] [debug] valor del webhook: {"uuid":"8e1882b5-4551-41cb-b6e2-3f634d886887","changeType":"edit","entity":"invoice","entityId":"2062","eventName":"invoice.edit","extraData":{"entity":{"id":2062,"clientId":2,"number":"002012","createdDate":"2025-06-11T10:44:13-0600","dueDate":"2025-06-25T10:44:13-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2065,"type":"service","label":"Basico 300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":150,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":150,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":751,"invoiceId":2062,"paymentId":646,"creditNoteId":null,"refundId":null,"amount":150}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"entityBeforeEdit":{"id":2062,"clientId":2,"number":"002012","createdDate":"2025-06-11T10:44:13-0600","dueDate":"2025-06-25T10:44:13-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2065,"type":"service","label":"Basico 300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":751,"invoiceId":2062,"paymentId":646,"creditNoteId":null,"refundId":null,"amount":150}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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}}} - -[2025-06-11 16:45:22.222511] [debug] valor el evento recibido por webhook: invoice.edit - -[2025-06-11 16:45:22.222594] [debug] Valor de JSON: {"uuid":"8e1882b5-4551-41cb-b6e2-3f634d886887","changeType":"edit","entity":"invoice","entityId":"2062","eventName":"invoice.edit","extraData":{"entity":{"id":2062,"clientId":2,"number":"002012","createdDate":"2025-06-11T10:44:13-0600","dueDate":"2025-06-25T10:44:13-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2065,"type":"service","label":"Basico 300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":150,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":150,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":751,"invoiceId":2062,"paymentId":646,"creditNoteId":null,"refundId":null,"amount":150}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"entityBeforeEdit":{"id":2062,"clientId":2,"number":"002012","createdDate":"2025-06-11T10:44:13-0600","dueDate":"2025-06-25T10:44:13-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2065,"type":"service","label":"Basico 300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":751,"invoiceId":2062,"paymentId":646,"creditNoteId":null,"refundId":null,"amount":150}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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}}} - -[2025-06-11 16:45:22.222856] [debug] Edición de Factura - -[2025-06-11 16:45:22.222940] [debug] {"uuid":"8e1882b5-4551-41cb-b6e2-3f634d886887","changeType":"edit","entity":"invoice","entityId":2062,"message":null,"clientId":2,"eventName":"invoice.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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-150,"accountCredit":0,"accountOutstanding":150,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2062,"clientId":2,"number":"002012","createdDate":"2025-06-11T10:44:13-0600","dueDate":"2025-06-25T10:44:13-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2065,"type":"service","label":"Basico 300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":150,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":150,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":751,"invoiceId":2062,"paymentId":646,"creditNoteId":null,"refundId":null,"amount":150}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} - -[2025-06-11 16:45:22.223026] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-11 16:45:22.223042] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"8e1882b5-4551-41cb-b6e2-3f634d886887","changeType":"edit","entity":"invoice","entityId":2062,"message":null,"clientId":2,"eventName":"invoice.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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-150,"accountCredit":0,"accountOutstanding":150,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2062,"clientId":2,"number":"002012","createdDate":"2025-06-11T10:44:13-0600","dueDate":"2025-06-25T10:44:13-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2065,"type":"service","label":"Basico 300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":150,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":150,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":751,"invoiceId":2062,"paymentId":646,"creditNoteId":null,"refundId":null,"amount":150}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":646,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:45:21-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":751,"invoiceId":2062,"paymentId":646,"creditNoteId":null,"refundId":null,"amount":150}],"creditAmount":0,"userId":null,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Guanajuato","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2150 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 150","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2150 pendientes\",\"Monto Ultimo Pago\": \"$ 150\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11\/06\/2025 10:45 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"11\/06\/2025 10:45\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 11\/06\/2025 10:45 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 11\/06\/2025 10:45","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲150 pendientes","Monto Ultimo Pago": "$ 150","Estado": "Activo","Fecha Ultimo Pago": " 11/06/2025 10:45 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "11/06/2025 10:45","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 11/06/2025 10:45 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 10:45","Monto Ultimo Pago":"💲 150","Saldo Actual":"💲150 pendientes","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲150 pendientes\",\"Monto Ultimo Pago\": \"$ 150\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 10:45 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 10:45\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 11/06/2025 10:45 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 10:45","Monto Ultimo Pago":"💲 150","Saldo Actual":"💲150 pendientes","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲150 pendientes\",\"Monto Ultimo Pago\": \"$ 150\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 10:45 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 10:45\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-11 16:45:25.153919] [notice] Logging level set to:debug -[2025-06-11 16:45:25.154176] [debug] valor del webhook: {"uuid":"523950a9-77d8-469f-9246-4292fa912b85","changeType":"insert","entity":"payment","entityId":"646","eventName":"payment.add","extraData":{"entity":{"id":646,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:45:21-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":751,"invoiceId":2062,"paymentId":646,"creditNoteId":null,"refundId":null,"amount":150}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-11 16:45:25.292295] [debug] valor el evento recibido por webhook: payment.add - -[2025-06-11 16:45:25.292490] [debug] Valor de JSON: {"uuid":"523950a9-77d8-469f-9246-4292fa912b85","changeType":"insert","entity":"payment","entityId":"646","eventName":"payment.add","extraData":{"entity":{"id":646,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:45:21-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":751,"invoiceId":2062,"paymentId":646,"creditNoteId":null,"refundId":null,"amount":150}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-11 16:45:25.292685] [debug] Notification encodificado en JSON:{"uuid":"523950a9-77d8-469f-9246-4292fa912b85","changeType":"insert","entity":"payment","entityId":646,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-150,"accountCredit":0,"accountOutstanding":150,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":646,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:45:21-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":751,"invoiceId":2062,"paymentId":646,"creditNoteId":null,"refundId":null,"amount":150}],"creditAmount":0,"userId":null,"attributes":[]}} - -[2025-06-11 16:45:25.292751] [debug] valor del payment data: {"id":646,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:45:21-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":751,"invoiceId":2062,"paymentId":646,"creditNoteId":null,"refundId":null,"amount":150}],"creditAmount":0,"userId":null,"attributes":[]} - -[2025-06-11 16:45:25.292825] [info] {"WhatsApp":["5214181148783"]} -[2025-06-11 16:45:25.292865] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-11 16:45:25.292903] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-11 16:45:25.292941] [debug] ***Se notifica y actualiza al cliente sobre su pago*** - -Eviando comprobante de pago al cliente: 2 con número: 5214181148783 - -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 - -El archivo PNG se ha generado correctamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.png - -Subiendo comprobante a worpdpress - -file_to_upload: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.png - -Conexión FTP exitosa - -El archivo ha sido cargado exitosamente. - -La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas.png - -No se pudo obtener la lista de archivos de la carpeta FTP - -Se terminó de subir comprobante a wordpress - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "document", - "content": { - "text": "S/M", - "url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas.png" - }, - "template_values": ["Daniel Humberto Soto Villegas", "$150", "$150 pendientes"], - "template_uuid": "57ead79cebd14902921477922403093b", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"6cd1ec893f9a4baf9d4223b0fea5de74","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":"523950a9-77d8-469f-9246-4292fa912b85","changeType":"insert","entity":"payment","entityId":646,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-150,"accountCredit":0,"accountOutstanding":150,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":646,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:45:21-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":751,"invoiceId":2062,"paymentId":646,"creditNoteId":null,"refundId":null,"amount":150}],"creditAmount":0,"userId":null,"attributes":[]}} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":646,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:45:21-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":751,"invoiceId":2062,"paymentId":646,"creditNoteId":null,"refundId":null,"amount":150}],"creditAmount":0,"userId":null,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Guanajuato","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2150 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 150","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2150 pendientes\",\"Monto Ultimo Pago\": \"$ 150\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11\/06\/2025 10:45 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"11\/06\/2025 10:45\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 11\/06\/2025 10:45 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 11\/06\/2025 10:45","Clabe Interbancaria":null,"Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲150 pendientes","Monto Ultimo Pago": "$ 150","Estado": "Activo","Fecha Ultimo Pago": " 11/06/2025 10:45 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "11/06/2025 10:45","Clabe Interbancaria": "","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 11/06/2025 10:45 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 10:45","Monto Ultimo Pago":"💲 150","Saldo Actual":"💲150 pendientes","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲150 pendientes\",\"Monto Ultimo Pago\": \"$ 150\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 10:45 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 10:45\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 11/06/2025 10:45 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 10:45","Monto Ultimo Pago":"💲 150","Saldo Actual":"💲150 pendientes","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲150 pendientes\",\"Monto Ultimo Pago\": \"$ 150\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 10:45 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 10:45\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-11 16:45:31.399837] [notice] Logging level set to:debug -[2025-06-11 16:45:31.400147] [debug] valor del webhook: {"uuid":"6503adec-e8c2-4b77-97a5-4c2a167e1d47","changeType":"edit","entity":"payment","entityId":"646","eventName":"payment.edit","extraData":{"entity":{"id":646,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:45:21-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":751,"invoiceId":2062,"paymentId":646,"creditNoteId":null,"refundId":null,"amount":150}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":646,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:45:21-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":751,"invoiceId":2062,"paymentId":646,"creditNoteId":null,"refundId":null,"amount":150}],"creditAmount":0,"userId":null,"attributes":[]}}} - -[2025-06-11 16:45:31.525029] [debug] valor el evento recibido por webhook: payment.edit - -[2025-06-11 16:45:31.525279] [debug] Valor de JSON: {"uuid":"6503adec-e8c2-4b77-97a5-4c2a167e1d47","changeType":"edit","entity":"payment","entityId":"646","eventName":"payment.edit","extraData":{"entity":{"id":646,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:45:21-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":751,"invoiceId":2062,"paymentId":646,"creditNoteId":null,"refundId":null,"amount":150}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":646,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:45:21-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":751,"invoiceId":2062,"paymentId":646,"creditNoteId":null,"refundId":null,"amount":150}],"creditAmount":0,"userId":null,"attributes":[]}}} - -[2025-06-11 16:47:36.421247] [notice] Logging level set to:debug -[2025-06-11 16:47:36.421463] [debug] valor del webhook: {"uuid":"b9666d5f-4124-4d74-8bc5-67fa6a2b9280","changeType":"edit","entity":"invoice","entityId":"2062","eventName":"invoice.edit","extraData":{"entity":{"id":2062,"clientId":2,"number":"002012","createdDate":"2025-06-11T10:44:13-0600","dueDate":"2025-06-25T10:44:13-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2065,"type":"service","label":"Basico 300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":751,"invoiceId":2062,"paymentId":646,"creditNoteId":null,"refundId":null,"amount":150},{"id":752,"invoiceId":2062,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"entityBeforeEdit":{"id":2062,"clientId":2,"number":"002012","createdDate":"2025-06-11T10:44:13-0600","dueDate":"2025-06-25T10:44:13-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2065,"type":"service","label":"Basico 300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":150,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":150,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":751,"invoiceId":2062,"paymentId":646,"creditNoteId":null,"refundId":null,"amount":150},{"id":752,"invoiceId":2062,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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}}} - -[2025-06-11 16:47:36.568142] [debug] valor el evento recibido por webhook: invoice.edit - -[2025-06-11 16:47:36.568224] [debug] Valor de JSON: {"uuid":"b9666d5f-4124-4d74-8bc5-67fa6a2b9280","changeType":"edit","entity":"invoice","entityId":"2062","eventName":"invoice.edit","extraData":{"entity":{"id":2062,"clientId":2,"number":"002012","createdDate":"2025-06-11T10:44:13-0600","dueDate":"2025-06-25T10:44:13-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2065,"type":"service","label":"Basico 300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":751,"invoiceId":2062,"paymentId":646,"creditNoteId":null,"refundId":null,"amount":150},{"id":752,"invoiceId":2062,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"entityBeforeEdit":{"id":2062,"clientId":2,"number":"002012","createdDate":"2025-06-11T10:44:13-0600","dueDate":"2025-06-25T10:44:13-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2065,"type":"service","label":"Basico 300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":150,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":150,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":751,"invoiceId":2062,"paymentId":646,"creditNoteId":null,"refundId":null,"amount":150},{"id":752,"invoiceId":2062,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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}}} - -[2025-06-11 16:47:36.568434] [debug] Edición de Factura - -[2025-06-11 16:47:36.568506] [debug] {"uuid":"b9666d5f-4124-4d74-8bc5-67fa6a2b9280","changeType":"edit","entity":"invoice","entityId":2062,"message":null,"clientId":2,"eventName":"invoice.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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":150,"accountCredit":150,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2062,"clientId":2,"number":"002012","createdDate":"2025-06-11T10:44:13-0600","dueDate":"2025-06-25T10:44:13-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2065,"type":"service","label":"Basico 300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":751,"invoiceId":2062,"paymentId":646,"creditNoteId":null,"refundId":null,"amount":150},{"id":752,"invoiceId":2062,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} - -[2025-06-11 16:47:36.568579] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-11 16:47:36.568593] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"b9666d5f-4124-4d74-8bc5-67fa6a2b9280","changeType":"edit","entity":"invoice","entityId":2062,"message":null,"clientId":2,"eventName":"invoice.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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":150,"accountCredit":150,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2062,"clientId":2,"number":"002012","createdDate":"2025-06-11T10:44:13-0600","dueDate":"2025-06-25T10:44:13-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2065,"type":"service","label":"Basico 300 01\/07\/2025 \u2013 31\/07\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":751,"invoiceId":2062,"paymentId":646,"creditNoteId":null,"refundId":null,"amount":150},{"id":752,"invoiceId":2062,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":647,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:47:36-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":752,"invoiceId":2062,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150}],"creditAmount":150,"userId":null,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Guanajuato","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2150 a favor","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2150 a favor\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11\/06\/2025 10:47 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"11\/06\/2025 10:47\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 11\/06\/2025 10:47 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 11\/06\/2025 10:47","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲150 a favor","Monto Ultimo Pago": "$ 300","Estado": "Activo","Fecha Ultimo Pago": " 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "11/06/2025 10:47","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 10:47","Monto Ultimo Pago":"💲 300","Saldo Actual":"💲150 a favor","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲150 a favor\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 10:47\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 10:47","Monto Ultimo Pago":"💲 300","Saldo Actual":"💲150 a favor","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲150 a favor\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 10:47\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-11 16:47:39.306289] [notice] Logging level set to:debug -[2025-06-11 16:47:39.306504] [debug] valor del webhook: {"uuid":"3056fcf8-22e0-4891-827f-c0aec9add890","changeType":"insert","entity":"payment","entityId":"647","eventName":"payment.add","extraData":{"entity":{"id":647,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:47:36-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":752,"invoiceId":2062,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150}],"creditAmount":150,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-11 16:47:39.436115] [debug] valor el evento recibido por webhook: payment.add - -[2025-06-11 16:47:39.436311] [debug] Valor de JSON: {"uuid":"3056fcf8-22e0-4891-827f-c0aec9add890","changeType":"insert","entity":"payment","entityId":"647","eventName":"payment.add","extraData":{"entity":{"id":647,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:47:36-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":752,"invoiceId":2062,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150}],"creditAmount":150,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-11 16:47:39.436508] [debug] Notification encodificado en JSON:{"uuid":"3056fcf8-22e0-4891-827f-c0aec9add890","changeType":"insert","entity":"payment","entityId":647,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":150,"accountCredit":150,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":647,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:47:36-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":752,"invoiceId":2062,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150}],"creditAmount":150,"userId":null,"attributes":[]}} - -[2025-06-11 16:47:39.436589] [debug] valor del payment data: {"id":647,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:47:36-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":752,"invoiceId":2062,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150}],"creditAmount":150,"userId":null,"attributes":[]} - -[2025-06-11 16:47:39.436665] [info] {"WhatsApp":["5214181148783"]} -[2025-06-11 16:47:39.436705] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-11 16:47:39.436742] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-11 16:47:39.436779] [debug] ***Se notifica y actualiza al cliente sobre su pago*** - -Eviando comprobante de pago al cliente: 2 con número: 5214181148783 - -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 - -El archivo PNG se ha generado correctamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.png - -Subiendo comprobante a worpdpress - -file_to_upload: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.png - -Conexión FTP exitosa - -El archivo ha sido cargado exitosamente. - -La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas.png - -No se pudo obtener la lista de archivos de la carpeta FTP - -Se terminó de subir comprobante a wordpress - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "document", - "content": { - "text": "S/M", - "url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas.png" - }, - "template_values": ["Daniel Humberto Soto Villegas", "$300", "$150 a favor"], - "template_uuid": "57ead79cebd14902921477922403093b", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"800dddbf1cd04f26a70f00b9f8ab58a4","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":"3056fcf8-22e0-4891-827f-c0aec9add890","changeType":"insert","entity":"payment","entityId":647,"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":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":150,"accountCredit":150,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"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":647,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:47:36-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":752,"invoiceId":2062,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150}],"creditAmount":150,"userId":null,"attributes":[]}} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":647,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:47:36-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":752,"invoiceId":2062,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150}],"creditAmount":150,"userId":null,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Guanajuato","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2150 a favor","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2150 a favor\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11\/06\/2025 10:47 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"11\/06\/2025 10:47\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 11\/06\/2025 10:47 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 11\/06\/2025 10:47","Clabe Interbancaria":null,"Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲150 a favor","Monto Ultimo Pago": "$ 300","Estado": "Activo","Fecha Ultimo Pago": " 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "11/06/2025 10:47","Clabe Interbancaria": "","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 10:47","Monto Ultimo Pago":"💲 300","Saldo Actual":"💲150 a favor","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲150 a favor\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 10:47\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 10:47","Monto Ultimo Pago":"💲 300","Saldo Actual":"💲150 a favor","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲150 a favor\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 10:47\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-11 16:47:45.508387] [notice] Logging level set to:debug -[2025-06-11 16:47:45.508531] [debug] valor del webhook: {"uuid":"a7fb47fc-2934-4e8f-917a-6acda3f22ae4","changeType":"edit","entity":"payment","entityId":"647","eventName":"payment.edit","extraData":{"entity":{"id":647,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:47:36-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":752,"invoiceId":2062,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150}],"creditAmount":150,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":647,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:47:36-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":752,"invoiceId":2062,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150}],"creditAmount":150,"userId":null,"attributes":[]}}} - -[2025-06-11 16:47:45.622566] [debug] valor el evento recibido por webhook: payment.edit - -[2025-06-11 16:47:45.622719] [debug] Valor de JSON: {"uuid":"a7fb47fc-2934-4e8f-917a-6acda3f22ae4","changeType":"edit","entity":"payment","entityId":"647","eventName":"payment.edit","extraData":{"entity":{"id":647,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:47:36-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":752,"invoiceId":2062,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150}],"creditAmount":150,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":647,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:47:36-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":752,"invoiceId":2062,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150}],"creditAmount":150,"userId":null,"attributes":[]}}} - -[2025-06-11 16:51:29.094697] [notice] Logging level set to:debug -[2025-06-11 16:51:29.094796] [debug] valor del webhook: {"uuid":"b1d09da4-4f77-4cca-b0ee-0ae78235cc65","changeType":"insert","entity":"invoice","entityId":"2063","eventName":"invoice.add","extraData":{"entity":{"id":2063,"clientId":2,"number":"002013","createdDate":"2025-06-11T10:51:14-0600","dueDate":"2025-06-25T10:51:14-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2066,"type":"other","label":"ajuste","price":150,"quantity":1,"total":150,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":null,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":150,"discount":null,"discountLabel":"Descuento","taxes":[],"total":150,"amountPaid":150,"totalUntaxed":150,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":753,"invoiceId":2063,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"entityBeforeEdit":null}} - -[2025-06-11 16:51:29.226423] [debug] valor el evento recibido por webhook: invoice.add - -[2025-06-11 16:51:29.226614] [debug] Valor de JSON: {"uuid":"b1d09da4-4f77-4cca-b0ee-0ae78235cc65","changeType":"insert","entity":"invoice","entityId":"2063","eventName":"invoice.add","extraData":{"entity":{"id":2063,"clientId":2,"number":"002013","createdDate":"2025-06-11T10:51:14-0600","dueDate":"2025-06-25T10:51:14-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2066,"type":"other","label":"ajuste","price":150,"quantity":1,"total":150,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":null,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":150,"discount":null,"discountLabel":"Descuento","taxes":[],"total":150,"amountPaid":150,"totalUntaxed":150,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":753,"invoiceId":2063,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"entityBeforeEdit":null}} - -[2025-06-11 16:51:29.226890] [debug] Adición de Factura - -[2025-06-11 16:51:29.226993] [debug] datos del notification para el invoice add:{"uuid":"b1d09da4-4f77-4cca-b0ee-0ae78235cc65","changeType":"insert","entity":"invoice","entityId":2063,"message":null,"clientId":2,"eventName":"invoice.add","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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2063,"clientId":2,"number":"002013","createdDate":"2025-06-11T10:51:14-0600","dueDate":"2025-06-25T10:51:14-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2066,"type":"other","label":"ajuste","price":150,"quantity":1,"total":150,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":null,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":150,"discount":null,"discountLabel":"Descuento","taxes":[],"total":150,"amountPaid":150,"totalUntaxed":150,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":753,"invoiceId":2063,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} - -[2025-06-11 16:51:29.227046] [debug] Account Balance: 0 - -[2025-06-11 16:51:29.227129] [debug] {"uuid":"b1d09da4-4f77-4cca-b0ee-0ae78235cc65","changeType":"insert","entity":"invoice","entityId":2063,"message":null,"clientId":2,"eventName":"invoice.add","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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2063,"clientId":2,"number":"002013","createdDate":"2025-06-11T10:51:14-0600","dueDate":"2025-06-25T10:51:14-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2066,"type":"other","label":"ajuste","price":150,"quantity":1,"total":150,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":null,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":150,"discount":null,"discountLabel":"Descuento","taxes":[],"total":150,"amountPaid":150,"totalUntaxed":150,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":753,"invoiceId":2063,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} - -[2025-06-11 16:51:29.227242] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-11 16:51:29.227286] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"b1d09da4-4f77-4cca-b0ee-0ae78235cc65","changeType":"insert","entity":"invoice","entityId":2063,"message":null,"clientId":2,"eventName":"invoice.add","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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2063,"clientId":2,"number":"002013","createdDate":"2025-06-11T10:51:14-0600","dueDate":"2025-06-25T10:51:14-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2066,"type":"other","label":"ajuste","price":150,"quantity":1,"total":150,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":null,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":150,"discount":null,"discountLabel":"Descuento","taxes":[],"total":150,"amountPaid":150,"totalUntaxed":150,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":753,"invoiceId":2063,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":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 Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":647,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:47:36-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":752,"invoiceId":2062,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150},{"id":753,"invoiceId":2063,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150}],"creditAmount":0,"userId":null,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Guanajuato","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11\/06\/2025 10:47 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"11\/06\/2025 10:51\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 11\/06\/2025 10:47 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 11\/06\/2025 10:51","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲0 está al corriente","Monto Ultimo Pago": "$ 300","Estado": "Activo","Fecha Ultimo Pago": " 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "11/06/2025 10:51","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 10:51","Monto Ultimo Pago":"💲 300","Saldo Actual":"💲0 está al corriente","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 10:51\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 10:51","Monto Ultimo Pago":"💲 300","Saldo Actual":"💲0 está al corriente","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 10:51\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-11 16:51:41.868604] [notice] Logging level set to:debug -[2025-06-11 16:51:41.868948] [debug] valor del webhook: {"uuid":"bc7b26b0-edba-4646-ae0a-24c4a633ff1d","changeType":"insert","entity":"invoice","entityId":"2064","eventName":"invoice.add","extraData":{"entity":{"id":2064,"clientId":2,"number":"002014","createdDate":"2025-06-11T10:51:36-0600","dueDate":"2025-06-25T10:51:36-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2067,"type":"service","label":"Basico 300 01\/08\/2025 \u2013 31\/08\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":"Daniel Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"entityBeforeEdit":null}} - -[2025-06-11 16:51:42.011585] [debug] valor el evento recibido por webhook: invoice.add - -[2025-06-11 16:51:42.011786] [debug] Valor de JSON: {"uuid":"bc7b26b0-edba-4646-ae0a-24c4a633ff1d","changeType":"insert","entity":"invoice","entityId":"2064","eventName":"invoice.add","extraData":{"entity":{"id":2064,"clientId":2,"number":"002014","createdDate":"2025-06-11T10:51:36-0600","dueDate":"2025-06-25T10:51:36-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2067,"type":"service","label":"Basico 300 01\/08\/2025 \u2013 31\/08\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":"Daniel Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"entityBeforeEdit":null}} - -[2025-06-11 16:51:42.011950] [debug] Adición de Factura - -[2025-06-11 16:51:42.012037] [debug] datos del notification para el invoice add:{"uuid":"bc7b26b0-edba-4646-ae0a-24c4a633ff1d","changeType":"insert","entity":"invoice","entityId":2064,"message":null,"clientId":2,"eventName":"invoice.add","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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2064,"clientId":2,"number":"002014","createdDate":"2025-06-11T10:51:36-0600","dueDate":"2025-06-25T10:51:36-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2067,"type":"service","label":"Basico 300 01\/08\/2025 \u2013 31\/08\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":"Daniel Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} - -[2025-06-11 16:51:42.012094] [debug] Account Balance: -300 - -[2025-06-11 16:51:42.012162] [debug] {"uuid":"bc7b26b0-edba-4646-ae0a-24c4a633ff1d","changeType":"insert","entity":"invoice","entityId":2064,"message":null,"clientId":2,"eventName":"invoice.add","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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2064,"clientId":2,"number":"002014","createdDate":"2025-06-11T10:51:36-0600","dueDate":"2025-06-25T10:51:36-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2067,"type":"service","label":"Basico 300 01\/08\/2025 \u2013 31\/08\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":"Daniel Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} - -[2025-06-11 16:51:42.012236] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-11 16:51:42.012275] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"bc7b26b0-edba-4646-ae0a-24c4a633ff1d","changeType":"insert","entity":"invoice","entityId":2064,"message":null,"clientId":2,"eventName":"invoice.add","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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":2064,"clientId":2,"number":"002014","createdDate":"2025-06-11T10:51:36-0600","dueDate":"2025-06-25T10:51:36-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2067,"type":"service","label":"Basico 300 01\/08\/2025 \u2013 31\/08\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":"Daniel Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":647,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:47:36-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":752,"invoiceId":2062,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150},{"id":753,"invoiceId":2063,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150}],"creditAmount":0,"userId":null,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Guanajuato","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2300 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2300 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11\/06\/2025 10:47 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"11\/06\/2025 10:51\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 11\/06\/2025 10:47 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 11\/06\/2025 10:51","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲300 pendientes","Monto Ultimo Pago": "$ 300","Estado": "Activo","Fecha Ultimo Pago": " 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "11/06/2025 10:51","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 10:51","Monto Ultimo Pago":"💲 300","Saldo Actual":"💲300 pendientes","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲300 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 10:51\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Guanajuato","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 10:51","Monto Ultimo Pago":"💲 300","Saldo Actual":"💲300 pendientes","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲300 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 10:51\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-11 16:58:17.842880] [notice] Logging level set to:debug -[2025-06-11 16:58:17.843275] [debug] valor del webhook: {"uuid":"992eab3c-7458-4779-ab59-48aad1301558","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"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},"entityBeforeEdit":{"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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-06-11 16:58:17.960691] [debug] valor el evento recibido por webhook: client.edit - -[2025-06-11 16:58:17.960880] [debug] Valor de JSON: {"uuid":"992eab3c-7458-4779-ab59-48aad1301558","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"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},"entityBeforeEdit":{"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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-06-11 16:58:17.961169] [debug] Se actualiza a un cliente -[2025-06-11 16:58:17.961268] [debug] Valor de json_data: {"uuid":"992eab3c-7458-4779-ab59-48aad1301558","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"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},"entityBeforeEdit":{"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, Dolores Hidalgo Guanajuato","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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} -[2025-06-11 16:58:18.044929] [info] ID correspondiente a 'passwordAntenaCliente': 17 - -[2025-06-11 16:58:18.045063] [info] El valor de passwordAntenaValue es: gYAIEK:Be}SK*01z5+/V - -[2025-06-11 16:58:18.045108] [info] Ya existe un valor de passwordAntenaValue: gYAIEK:Be}SK*01z5+/V - -[2025-06-11 16:58:18.045146] [debug] El cliente no cambió de potencial a cliente -[2025-06-11 16:58:18.045203] [debug] Validando claves dentro de entity y entityBeforeEdit -[2025-06-11 16:58:18.045238] [debug] Los datos entity y entityBeforeEdit contienen el campo tags -[2025-06-11 16:58:18.045274] [debug] Validando si la etiqueta STRIPE existe en entity pero no en entityBeforeEdit -[2025-06-11 16:58:18.045356] [debug] {"uuid":"992eab3c-7458-4779-ab59-48aad1301558","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":"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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"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":null} - -[2025-06-11 16:58:18.045484] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-11 16:58:18.045526] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"992eab3c-7458-4779-ab59-48aad1301558","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":"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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"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":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":647,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:47:36-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":752,"invoiceId":2062,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150},{"id":753,"invoiceId":2063,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150}],"creditAmount":0,"userId":null,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2300 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2300 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11\/06\/2025 10:47 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"11\/06\/2025 10:58\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 11\/06\/2025 10:47 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 11\/06\/2025 10:58","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲300 pendientes","Monto Ultimo Pago": "$ 300","Estado": "Activo","Fecha Ultimo Pago": " 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "11/06/2025 10:58","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 10:58","Monto Ultimo Pago":"💲 300","Saldo Actual":"💲300 pendientes","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲300 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 10:58\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 10:58","Monto Ultimo Pago":"💲 300","Saldo Actual":"💲300 pendientes","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲300 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 10:58\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-11 16:58:20.964750] [notice] Logging level set to:debug -[2025-06-11 16:58:20.964818] [debug] valor del webhook: {"uuid":"92f1dc8a-c785-4c9f-ad08-473a496c3cce","changeType":"edit","entity":"service","entityId":"152","eventName":"service.edit","extraData":{"entity":{"id":152,"prepaid":false,"clientId":2,"status":1,"name":"Basico 300","fullAddress":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","street1":"Chiapas 31","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":"el may","addressGpsLat":21.1564414,"addressGpsLon":-100.9383654,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00: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-03-25T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-08-31T00:00:00-0600","unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[{"id":"3a13b5e4-3282-480c-b897-2fcb4ea3e200","serviceId":152,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"},{"id":141,"startDate":"2025-03-15T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":153,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":152,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":151,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":150,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":154,"startDate":"2025-03-26T00:00:00-0600","endDate":"2025-04-11T00:00:00-0600"},{"id":162,"startDate":"2025-04-26T00:00:00-0600","endDate":"2025-05-16T00:00:00-0600"}],"surcharges":[]},"entityBeforeEdit":{"id":152,"prepaid":false,"clientId":2,"status":1,"name":"Basico 300","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":"el may","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00: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-03-25T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-08-31T00:00:00-0600","unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[{"id":"3a13b5e4-3282-480c-b897-2fcb4ea3e200","serviceId":152,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"},{"id":141,"startDate":"2025-03-15T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":153,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":152,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":151,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":150,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":154,"startDate":"2025-03-26T00:00:00-0600","endDate":"2025-04-11T00:00:00-0600"},{"id":162,"startDate":"2025-04-26T00:00:00-0600","endDate":"2025-05-16T00:00:00-0600"}],"surcharges":[]}}} - -[2025-06-11 16:58:21.109379] [debug] valor el evento recibido por webhook: service.edit - -[2025-06-11 16:58:21.109477] [debug] Valor de JSON: {"uuid":"92f1dc8a-c785-4c9f-ad08-473a496c3cce","changeType":"edit","entity":"service","entityId":"152","eventName":"service.edit","extraData":{"entity":{"id":152,"prepaid":false,"clientId":2,"status":1,"name":"Basico 300","fullAddress":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","street1":"Chiapas 31","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":"el may","addressGpsLat":21.1564414,"addressGpsLon":-100.9383654,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00: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-03-25T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-08-31T00:00:00-0600","unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[{"id":"3a13b5e4-3282-480c-b897-2fcb4ea3e200","serviceId":152,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"},{"id":141,"startDate":"2025-03-15T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":153,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":152,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":151,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":150,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":154,"startDate":"2025-03-26T00:00:00-0600","endDate":"2025-04-11T00:00:00-0600"},{"id":162,"startDate":"2025-04-26T00:00:00-0600","endDate":"2025-05-16T00:00:00-0600"}],"surcharges":[]},"entityBeforeEdit":{"id":152,"prepaid":false,"clientId":2,"status":1,"name":"Basico 300","fullAddress":"Chiapas 31, Dolores Hidalgo Guanajuato","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":"el may","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00: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-03-25T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-08-31T00:00:00-0600","unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[{"id":"3a13b5e4-3282-480c-b897-2fcb4ea3e200","serviceId":152,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"},{"id":141,"startDate":"2025-03-15T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":153,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":152,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":151,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":150,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":154,"startDate":"2025-03-26T00:00:00-0600","endDate":"2025-04-11T00:00:00-0600"},{"id":162,"startDate":"2025-04-26T00:00:00-0600","endDate":"2025-05-16T00:00:00-0600"}],"surcharges":[]}}} - -[2025-06-11 16:58:21.109621] [debug] Se editó el servicio a un cliente - -[2025-06-11 16:58:21.109673] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-11 16:58:21.109687] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-11 16:58:21.109746] [info] {"uuid":"92f1dc8a-c785-4c9f-ad08-473a496c3cce","changeType":"edit","entity":"service","entityId":152,"message":null,"clientId":2,"eventName":"service.edit","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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"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":{"id":152,"prepaid":false,"clientId":2,"status":1,"name":"Basico 300","fullAddress":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","street1":"Chiapas 31","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":"el may","addressGpsLat":21.1564414,"addressGpsLon":-100.9383654,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00: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-03-25T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-08-31T00:00:00-0600","unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[{"id":"3a13b5e4-3282-480c-b897-2fcb4ea3e200","serviceId":152,"customAttributeId":18,"name":"Extensor Wifi","key":"extensorWifi","value":"0","clientZoneVisible":true}],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"},{"id":141,"startDate":"2025-03-15T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":153,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":152,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":151,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":150,"startDate":"2025-03-22T00:00:00-0600","endDate":"2025-03-22T00:00:00-0600"},{"id":154,"startDate":"2025-03-26T00:00:00-0600","endDate":"2025-04-11T00:00:00-0600"},{"id":162,"startDate":"2025-04-26T00:00:00-0600","endDate":"2025-05-16T00:00:00-0600"}],"surcharges":[]},"invoiceData":null,"paymentData":null} - -Actualizando estado del servicio - -Nombre del cliente al que se va a actualizar el estado del servicio: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Estado":"\ud83d\udfe2 Activo","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 11\/06\/2025 10:58"}} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo","Fecha Ultimo Pago":"📆💸 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 10:58","Monto Ultimo Pago":"💲 300","Saldo Actual":"💲300 pendientes","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲300 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 10:58\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-11 16:58:22.859293] [info] ID correspondiente a 'passwordAntenaCliente': 17 - -[2025-06-11 16:58:22.859486] [info] El valor de passwordAntenaValue es null o cadena vacía, se manda llamar la función getVaultCredentials - -[2025-06-11 16:58:22.859535] [info] El valor de password es: gYAIEK:Be}SK*01z5+/V - -[2025-06-11 16:58:23.011096] [info] Se actualizó el custom attribute del cliente 2 - -[2025-06-11 16:58:23.011718] [info] Se actualizó el atributo personalizado passwordAntenaCliente con el valor: gYAIEK:Be}SK*01z5+/V - -[2025-06-11 16:58:23.133450] [notice] Logging level set to:debug -[2025-06-11 16:58:23.133673] [debug] valor del webhook: {"uuid":"5e90d96a-4dc1-44b8-9797-c97734935124","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"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},"entityBeforeEdit":{"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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"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}}} - -[2025-06-11 16:58:23.229296] [debug] valor el evento recibido por webhook: client.edit - -[2025-06-11 16:58:23.229480] [debug] Valor de JSON: {"uuid":"5e90d96a-4dc1-44b8-9797-c97734935124","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"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},"entityBeforeEdit":{"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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"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}}} - -[2025-06-11 16:58:23.229659] [debug] Se actualiza a un cliente -[2025-06-11 16:58:23.229741] [debug] Valor de json_data: {"uuid":"5e90d96a-4dc1-44b8-9797-c97734935124","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"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},"entityBeforeEdit":{"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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"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}}} -[2025-06-11 16:58:23.282733] [info] ID correspondiente a 'passwordAntenaCliente': 17 - -[2025-06-11 16:58:23.282857] [info] El valor de passwordAntenaValue es: gYAIEK:Be}SK*01z5+/V - -[2025-06-11 16:58:23.282902] [info] Ya existe un valor de passwordAntenaValue: gYAIEK:Be}SK*01z5+/V - -[2025-06-11 16:58:23.282943] [debug] El cliente no cambió de potencial a cliente -[2025-06-11 16:58:23.282979] [debug] Validando claves dentro de entity y entityBeforeEdit -[2025-06-11 16:58:23.283014] [debug] Los datos entity y entityBeforeEdit contienen el campo tags -[2025-06-11 16:58:23.283049] [debug] Validando si la etiqueta STRIPE existe en entity pero no en entityBeforeEdit -[2025-06-11 16:58:23.283117] [debug] {"uuid":"5e90d96a-4dc1-44b8-9797-c97734935124","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":"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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"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":null} - -[2025-06-11 16:58:23.283209] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-11 16:58:23.283246] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"5e90d96a-4dc1-44b8-9797-c97734935124","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":"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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"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":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":647,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T10:47:36-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":752,"invoiceId":2062,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150},{"id":753,"invoiceId":2063,"paymentId":647,"creditNoteId":null,"refundId":null,"amount":150}],"creditAmount":0,"userId":null,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2300 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2300 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11\/06\/2025 10:47 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"11\/06\/2025 10:58\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 11\/06\/2025 10:47 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 11\/06\/2025 10:58","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲300 pendientes","Monto Ultimo Pago": "$ 300","Estado": "Activo","Fecha Ultimo Pago": " 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "11/06/2025 10:58","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 10:58","Monto Ultimo Pago":"💲 300","Saldo Actual":"💲300 pendientes","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲300 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 10:58\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 10:58","Monto Ultimo Pago":"💲 300","Saldo Actual":"💲300 pendientes","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲300 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 10:47 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 10:58\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-11 17:01:11.753469] [notice] Logging level set to:debug -[2025-06-11 17:01:11.753639] [debug] valor del webhook: { -"type": "oxxo.request", -"client_id": 2 -} - -[2025-06-11 17:01:11.753694] [info] No UUID found in the webhook data -[2025-06-11 17:01:11.753727] [info] Evento de solicitud de referencia de oxxo recibido - -[2025-06-11 17:01:11.753751] [info] Creando referencia del cliente para OXXO: - -[2025-06-11 17:01:11.890160] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX - -[2025-06-11 17:01:11.890223] [info] Creando referencia en Stripe por 300 para el cliente cus_PetN1dhr4rx0kX - -[2025-06-11 17:01:12.957895] [info] Referencia OXXO: 12345678901234657890123456789012 - -[2025-06-11 17:01:12.958041] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVHBnekRuaml1dDlmZEpCQ1dZSUJIejByNHFhU3dG0100gQ9caG5W - -[2025-06-11 17:01:12.958077] [info] Referencia OXXO creada correctamente. - -[2025-06-11 17:01:15.113589] [debug] Status Code: 200 -[2025-06-11 17:01:15.113643] [debug] Content Type: image/jpeg -[2025-06-11 17:01:15.113789] [debug] ¡Imagen guardada exitosamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1749661272.jpeg -Subiendo voucher a worpdpress - -file_to_upload: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1749661272.jpeg - -Conexión FTP exitosa - -El archivo ha sido cargado exitosamente. - -La URL es: https://siip.mx/wp/wp-content/uploads/vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1749661272.jpeg - -No se pudo obtener la lista de archivos de la carpeta FTP - -[2025-06-11 17:01:16.736871] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVHBnekRuaml1dDlmZEpCQ1dZSUJIejByNHFhU3dG0100gQ9caG5W","oxxo_reference": "12345678901234657890123456789012","voucher_image_url": "https://siip.mx/wp/wp-content/uploads/vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1749661272.jpeg","error": "","failDescription": "","clientID": "2","clientFullName": "Daniel Humberto Soto Villegas","amount": "300"} -[2025-06-11 17:02:15.695761] [notice] Logging level set to:debug -[2025-06-11 17:02:15.696141] [debug] valor del webhook: { -"type": "oxxo.request", -"client_id": 2, -"amount": 100 -} - -[2025-06-11 17:02:15.696237] [info] No UUID found in the webhook data -[2025-06-11 17:02:15.696293] [info] Evento de solicitud de referencia de oxxo recibido - -[2025-06-11 17:02:15.696335] [info] Referencia persnoalizada, Valor del monto: 100 - -[2025-06-11 17:02:15.696378] [info] Creando referencia del cliente para OXXO: - -[2025-06-11 17:02:15.825517] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX - -[2025-06-11 17:02:15.825565] [info] Monto proporcionado directamente: 100 - -[2025-06-11 17:02:15.825577] [info] Creando referencia en Stripe por 100 para el cliente cus_PetN1dhr4rx0kX - -[2025-06-11 17:02:16.932804] [info] Referencia OXXO: 12345678901234657890123456789012 - -[2025-06-11 17:02:16.932928] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVHBoeGllcUo0QWVQYTBoeVcxYndsWkV6NlBvZ1dh0100oJA03z3Q - -[2025-06-11 17:02:16.932964] [info] Referencia OXXO creada correctamente. - -[2025-06-11 17:02:18.996687] [debug] Status Code: 200 -[2025-06-11 17:02:18.997117] [debug] Content Type: image/jpeg -[2025-06-11 17:02:18.997656] [debug] ¡Imagen guardada exitosamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1749661336.jpeg -Subiendo voucher a worpdpress - -file_to_upload: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1749661336.jpeg - -Conexión FTP exitosa - -El archivo ha sido cargado exitosamente. - -La URL es: https://siip.mx/wp/wp-content/uploads/vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1749661336.jpeg - -No se pudo obtener la lista de archivos de la carpeta FTP - -[2025-06-11 17:02:20.544351] [info] Referencia personalizada, Valor de la respuesta: {"oxxo_reference":"12345678901234657890123456789012","url":"https:\/\/payments.stripe.com\/oxxo\/voucher\/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVHBoeGllcUo0QWVQYTBoeVcxYndsWkV6NlBvZ1dh0100oJA03z3Q","error":"","failDescription":"","clientID":2,"clientFullName":"Daniel Humberto Soto Villegas","amount":100,"voucher_image_url":"https:\/\/siip.mx\/wp\/wp-content\/uploads\/vouchers_oxxo\/voucher_Daniel_Humberto_Soto_Villegas_1749661336.jpeg"} - -[2025-06-11 17:02:20.544636] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TVHBoeGllcUo0QWVQYTBoeVcxYndsWkV6NlBvZ1dh0100oJA03z3Q","oxxo_reference": "12345678901234657890123456789012","voucher_image_url": "https://siip.mx/wp/wp-content/uploads/vouchers_oxxo/voucher_Daniel_Humberto_Soto_Villegas_1749661336.jpeg","error": "","failDescription": "","clientID": "2","clientFullName": "Daniel Humberto Soto Villegas","amount": "100"} -[2025-06-11 17:04:17.315042] [notice] Logging level set to:debug -[2025-06-11 17:04:17.315145] [debug] valor del webhook: {"uuid":"463002d5-aec0-4572-903b-d82ea3305247","changeType":"edit","entity":"invoice","entityId":"2064","eventName":"invoice.edit","extraData":{"entity":{"id":2064,"clientId":2,"number":"002014","createdDate":"2025-06-11T10:51:36-0600","dueDate":"2025-06-25T10:51:36-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2067,"type":"service","label":"Basico 300 01\/08\/2025 \u2013 31\/08\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":754,"invoiceId":2064,"paymentId":648,"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":"Daniel Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"entityBeforeEdit":{"id":2064,"clientId":2,"number":"002014","createdDate":"2025-06-11T10:51:36-0600","dueDate":"2025-06-25T10:51:36-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2067,"type":"service","label":"Basico 300 01\/08\/2025 \u2013 31\/08\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":754,"invoiceId":2064,"paymentId":648,"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":"Daniel Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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}}} - -[2025-06-11 17:04:17.541484] [debug] valor el evento recibido por webhook: invoice.edit - -[2025-06-11 17:04:17.541733] [debug] Valor de JSON: {"uuid":"463002d5-aec0-4572-903b-d82ea3305247","changeType":"edit","entity":"invoice","entityId":"2064","eventName":"invoice.edit","extraData":{"entity":{"id":2064,"clientId":2,"number":"002014","createdDate":"2025-06-11T10:51:36-0600","dueDate":"2025-06-25T10:51:36-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2067,"type":"service","label":"Basico 300 01\/08\/2025 \u2013 31\/08\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":754,"invoiceId":2064,"paymentId":648,"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":"Daniel Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"entityBeforeEdit":{"id":2064,"clientId":2,"number":"002014","createdDate":"2025-06-11T10:51:36-0600","dueDate":"2025-06-25T10:51:36-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2067,"type":"service","label":"Basico 300 01\/08\/2025 \u2013 31\/08\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":754,"invoiceId":2064,"paymentId":648,"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":"Daniel Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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}}} - -[2025-06-11 17:04:17.542016] [debug] Edición de Factura - -[2025-06-11 17:04:17.542160] [debug] {"uuid":"463002d5-aec0-4572-903b-d82ea3305247","changeType":"edit","entity":"invoice","entityId":2064,"message":null,"clientId":2,"eventName":"invoice.edit","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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"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":{"id":2064,"clientId":2,"number":"002014","createdDate":"2025-06-11T10:51:36-0600","dueDate":"2025-06-25T10:51:36-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2067,"type":"service","label":"Basico 300 01\/08\/2025 \u2013 31\/08\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":754,"invoiceId":2064,"paymentId":648,"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":"Daniel Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} - -[2025-06-11 17:04:17.542303] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-11 17:04:17.542350] [info] Tipo de contacto normalizado: 'whatsapp' -Notificacion data: {"uuid":"463002d5-aec0-4572-903b-d82ea3305247","changeType":"edit","entity":"invoice","entityId":2064,"message":null,"clientId":2,"eventName":"invoice.edit","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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"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":{"id":2064,"clientId":2,"number":"002014","createdDate":"2025-06-11T10:51:36-0600","dueDate":"2025-06-25T10:51:36-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-06-11T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2067,"type":"service","label":"Basico 300 01\/08\/2025 \u2013 31\/08\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":152,"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":754,"invoiceId":2064,"paymentId":648,"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":"Daniel Humberto","clientLastName":"Soto Villegas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 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},"paymentData":null} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":648,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T11:04:17-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":754,"invoiceId":2064,"paymentId":648,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":null,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11\/06\/2025 11:04 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"11\/06\/2025 11:04\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 11\/06\/2025 11:04 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 11\/06\/2025 11:04","Clabe Interbancaria":"0021804341999569810","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲0 está al corriente","Monto Ultimo Pago": "$ 300","Estado": "Activo","Fecha Ultimo Pago": " 11/06/2025 11:04 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "11/06/2025 11:04","Clabe Interbancaria": "0021804341999569810","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 11/06/2025 11:04 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 11:04","Monto Ultimo Pago":"💲 300","Saldo Actual":"💲0 está al corriente","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 11:04 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 11:04\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 11/06/2025 11:04 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 11:04","Monto Ultimo Pago":"💲 300","Saldo Actual":"💲0 está al corriente","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 11:04 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 11:04\",\"Clabe Interbancaria\": \"0021804341999569810\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-11 17:04:20.471849] [notice] Logging level set to:debug -[2025-06-11 17:04:20.471993] [debug] valor del webhook: {"uuid":"46a1d567-5dc6-47a8-b3a8-0b9566f55fd3","changeType":"insert","entity":"payment","entityId":"648","eventName":"payment.add","extraData":{"entity":{"id":648,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T11:04:17-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":754,"invoiceId":2064,"paymentId":648,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-11 17:04:20.600569] [debug] valor el evento recibido por webhook: payment.add - -[2025-06-11 17:04:20.600626] [debug] Valor de JSON: {"uuid":"46a1d567-5dc6-47a8-b3a8-0b9566f55fd3","changeType":"insert","entity":"payment","entityId":"648","eventName":"payment.add","extraData":{"entity":{"id":648,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T11:04:17-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":754,"invoiceId":2064,"paymentId":648,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-11 17:04:20.600769] [debug] Notification encodificado en JSON:{"uuid":"46a1d567-5dc6-47a8-b3a8-0b9566f55fd3","changeType":"insert","entity":"payment","entityId":648,"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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"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":648,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T11:04:17-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":754,"invoiceId":2064,"paymentId":648,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":null,"attributes":[]}} - -[2025-06-11 17:04:20.600802] [debug] valor del payment data: {"id":648,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T11:04:17-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":754,"invoiceId":2064,"paymentId":648,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":null,"attributes":[]} - -[2025-06-11 17:04:20.600845] [info] {"WhatsApp":["5214181148783"]} -[2025-06-11 17:04:20.600857] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-11 17:04:20.600867] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-11 17:04:20.600886] [debug] ***Se notifica y actualiza al cliente sobre su pago*** - -Eviando comprobante de pago al cliente: 2 con número: 5214181148783 - -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 - -El archivo PNG se ha generado correctamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.png - -Subiendo comprobante a worpdpress - -file_to_upload: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.png - -Conexión FTP exitosa - -El archivo ha sido cargado exitosamente. - -La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas.png - -No se pudo obtener la lista de archivos de la carpeta FTP - -Se terminó de subir comprobante a wordpress - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "document", - "content": { - "text": "S/M", - "url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas.png" - }, - "template_values": ["Daniel Humberto Soto Villegas", "$300", "$0 está al corriente"], - "template_uuid": "57ead79cebd14902921477922403093b", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"3128f02727d44babacf33de6918898de","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":"46a1d567-5dc6-47a8-b3a8-0b9566f55fd3","changeType":"insert","entity":"payment","entityId":648,"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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"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":[],"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":648,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T11:04:17-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":754,"invoiceId":2064,"paymentId":648,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":null,"attributes":[]}} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":648,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T11:04:17-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":754,"invoiceId":2064,"paymentId":648,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":null,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11\/06\/2025 11:04 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"11\/06\/2025 11:04\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 11\/06\/2025 11:04 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 11\/06\/2025 11:04","Clabe Interbancaria":null,"Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲0 está al corriente","Monto Ultimo Pago": "$ 300","Estado": "Activo","Fecha Ultimo Pago": " 11/06/2025 11:04 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "11/06/2025 11:04","Clabe Interbancaria": "","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 11/06/2025 11:04 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 11:04","Monto Ultimo Pago":"💲 300","Saldo Actual":"💲0 está al corriente","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 11:04 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 11:04\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 11/06/2025 11:04 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 11:04","Monto Ultimo Pago":"💲 300","Saldo Actual":"💲0 está al corriente","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 11:04 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 11:04\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-11 17:04:26.907177] [notice] Logging level set to:debug -[2025-06-11 17:04:26.907311] [debug] valor del webhook: {"uuid":"504cb5fa-17bd-42cf-87e6-a720329bc2a1","changeType":"edit","entity":"payment","entityId":"648","eventName":"payment.edit","extraData":{"entity":{"id":648,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T11:04:17-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":754,"invoiceId":2064,"paymentId":648,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":648,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T11:04:17-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":754,"invoiceId":2064,"paymentId":648,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":null,"attributes":[]}}} - -[2025-06-11 17:04:27.025320] [debug] valor el evento recibido por webhook: payment.edit - -[2025-06-11 17:04:27.025379] [debug] Valor de JSON: {"uuid":"504cb5fa-17bd-42cf-87e6-a720329bc2a1","changeType":"edit","entity":"payment","entityId":"648","eventName":"payment.edit","extraData":{"entity":{"id":648,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T11:04:17-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":754,"invoiceId":2064,"paymentId":648,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":648,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T11:04:17-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":754,"invoiceId":2064,"paymentId":648,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":null,"attributes":[]}}} - -[2025-06-11 17:05:20.030153] [notice] Logging level set to:debug -[2025-06-11 17:05:20.030577] [debug] valor del webhook: {"uuid":"b0f41812-6e47-44a8-9114-29f5f6d0d4bd","changeType":"insert","entity":"payment","entityId":"649","eventName":"payment.add","extraData":{"entity":{"id":649,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T11:05:19-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":100,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-11 17:05:20.192955] [debug] valor el evento recibido por webhook: payment.add - -[2025-06-11 17:05:20.193151] [debug] Valor de JSON: {"uuid":"b0f41812-6e47-44a8-9114-29f5f6d0d4bd","changeType":"insert","entity":"payment","entityId":"649","eventName":"payment.add","extraData":{"entity":{"id":649,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T11:05:19-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":100,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-06-11 17:05:20.193484] [debug] Notification encodificado en JSON:{"uuid":"b0f41812-6e47-44a8-9114-29f5f6d0d4bd","changeType":"insert","entity":"payment","entityId":649,"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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":100,"accountCredit":100,"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":649,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T11:05:19-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":100,"userId":null,"attributes":[]}} - -[2025-06-11 17:05:20.193561] [debug] valor del payment data: {"id":649,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T11:05:19-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":100,"userId":null,"attributes":[]} - -[2025-06-11 17:05:20.193675] [info] {"WhatsApp":["5214181148783"]} -[2025-06-11 17:05:20.193717] [info] Procesando tipo de contacto original: 'WhatsApp' -[2025-06-11 17:05:20.193754] [info] Tipo de contacto normalizado: 'whatsapp' -[2025-06-11 17:05:20.193811] [debug] ***Se notifica y actualiza al cliente sobre su pago*** - -Eviando comprobante de pago al cliente: 2 con número: 5214181148783 - -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 - -El archivo PNG se ha generado correctamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.png - -Subiendo comprobante a worpdpress - -file_to_upload: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.png - -Conexión FTP exitosa - -El archivo ha sido cargado exitosamente. - -La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas.png - -No se pudo obtener la lista de archivos de la carpeta FTP - -Se terminó de subir comprobante a wordpress - -La cadena CURL que se envia es: { - "to": "5214181148783", - "from": "whatsapp", - "type": "document", - "content": { - "text": "S/M", - "url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas.png" - }, - "template_values": ["Daniel Humberto Soto Villegas", "$100", "$100 a favor"], - "template_uuid": "57ead79cebd14902921477922403093b", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"f54c54d9b1e94ef7ad16ac25a16e00ef","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":"b0f41812-6e47-44a8-9114-29f5f6d0d4bd","changeType":"insert","entity":"payment","entityId":649,"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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":100,"accountCredit":100,"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":649,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T11:05:19-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":100,"userId":null,"attributes":[]}} - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":649,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T11:05:19-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":100,"userId":null,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas - -UUID: 7352b597ba6b43cf948a5ae86051fb80 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2100 a favor","Monto Ultimo Pago":"\ud83d\udcb2 100","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2100 a favor\",\"Monto Ultimo Pago\": \"$ 100\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11\/06\/2025 11:05 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"11\/06\/2025 11:05\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 11\/06\/2025 11:05 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 11\/06\/2025 11:05","Clabe Interbancaria":null,"Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24"}} - -JSON con los datos a actualizar del resumen: {"Cliente": "2","Domicilio": ""Nombre": "Daniel Humberto Soto Villegas","URL": "https://sistema.siip.mx/crm/client/2","Saldo Actual": "💲100 a favor","Monto Ultimo Pago": "$ 100","Estado": "Activo","Fecha Ultimo Pago": " 11/06/2025 11:05 con Tarjeta de crédito Stripe 💳","Fecha Ultima Actualizacion": "11/06/2025 11:05","Clabe Interbancaria": "","Site": "0LOCS","Antena/Sectorial": "Sectorial-4b 172.16.13.16/24"} - -Response Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 11/06/2025 11:05 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 11:05","Monto Ultimo Pago":"💲 100","Saldo Actual":"💲100 a favor","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲100 a favor\",\"Monto Ultimo Pago\": \"$ 100\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 11:05 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 11:05\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -Response 2 Patch CallBell: {"contact":{"uuid":"7352b597ba6b43cf948a5ae86051fb80","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181148783","avatarUrl":null,"createdAt":"2024-12-21T08:59:58Z","closedAt":"2025-05-25T03:21:17Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7352b597ba6b43cf948a5ae86051fb80","conversationHref":"https://dash.callbell.eu/chat/dbc992bbb1bf43f98cd954231d006797","tags":["ePA","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Cliente":"2","URL":"🌐 https://sistema.siip.mx/crm/client/2","Clabe Interbancaria":"0021804341999569810","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 11/06/2025 11:05 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Daniel Humberto Soto Villegas","user name":"Soporte Técnico Danys","Fecha Ultima Actualizacion":"📆🔄️ 11/06/2025 11:05","Monto Ultimo Pago":"💲 100","Saldo Actual":"💲100 a favor","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲100 a favor\",\"Monto Ultimo Pago\": \"$ 100\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 11/06/2025 11:05 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"11/06/2025 11:05\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":7,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} - -[2025-06-11 17:05:26.972425] [notice] Logging level set to:debug -[2025-06-11 17:05:26.972676] [debug] valor del webhook: {"uuid":"6b37ee0f-0acc-40a4-b019-b9fa91c9881e","changeType":"edit","entity":"payment","entityId":"649","eventName":"payment.edit","extraData":{"entity":{"id":649,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T11:05:19-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":100,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":649,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T11:05:19-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":100,"userId":null,"attributes":[]}}} - -[2025-06-11 17:05:27.125505] [debug] valor el evento recibido por webhook: payment.edit - -[2025-06-11 17:05:27.125572] [debug] Valor de JSON: {"uuid":"6b37ee0f-0acc-40a4-b019-b9fa91c9881e","changeType":"edit","entity":"payment","entityId":"649","eventName":"payment.edit","extraData":{"entity":{"id":649,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T11:05:19-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":100,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":649,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-06-11T11:05:19-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":100,"userId":null,"attributes":[]}}} +[2025-07-31 17:14:27.603370] [debug] Valor de JSON: {"uuid":"642e0442-e9c5-4485-b2b4-ebcc6acc51a1","changeType":"edit","entity":"payment","entityId":"674","eventName":"payment.edit","extraData":{"entity":{"id":674,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-31T11:14:26-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":674,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-07-31T11:14:26-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]}}} diff --git a/manifest.json b/manifest.json index ce83f690..fb0717ef 100755 --- a/manifest.json +++ b/manifest.json @@ -5,7 +5,7 @@ "displayName": "SIIP - Procesador de Pagos en línea con Stripe, Oxxo y Transferencia, Sincronizador de CallBell y Envío de Notificaciones y comprobantes vía WhatsApp", "description": "Este plugin sincroniza los clientes del sistema UISP CRM con los contactos de WhatsApp en CallBell, además procesa pagos de Stripe como las trasferencias bancarias y genera referencias de pago vía OXXO, además envía comprobantes de pago en formato imagen PNG o texto vía Whatsapp a los clientes", "url": "https://siip.mx/", - "version": "2.8.8", + "version": "2.9.0", "unmsVersionCompliancy": { "min": "2.1.0", "max": null @@ -23,10 +23,17 @@ { "key": "apitoken", "label": "Token de la API UCRM", - "description": "Token de autenticación para el uso de la API del sistema UISP UCRM. Contiene 36 caracteres, ejemplo: 3d3fa6c9-e268-6e8b-b4d5-aae394d99d7d", + "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", @@ -37,17 +44,10 @@ { "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. ", + "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": "unmsApiToken", - "label": "Token de la API UNMS", - "description": "Token API creado para este plugin en la seccion Network de UNMS, solo necesario cuando se utiliza UNMS v1", - "required": 0, - "type": "text" - }, { "key": "hostServerFTP", "label": "IP o dominio del servidor FTP", @@ -58,14 +58,28 @@ { "key": "usernameServerFTP", "label": "Usuario FTP", - "description": "Nombre de usuario para inicio de sesión el servidor 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", + "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": "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" }, diff --git a/src/Facade/AbstractMessageNotifierFacade.php b/src/Facade/AbstractMessageNotifierFacade.php index 62adf053..a01efa8d 100755 --- a/src/Facade/AbstractMessageNotifierFacade.php +++ b/src/Facade/AbstractMessageNotifierFacade.php @@ -366,6 +366,17 @@ abstract class AbstractMessageNotifierFacade $responseClients = $clientGuzzleHttp->request('GET', "clients/" . $clientId); $arrayClientCRM = json_decode($responseClients->getBody()->getContents(), true); // $this->logger->debug('Valor de $arrayClientCRM en verifyJobActionToDo: ' . json_encode($arrayClientCRM) . PHP_EOL); + //ejemplo de $arrayClientCRM: {"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 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","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":null,"isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"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},{"id":200,"clientId":2,"customAttributeId":14,"name":"Chat de CallBell","key":"chatDeCallbell","value":"https","clientZoneVisible":false},{"id":202,"clientId":2,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-200,"accountCredit":100,"accountOutstanding":300,"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} + + //buscar en los attributes del cliente el atributo de con la key "passwordAntenaCliente" y almacenar su valor en la variable $passwordAntenaClienteCRM + $passwordAntenaClienteCRM = ''; + foreach ($arrayClientCRM['attributes'] as $attribute) { + if ($attribute['key'] === 'passwordAntenaCliente') { + $passwordAntenaClienteCRM = $attribute['value']; + $this->logger->debug('Valor de $passwordAntenaClienteCRM en verifyJobActionToDo: ' . $passwordAntenaClienteCRM . PHP_EOL); + break; + } + } $clientFullName = sprintf("%s %s", $arrayClientCRM['firstName'], $arrayClientCRM['lastName']); @@ -596,6 +607,23 @@ abstract class AbstractMessageNotifierFacade "gmapsLocation" => $googleMapsUrl, ]; + + //obtener la contraseña de la antena con el método getVaultCredentialsByClientId y compararlo con el campo de la contraseña de la antena en el CRM + $passwordVault = $this->getVaultCredentialsByClientId($arrayClientCRM['id']); + + // Validar si la contraseña de la antena del cliente en el CRM es igual a la contraseña de la antena del cliente en el Vault + if ($passwordAntenaClienteCRM === $passwordVault) { + $this->logger->debug('La contraseña de la antena del cliente en el CRM + es igual a la contraseña de la antena del cliente en el Vault.' . PHP_EOL); + $jsonInstallerJobNotificationData['passwordAntenaCliente'] = $passwordAntenaClienteCRM; + } else { + $this->logger->debug('La contraseña de la antena del cliente en el CRM + no es igual a la contraseña de la antena del cliente en el Vault.' . PHP_EOL); + $jsonInstallerJobNotificationData['passwordAntenaCliente'] = $passwordVault; + } + + + //Enviar notificación al instalador nuevo $attempts = 0; @@ -1596,15 +1624,16 @@ abstract class AbstractMessageNotifierFacade $configManager = \Ubnt\UcrmPluginSdk\Service\PluginConfigManager::create(); $config = $configManager->loadConfig(); - $ucrmBaseUri = $config['ipserver']; - $authToken = $config['apitoken']; + $ipServer = $config['ipserver']; + $ucrmToken = $config['apitoken']; + $unmsToken = $config['unmsApiToken']; - if ($ucrmBaseUri === '172.16.5.134') { //opción solo para el servidor de pruebas + if ($ipServer === '172.16.5.134') { //opción solo para el servidor de pruebas return 'gYAIEK:Be}SK*01z5+/V'; } - $unmsBaseUri = 'https://' . $ucrmBaseUri . '/nms/api/v2.1/'; - $ucrmBaseUri = 'https://' . $ucrmBaseUri . '/crm/api/v1.0/'; + $unmsBaseUri = 'https://' . $ipServer . '/nms/api/v2.1/'; + $ucrmBaseUri = 'https://' . $ipServer . '/crm/api/v1.0/'; //$authToken = '7adc9198-50b1-41d0-9bfa-d4946902ed89'; // Crear una instancia del cliente Guzzle @@ -1619,14 +1648,14 @@ abstract class AbstractMessageNotifierFacade ]); - $this->logger->info('Consulta por ID: ' . $clientId . PHP_EOL); + $this->logger->debug('Consulta por ID: ' . $clientId . PHP_EOL); try { //Obtener id del sitio por medio del servicio $responseServices = $clientUcrm->get('clients/services?clientId=' . $clientId, [ 'headers' => [ - 'X-Auth-Token' => $authToken, + 'X-Auth-Token' => $ucrmToken, 'Content-Type: application/json', ], ]); @@ -1640,7 +1669,7 @@ abstract class AbstractMessageNotifierFacade //si el statusCode es 404 significa que no se encontró el cliente if ($statusCode == 404) { $this->logger->error('No se encontró el cliente con el ID proporcionado: ' . $clientId . PHP_EOL); - return 'Error: No se encontró el cliente con el ID proporcionado: ' . $clientId; // Return early if the client is not found + return 'No se encontró el cliente con el ID proporcionado: ' . $clientId; // Return early if the client is not found } return 'Error: ' . $reason; // Return early if the request fails @@ -1659,7 +1688,7 @@ abstract class AbstractMessageNotifierFacade $unmsSiteID = $dataServices[0]['unmsClientSiteId']; // Example: 9c6798f3-0254-4e5b-bc3b-9da82fe16e46 } else { $this->logger->error('No se encontraron servicios para el cliente proporcionado: ' . $clientId . PHP_EOL); - return "Error: No se encontraron servicios para el cliente proporcionado: " . $clientId; // Return early if no services are found + return "No se encontraron servicios para el cliente proporcionado: " . $clientId; // Return early if no services are found } } else { @@ -1670,7 +1699,7 @@ abstract class AbstractMessageNotifierFacade try { $responseDevicesBySite = $clientUnms->request('GET', 'devices?siteId=' . $unmsSiteID, [ 'headers' => [ - 'X-Auth-Token' => $authToken, + 'X-Auth-Token' => $unmsToken, ], ]); } catch (RequestException $requestException) { @@ -1681,8 +1710,8 @@ abstract class AbstractMessageNotifierFacade $reason = $response->getReasonPhrase(); //si el statusCode es 404 significa que no se encontró el cliente if ($statusCode == 404) { - $this->logger->error('No se encontró el devicie con el ID proporcionado: ' . $clientId . PHP_EOL); - return 'Error: No se encontró el devicie con el ID proporcionado: ' . $clientId; // Return early if the client is not found + $this->logger->error('No se encontró el device con el ID proporcionado: ' . $clientId . PHP_EOL); + return 'No se encontró el device con el ID proporcionado: ' . $clientId; // Return early if the client is not found } $this->logger->error('Error: ' . $reason . PHP_EOL); return 'Error: ' . $reason; // Return early if the request fails @@ -1713,7 +1742,7 @@ abstract class AbstractMessageNotifierFacade } else { $this->logger->error('No se encontraron dispositivos para el sitio proporcionado: ' . $unmsSiteID . PHP_EOL); - return "Error: No se encontraron dispositivos para el sitio proporcionado."; // Return early if no devices are found + return "No se encontraron dispositivos para el sitio proporcionado."; // Return early if no devices are found } } else { @@ -1724,7 +1753,7 @@ abstract class AbstractMessageNotifierFacade try { $responseDevicesBySite = $clientUnms->request('GET', 'devices/' . $deviceID, [ 'headers' => [ - 'X-Auth-Token' => $authToken, + 'X-Auth-Token' => $unmsToken, ], ]); } catch (RequestException $requestException) { @@ -1736,7 +1765,7 @@ abstract class AbstractMessageNotifierFacade //si el statusCode es 404 significa que no se encontró el cliente if ($statusCode == 404) { $this->logger->error('No se encontró el device con el ID proporcionado: ' . $clientId . PHP_EOL); - return 'Error: No se encontró el device con el ID proporcionado: ' . $clientId; // Return early if the client is not found + return 'No se encontró el dispositivo de red con el ID proporcionado: ' . $clientId; // Return early if the client is not found } return 'Error: ' . $reason; // Return early if the request fails @@ -1757,7 +1786,7 @@ abstract class AbstractMessageNotifierFacade //print_r('ID del device al que está conectado el cliente: ' . $idDevice . PHP_EOL); $responsePasswordVault = $clientUnms->request('GET', 'vault/' . $idClientDevice . '/credentials', [ 'headers' => [ - 'X-Auth-Token' => $authToken, + 'X-Auth-Token' => $unmsToken, ], ]); } catch (RequestException $requestException) { @@ -1769,7 +1798,7 @@ abstract class AbstractMessageNotifierFacade //si el statusCode es 404 significa que no se encontró el cliente if ($statusCode == 404) { $this->logger->error('No se encontró el device con el ID proporcionado: ' . $clientId . PHP_EOL); - return 'Error: No se encontró el device con el ID proporcionado: ' . $clientId; // Return early if the client is not found + return 'No se encontró el dispositivo de red con el ID proporcionado: ' . $clientId; // Return early if the client is not found } $this->logger->error('Error: ' . $reason . PHP_EOL); return 'Error: ' . $reason; // Return early if the request fails @@ -1788,7 +1817,7 @@ abstract class AbstractMessageNotifierFacade return $passwordVault; } else { $this->logger->error('No se encontró una contraseña en la bóveda para la antena de este cliente, es altamente probable que conserve una contraseña conocida.' . PHP_EOL); - return "Error: No se encontró una contraseña en la bóveda para la antena de este cliente, es altamente probable que conserve una contraseña conocida."; // Return early if the password is not found + return "No se encontró una contraseña en la bóveda para la antena de este cliente, es altamente probable que conserve una contraseña conocida."; // Return early if the password is not found } } else { @@ -1798,7 +1827,7 @@ abstract class AbstractMessageNotifierFacade } else { $this->logger->error('Falla en la solicitud. Código de estado HTTP: ' . $responseDevicesBySite->getStatusCode() . PHP_EOL); - return 'Error: Falla en la solicitud. Código de estado HTTP: ' . $responseDevicesBySite->getStatusCode(); // Return early if the request fails + return 'Error: Falla en la solicitud. Código de estado HTTP: ' . $responseDevicesBySite->getStatusCode(); // Return early if the request fails } diff --git a/src/Facade/AbstractOxxoOperationsFacade.php b/src/Facade/AbstractOxxoOperationsFacade.php index 2f89f345..29080fe6 100755 --- a/src/Facade/AbstractOxxoOperationsFacade.php +++ b/src/Facade/AbstractOxxoOperationsFacade.php @@ -13,7 +13,6 @@ use GuzzleHttp\Exception\RequestException; use Ubnt\UcrmPluginSdk\Service\UcrmApi; use Ubnt\UcrmPluginSdk\Service\PluginConfigManager; use Ubnt\UcrmPluginSdk\Service\PluginLogManager; -use Dompdf\Dompdf; /* @@ -180,14 +179,18 @@ abstract class AbstractOxxoOperationsFacade if ($amount === null) { $amount = abs($arrayClientCRM['accountOutstanding']); //Monto adeudado del cliente } else { - $this->logger->info("Monto proporcionado directamente: $amount " . PHP_EOL); + //la variable $amount debe ser numérica pero en ocasiones la solicitud puede traer signos o alguna letra ingresada mal por el cliente, se debe analizar para limpiar cualquier caracter que no sea numérico + if(!is_numeric($amount)) { + $amount = preg_replace('/[^\d.]/', '', $amount); // Eliminar todo lo que no sea dígito o punto decimal + } + $this->logger->debug("Monto proporcionado directamente: $amount " . PHP_EOL); } if ($amount > 10) { $amountInCents = intval($amount * 100); // Convertir a centavos try { - $this->logger->info("Creando referencia en Stripe por $amount para el cliente $stripeCustomerId" . PHP_EOL); + $this->logger->debug("Creando referencia en Stripe por $amount para el cliente $stripeCustomerId" . PHP_EOL); $guzzleClient = new Client([ 'timeout' => 5, // Timeout de 5 segundos ]); diff --git a/src/Facade/AbstractStripeOperationsFacade.php b/src/Facade/AbstractStripeOperationsFacade.php index 91e6bd5d..e83882da 100755 --- a/src/Facade/AbstractStripeOperationsFacade.php +++ b/src/Facade/AbstractStripeOperationsFacade.php @@ -58,14 +58,12 @@ abstract class AbstractStripeOperationsFacade */ public function createPaymentIntent($event_json) { - // if ($event_json['data']['object']['type'] != 'funded') { - // return; - // } - // $this->logger->info("Evento recibido: " . json_encode($event_json) . PHP_EOL); + $this->logger->info("Iniciando creación de PaymentIntent en Stripe." . PHP_EOL); $configManager = \Ubnt\UcrmPluginSdk\Service\PluginConfigManager::create(); $config = $configManager->loadConfig(); $StripeToken = $config['tokenstripe']; + $idPaymentAdmin = $config['idPaymentAdminCRM']; //ID del administrador que crea el PaymentIntent $stripe = new \Stripe\StripeClient($StripeToken); //Token de clave privada para la API de Stripe // Asegurarse de que 'customer' esté presente en la estructura del evento @@ -85,13 +83,23 @@ abstract class AbstractStripeOperationsFacade $this->logger->info("Error: net_amount not found in event data." . PHP_EOL); return; } - + $amount = $event_json['data']['object']['net_amount']; + //convertir en positivo + if ($event_json['data']['object']['net_amount'] < 0) { + $this->logger->warning("Error: net_amount es negativo." . PHP_EOL); + return; + + } + + + //imprimir la cantidad del PaymentIntent + $this->logger->info("Cantidad del PaymentIntent: " . $amount . PHP_EOL); try { // Obtener información del cliente desde Stripe $stripeQuery = $stripe->customers->retrieve($customerId, []); - $UCRM_clientID = $stripeQuery['metadata']['ucrm_client_id']; + $UCRM_clientID = $stripeQuery['metadata']['ucrm_client_id']; // ID del cliente en Ubiquiti UISP // Obtener información del administrador actual $this->ucrmApi = UcrmApi::create(); @@ -115,7 +123,7 @@ abstract class AbstractStripeOperationsFacade 'clientId' => $UCRM_clientID, // ID del cliente en Ubiquiti 'createdBy' => 'UCRM', 'paymentType' => 'card.one_time', - 'signedInAdminId' => $currentUserAdmin[0]['id'], + 'signedInAdminId' => $idPaymentAdmin, // ID del administrador que crea el PaymentIntent 'tipoPago' => 'Transferencia Bancaria' ], ]); diff --git a/src/Plugin.php b/src/Plugin.php index 8d8d1b02..1863b9ef 100755 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -128,9 +128,22 @@ class Plugin if ($jsonData) { switch ($jsonData['type']) { case 'customer_cash_balance_transaction.created': - $this->logger->info('Evento de transfencia al cliente encontrado: ' . json_encode($jsonData) . PHP_EOL); - if ($jsonData['data']['object']['type'] === 'funded' || $jsonData['data']['object']['type'] === 'applied_to_payment') { + if ($jsonData['data']['object']['type'] === 'funded') { + $this->logger->info('Evento de transferencia de un cliente recibido: ' . json_encode($jsonData) . PHP_EOL); $this->pluginNotifierFacade->createPaymentIntent($jsonData); + + } + + if ($jsonData['data']['object']['type'] === 'applied_to_payment') { + $this->logger->info('Se aplicó el saldo en Stripe de un pago: ' . json_encode($jsonData) . PHP_EOL); + + }elseif ($jsonData['data']['object']['type'] === 'unapplied_from_payment'){ + //ejemplo de json para transferencia de dinero cancelada: {"id":"evt_1RlEGgEFY1WEUtgR6Bp2DzDP","object":"event","api_version":"2023-10-16","created":1752606717,"data":{"object":{"id":"ccsbtxn_1RlEGfEFY1WEUtgRv8jAUGmE","object":"customer_cash_balance_transaction","created":1752606717,"currency":"mxn","customer":"cus_PetN1dhr4rx0kX","ending_balance":18000,"livemode":false,"net_amount":18000,"type":"unapplied_from_payment","unapplied_from_payment":{"payment_intent":"pi_3RlDPdEFY1WEUtgR1JBgNhTQ"}}},"livemode":false,"pending_webhooks":2,"request":{"id":"req_954mskVBfAI0jn","idempotency_key":"749518f6-baa0-4ae9-99e4-8029a35719aa"},"type":"customer_cash_balance_transaction.created"} + $paymentIntentId = $jsonData['data']['object']['unapplied_from_payment']['payment_intent']; + //Se canceló una transferencia de dinero, imprimir que se canceló y además el monto neto + $this->logger->warning('Evento de transferencia cancelada para el pago: ' . $paymentIntentId . PHP_EOL); + $this->logger->warning('Monto neto de la transferencia cancelada: ' . $jsonData['data']['object']['net_amount'] . PHP_EOL); + } break; case 'payout.failed': @@ -144,7 +157,10 @@ class Plugin $this->logger->info('Detalles del evento: ' . json_encode($jsonData)); break; case 'inbound_payment.payment_attempt': - //$this->logger->info('Evento de Pago de OXXO recibido: '. json_encode($jsonData) . PHP_EOL); + //$this->logger->info('Evento de Pago de OXXO recibido: ' . json_encode($jsonData) . PHP_EOL); + break; + case 'cash_balance.funds_available': + $this->logger->info('Evento de Pago de fondos disponibles recibido: ' . json_encode($jsonData) . PHP_EOL); break; case 'energy.alert': $this->logger->info('Evento de Energía recibido: ' . $jsonData['message'] . PHP_EOL); @@ -155,7 +171,7 @@ class Plugin // Construir la URL basada en el "client_id" // $url = "https://siip.mx/wp/wp-content/uploads/img/voucher.png"; if (! empty($jsonData['amount'])) { - $this->logger->info('Referencia persnoalizada, Valor del monto: ' . $jsonData['amount'] . PHP_EOL); + $this->logger->info('Referencia personalizada, Valor del monto: ' . $jsonData['amount'] . PHP_EOL); $intentos = 0; do { // if ($intentos > 1) { diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 52ae9e5d..5df714ac 100755 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -5,7 +5,7 @@ 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => '8d8a1ec64831255d9841b3db558e14f4224d41fb', + 'reference' => 'c9e2466353fb8267004cbfadeba945609396a346', 'name' => 'ucrm-plugins/sms-twilio', 'dev' => false, ), @@ -307,7 +307,7 @@ 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => '8d8a1ec64831255d9841b3db558e14f4224d41fb', + 'reference' => 'c9e2466353fb8267004cbfadeba945609396a346', 'dev_requirement' => false, ), ),