diff --git a/README.md b/README.md index 231e109c..14f1697d 100755 --- a/README.md +++ b/README.md @@ -4,6 +4,10 @@ Este plugin sincroniza los clientes del sitema UISP CRM con los contactos de Wha # REGISTRO DE CAMBIOS +## VERSIÓN 2.9.2 +### 🟡 Bugs Resueltos +1️⃣ Se solucionó un bug que impedía obtener la contraseñas de la bóveda, ya que el response de la API cambió en la última actualización y la esstructura nueva impedía acceder al dato del password + ## VERSIÓN 2.8.8 ### 🟡 Bugs Resueltos 1️⃣ Se solucionó un bug que impedía al BOT del CallBell mostrar el monto de la referencia de OXXO en el mensaje donde se le entrega el voucher al cliente, para el caso donde el cliente elegía crear su referencia con la CANTIDAD TOTAL. diff --git a/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.pdf b/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.pdf deleted file mode 100755 index 4aa90fc5..00000000 Binary files a/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.pdf and /dev/null differ diff --git a/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.png b/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.png deleted file mode 100755 index 3a1e4c7b..00000000 Binary files a/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.png and /dev/null differ diff --git a/data/config.json b/data/config.json index 4952edb4..a7427035 100755 --- a/data/config.json +++ b/data/config.json @@ -1 +1 @@ -{"ipserver":"172.16.5.134","apitoken":"gvcnIJqXdUjneVSjhl6THLlQcYXJyIFCcwHKVba2bvIrNraanCTb5VeoWuJ0TFZ9","unmsApiToken":"079c28f5-888c-457d-bd7a-0a4202590f75","tokencallbell":"g8thcZkXGd3xBj2g3TtYNYFMH1fuesbJ.b6a940ea7d78cf6c9e42f067b21c8ddf96e9fa2a9e307bfd0c7c7c4d7fa38f79","tokenstripe":"sk_test_51OkG0REFY1WEUtgRH6UxBK5pu80Aq5Iy8EcdPnf0cOWzuVLQTpyLCd7CbPzqMsWMafZOHElCxhEHF7g8boURjWlJ00tBwE0W1M","hostServerFTP":"siip.mx","usernameServerFTP":"siip0001","passServerFTP":"$spGiT,[wa)n","ipPuppeteer":"172.16.5.134","portPuppeteer":"3000","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 +{"ipserver":"172.16.5.134","apitoken":"gvcnIJqXdUjneVSjhl6THLlQcYXJyIFCcwHKVba2bvIrNraanCTb5VeoWuJ0TFZ9","unmsApiToken":"079c28f5-888c-457d-bd7a-0a4202590f75","tokencallbell":"g8thcZkXGd3xBj2g3TtYNYFMH1fuesbJ.b6a940ea7d78cf6c9e42f067b21c8ddf96e9fa2a9e307bfd0c7c7c4d7fa38f79","tokenstripe":"sk_test_51OkG0REFY1WEUtgRH6UxBK5pu80Aq5Iy8EcdPnf0cOWzuVLQTpyLCd7CbPzqMsWMafZOHElCxhEHF7g8boURjWlJ00tBwE0W1M","hostServerFTP":"siip.mx","usernameServerFTP":"siip0001","passServerFTP":"$spGiT,[wa)n","ipPuppeteer":"172.16.5.134","portPuppeteer":"3000","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":true,"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 6ba8ab42..07fdcc14 100755 --- a/data/plugin.log +++ b/data/plugin.log @@ -1,2639 +1,143 @@ -[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-10-15 21:32:44.957983] [notice] Logging level set to:debug +[2025-10-15 21:32:44.958095] [debug] valor del webhook: {"uuid":"9ec8662c-5162-4b74-9db5-515a08305139","changeType":"insert","entity":"payment","entityId":"681","eventName":"payment.add","extraData":{"entity":{"id":681,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-10-15T15:32:40-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":1015,"attributes":[]},"entityBeforeEdit":null}} -[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-10-15 21:32:45.210369] [debug] valor el evento recibido por webhook: payment.add -[2025-07-17 20:22:59.478566] [info] Iniciando creación de PaymentIntent en Stripe. +[2025-10-15 21:32:45.210521] [debug] Valor de JSON: {"uuid":"9ec8662c-5162-4b74-9db5-515a08305139","changeType":"insert","entity":"payment","entityId":"681","eventName":"payment.add","extraData":{"entity":{"id":681,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-10-15T15:32:40-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":1015,"attributes":[]},"entityBeforeEdit":null}} -[2025-07-17 20:22:59.480979] [info] Cantidad del PaymentIntent: 25000 +[2025-10-15 21:32:45.210860] [debug] Notification encodificado en JSON:{"uuid":"9ec8662c-5162-4b74-9db5-515a08305139","changeType":"insert","entity":"payment","entityId":681,"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":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true},{"id":178,"clientId":2,"customAttributeId":15,"name":"Site","key":"site","value":"0LOCS","clientZoneVisible":false},{"id":179,"clientId":2,"customAttributeId":16,"name":"Antena\/Sectorial","key":"antenaSectorial","value":"Sectorial-4b 172.16.13.16\/24","clientZoneVisible":false},{"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":300,"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":681,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-10-15T15:32:40-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":1015,"attributes":[]}} -[2025-07-17 20:23:01.540266] [info] PaymentIntent creado: pi_3RlyKWEFY1WEUtgR1S7FKHQD +[2025-10-15 21:32:45.210941] [debug] valor del payment data: {"id":681,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-10-15T15:32:40-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":1015,"attributes":[]} -[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-10-15 21:32:45.211035] [info] {"WhatsApp":["5214181878106"]} +[2025-10-15 21:32:45.211076] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-10-15 21:32:45.211113] [info] Tipo de contacto normalizado: 'whatsapp' +[2025-10-15 21:32:45.211162] [debug] ***Se notifica y actualiza al cliente sobre su pago*** -[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-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-07-17 20:23:03.776177] [debug] valor el evento recibido por webhook: payment.add - -[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-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-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-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 +Eviando comprobante de pago al cliente: 2 con número: 5214181878106 El archivo PDF se ha descargado y guardado correctamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.pdf El archivo PDF es válido y tiene contenido: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.pdf -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-10-15 21:32:45.868705] [notice] Logging level set to:debug +[2025-10-15 21:32:45.868777] [debug] valor del webhook: {"uuid":"d9203e0c-874d-43bf-8ac6-3adee0f5b759","changeType":"edit","entity":"payment","entityId":"681","eventName":"payment.edit","extraData":{"entity":{"id":681,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-10-15T15:32:40-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":681,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-10-15T15:32:40-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":1015,"attributes":[]}}} -Subiendo comprobante a worpdpress +[2025-10-15 21:32:46.051702] [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-10-15 21:32:46.051843] [debug] Valor de JSON: {"uuid":"d9203e0c-874d-43bf-8ac6-3adee0f5b759","changeType":"edit","entity":"payment","entityId":"681","eventName":"payment.edit","extraData":{"entity":{"id":681,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-10-15T15:32:40-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":681,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-10-15T15:32:40-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":1015,"attributes":[]}}} -Conexión FTP exitosa +[2025-10-15 21:39:59.741060] [notice] Logging level set to:debug +[2025-10-15 21:39:59.741245] [debug] valor del webhook: {"uuid":"7e21515a-ee8d-4d1e-a287-9f8fbd133281","changeType":"insert","entity":"payment","entityId":"682","eventName":"payment.add","extraData":{"entity":{"id":682,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-10-15T15:39:40-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":1015,"attributes":[]},"entityBeforeEdit":null}} -El archivo ha sido cargado exitosamente. +[2025-10-15 21:39:59.974107] [debug] valor el evento recibido por webhook: payment.add -La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas.png +[2025-10-15 21:39:59.974159] [debug] Valor de JSON: {"uuid":"7e21515a-ee8d-4d1e-a287-9f8fbd133281","changeType":"insert","entity":"payment","entityId":"682","eventName":"payment.add","extraData":{"entity":{"id":682,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-10-15T15:39:40-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":1015,"attributes":[]},"entityBeforeEdit":null}} -No se pudo obtener la lista de archivos de la carpeta FTP +[2025-10-15 21:39:59.974397] [debug] Notification encodificado en JSON:{"uuid":"7e21515a-ee8d-4d1e-a287-9f8fbd133281","changeType":"insert","entity":"payment","entityId":682,"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":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true},{"id":178,"clientId":2,"customAttributeId":15,"name":"Site","key":"site","value":"0LOCS","clientZoneVisible":false},{"id":179,"clientId":2,"customAttributeId":16,"name":"Antena\/Sectorial","key":"antenaSectorial","value":"Sectorial-4b 172.16.13.16\/24","clientZoneVisible":false},{"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":600,"accountCredit":600,"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":682,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-10-15T15:39:40-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":1015,"attributes":[]}} -Se terminó de subir comprobante a wordpress +[2025-10-15 21:39:59.974432] [debug] valor del payment data: {"id":682,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-10-15T15:39:40-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":1015,"attributes":[]} + +[2025-10-15 21:39:59.974507] [info] {"WhatsApp":["5214181878106"]} +[2025-10-15 21:39:59.974519] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-10-15 21:39:59.974529] [info] Tipo de contacto normalizado: 'whatsapp' +[2025-10-15 21:39:59.974549] [debug] ***Se notifica y actualiza al cliente sobre su pago*** + +[2025-10-15 21:39:59.974744] [debug] Activado el check de mensajes de texto: 1 + +Eviando comprobante de pago al cliente: 2 con número: 5214181878106 + +Datos traidos con payment api: [{"id":682,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-10-15T15:39:40-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":1015,"attributes":[]}] + +Datos client data credit amount: 300 + +La cantidad que sobra de $300,00 MXN se ha convertido a crédito La cadena CURL que se envia es: { - "to": "5214181148783", + "to": "5214181878106", "from": "whatsapp", - "type": "document", + "type": "text", "content": { - "text": "S/M", - "url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas.png" + "text": "John Doe" }, - "template_values": ["Daniel Humberto Soto Villegas", "$250", "$1250 a favor"], - "template_uuid": "57ead79cebd14902921477922403093b", + "template_values": ["Daniel Humberto Soto Villegas", "682", "2", "15/10/2025 3:40pm", "$300,00 MXN", "Transferencia bancaria 📱🏦", "$600 a favor", "La cantidad que sobra de $300,00 MXN se ha convertido a crédito"], + "template_uuid": "4ac9dc060cf746b6ad7f2e8acad355e0", "optin_contact": true } -Response del CallBell: {"message":{"uuid":"7904ccac94b94caa94ae24cc5b32f779","status":"enqueued"}} -Hay menos de 100 archivos en el directorio. No se eliminarán archivos. - +Response del CallBell: {"message":{"uuid":"ff7dec0855b542a4ab3d99595cf2aa50","status":"enqueued"}} La notificación fue enviada correctamente con estado: enqueued -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":[]}} +Notificacion data: {"uuid":"7e21515a-ee8d-4d1e-a287-9f8fbd133281","changeType":"insert","entity":"payment","entityId":682,"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":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true},{"id":178,"clientId":2,"customAttributeId":15,"name":"Site","key":"site","value":"0LOCS","clientZoneVisible":false},{"id":179,"clientId":2,"customAttributeId":16,"name":"Antena\/Sectorial","key":"antenaSectorial","value":"Sectorial-4b 172.16.13.16\/24","clientZoneVisible":false},{"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":600,"accountCredit":600,"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":682,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-10-15T15:39:40-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":1015,"attributes":[]}} Dentro del proceso del patch: -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":[]}] +Datos traidos con payment api: [{"id":682,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-10-15T15:39:40-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":1015,"attributes":[]}] Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas -UUID: 7352b597ba6b43cf948a5ae86051fb80 +UUID: 74cc2bb45eb8409f92cd5dba99200d26 -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: {"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\udcb2600 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\udcb2600 a favor\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 15\/10\/2025 15:39 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"15\/10\/2025 15:40\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 15\/10\/2025 15:39 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 15\/10\/2025 15:40","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": "💲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"} +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": "💲600 a favor","Monto Ultimo Pago": "$ 300","Estado": "Activo","Fecha Ultimo Pago": " 15/10/2025 15:39 con Transferencia bancaria 📱🏦","Fecha Ultima Actualizacion": "15/10/2025 15:40","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","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 Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-10-10T16:13:21Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":["Contra.","s0LOCS","Sus"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Site":"0LOCS","Clabe Interbancaria":"0021804341999569810","Fecha Ultima Actualizacion":"📆🔄️ 15/10/2025 15:40","user name":"Daniel Humberto","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Estado":"🟢 Activo ","Cliente":"2","Saldo Actual":"💲600 a favor","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲600 a favor\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 15/10/2025 15:39 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"15/10/2025 15:40\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}","URL":"🌐 https://sistema.siip.mx/crm/client/2","Monto Ultimo Pago":"💲 300","Fecha Ultimo Pago":"📆💸 15/10/2025 15:39 con Transferencia bancaria 📱🏦","Nombre":"👤 Daniel Humberto Soto Villegas"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":5,"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}} +Response 2 Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-10-10T16:13:21Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":["Contra.","s0LOCS","Sus"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Site":"0LOCS","Clabe Interbancaria":"0021804341999569810","Fecha Ultima Actualizacion":"📆🔄️ 15/10/2025 15:40","user name":"Daniel Humberto","Domicilio":"📍 Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Estado":"🟢 Activo ","Cliente":"2","Saldo Actual":"💲600 a favor","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\"Nombre\": \"Daniel Humberto Soto Villegas\",\"URL\": \"https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲600 a favor\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 15/10/2025 15:39 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"15/10/2025 15:40\",\"Clabe Interbancaria\": \"\",\"Site\": \"0LOCS\",\"Antena/Sectorial\": \"Sectorial-4b 172.16.13.16/24\"}","URL":"🌐 https://sistema.siip.mx/crm/client/2","Monto Ultimo Pago":"💲 300","Fecha Ultimo Pago":"📆💸 15/10/2025 15:39 con Transferencia bancaria 📱🏦","Nombre":"👤 Daniel Humberto Soto Villegas"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":5,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} -[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-10-15 21:40:04.053065] [notice] Logging level set to:debug +[2025-10-15 21:40:04.053143] [debug] valor del webhook: {"uuid":"487c789f-b333-4a6e-a0ad-d92e7554ddb9","changeType":"edit","entity":"payment","entityId":"682","eventName":"payment.edit","extraData":{"entity":{"id":682,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-10-15T15:39:40-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":682,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-10-15T15:39:40-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":1015,"attributes":[]}}} -[2025-07-17 20:23:11.034617] [debug] valor el evento recibido por webhook: payment.edit +[2025-10-15 21:40:04.250194] [debug] valor el evento recibido por webhook: payment.edit -[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-10-15 21:40:04.250340] [debug] Valor de JSON: {"uuid":"487c789f-b333-4a6e-a0ad-d92e7554ddb9","changeType":"edit","entity":"payment","entityId":"682","eventName":"payment.edit","extraData":{"entity":{"id":682,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-10-15T15:39:40-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":682,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-10-15T15:39:40-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":1015,"attributes":[]}}} -[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-10-16 6:25:02.779450] [notice] Logging level set to:debug +[2025-10-16 6:25:02.780452] [debug] valor del webhook: {"uuid":"9b6c508e-68ee-48e5-b46c-710fc3af6e70","changeType":"overdue","entity":"invoice","entityId":"2551","eventName":"invoice.overdue","extraData":{"entity":{"id":2551,"clientId":132,"number":"002501","createdDate":"2025-10-01T10:00:02-0600","dueDate":"2025-10-15T10:00:02-0600","emailSentDate":"2025-10-16T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-09-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2555,"type":"service","label":"plan300 01\/09\/2025 \u2013 30\/09\/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,"printed":false},"entityBeforeEdit":null}} -[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-10-16 6:25:03.045295] [debug] valor el evento recibido por webhook: invoice.overdue -[2025-07-17 20:29:52.033974] [info] Iniciando creación de PaymentIntent en Stripe. +[2025-10-16 6:25:03.045506] [debug] Valor de JSON: {"uuid":"9b6c508e-68ee-48e5-b46c-710fc3af6e70","changeType":"overdue","entity":"invoice","entityId":"2551","eventName":"invoice.overdue","extraData":{"entity":{"id":2551,"clientId":132,"number":"002501","createdDate":"2025-10-01T10:00:02-0600","dueDate":"2025-10-15T10:00:02-0600","emailSentDate":"2025-10-16T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-09-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2555,"type":"service","label":"plan300 01\/09\/2025 \u2013 30\/09\/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,"printed":false},"entityBeforeEdit":null}} -[2025-07-17 20:29:52.034490] [info] Cantidad del PaymentIntent: 12000 +[2025-10-16 6:25:03.045783] [debug] Factura vencida -[2025-07-17 20:29:53.951258] [info] PaymentIntent creado: pi_3RlyRAEFY1WEUtgR0k4zMVr7 +[2025-10-16 6:25:03.045874] [debug] datos del notification para el invoice overdue:{"uuid":"9b6c508e-68ee-48e5-b46c-710fc3af6e70","changeType":"overdue","entity":"invoice","entityId":2551,"message":null,"clientId":132,"eventName":"invoice.overdue","clientData":{"id":132,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"20 Avenida Norte","street2":null,"city":"Guanajuato","countryId":173,"stateId":null,"zipCode":"37807","fullAddress":"Avenida Norte 20, Dolores, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-18T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Marto","lastName":"Vago Payaso","username":null,"contacts":[{"id":136,"clientId":132,"email":"vagopayaso@gmail.com","phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4500,"accountCredit":0,"accountOutstanding":4500,"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":2551,"clientId":132,"number":"002501","createdDate":"2025-10-01T10:00:02-0600","dueDate":"2025-10-15T10:00:02-0600","emailSentDate":"2025-10-16T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-09-29T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2555,"type":"service","label":"plan300 01\/09\/2025 \u2013 30\/09\/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,"printed":false},"paymentData":null} -[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-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-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-07-17 20:29:55.684472] [debug] valor el evento recibido por webhook: payment.add - -[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-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-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-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 - -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", "$120", "$1370 a favor"], - "template_uuid": "57ead79cebd14902921477922403093b", - "optin_contact": true - } -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":"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":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 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": "💲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 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 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-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-07-17 20:30:03.413237] [debug] valor el evento recibido por webhook: payment.edit - -[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-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-07-20 16:00:05.008004] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[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-07-20 16:00:05.008291] [debug] Aprobación de Factura - -[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-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-07-20 16:00:09.403913] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[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-07-20 16:00:09.404294] [debug] Aprobación de Factura - -[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-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-07-21 16:00:04.770167] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[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*** +[2025-10-16 6:25:03.045941] [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-10-16 6:25:03.046185] [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-10-16 6:25:03.046231] [warning] No se encontró un teléfono celular válido para el cliente: 132 +[2025-10-18 18:26:25.172157] [notice] Logging level set to:debug +[2025-10-18 18:26:25.172260] [debug] valor del webhook: {"uuid":"ab84a479-03fa-45c4-8077-430f18b76e01","changeType":"edit","entity":"job","entityId":"57","eventName":"job.edit","extraData":{"entity":{"id":57,"title":"Servicio para alinear antena de cliente","description":"Pruebas","assignedUserId":1019,"clientId":2,"date":"2025-06-18T18:00:57-0600","duration":60,"status":0,"address":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":57,"title":"Servicio para alinear antena de cliente","description":"Pruebas","assignedUserId":1019,"clientId":2,"date":"2025-06-18T18:00:57-0600","duration":60,"status":1,"address":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-07-22 6:25:03.642693] [debug] valor el evento recibido por webhook: invoice.overdue +[2025-10-18 18:26:25.215976] [debug] valor el evento recibido por webhook: job.edit -[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-10-18 18:26:25.216124] [debug] Valor de JSON: {"uuid":"ab84a479-03fa-45c4-8077-430f18b76e01","changeType":"edit","entity":"job","entityId":"57","eventName":"job.edit","extraData":{"entity":{"id":57,"title":"Servicio para alinear antena de cliente","description":"Pruebas","assignedUserId":1019,"clientId":2,"date":"2025-06-18T18:00:57-0600","duration":60,"status":0,"address":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":57,"title":"Servicio para alinear antena de cliente","description":"Pruebas","assignedUserId":1019,"clientId":2,"date":"2025-06-18T18:00:57-0600","duration":60,"status":1,"address":"Chiapas 31, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} -[2025-07-22 6:25:03.642843] [debug] Factura vencida +[2025-10-18 18:26:25.216383] [debug] Se actualiza un trabajo -[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-10-18 18:26:25.216442] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-10-20 16:00:05.360059] [notice] Logging level set to:debug +[2025-10-20 16:00:05.360246] [debug] valor del webhook: {"uuid":"ccb68171-2a0b-48c7-8909-ccb248ecf9c0","changeType":"draft_approved","entity":"invoice","entityId":"2555","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2555,"clientId":121,"number":"002505","createdDate":"2025-10-20T10:00:02-0600","dueDate":"2025-11-03T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-10-19T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2559,"type":"service","label":"INTERMEDIO 20\/09\/2025 \u2013 19\/10\/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,"printed":false},"entityBeforeEdit":null}} -[2025-07-22 6:25:03.642903] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** +[2025-10-20 16:00:05.560914] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2025-07-22 6:25:03.642957] [debug] Numero de cel obtenido +[2025-10-20 16:00:05.561077] [debug] Valor de JSON: {"uuid":"ccb68171-2a0b-48c7-8909-ccb248ecf9c0","changeType":"draft_approved","entity":"invoice","entityId":"2555","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2555,"clientId":121,"number":"002505","createdDate":"2025-10-20T10:00:02-0600","dueDate":"2025-11-03T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-10-19T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2559,"type":"service","label":"INTERMEDIO 20\/09\/2025 \u2013 19\/10\/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,"printed":false},"entityBeforeEdit":null}} -[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-10-20 16:00:05.561321] [debug] Aprobación de Factura -[2025-07-22 16:00:05.077581] [debug] valor el evento recibido por webhook: invoice.draft_approved +[2025-10-20 16:00:05.561420] [debug] {"uuid":"ccb68171-2a0b-48c7-8909-ccb248ecf9c0","changeType":"draft_approved","entity":"invoice","entityId":2555,"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":-8316.67,"accountCredit":0,"accountOutstanding":8316.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":2555,"clientId":121,"number":"002505","createdDate":"2025-10-20T10:00:02-0600","dueDate":"2025-11-03T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-10-18T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2559,"type":"service","label":"INTERMEDIO 20\/09\/2025 \u2013 19\/10\/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,"printed":false},"paymentData":null} -[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-10-20 16:00:06.974169] [notice] Logging level set to:debug +[2025-10-20 16:00:06.974514] [debug] valor del webhook: {"uuid":"c9295b8c-acc4-4da5-9fa3-2dd8b3bf0374","changeType":"draft_approved","entity":"invoice","entityId":"2556","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2556,"clientId":122,"number":"002506","createdDate":"2025-10-20T10:00:02-0600","dueDate":"2025-11-03T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-10-19T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2560,"type":"service","label":"plan300 20\/09\/2025 \u2013 19\/10\/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,"printed":false},"entityBeforeEdit":null}} -[2025-07-22 16:00:05.077923] [debug] Aprobación de Factura +[2025-10-20 16:00:07.301425] [debug] valor el evento recibido por webhook: invoice.draft_approved -[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-10-20 16:00:07.301624] [debug] Valor de JSON: {"uuid":"c9295b8c-acc4-4da5-9fa3-2dd8b3bf0374","changeType":"draft_approved","entity":"invoice","entityId":"2556","eventName":"invoice.draft_approved","extraData":{"entity":{"id":2556,"clientId":122,"number":"002506","createdDate":"2025-10-20T10:00:02-0600","dueDate":"2025-11-03T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-10-19T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":2560,"type":"service","label":"plan300 20\/09\/2025 \u2013 19\/10\/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,"printed":false},"entityBeforeEdit":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-10-20 16:00:07.301765] [debug] Aprobación de Factura -[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: ANGEL ARVIZU SIIP - -UUID: 362193e0af9b4ffc8ed5d7f930dd120f - -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": "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":"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":"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-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-07-22 16:00:15.709616] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[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-07-22 16:00:15.709876] [debug] Aprobación de Factura - -[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-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":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 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": "💲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 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 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-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-07-22 16:00:18.817500] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[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-07-22 16:00:18.817696] [debug] Aprobación de Factura - -[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-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: Juan Calavera González - -UUID: - -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": "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: - -Response 2 Patch CallBell: - -[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-07-22 16:00:20.672087] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[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-07-22 16:00:20.672236] [debug] Aprobación de Factura - -[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-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-07-22 16:00:20.960186] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[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-07-22 16:00:20.960344] [debug] Aprobación de Factura - -[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-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-07-22 16:00:21.820477] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[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-07-22 16:00:21.820667] [debug] Aprobación de Factura - -[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-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-07-22 16:00:23.211539] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[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: [] - -Nombre del cliente que se va a actualizar: Delfino De los Mares - -UUID: - -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": "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: - -Response 2 Patch CallBell: - -[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-07-22 16:00:29.944894] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[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-07-22 16:00:29.945070] [debug] Aprobación de Factura - -[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-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}} - -[2025-07-24 6:25:02.653769] [debug] valor el evento recibido por webhook: invoice.overdue - -[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}} - -[2025-07-24 6:25:02.656270] [debug] Factura vencida - -[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-07-24 6:25:02.656363] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** - -contac vacio -[2025-07-24 6:25:02.656526] [debug] Numero de cel obtenido - -[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-07-24 16:00:04.627583] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[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-07-24 16:00:04.627852] [debug] Aprobación de Factura - -[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} - -[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}} - -[2025-07-25 16:00:03.795012] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[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}} - -[2025-07-25 16:00:03.795283] [debug] Aprobación de Factura - -[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-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: - -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\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": "💲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":"💲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":"💲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-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-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-07-30 17:12:02.372503] [info] Referencia personalizada, Valor del monto: 120 - -[2025-07-30 17:12:02.372514] [info] Creando referencia del cliente para OXXO: - -[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-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-07-30 17:12:02.511619] [info] Creando referencia del cliente para OXXO: - -[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-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-07-30 17:12:02.605465] [info] Creando referencia del cliente para OXXO: - -[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-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-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": 120 -} - -[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-07-30 18:10:50.052740] [info] Referencia personalizada, Valor del monto: 120 - -[2025-07-30 18:10:50.052810] [info] Creando referencia del cliente para OXXO: - -[2025-07-30 18:10:50.180107] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX - -[2025-07-30 18:10:50.180155] [info] Monto proporcionado directamente: 120 - -[2025-07-30 18:10:50.180167] [info] Creando referencia en Stripe por 120 para el cliente cus_PetN1dhr4rx0kX - -[2025-07-30 18:10:51.721916] [info] Referencia OXXO: 12345678901234657890123456789012 - -[2025-07-30 18:10:51.721988] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TbUNzZFpveTF1eXI1cGNVbU5tOENlUmxPejlwaUxR0100b0ug6ZCE - -[2025-07-30 18:10:51.722002] [info] Referencia OXXO creada correctamente. - -[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_1753899051.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_1753899051.jpeg - -No se pudo obtener la lista de archivos de la carpeta FTP - -[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-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-07-30 18:13:55.061347] [debug] valor el evento recibido por webhook: payment.add - -[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-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 - -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-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":[]}}} - -[2025-07-30 18:13:57.249813] [debug] valor el evento recibido por webhook: payment.edit - -[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":[]}}} - -[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}} - -[2025-07-31 16:00:04.635164] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[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}} - -[2025-07-31 16:00:04.635911] [debug] Aprobación de Factura - -[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} - -[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}} - -[2025-07-31 16:00:06.004014] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[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":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\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": "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":"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":"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-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-07-31 16:00:26.579544] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[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-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": "$120" -} - -[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-07-31 17:11:22.305196] [info] Referencia personalizada, Valor del monto: $120 - -[2025-07-31 17:11:22.305206] [info] Creando referencia del cliente para OXXO: - -[2025-07-31 17:11:22.434386] [info] Stripe Customer ID obtenido: cus_PetN1dhr4rx0kX - -[2025-07-31 17:11:22.434576] [info] Monto proporcionado directamente: 120 - -[2025-07-31 17:11:22.434628] [info] Creando referencia en Stripe por 120 para el cliente cus_PetN1dhr4rx0kX - -[2025-07-31 17:11:23.970145] [info] Referencia OXXO: 12345678901234657890123456789012 - -[2025-07-31 17:11:23.970360] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9TbVo5Wm5NQlFocTdDODRLYUxvSWE2U0p2WlVDaDNS010051PxwBE7 - -[2025-07-31 17:11:23.970441] [info] Referencia OXXO creada correctamente. - -[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_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_1753981883.jpeg - -No se pudo obtener la lista de archivos de la carpeta FTP - -[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-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-07-31 17:14:26.744990] [debug] valor el evento recibido por webhook: payment.add - -[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-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-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-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 - -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-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":[]}}} - -[2025-07-31 17:14:27.603179] [debug] valor el evento recibido por webhook: payment.edit - -[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":[]}}} - -[2025-08-01 6:01:01.485145] [notice] Logging level set to:debug -[2025-08-01 6:01:01.485275] [debug] valor del webhook: {"uuid":"796badcc-5ec1-4241-8dfa-0005fd6c1cc6","changeType":"edit","entity":"service","entityId":"155","eventName":"service.edit","extraData":{"entity":{"id":155,"prepaid":false,"clientId":171,"status":2,"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-07-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-06T00:00:00-0600","endDate":"2025-08-01T00:01:01-0600"}],"surcharges":[]},"entityBeforeEdit":{"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-07-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-06T00:00:00-0600","endDate":"2025-08-01T00:01:01-0600"}],"surcharges":[]}}} - -[2025-08-01 6:01:01.670726] [debug] valor el evento recibido por webhook: service.edit - -[2025-08-01 6:01:01.670833] [debug] Valor de JSON: {"uuid":"796badcc-5ec1-4241-8dfa-0005fd6c1cc6","changeType":"edit","entity":"service","entityId":"155","eventName":"service.edit","extraData":{"entity":{"id":155,"prepaid":false,"clientId":171,"status":2,"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-07-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-06T00:00:00-0600","endDate":"2025-08-01T00:01:01-0600"}],"surcharges":[]},"entityBeforeEdit":{"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-07-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-06T00:00:00-0600","endDate":"2025-08-01T00:01:01-0600"}],"surcharges":[]}}} - -[2025-08-01 6:01:01.671041] [debug] Se editó el servicio a un cliente - -[2025-08-01 6:01:01.723157] [info] ID correspondiente a 'passwordAntenaCliente': 17 - -[2025-08-01 6:01:01.723303] [info] El valor de passwordAntenaValue es null o cadena vacía, se manda llamar la función getVaultCredentials - -[2025-08-01 6:01:01.723323] [info] El valor de password es: gYAIEK:Be}SK*01z5+/V - -[2025-08-01 6:01:01.933346] [info] Se actualizó el custom attribute del cliente 171 - -[2025-08-01 6:01:01.933608] [info] Se actualizó el atributo personalizado passwordAntenaCliente con el valor: gYAIEK:Be}SK*01z5+/V - -[2025-08-01 6:01:02.090269] [notice] Logging level set to:debug -[2025-08-01 6:01:02.090373] [debug] valor del webhook: {"uuid":"6d2abaa3-c968-44ee-9c71-4068b5c8a1b2","changeType":"end","entity":"service","entityId":"155","eventName":"service.end","extraData":{"entity":{"id":155,"prepaid":false,"clientId":171,"status":2,"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-07-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-06T00:00:00-0600","endDate":"2025-08-01T00:01:01-0600"}],"surcharges":[]},"entityBeforeEdit":null}} - -[2025-08-01 6:01:02.257275] [debug] valor el evento recibido por webhook: service.end - -[2025-08-01 6:01:02.257334] [debug] Valor de JSON: {"uuid":"6d2abaa3-c968-44ee-9c71-4068b5c8a1b2","changeType":"end","entity":"service","entityId":"155","eventName":"service.end","extraData":{"entity":{"id":155,"prepaid":false,"clientId":171,"status":2,"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-07-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-06T00:00:00-0600","endDate":"2025-08-01T00:01:01-0600"}],"surcharges":[]},"entityBeforeEdit":null}} - -[2025-08-01 6:01:02.375618] [notice] Logging level set to:debug -[2025-08-01 6:01:02.375699] [debug] valor del webhook: {"uuid":"13d59c26-0b80-463d-8969-2b33c7e40f9f","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":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":false,"hasServiceWithoutDevices":false,"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":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":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-08-01 6:01:02.461736] [debug] valor el evento recibido por webhook: client.edit - -[2025-08-01 6:01:02.461813] [debug] Valor de JSON: {"uuid":"13d59c26-0b80-463d-8969-2b33c7e40f9f","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":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":false,"hasServiceWithoutDevices":false,"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":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":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-08-01 6:01:02.461930] [debug] Se actualiza a un cliente -[2025-08-01 6:01:02.461971] [debug] Valor de json_data: {"uuid":"13d59c26-0b80-463d-8969-2b33c7e40f9f","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":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":false,"hasServiceWithoutDevices":false,"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":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":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} -[2025-08-01 6:01:02.508316] [info] ID correspondiente a 'passwordAntenaCliente': 17 - -[2025-08-01 6:01:02.508373] [info] El valor de passwordAntenaValue es: gYAIEK:Be}SK*01z5+/V - -[2025-08-01 6:01:02.508385] [info] Ya existe un valor de passwordAntenaValue: gYAIEK:Be}SK*01z5+/V - -[2025-08-01 6:01:02.508398] [debug] El cliente no cambió de potencial a cliente -[2025-08-01 6:01:02.508405] [debug] Validando claves dentro de entity y entityBeforeEdit -[2025-08-01 6:01:02.508413] [debug] Los datos entity y entityBeforeEdit contienen el campo tags -[2025-08-01 6:01:02.508419] [debug] Validando si la etiqueta STRIPE existe en entity pero no en entityBeforeEdit -[2025-08-01 6:01:02.508454] [debug] {"uuid":"13d59c26-0b80-463d-8969-2b33c7e40f9f","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":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":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null} +[2025-10-20 16:00:07.301853] [debug] {"uuid":"c9295b8c-acc4-4da5-9fa3-2dd8b3bf0374","changeType":"draft_approved","entity":"invoice","entityId":2556,"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":-6990,"accountCredit":0,"accountOutstanding":6990,"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":2556,"clientId":122,"number":"002506","createdDate":"2025-10-20T10:00:02-0600","dueDate":"2025-11-03T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-10-18T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":2560,"type":"service","label":"plan300 20\/09\/2025 \u2013 19\/10\/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,"printed":false},"paymentData":null} diff --git a/manifest.json b/manifest.json index 9be80f2f..b0474404 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.9.1", + "version": "2.9.2", "unmsVersionCompliancy": { "min": "2.1.0", "max": null diff --git a/src/Facade/AbstractMessageNotifierFacade.php b/src/Facade/AbstractMessageNotifierFacade.php index a01efa8d..9b54f67d 100755 --- a/src/Facade/AbstractMessageNotifierFacade.php +++ b/src/Facade/AbstractMessageNotifierFacade.php @@ -1208,7 +1208,8 @@ abstract class AbstractMessageNotifierFacade $configManager = \Ubnt\UcrmPluginSdk\Service\PluginConfigManager::create(); $config = $configManager->loadConfig(); $ucrmBaseUri = $config['ipserver']; - $authToken = $config['apitoken']; + $crmAuthToken = $config['apitoken']; + $unmsAuthToken = $config['unmsApiToken']; if ($ucrmBaseUri === '172.16.5.134') { //opción solo para el servidor de pruebas return 'gYAIEK:Be}SK*01z5+/V'; @@ -1246,7 +1247,7 @@ abstract class AbstractMessageNotifierFacade try { $responseSitesByIP = $clientUnms->request('GET', 'sites/search?query=' . $dataToSearch . '&count=1&page=1', [ 'headers' => [ - 'X-Auth-Token' => $authToken, + 'X-Auth-Token' => $unmsAuthToken, ], ]); @@ -1273,7 +1274,7 @@ abstract class AbstractMessageNotifierFacade $devicesBySiteId = $clientUnms->request('GET', 'devices?siteId=' . $siteId, [ 'headers' => [ - 'X-Auth-Token' => $authToken, + 'X-Auth-Token' => $unmsAuthToken, ], ]); @@ -1308,7 +1309,7 @@ abstract class AbstractMessageNotifierFacade $responsePasswordVault = $clientUnms->request('GET', 'vault/' . $deviceID . '/credentials', [ 'headers' => [ - 'X-Auth-Token' => $authToken, + 'X-Auth-Token' => $unmsAuthToken, ], ]); @@ -1317,8 +1318,8 @@ abstract class AbstractMessageNotifierFacade // $jsonPasswordVault = json_encode($dataPasswordVault, JSON_PRETTY_PRINT); //print_r($jsonPasswordVault . PHP_EOL); //Credenciales del dispositivo - if (isset($dataPasswordVault['credentials']['password'])) { - $dataPasswordVault = $dataPasswordVault['credentials']['password']; + if (isset($dataPasswordVault['credentials'][0]['password'])) { + $dataPasswordVault = $dataPasswordVault['credentials'][0]['password']; } 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 @@ -1364,7 +1365,7 @@ abstract class AbstractMessageNotifierFacade // $logger->appendLog('Consulta por dirección MAC: ' . $dataToSearch ); $responseDeviceByMAC = $clientUnms->request('GET', 'devices/mac/' . $dataToSearch, [ 'headers' => [ - 'X-Auth-Token' => $authToken, + 'X-Auth-Token' => $unmsAuthToken, ], ]); @@ -1389,15 +1390,15 @@ abstract class AbstractMessageNotifierFacade $responsePasswordVault = $clientUnms->request('GET', 'vault/' . $deviceId . '/credentials', [ 'headers' => [ - 'X-Auth-Token' => $authToken, + 'X-Auth-Token' => $unmsAuthToken, ], ]); if ($responsePasswordVault->getStatusCode() === 200) { $dataPasswordVault = json_decode((string) $responsePasswordVault->getBody(), true); - if (isset($dataPasswordVault['credentials']['password'])) { - $dataPasswordVault = $dataPasswordVault['credentials']['password']; + if (isset($dataPasswordVault['credentials'][0]['password'])) { + $dataPasswordVault = $dataPasswordVault['credentials'][0]['password']; } 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 @@ -1440,7 +1441,7 @@ abstract class AbstractMessageNotifierFacade //Obtener id del sitio por medio del servicio $responseServices = $clientUcrm->get('clients/services?clientId=' . $IpAddressClientId, [ 'headers' => [ - 'X-Auth-Token' => $authToken, + 'X-Auth-Token' => $unmsAuthToken, 'Content-Type: application/json', ], ]); @@ -1484,7 +1485,7 @@ abstract class AbstractMessageNotifierFacade try { $responseDevicesBySite = $clientUnms->request('GET', 'devices?siteId=' . $unmsSiteID, [ 'headers' => [ - 'X-Auth-Token' => $authToken, + 'X-Auth-Token' => $unmsAuthToken, ], ]); } catch (RequestException $requestException) { @@ -1538,7 +1539,7 @@ abstract class AbstractMessageNotifierFacade try { $responseDevicesBySite = $clientUnms->request('GET', 'devices/' . $deviceID, [ 'headers' => [ - 'X-Auth-Token' => $authToken, + 'X-Auth-Token' => $unmsAuthToken, ], ]); } catch (RequestException $requestException) { @@ -1571,7 +1572,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' => $unmsAuthToken, ], ]); } catch (RequestException $requestException) { @@ -1597,8 +1598,8 @@ abstract class AbstractMessageNotifierFacade if ($responsePasswordVault->getStatusCode() === 200) { $dataPasswordVault = json_decode($responsePasswordVault->getBody()->getContents(), true); $jsonPasswordVault = json_encode($dataPasswordVault, JSON_PRETTY_PRINT); - if (isset($dataPasswordVault['credentials']['password'])) { - $passwordVault = $dataPasswordVault['credentials']['password']; + if (isset($dataPasswordVault['credentials'][0]['password'])) { + $passwordVault = $dataPasswordVault['credentials'][0]['password']; return $passwordVault; } else { $this->logger->error('No se encontró una contraseña en la bóveda para la antena de este cliente, es altamente probable que conserve una contraseña conocida.' . PHP_EOL); @@ -1625,8 +1626,8 @@ abstract class AbstractMessageNotifierFacade $configManager = \Ubnt\UcrmPluginSdk\Service\PluginConfigManager::create(); $config = $configManager->loadConfig(); $ipServer = $config['ipserver']; - $ucrmToken = $config['apitoken']; - $unmsToken = $config['unmsApiToken']; + $crmAuthToken = $config['apitoken']; + $unmsAuthToken = $config['unmsApiToken']; if ($ipServer === '172.16.5.134') { //opción solo para el servidor de pruebas return 'gYAIEK:Be}SK*01z5+/V'; @@ -1655,7 +1656,7 @@ abstract class AbstractMessageNotifierFacade //Obtener id del sitio por medio del servicio $responseServices = $clientUcrm->get('clients/services?clientId=' . $clientId, [ 'headers' => [ - 'X-Auth-Token' => $ucrmToken, + 'X-Auth-Token' => $crmAuthToken, 'Content-Type: application/json', ], ]); @@ -1699,7 +1700,7 @@ abstract class AbstractMessageNotifierFacade try { $responseDevicesBySite = $clientUnms->request('GET', 'devices?siteId=' . $unmsSiteID, [ 'headers' => [ - 'X-Auth-Token' => $unmsToken, + 'X-Auth-Token' => $unmsAuthToken, ], ]); } catch (RequestException $requestException) { @@ -1753,7 +1754,7 @@ abstract class AbstractMessageNotifierFacade try { $responseDevicesBySite = $clientUnms->request('GET', 'devices/' . $deviceID, [ 'headers' => [ - 'X-Auth-Token' => $unmsToken, + 'X-Auth-Token' => $unmsAuthToken, ], ]); } catch (RequestException $requestException) { @@ -1786,7 +1787,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' => $unmsToken, + 'X-Auth-Token' => $unmsAuthToken, ], ]); } catch (RequestException $requestException) { @@ -1812,8 +1813,8 @@ abstract class AbstractMessageNotifierFacade if ($responsePasswordVault->getStatusCode() === 200) { $dataPasswordVault = json_decode($responsePasswordVault->getBody()->getContents(), true); $jsonPasswordVault = json_encode($dataPasswordVault, JSON_PRETTY_PRINT); - if (isset($dataPasswordVault['credentials']['password'])) { - $passwordVault = $dataPasswordVault['credentials']['password']; + if (isset($dataPasswordVault['credentials'][0]['password'])) { + $passwordVault = $dataPasswordVault['credentials'][0]['password']; return $passwordVault; } else { $this->logger->error('No se encontró una contraseña en la bóveda para la antena de este cliente, es altamente probable que conserve una contraseña conocida.' . PHP_EOL); diff --git a/src/Plugin.php b/src/Plugin.php index 1863b9ef..31bda5ca 100755 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -438,7 +438,7 @@ class Plugin // Comprobar si 'isLead' cambió de true a false if ($isLeadBefore === true && $isLeadAfter === false) { $this->logger->debug('El cliente cambió de potencial a cliente'); - $this->pluginNotifierFacade->createStripeClient($notification); + //$this->pluginNotifierFacade->createStripeClient($notification); //Se comenta esta línea para que no se cree el cliente en Stripe al convertir el lead a cliente, ya que se hará al agregar la etiqueta 'CREAR CLABE STRIPE' } else { $this->logger->debug('El cliente no cambió de potencial a cliente'); } @@ -486,7 +486,7 @@ class Plugin $this->logger->warning('El campo tags no existe en entity o entityBeforeEdit'); } - } else { + } else { $this->logger->warning('Los datos entityBeforeEdit o entity no están presentes en extraData'); } diff --git a/ucrm.json b/ucrm.json index c13ba663..7e2d7478 100755 --- a/ucrm.json +++ b/ucrm.json @@ -1 +1 @@ -{"ucrmPublicUrl":"https://venus.siip.mx/crm/","ucrmLocalUrl":"http://localhost/crm/","unmsLocalUrl":"http://unms:8081/nms/","pluginPublicUrl":"https://venus.siip.mx/crm/_plugins/siip-whatsapp-notifications/public.php","pluginAppKey":"5dVI22XIa9NSK0tiDeiQ3SLDBa1UZVT7g5s/tJzi944Bygx89WIHH7I2/niVPiBK","pluginId":16} \ No newline at end of file +{"ucrmPublicUrl":"https://venus.siip.mx/crm/","ucrmLocalUrl":"http://localhost/crm/","unmsLocalUrl":"http://unms-api:8081/nms/","pluginPublicUrl":"https://venus.siip.mx/crm/_plugins/siip-whatsapp-notifications/public.php","pluginAppKey":"5dVI22XIa9NSK0tiDeiQ3SLDBa1UZVT7g5s/tJzi944Bygx89WIHH7I2/niVPiBK","pluginId":16} \ No newline at end of file diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 99e5c5ca..007c5418 100755 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -5,7 +5,7 @@ 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => 'a0f286969a749f063a8ef33a9ffd5327155c2fbf', + 'reference' => '2e21e09c2c0bf6b481fa5c3cab13a5aec6487c74', 'name' => 'ucrm-plugins/sms-twilio', 'dev' => false, ), @@ -307,7 +307,7 @@ 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => 'a0f286969a749f063a8ef33a9ffd5327155c2fbf', + 'reference' => '2e21e09c2c0bf6b481fa5c3cab13a5aec6487c74', 'dev_requirement' => false, ), ),