siip-whatsapp-notifications.../data/plugin.log

144 lines
52 KiB
Plaintext
Executable File

[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-10-15 21:32:45.210369] [debug] valor el evento recibido por webhook: payment.add
[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-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-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-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***
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
[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":[]}}}
[2025-10-15 21:32:46.051702] [debug] valor el evento recibido por webhook: payment.edit
[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":[]}}}
[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}}
[2025-10-15 21:39:59.974107] [debug] valor el evento recibido por webhook: payment.add
[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}}
[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":[]}}
[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": "5214181878106",
"from": "whatsapp",
"type": "text",
"content": {
"text": "John Doe"
},
"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":"ff7dec0855b542a4ab3d99595cf2aa50","status":"enqueued"}}
La notificación fue enviada correctamente con estado: enqueued
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":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: 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\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": "💲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":"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":"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-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-10-15 21:40:04.250194] [debug] valor el evento recibido por webhook: payment.edit
[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-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-10-16 6:25:03.045295] [debug] valor el evento recibido por webhook: invoice.overdue
[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-10-16 6:25:03.045783] [debug] Factura vencida
[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-10-16 6:25:03.045941] [debug] ***Se notifica al cliente que la factura de su servicio está vencida***
contac vacio
[2025-10-16 6:25:03.046185] [debug] Numero de cel obtenido
[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-10-18 18:26:25.215976] [debug] valor el evento recibido por webhook: job.edit
[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-10-18 18:26:25.216383] [debug] Se actualiza un trabajo
[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-10-20 16:00:05.560914] [debug] valor el evento recibido por webhook: invoice.draft_approved
[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-10-20 16:00:05.561321] [debug] Aprobación de Factura
[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-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-10-20 16:00:07.301425] [debug] valor el evento recibido por webhook: invoice.draft_approved
[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-10-20 16:00:07.301765] [debug] Aprobación de Factura
[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}