siip-whatsapp-notifications.../data/plugin.log
2025-01-24 16:07:10 +00:00

467 lines
120 KiB
Plaintext
Executable File

[2025-01-24 3:49:18.309273] [notice] Logging level set to:debug
[2025-01-24 3:49:18.333165] [debug] valor el evento recibido por webhook: job.edit
[2025-01-24 3:49:18.333333] [debug] Valor de JSON: {"uuid":"2f02ac4a-f928-4f68-ac5e-472ba1ed23dc","changeType":"edit","entity":"job","entityId":"23","eventName":"job.edit","extraData":{"entity":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1172,"clientId":2,"date":"2025-02-04T05:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1173,"clientId":2,"date":"2025-02-04T05:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
[2025-01-24 3:49:18.333591] [debug] Se actualiza un trabajo
[2025-01-24 3:49:18.333623] [debug] Valor de json_data: {"uuid":"2f02ac4a-f928-4f68-ac5e-472ba1ed23dc","changeType":"edit","entity":"job","entityId":"23","eventName":"job.edit","extraData":{"entity":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1172,"clientId":2,"date":"2025-02-04T05:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1173,"clientId":2,"date":"2025-02-04T05:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
[2025-01-24 3:49:18.333635] [debug] Validando claves dentro de entityBeforeEdit y entity
[2025-01-24 3:49:18.333645] [debug] Los datos entityBeforeEdit y entity contienen el campo assignedUserId
[2025-01-24 3:49:18.333679] [debug] El campo assignedUserId cambió de un valor a otro y la fecha no cambió
[2025-01-24 3:49:18.333703] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"2f02ac4a-f928-4f68-ac5e-472ba1ed23dc","changeType":"edit","entity":"job","entityId":"23","eventName":"job.edit","extraData":{"entity":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1172,"clientId":2,"date":"2025-02-04T05:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1173,"clientId":2,"date":"2025-02-04T05:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
[2025-01-24 3:49:18.333718] [debug] Valor de $clientId en verifyJobActionToDo: 2
[2025-01-24 3:49:18.333725] [debug] Valor de $installerId en verifyJobActionToDo: 1172
[2025-01-24 3:49:18.333733] [debug] Valor de $jobId en verifyJobActionToDo: 23
[2025-01-24 3:49:18.333786] [debug] Valor de $installersData en verifyJobActionToDo: {
"instaladores": [
{
"id": 1019,
"nombre": "Mucio Robledo",
"whatsapp": "4181878106"
},
{
"id": 1173,
"nombre": "Angel Arvizu",
"whatsapp": "4181878106"
},
{
"id": 1172,
"nombre": "Juan Rostro",
"whatsapp": "4181878106"
},
{
"id": 1015,
"nombre": "Daniel Humberto",
"whatsapp": "4181878106"
}
]
}
[2025-01-24 3:49:18.366851] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1172,"unmsId":"2ac31363-6037-40f3-8196-5cc7c71866b0","email":"amazonrostro@gmail.com","firstName":"Juan","lastName":"Rostro","username":"rostro","avatarColor":"#00695c","isActive":true}
[2025-01-24 3:49:18.366909] [debug] tipo de dato de installerWhatsApp: string
[2025-01-24 3:49:18.366920] [debug] Número de WhatsApp del Instalador: 4181878106
[2025-01-24 3:49:18.398832] [debug] Valor de $usersInstallers {"id":1172,"unmsId":"2ac31363-6037-40f3-8196-5cc7c71866b0","email":"amazonrostro@gmail.com","firstName":"Juan","lastName":"Rostro","username":"rostro","avatarColor":"#00695c","isActive":true}
[2025-01-24 3:49:18.398873] [debug] Valor de $installerFullName: Juan Rostro
[2025-01-24 3:49:18.486335] [debug] Valor de $arrayClientCRM en verifyJobActionToDo: {"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"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":"Personal","isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"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 Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}
[2025-01-24 3:49:18.486388] [debug] Dirección completa: Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México
[2025-01-24 3:49:18.486402] [debug] URL de Google Maps: https://www.google.com/maps?q=21.1564209,-100.9384185
[2025-01-24 3:49:18.486481] [debug] Valor de $arrayPhones en verifyJobActionToDo: {"WhatsNotifica":"4181148783"}
[2025-01-24 3:49:18.486499] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,4181148783
[2025-01-24 3:49:18.486509] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","4181148783"]
[2025-01-24 3:49:18.492254] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"]
[2025-01-24 3:49:18.492301] [debug] Valor de $resultadoFinalNumerosCliente en verifyJobActionToDo: 5214181878106, 5214181148783
[2025-01-24 3:49:18.492351] [debug] Se encontró un tipo de contacto WhatsNotifica
Enviando mensaje de trabajo para el cliente
Datos de la notificación de trabajo: {"clientFullName":"Daniel Humberto Soto Villegas","jobId":"23","date":"04\/02\/2025 05:00 AM","installerName":"Juan Rostro"}
La cadena CURL que se envia es: {
"to": "5214181148783",
"from": "whatsapp",
"type": "text",
"content": {
"text": "S/M"
},
"template_values": ["*Daniel Humberto Soto Villegas*", "*#23*", "*04/02/2025 05:00 AM*", "*Juan Rostro*"],
"template_uuid": "0d57fd210595422caf2f5999642882a3",
"optin_contact": true
}
Response del CallBell: {"message":{"uuid":"23d85d1749a34f4aa4561e18b3a76c43","status":"enqueued"}}
La notificación fue enviada correctamente con estado: enqueued
[2025-01-24 3:49:19.391700] [info] Notificación enviada correctamente al contacto 4181148783 después de 1 intento(s).
[2025-01-24 3:49:19.391830] [debug] Valor de $installerWhatsApp en verifyJobActionToDo: 4181878106
[2025-01-24 3:49:19.391884] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó
[2025-01-24 3:49:19.427062] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106
Enviando mensaje de tarea al instalador
Datos de la notificación de tarea: {"installerName":"\u00c1ngel Arvizu","subjectOfChange":"se te ha desasignado la tarea con el folio ","jobId":"23","clientFullName":"[2] Daniel Humberto Soto Villegas","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico *Juan Rostro*"}
La cadena CURL que se envia es: {
"to": "5214181878106",
"from": "whatsapp",
"type": "text",
"content": {
"text": "S/M"
},
"template_values": ["Ángel Arvizu", "se te ha desasignado la tarea con el folio ", "*#23*", "[2] Daniel Humberto Soto Villegas", "En tu lugar asistirá el técnico *Juan Rostro*"],
"template_uuid": "e1aa2b0fd3884595918f4ac2676acd29",
"optin_contact": true
}
Response del CallBell: {"message":{"uuid":"805438bcb0984986b826ee8be26c0866","status":"enqueued"}}
La notificación fue enviada correctamente con estado: enqueued
Enviando mensaje de tarea al instalador
Datos de la notificación de tarea: {"installerName":"Juan Rostro","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"23","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"04\/02\/2025 05:00 AM","jobDescription":"Alinear con la sectorial mas cercana","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"}
La cadena CURL que se envia es: {
"to": "5214181878106",
"from": "whatsapp",
"type": "text",
"content": {
"text": "S/M"
},
"template_values": ["Juan Rostro", "*#23*", "[2] Daniel Humberto Soto Villegas", "Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México", "5214181878106, 5214181148783", "04/02/2025 05:00 AM", "Alinear con la sectorial mas cercana", "https://www.google.com/maps?q=21.1564209,-100.9384185"],
"template_uuid": "b6663394265e4bcdb215369aa9ba0f21",
"optin_contact": true
}
Response del CallBell: {"message":{"uuid":"01266be614184acc8cfaeeb0316a6289","status":"enqueued"}}
La notificación fue enviada correctamente con estado: enqueued
[2025-01-24 3:54:45.734533] [notice] Logging level set to:debug
[2025-01-24 3:54:45.778528] [debug] valor el evento recibido por webhook: job.edit
[2025-01-24 3:54:45.778708] [debug] Valor de JSON: {"uuid":"97d12c97-54e3-44cb-bde6-cc6a0e5d0182","changeType":"edit","entity":"job","entityId":"23","eventName":"job.edit","extraData":{"entity":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1173,"clientId":2,"date":"2025-02-04T05:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1172,"clientId":2,"date":"2025-02-04T05:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
[2025-01-24 3:54:45.778994] [debug] Se actualiza un trabajo
[2025-01-24 3:54:45.779092] [debug] Valor de json_data: {"uuid":"97d12c97-54e3-44cb-bde6-cc6a0e5d0182","changeType":"edit","entity":"job","entityId":"23","eventName":"job.edit","extraData":{"entity":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1173,"clientId":2,"date":"2025-02-04T05:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1172,"clientId":2,"date":"2025-02-04T05:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
[2025-01-24 3:54:45.779170] [debug] Validando claves dentro de entityBeforeEdit y entity
[2025-01-24 3:54:45.779220] [debug] Los datos entityBeforeEdit y entity contienen el campo assignedUserId
[2025-01-24 3:54:45.779267] [debug] El campo assignedUserId cambió de un valor a otro y la fecha no cambió
[2025-01-24 3:54:45.779331] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"97d12c97-54e3-44cb-bde6-cc6a0e5d0182","changeType":"edit","entity":"job","entityId":"23","eventName":"job.edit","extraData":{"entity":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1173,"clientId":2,"date":"2025-02-04T05:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":23,"title":"Alinear","description":"Alinear con la sectorial mas cercana","assignedUserId":1172,"clientId":2,"date":"2025-02-04T05:00:00-0600","duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}}
[2025-01-24 3:54:45.779395] [debug] Valor de $clientId en verifyJobActionToDo: 2
[2025-01-24 3:54:45.779443] [debug] Valor de $installerId en verifyJobActionToDo: 1173
[2025-01-24 3:54:45.779503] [debug] Valor de $jobId en verifyJobActionToDo: 23
[2025-01-24 3:54:45.779727] [debug] Valor de $installersData en verifyJobActionToDo: {
"instaladores": [
{
"id": 1019,
"nombre": "Mucio Robledo",
"whatsapp": "4181878106"
},
{
"id": 1173,
"nombre": "Angel Arvizu",
"whatsapp": "4181878106"
},
{
"id": 1172,
"nombre": "Juan Rostro",
"whatsapp": "4181878106"
},
{
"id": 1015,
"nombre": "Daniel Humberto",
"whatsapp": "4181878106"
}
]
}
[2025-01-24 3:54:45.814189] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1173,"unmsId":"5cb37ee8-e445-4b2a-87d4-6c83eebb8944","email":"hachi9801@gmail.com","firstName":"\u00c1ngel ","lastName":"Arvizu","username":"mamey","avatarColor":"#4caf50","isActive":true}
[2025-01-24 3:54:45.814327] [debug] tipo de dato de installerWhatsApp: string
[2025-01-24 3:54:45.814378] [debug] Número de WhatsApp del Instalador: 4181878106
[2025-01-24 3:54:45.845829] [debug] Valor de $usersInstallers {"id":1173,"unmsId":"5cb37ee8-e445-4b2a-87d4-6c83eebb8944","email":"hachi9801@gmail.com","firstName":"\u00c1ngel ","lastName":"Arvizu","username":"mamey","avatarColor":"#4caf50","isActive":true}
[2025-01-24 3:54:45.845882] [debug] Valor de $installerFullName: Ángel Arvizu
[2025-01-24 3:54:45.914691] [debug] Valor de $arrayClientCRM en verifyJobActionToDo: {"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"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":"Personal","isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"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 Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}
[2025-01-24 3:54:45.914830] [debug] Dirección completa: Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México
[2025-01-24 3:54:45.914885] [debug] URL de Google Maps: https://www.google.com/maps?q=21.1564209,-100.9384185
[2025-01-24 3:54:45.915009] [debug] Valor de $arrayPhones en verifyJobActionToDo: {"WhatsNotifica":"4181148783"}
[2025-01-24 3:54:45.915062] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,4181148783
[2025-01-24 3:54:45.915111] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","4181148783"]
[2025-01-24 3:54:45.915281] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181148783"]
[2025-01-24 3:54:45.915338] [debug] Valor de $resultadoFinalNumerosCliente en verifyJobActionToDo: 5214181878106, 5214181148783
[2025-01-24 3:54:45.920906] [debug] Se encontró un tipo de contacto WhatsNotifica
Enviando mensaje de trabajo para el cliente
Datos de la notificación de trabajo: {"clientFullName":"Daniel Humberto Soto Villegas","jobId":"23","date":"04\/02\/2025 05:00 AM","installerName":"\u00c1ngel Arvizu"}
La cadena CURL que se envia es: {
"to": "5214181148783",
"from": "whatsapp",
"type": "text",
"content": {
"text": "S/M"
},
"template_values": ["*Daniel Humberto Soto Villegas*", "*#23*", "*04/02/2025 05:00 AM*", "*Ángel Arvizu*"],
"template_uuid": "0d57fd210595422caf2f5999642882a3",
"optin_contact": true
}
Response del CallBell: {"message":{"uuid":"1be3306fedfc418484e7b768e93fd432","status":"enqueued"}}
La notificación fue enviada correctamente con estado: enqueued
[2025-01-24 3:54:46.814254] [info] Notificación enviada correctamente al contacto 4181148783 después de 1 intento(s).
[2025-01-24 3:54:46.814506] [debug] Valor de $installerWhatsApp en verifyJobActionToDo: 4181878106
[2025-01-24 3:54:46.814657] [debug] Se cambió el instalador, por lo tanto se procede a enviarle mensaje al que se le desasignó
[2025-01-24 3:54:46.851881] [debug] Se encontró el Whatsapp del instalador anterior en el JSON y es: 4181878106
Enviando mensaje de tarea al instalador
Datos de la notificación de tarea: {"installerName":"Juan Rostro","subjectOfChange":"se te ha desasignado la tarea con el folio ","jobId":"23","clientFullName":"[2] Daniel Humberto Soto Villegas","additionalChangeData":"En tu lugar asistir\u00e1 el t\u00e9cnico *\u00c1ngel Arvizu*"}
La cadena CURL que se envia es: {
"to": "5214181878106",
"from": "whatsapp",
"type": "text",
"content": {
"text": "S/M"
},
"template_values": ["Juan Rostro", "se te ha desasignado la tarea con el folio ", "23", "[2] Daniel Humberto Soto Villegas", "En tu lugar asistirá el técnico *Ángel Arvizu*"],
"template_uuid": "e1aa2b0fd3884595918f4ac2676acd29",
"optin_contact": true
}
Response del CallBell: {"message":{"uuid":"ef8bd89ca480434e9ac446074c6380e9","status":"enqueued"}}
La notificación fue enviada correctamente con estado: enqueued
Enviando mensaje de tarea al instalador
Datos de la notificación de tarea: {"installerName":"\u00c1ngel Arvizu","clientFullName":"[2] Daniel Humberto Soto Villegas","jobId":"23","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181148783","date":"04\/02\/2025 05:00 AM","jobDescription":"Alinear con la sectorial mas cercana","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"}
La cadena CURL que se envia es: {
"to": "5214181878106",
"from": "whatsapp",
"type": "text",
"content": {
"text": "S/M"
},
"template_values": ["Ángel Arvizu", "*#23*", "[2] Daniel Humberto Soto Villegas", "Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México", "5214181878106, 5214181148783", "04/02/2025 05:00 AM", "Alinear con la sectorial mas cercana", "https://www.google.com/maps?q=21.1564209,-100.9384185"],
"template_uuid": "b6663394265e4bcdb215369aa9ba0f21",
"optin_contact": true
}
Response del CallBell: {"message":{"uuid":"a5e4eba50227420caf7cddb0fc8717a5","status":"enqueued"}}
La notificación fue enviada correctamente con estado: enqueued
[2025-01-24 4:35:03.392863] [notice] Logging level set to:debug
[2025-01-24 4:35:03.481223] [debug] valor el evento recibido por webhook: client.edit
[2025-01-24 4:35:03.481401] [debug] Valor de JSON: {"uuid":"77cc8efa-b15d-4528-8814-09c9cd13499c","changeType":"edit","entity":"client","entityId":"163","eventName":"client.edit","extraData":{"entity":{"id":163,"userIdent":null,"previousIsp":null,"isLead":true,"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":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":163,"userIdent":null,"previousIsp":null,"isLead":true,"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":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
[2025-01-24 4:35:03.481704] [debug] Se actualiza a un cliente
[2025-01-24 4:35:03.481798] [debug] Valor de json_data: {"uuid":"77cc8efa-b15d-4528-8814-09c9cd13499c","changeType":"edit","entity":"client","entityId":"163","eventName":"client.edit","extraData":{"entity":{"id":163,"userIdent":null,"previousIsp":null,"isLead":true,"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":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":163,"userIdent":null,"previousIsp":null,"isLead":true,"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":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
[2025-01-24 4:35:03.481859] [debug] Validando claves dentro de entityBeforeEdit y entity
[2025-01-24 4:35:03.481908] [debug] Los datos entityBeforeEdit y entity contienen el campo isLead
[2025-01-24 4:35:03.481955] [debug] No hubo cambio de true a false en el campo isLead
[2025-01-24 4:35:03.482028] [debug] {"uuid":"77cc8efa-b15d-4528-8814-09c9cd13499c","changeType":"edit","entity":"client","entityId":163,"message":null,"clientId":163,"eventName":"client.edit","clientData":{"id":163,"userIdent":null,"previousIsp":null,"isLead":true,"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":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null}
[2025-01-24 4:35:22.925306] [notice] Logging level set to:debug
[2025-01-24 4:35:23.179027] [debug] valor el evento recibido por webhook: service.add
[2025-01-24 4:35:23.179090] [debug] Valor de JSON: {"uuid":"1c07d3b9-2179-400e-a704-1f1eb9264d6b","changeType":"insert","entity":"service","entityId":"130","eventName":"service.add","extraData":{"entity":{"id":130,"prepaid":false,"clientId":163,"status":7,"name":"INTERMEDIO","fullAddress":"Tamaulipas 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"45 Tamaulipas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"servicePlanId":3,"servicePlanPeriodId":13,"price":500,"hasIndividualPrice":false,"totalPrice":500,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":null,"activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":null,"invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"INTERMEDIO","servicePlanPrice":500,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":12,"uploadSpeed":12,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"9a0290aa-e3d5-4597-8f68-729571f76695","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":null}}
[2025-01-24 4:35:32.430568] [notice] Logging level set to:debug
[2025-01-24 4:35:32.568543] [debug] valor el evento recibido por webhook: service.edit
[2025-01-24 4:35:32.568634] [debug] Valor de JSON: {"uuid":"94459419-9189-4612-855a-93c3d649c010","changeType":"edit","entity":"service","entityId":"130","eventName":"service.edit","extraData":{"entity":{"id":130,"prepaid":false,"clientId":163,"status":7,"name":"INTERMEDIO","fullAddress":"Tamaulipas 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"45 Tamaulipas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"servicePlanId":3,"servicePlanPeriodId":13,"price":500,"hasIndividualPrice":false,"totalPrice":500,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":null,"activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":null,"invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"INTERMEDIO","servicePlanPrice":500,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":12,"uploadSpeed":12,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"9a0290aa-e3d5-4597-8f68-729571f76695","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":{"id":130,"prepaid":false,"clientId":163,"status":7,"name":"INTERMEDIO","fullAddress":"Tamaulipas 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"45 Tamaulipas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"servicePlanId":3,"servicePlanPeriodId":13,"price":500,"hasIndividualPrice":false,"totalPrice":500,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":null,"activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":null,"invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"INTERMEDIO","servicePlanPrice":500,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":12,"uploadSpeed":12,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"9a0290aa-e3d5-4597-8f68-729571f76695","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]}}}
[2025-01-24 6:25:06.379214] [notice] Logging level set to:debug
[2025-01-24 6:25:06.939824] [debug] valor el evento recibido por webhook: invoice.overdue
[2025-01-24 6:25:06.939898] [debug] Valor de JSON: {"uuid":"70ecb3b0-3eff-4bcd-8998-076c832270c5","changeType":"overdue","entity":"invoice","entityId":"1436","eventName":"invoice.overdue","extraData":{"entity":{"id":1436,"clientId":118,"number":"001400","createdDate":"2025-01-09T10:00:01-0600","dueDate":"2025-01-23T10:00:01-0600","emailSentDate":"2025-01-24T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-01-07T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1439,"type":"service","label":"plan300 09\/12\/2024 \u2013 08\/01\/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-01-24 6:25:06.940144] [debug] Factura vencida
[2025-01-24 6:25:06.940201] [debug] datos del notification para el invoice overdue:{"uuid":"70ecb3b0-3eff-4bcd-8998-076c832270c5","changeType":"overdue","entity":"invoice","entityId":1436,"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":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":119,"clientId":118,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"002180173419260258","clientZoneVisible":true}],"accountBalance":-2400,"accountCredit":0,"accountOutstanding":2400,"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":1436,"clientId":118,"number":"001400","createdDate":"2025-01-09T10:00:01-0600","dueDate":"2025-01-23T10:00:01-0600","emailSentDate":"2025-01-24T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-01-07T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1439,"type":"service","label":"plan300 09\/12\/2024 \u2013 08\/01\/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-01-24 6:25:06.940234] [debug] ***Se notifica al cliente que la factura de su servicio está vencida***
[2025-01-24 6:25:06.940365] [debug] Numero de cel obtenido
[2025-01-24 6:25:06.940381] [warning] No se encontró un teléfono celular válido para el cliente: 118
[2025-01-24 15:48:31.074307] [notice] Logging level set to:debug
[2025-01-24 15:48:31.176049] [debug] valor el evento recibido por webhook: client.edit
[2025-01-24 15:48:31.176217] [debug] Valor de JSON: {"uuid":"1207a9de-5172-44c5-b56f-e9537c3d838a","changeType":"edit","entity":"client","entityId":"163","eventName":"client.edit","extraData":{"entity":{"id":163,"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":"2025-01-07T00:00:00-0600","leadConvertedAt":"2025-01-24T09:48:30-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":163,"userIdent":null,"previousIsp":null,"isLead":true,"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":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
[2025-01-24 15:48:31.176495] [debug] Se actualiza a un cliente
[2025-01-24 15:48:31.176604] [debug] Valor de json_data: {"uuid":"1207a9de-5172-44c5-b56f-e9537c3d838a","changeType":"edit","entity":"client","entityId":"163","eventName":"client.edit","extraData":{"entity":{"id":163,"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":"2025-01-07T00:00:00-0600","leadConvertedAt":"2025-01-24T09:48:30-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":163,"userIdent":null,"previousIsp":null,"isLead":true,"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":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
[2025-01-24 15:48:31.176661] [debug] Validando claves dentro de entityBeforeEdit y entity
[2025-01-24 15:48:31.176709] [debug] Los datos entityBeforeEdit y entity contienen el campo isLead
[2025-01-24 15:48:31.176757] [debug] El campo isLead cambió de true a false
[2025-01-24 15:48:31.242400] [info] ID correspondiente a 'Customer Stripe ID': 10
[2025-01-24 15:48:31.245258] [info] El valor de 'isLead' es: false
[2025-01-24 15:48:31.245366] [info] El cliente NO es un lead, se procesará
[2025-01-24 15:48:31.245424] [info] Creando el Customer Stripe
[2025-01-24 15:48:31.245472] [info] El cliente a procesar es : Juan Ramirez Gueerero
[2025-01-24 15:48:31.245534] [info] Datos notificationData: {"uuid":"1207a9de-5172-44c5-b56f-e9537c3d838a","changeType":"edit","entity":"client","entityId":163,"message":null,"clientId":163,"eventName":"client.edit","clientData":{"id":163,"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":"2025-01-07T00:00:00-0600","leadConvertedAt":"2025-01-24T09:48:30-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null}
[2025-01-24 15:48:31.245589] [info] Ya dentro del FOREACH!!!
[2025-01-24 15:48:31.245635] [info] REVISANDO EL PRIMER CONTACTO!!!
[2025-01-24 15:48:31.245682] [info] SE VALIDA EL EMAIL!!!
[2025-01-24 15:48:31.246484] [info] ahora se procede a validar el teléfono!!!
[2025-01-24 15:48:31.246653] [info] AHORA SE MANDA A CREAR EL CLIENTE A STRIPE!!!
[2025-01-24 15:48:31.870918] [info] {"id":"cus_Re7MGhVHdTArv4","object":"customer","address":null,"balance":0,"created":1737733711,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 163","discount":null,"email":"rmgjuan@gmail.com","invoice_prefix":"29FB0ED3","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":[],"name":"Juan Ramirez Gueerero","next_invoice_sequence":1,"phone":"4181876543","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null}
[2025-01-24 15:48:34.194176] [info] {"id":"cus_Re7MGhVHdTArv4","object":"customer","address":null,"balance":0,"created":1737733711,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 163","discount":null,"email":"rmgjuan@gmail.com","invoice_prefix":"29FB0ED3","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":{"ucrm_client_id":"163"},"name":"Juan Ramirez Gueerero","next_invoice_sequence":1,"phone":"4181876543","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null}
[2025-01-24 15:48:34.673861] [notice] Logging level set to:debug
[2025-01-24 15:48:34.674166] [info] No UUID found in the webhook data
[2025-01-24 15:48:36.642779] [info] {"object":"funding_instructions","bank_transfer":{"country":"MX","financial_addresses":[{"spei":{"account_holder_address":{"city":"Ciudad de M\u00e9xico","country":"MX","line1":"Av Paseo de la Reforma 180 piso 29 col Juarez","line2":null,"postal_code":"06600","state":"Ciudad de M\u00e9xico"},"account_holder_name":"SIIP INTERNET","bank_address":{"city":"Naucalpan","country":"MX","line1":"Blvd. Manuel Avila Camacho 1902","line2":"Planta Baja, Cd. Satelite","postal_code":"C.P. 53100","state":"Estado de Mexico"},"bank_code":"124","bank_name":"CITI MEXICO","clabe":"124180636412837853"},"supported_networks":["spei"],"type":"spei"}],"type":"mx_bank_transfer"},"currency":"mxn","funding_type":"bank_transfer","livemode":false}
[2025-01-24 15:48:36.960540] [info] CLABE guardada en metadata: 124180636412837853
[2025-01-24 15:48:37.153096] [info] {}
[2025-01-24 15:48:37.154201] [debug] {"uuid":"1207a9de-5172-44c5-b56f-e9537c3d838a","changeType":"edit","entity":"client","entityId":163,"message":null,"clientId":163,"eventName":"client.edit","clientData":{"id":163,"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":"2025-01-07T00:00:00-0600","leadConvertedAt":"2025-01-24T09:48:30-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null}
[2025-01-24 15:48:37.302537] [notice] Logging level set to:debug
[2025-01-24 15:48:37.387998] [debug] valor el evento recibido por webhook: client.edit
[2025-01-24 15:48:37.388186] [debug] Valor de JSON: {"uuid":"b99cd812-950c-465c-908b-588923d3c934","changeType":"edit","entity":"client","entityId":"163","eventName":"client.edit","extraData":{"entity":{"id":163,"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":"2025-01-07T00:00:00-0600","leadConvertedAt":"2025-01-24T09:48:30-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"}]}],"attributes":[{"id":168,"clientId":163,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_Re7MGhVHdTArv4","clientZoneVisible":true},{"id":169,"clientId":163,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"124180636412837853","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":163,"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":"2025-01-07T00:00:00-0600","leadConvertedAt":"2025-01-24T09:48:30-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
[2025-01-24 15:48:37.388487] [debug] Se actualiza a un cliente
[2025-01-24 15:48:37.388573] [debug] Valor de json_data: {"uuid":"b99cd812-950c-465c-908b-588923d3c934","changeType":"edit","entity":"client","entityId":"163","eventName":"client.edit","extraData":{"entity":{"id":163,"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":"2025-01-07T00:00:00-0600","leadConvertedAt":"2025-01-24T09:48:30-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"}]}],"attributes":[{"id":168,"clientId":163,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_Re7MGhVHdTArv4","clientZoneVisible":true},{"id":169,"clientId":163,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"124180636412837853","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":163,"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":"2025-01-07T00:00:00-0600","leadConvertedAt":"2025-01-24T09:48:30-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
[2025-01-24 15:48:37.388628] [debug] Validando claves dentro de entityBeforeEdit y entity
[2025-01-24 15:48:37.388674] [debug] Los datos entityBeforeEdit y entity contienen el campo isLead
[2025-01-24 15:48:37.388720] [debug] No hubo cambio de true a false en el campo isLead
[2025-01-24 15:48:37.388793] [debug] {"uuid":"b99cd812-950c-465c-908b-588923d3c934","changeType":"edit","entity":"client","entityId":163,"message":null,"clientId":163,"eventName":"client.edit","clientData":{"id":163,"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":"2025-01-07T00:00:00-0600","leadConvertedAt":"2025-01-24T09:48:30-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":false,"isContact":true,"types":[{"id":2,"name":"General"}]}],"attributes":[{"id":168,"clientId":163,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_Re7MGhVHdTArv4","clientZoneVisible":true},{"id":169,"clientId":163,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"124180636412837853","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null}
[2025-01-24 15:48:37.390886] [notice] Logging level set to:debug
[2025-01-24 15:48:37.391066] [info] No UUID found in the webhook data
[2025-01-24 15:49:18.368396] [notice] Logging level set to:debug
[2025-01-24 15:49:18.452897] [debug] valor el evento recibido por webhook: client.edit
[2025-01-24 15:49:18.453103] [debug] Valor de JSON: {"uuid":"962918fc-8e81-470a-8782-3a25f0976598","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"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":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"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 Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"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":"Personal","isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"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 Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
[2025-01-24 15:49:18.453388] [debug] Se actualiza a un cliente
[2025-01-24 15:49:18.453497] [debug] Valor de json_data: {"uuid":"962918fc-8e81-470a-8782-3a25f0976598","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"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":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"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 Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"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":"Personal","isBilling":false,"isContact":false,"types":[]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"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 Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
[2025-01-24 15:49:18.453558] [debug] Validando claves dentro de entityBeforeEdit y entity
[2025-01-24 15:49:18.453605] [debug] Los datos entityBeforeEdit y entity contienen el campo isLead
[2025-01-24 15:49:18.453651] [debug] No hubo cambio de true a false en el campo isLead
[2025-01-24 15:49:18.453727] [debug] {"uuid":"962918fc-8e81-470a-8782-3a25f0976598","changeType":"edit","entity":"client","entityId":2,"message":null,"clientId":2,"eventName":"client.edit","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"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":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"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 Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null}
[2025-01-24 15:49:18.453895] [info] Se proceso los contactos
[2025-01-24 15:49:18.454161] [info] Se actualizara el correo del cliente en Stripe: dhsv.141089@gmail.com
Dentro del proceso del patch:
Datos traidos con payment api: [{"id":517,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-22T03:48:11-0600","amount":235,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":235,"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, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb29545 a favor","Monto Ultimo Pago":"\ud83d\udcb2 235","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb29545 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 235\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 22\/01\/2025 03:48 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/01\/2025 09:49\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 22\/01\/2025 03:48 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/01\/2025 09:49","Clabe Interbancaria":"0021804341999569810"}}
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-01-18T00:00:11Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","Monto Ultimo Pago":"💲 235","URL":"🌐 https://172.16.5.120/crm/client/2","Fecha Ultima Actualizacion":"📆🔄️ 24/01/2025 09:49","user name":"Daniel Humberto 🐁","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 22/01/2025 03:48 con Tarjeta de crédito Stripe 💳","Saldo Actual":"💲9545 a favor","Nombre":"👤 Daniel Humberto Soto Villegas","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲9545 a favor\",\"Monto Ultimo Pago\": \"💲 235\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 22/01/2025 03:48 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 24/01/2025 09:49\",\"Clabe Interbancaria\": \"0021804341999569810\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}}
[2025-01-24 15:49:20.976260] [info] Tipo de contacto no reconocido: WhatsNotifica
[2025-01-24 15:50:42.518944] [notice] Logging level set to:debug
[2025-01-24 15:50:42.617646] [debug] valor el evento recibido por webhook: client.edit
[2025-01-24 15:50:42.617744] [debug] Valor de JSON: {"uuid":"13875e0f-b326-4236-9e0c-1db92426baa8","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"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 x","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"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 Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"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":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"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 Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
[2025-01-24 15:50:42.617964] [debug] Se actualiza a un cliente
[2025-01-24 15:50:42.618015] [debug] Valor de json_data: {"uuid":"13875e0f-b326-4236-9e0c-1db92426baa8","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"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 x","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"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 Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"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":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"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 Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
[2025-01-24 15:50:42.618032] [debug] Validando claves dentro de entityBeforeEdit y entity
[2025-01-24 15:50:42.618041] [debug] Los datos entityBeforeEdit y entity contienen el campo isLead
[2025-01-24 15:50:42.618051] [debug] No hubo cambio de true a false en el campo isLead
[2025-01-24 15:50:42.618092] [debug] {"uuid":"13875e0f-b326-4236-9e0c-1db92426baa8","changeType":"edit","entity":"client","entityId":2,"message":null,"clientId":2,"eventName":"client.edit","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"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 x","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"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 Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null}
[2025-01-24 15:50:42.618216] [info] Se proceso los contactos
[2025-01-24 15:50:42.618453] [info] Se actualizara el correo del cliente en Stripe: dhsv.141089@gmail.com
Dentro del proceso del patch:
Datos traidos con payment api: [{"id":517,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-22T03:48:11-0600","amount":235,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":235,"userId":1015,"attributes":[]}]
Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas x
UUID: 74cc2bb45eb8409f92cd5dba99200d26
JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas x","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas x","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb29545 a favor","Monto Ultimo Pago":"\ud83d\udcb2 235","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas x\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb29545 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 235\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 22\/01\/2025 03:48 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/01\/2025 09:50\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 22\/01\/2025 03:48 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/01\/2025 09:50","Clabe Interbancaria":"0021804341999569810"}}
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas x","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-01-18T00:00:11Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","Monto Ultimo Pago":"💲 235","URL":"🌐 https://172.16.5.120/crm/client/2","Fecha Ultima Actualizacion":"📆🔄️ 24/01/2025 09:50","user name":"Daniel Humberto 🐁","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 22/01/2025 03:48 con Tarjeta de crédito Stripe 💳","Saldo Actual":"💲9545 a favor","Nombre":"👤 Daniel Humberto Soto Villegas x","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas x\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲9545 a favor\",\"Monto Ultimo Pago\": \"💲 235\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 22/01/2025 03:48 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 24/01/2025 09:50\",\"Clabe Interbancaria\": \"0021804341999569810\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}}
[2025-01-24 15:50:45.092567] [info] Tipo de contacto no reconocido: WhatsNotifica
[2025-01-24 16:00:05.110285] [notice] Logging level set to:debug
[2025-01-24 16:00:05.367860] [debug] valor el evento recibido por webhook: invoice.add_draft
[2025-01-24 16:00:05.367923] [debug] Valor de JSON: {"uuid":"eb6b4bd3-f067-4099-8ba5-7b2c660ab451","changeType":"insert","entity":"invoice","entityId":"1447","eventName":"invoice.add_draft","extraData":{"entity":{"id":1447,"clientId":126,"number":"001411","createdDate":"2025-01-24T10:00:01-0600","dueDate":"2025-02-07T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-01-23T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1450,"type":"service","label":"PREMIUM 24\/12\/2024 \u2013 23\/01\/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-01-24 16:00:05.588649] [notice] Logging level set to:debug
[2025-01-24 16:00:05.754511] [debug] valor el evento recibido por webhook: invoice.draft_approved
[2025-01-24 16:00:05.754584] [debug] Valor de JSON: {"uuid":"507f8baa-6eda-407d-a355-01d389d4aa51","changeType":"draft_approved","entity":"invoice","entityId":"1447","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1447,"clientId":126,"number":"001411","createdDate":"2025-01-24T10:00:01-0600","dueDate":"2025-02-07T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-01-23T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1450,"type":"service","label":"PREMIUM 24\/12\/2024 \u2013 23\/01\/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-01-24 16:04:53.075215] [notice] Logging level set to:debug
[2025-01-24 16:04:53.198448] [debug] valor el evento recibido por webhook: client.edit
[2025-01-24 16:04:53.198540] [debug] Valor de JSON: {"uuid":"9f38dcba-aa40-42fb-bf8d-c78605e0f225","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"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 Test","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"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}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"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 x","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"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}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
[2025-01-24 16:04:53.198796] [debug] Se actualiza a un cliente
[2025-01-24 16:04:53.198844] [debug] Valor de json_data: {"uuid":"9f38dcba-aa40-42fb-bf8d-c78605e0f225","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"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 Test","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"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}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"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 x","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"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}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
[2025-01-24 16:04:53.198869] [debug] Validando claves dentro de entityBeforeEdit y entity
[2025-01-24 16:04:53.198880] [debug] Los datos entityBeforeEdit y entity contienen el campo isLead
[2025-01-24 16:04:53.198889] [debug] No hubo cambio de true a false en el campo isLead
[2025-01-24 16:04:53.198936] [debug] {"uuid":"9f38dcba-aa40-42fb-bf8d-c78605e0f225","changeType":"edit","entity":"client","entityId":2,"message":null,"clientId":2,"eventName":"client.edit","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"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 Test","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":"chavoloco@homail.com","phone":"4181148783","name":"Tio","isBilling":false,"isContact":false,"types":[{"id":1003,"name":"WhatsNotifica"}]}],"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}],"accountBalance":9545,"accountCredit":9545,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null}
[2025-01-24 16:04:53.199054] [info] Se proceso los contactos
[2025-01-24 16:04:53.199295] [info] Se actualizara el correo del cliente en Stripe: dhsv.141089@gmail.com
Dentro del proceso del patch:
Datos traidos con payment api: [{"id":517,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-22T03:48:11-0600","amount":235,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":235,"userId":1015,"attributes":[]}]
Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Test
UUID: 74cc2bb45eb8409f92cd5dba99200d26
JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Test","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Test","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb29545 a favor","Monto Ultimo Pago":"\ud83d\udcb2 235","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Test\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb29545 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 235\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 22\/01\/2025 03:48 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/01\/2025 10:04\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 22\/01\/2025 03:48 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/01\/2025 10:04","Clabe Interbancaria":"0021804341999569810"}}
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Test","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-01-18T00:00:11Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","Monto Ultimo Pago":"💲 235","URL":"🌐 https://172.16.5.120/crm/client/2","Fecha Ultima Actualizacion":"📆🔄️ 24/01/2025 10:04","user name":"Daniel Humberto 🐁","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 22/01/2025 03:48 con Tarjeta de crédito Stripe 💳","Saldo Actual":"💲9545 a favor","Nombre":"👤 Daniel Humberto Soto Villegas Test","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Test\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲9545 a favor\",\"Monto Ultimo Pago\": \"💲 235\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 22/01/2025 03:48 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 24/01/2025 10:04\",\"Clabe Interbancaria\": \"0021804341999569810\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}}
[2025-01-24 16:04:55.647032] [info] Tipo de contacto no reconocido: WhatsNotifica