From 5c2ab3de74c56436b44e4ea10ce719355103e3f2 Mon Sep 17 00:00:00 2001 From: DANYDHSV Date: Sun, 22 Mar 2026 11:14:05 -0600 Subject: [PATCH] =?UTF-8?q?antes=20de=20la=20refactorizaci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/plugin.log | 487 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 487 insertions(+) diff --git a/data/plugin.log b/data/plugin.log index 21dcc649..f91545af 100755 --- a/data/plugin.log +++ b/data/plugin.log @@ -1715,3 +1715,490 @@ contac vacio [2026-03-16 6:25:03.512801] [debug] datos del notification para el invoice overdue:{"uuid":"377ce134-9c0f-4eb9-9bae-373cc9a3db17","changeType":"overdue","entity":"invoice","entityId":3222,"message":null,"clientId":132,"eventName":"invoice.overdue","clientData":{"id":132,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"20 Avenida Norte","street2":null,"city":"Guanajuato","countryId":173,"stateId":null,"zipCode":"37807","fullAddress":"Avenida Norte 20, Dolores, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-18T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Marto","lastName":"Vago Payaso","username":null,"contacts":[{"id":136,"clientId":132,"email":"vagopayaso@gmail.com","phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":402,"clientId":132,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":",wD*$JLJD>kzfwdv5Vpo","clientZoneVisible":false}],"accountBalance":-6000,"accountCredit":0,"accountOutstanding":6000,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#9c27b0","addressGpsLat":21.1641484,"addressGpsLon":-100.9405409,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":3222,"clientId":132,"number":"003168","createdDate":"2026-03-01T10:00:02-0600","dueDate":"2026-03-15T10:00:02-0600","emailSentDate":"2026-03-16T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2026-02-27T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3239,"type":"service","label":"plan300 01\/02\/2026 \u2013 28\/02\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":115,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Marto","clientLastName":"Vago Payaso","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"20 Avenida Norte","clientStreet2":null,"clientCity":"Guanajuato","clientCountryId":173,"clientStateId":null,"clientZipCode":"37807","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"paymentData":null} contac vacio +[2026-03-20 16:00:05.439146] [notice] Logging level set to:debug +[2026-03-20 16:00:05.439225] [debug] Payload recibido: {"uuid":"25c2c323-0007-4a23-80e7-d77c826148a1","changeType":"draft_approved","entity":"invoice","entityId":"3229","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3229,"clientId":122,"number":"003175","createdDate":"2026-03-20T10:00:01-0600","dueDate":"2026-04-03T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-19T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":3246,"type":"service","label":"plan300 20\/02\/2026 \u2013 19\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":107,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUDITH","clientLastName":"MARQUEZ GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PLUTARCO ELIAS CALLES 8,LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-20 16:00:05.657953] [debug] Evento recibido: invoice.draft_approved +[2026-03-20 16:00:05.658067] [debug] Aprobación de Factura + +[2026-03-20 16:00:06.839226] [notice] Logging level set to:debug +[2026-03-20 16:00:06.839288] [debug] Payload recibido: {"uuid":"7f0b9822-b903-4c8a-a453-f89d300350b2","changeType":"draft_approved","entity":"invoice","entityId":"3230","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3230,"clientId":121,"number":"003176","createdDate":"2026-03-20T10:00:01-0600","dueDate":"2026-04-03T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-19T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":3247,"type":"service","label":"INTERMEDIO 20\/02\/2026 \u2013 19\/03\/2026","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":106,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"flor","clientLastName":"marquez gonzalez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"plutarco elias calles 8,lindavista","clientStreet2":"enfrente del parque","clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-20 16:00:07.056046] [debug] Evento recibido: invoice.draft_approved +[2026-03-20 16:00:07.056150] [debug] Aprobación de Factura + +[2026-03-21 16:00:05.319603] [notice] Logging level set to:debug +[2026-03-21 16:00:05.319782] [debug] Payload recibido: {"uuid":"a3892b84-ce7e-448d-9f05-ba4fc5b92950","changeType":"draft_approved","entity":"invoice","entityId":"3231","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3231,"clientId":105,"number":"003177","createdDate":"2026-03-21T10:00:01-0600","dueDate":"2026-04-04T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-20T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":3248,"type":"service","label":"plan300 21\/02\/2026 \u2013 20\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":111,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"jota","clientLastName":"serpiente","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":null,"clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-21 16:00:05.541732] [debug] Evento recibido: invoice.draft_approved +[2026-03-21 16:00:05.541938] [debug] Aprobación de Factura + +[2026-03-21 16:00:06.875016] [notice] Logging level set to:debug +[2026-03-21 16:00:06.875076] [debug] Payload recibido: {"uuid":"c5389a55-9238-43d1-bdbc-03e98699f400","changeType":"draft_approved","entity":"invoice","entityId":"3232","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3232,"clientId":133,"number":"003178","createdDate":"2026-03-21T10:00:01-0600","dueDate":"2026-04-04T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-20T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":3249,"type":"service","label":"INTERMEDIO 21\/02\/2026 \u2013 20\/03\/2026","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":114,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Los Amigos","clientLastName":"Invisibles","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Calle Colima","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-21 16:00:07.095586] [debug] Evento recibido: invoice.draft_approved +[2026-03-21 16:00:07.095782] [debug] Aprobación de Factura + +[2026-03-21 16:00:08.406877] [notice] Logging level set to:debug +[2026-03-21 16:00:08.406946] [debug] Payload recibido: {"uuid":"6b0372b0-fc17-4924-adc9-cc5442ea1ce8","changeType":"draft_approved","entity":"invoice","entityId":"3233","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3233,"clientId":134,"number":"003179","createdDate":"2026-03-21T10:00:01-0600","dueDate":"2026-04-04T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-20T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":3250,"type":"service","label":"PREMIUM 21\/02\/2026 \u2013 20\/03\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":113,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"La Mosca","clientLastName":"Tse Tse","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"25 Michoac\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-21 16:00:08.650146] [debug] Evento recibido: invoice.draft_approved +[2026-03-21 16:00:08.650260] [debug] Aprobación de Factura + +[2026-03-21 16:00:14.111414] [notice] Logging level set to:debug +[2026-03-21 16:00:14.111475] [debug] Payload recibido: {"uuid":"c1b76aff-3ed0-4e54-aa88-a2baa1b8d1a4","changeType":"draft_approved","entity":"invoice","entityId":"3234","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3234,"clientId":136,"number":"003180","createdDate":"2026-03-21T10:00:01-0600","dueDate":"2026-04-04T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-20T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":3251,"type":"service","label":"INTERMEDIO 21\/02\/2026 \u2013 20\/03\/2026","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":112,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Mus","clientLastName":"Tafah","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"22 Yucat\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-21 16:00:14.364178] [debug] Evento recibido: invoice.draft_approved +[2026-03-21 16:00:14.364393] [debug] Aprobación de Factura + +[2026-03-22 6:25:03.823106] [notice] Logging level set to:debug +[2026-03-22 6:25:03.823170] [debug] Payload recibido: {"uuid":"3ceb2a06-c294-482a-9ff9-13e37fde86f9","changeType":"overdue","entity":"invoice","entityId":"3224","eventName":"invoice.overdue","extraData":{"entity":{"id":3224,"clientId":116,"number":"003170","createdDate":"2026-03-07T10:00:02-0600","dueDate":"2026-03-21T10:00:02-0600","emailSentDate":"2026-03-22T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2026-03-05T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3241,"type":"service","label":"PREMIUM 07\/02\/2026 \u2013 06\/03\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":110,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Jos\u00e9 Humberto","clientLastName":"Rodr\u00edguez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"28 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-22 6:25:04.068660] [debug] Evento recibido: invoice.overdue +[2026-03-22 6:25:04.068768] [debug] Factura vencida + +[2026-03-22 6:25:04.068815] [debug] datos del notification para el invoice overdue:{"uuid":"3ceb2a06-c294-482a-9ff9-13e37fde86f9","changeType":"overdue","entity":"invoice","entityId":3224,"message":null,"clientId":116,"eventName":"invoice.overdue","clientData":{"id":116,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"28 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 28, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-04-24T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Jos\u00e9 Humberto","lastName":"Rodr\u00edguez","username":null,"contacts":[{"id":120,"clientId":116,"email":"josehumberto@gmail.com","phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":215,"clientId":116,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-14700,"accountCredit":0,"accountOutstanding":14700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.1566139,"addressGpsLon":-100.9384516,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":3224,"clientId":116,"number":"003170","createdDate":"2026-03-07T10:00:02-0600","dueDate":"2026-03-21T10:00:02-0600","emailSentDate":"2026-03-22T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2026-03-05T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3241,"type":"service","label":"PREMIUM 07\/02\/2026 \u2013 06\/03\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":110,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Jos\u00e9 Humberto","clientLastName":"Rodr\u00edguez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"28 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"paymentData":null} + +contac vacio +[2026-03-22 16:00:04.344636] [notice] Logging level set to:debug +[2026-03-22 16:00:04.344702] [debug] Payload recibido: {"uuid":"fc06381d-3f61-407b-8355-d2efa1ad3237","changeType":"draft_approved","entity":"invoice","entityId":"3235","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3235,"clientId":114,"number":"003181","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3252,"type":"service","label":"Basico 300 01\/04\/2026 \u2013 30\/04\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":149,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Juan Calavera","clientLastName":"Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Guanajuato","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-22 16:00:04.691345] [debug] Evento recibido: invoice.draft_approved +[2026-03-22 16:00:04.691467] [debug] Aprobación de Factura + +[2026-03-22 16:00:04.691576] [debug] onlyUpdate: Iniciando actualización para teléfono: 41856987412 +[2026-03-22 16:00:04.691693] [debug] onlyUpdate: Teléfono validado: 41856987412 +[2026-03-22 16:00:05.465713] [debug] onlyUpdate: Contacto obtenido de CallBell: {"error":"not found"} +[2026-03-22 16:00:05.465775] [info] onlyUpdate: Ejecutando patchWhatsapp para teléfono: 41856987412 +Notificacion data: {"uuid":"fc06381d-3f61-407b-8355-d2efa1ad3237","changeType":"draft_approved","entity":"invoice","entityId":3235,"message":null,"clientId":114,"eventName":"invoice.draft_approved","clientData":{"id":114,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Guanajuato","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Guanajuato 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-04-24T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan Calavera","lastName":"Gonz\u00e1lez","username":null,"contacts":[{"id":118,"clientId":114,"email":"juancalavera@gmail.com","phone":"41856987412","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":188,"clientId":114,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_S0EQeXBl8NhBZi","clientZoneVisible":true},{"id":189,"clientId":114,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180969856650415","clientZoneVisible":true},{"id":315,"clientId":114,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"onUZR#G22@EEc3W8","clientZoneVisible":false}],"accountBalance":-600,"accountCredit":0,"accountOutstanding":600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1567207,"addressGpsLon":-100.9310153,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":3235,"clientId":114,"number":"003181","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3252,"type":"service","label":"Basico 300 01\/04\/2026 \u2013 30\/04\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":149,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Juan Calavera","clientLastName":"Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Guanajuato","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":972,"clientId":114,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-02-16T10:05:37-0600","amount":3380,"currencyCode":"MXN","note":null,"receiptSentDate":"2026-02-16T10:05:41-0600","providerName":"Manual","providerPaymentId":"1771257937761-114","providerPaymentTime":"2026-02-16T10:05:37-0600","paymentCovers":[{"id":1527,"invoiceId":1704,"paymentId":972,"creditNoteId":null,"refundId":null,"amount":80},{"id":1528,"invoiceId":1705,"paymentId":972,"creditNoteId":null,"refundId":null,"amount":300},{"id":1529,"invoiceId":1827,"paymentId":972,"creditNoteId":null,"refundId":null,"amount":300},{"id":1530,"invoiceId":1951,"paymentId":972,"creditNoteId":null,"refundId":null,"amount":300},{"id":1531,"invoiceId":2068,"paymentId":972,"creditNoteId":null,"refundId":null,"amount":300},{"id":1532,"invoiceId":2200,"paymentId":972,"creditNoteId":null,"refundId":null,"amount":300},{"id":1533,"invoiceId":2327,"paymentId":972,"creditNoteId":null,"refundId":null,"amount":300},{"id":1534,"invoiceId":2437,"paymentId":972,"creditNoteId":null,"refundId":null,"amount":300},{"id":1535,"invoiceId":2563,"paymentId":972,"creditNoteId":null,"refundId":null,"amount":300},{"id":1536,"invoiceId":2694,"paymentId":972,"creditNoteId":null,"refundId":null,"amount":300},{"id":1537,"invoiceId":2846,"paymentId":972,"creditNoteId":null,"refundId":null,"amount":300},{"id":1538,"invoiceId":2991,"paymentId":972,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[{"id":"f20a36a0-d3e1-48a4-8a9a-46d60528d5ec","paymentId":972,"customAttributeId":6,"name":"Pagos De","key":"pagosDe","value":"Juanita","clientZoneVisible":true}]}] + +Nombre del cliente que se va a actualizar: Juan Calavera González + +UUID: + +JSON con los datos a actualizar: {"name":"Juan Calavera Gonz\u00e1lez","custom_fields":{"Site":"","Estado":"\ud83d\udfe0 Suspendido","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/114","Nombre":"\ud83d\udc64 Juan Calavera Gonz\u00e1lez","Cliente":114,"Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/03\/2026 10:00","Saldo Actual":"\ud83d\udcb2600 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 3380","Clabe Interbancaria":"124180969856650415","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 16\/02\/2026 10:05 con Personalizado \ud83d\udcdd\ud83d\udcb8","Antena\/Sectorial":"","Domicilio":"\ud83d\udccd Guanajuato 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Resumen":"{\"Cliente\": \"114\",\"Nombre\": \"Juan Calavera Gonz\u00e1lez\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/114\",\"Saldo Actual\": \"\ud83d\udcb2600 pendientes\",\"Monto Ultimo Pago\": \"$ 3380\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 16\/02\/2026 10:05 con Personalizado \ud83d\udcdd\ud83d\udcb8\",\"Fecha Ultima Actualizacion\": \"22\/03\/2026 10:00\",\"Clabe Interbancaria\": \"124180969856650415\",\"Site\": \"\",\"Antena\/Sectorial\": \"\",\"Password Antena\": {\"Servicio 1\":\"onUZR#G22@EEc3W8\"}}","password-antena":"{\"Servicio 1\":\"onUZR#G22@EEc3W8\"}"}} + +DEBUG COMPARACIÓN - CallBell Saldo Actual: 'NULL' + +DEBUG COMPARACIÓN - UCRM Saldo Actual: '💲600 pendientes' + +DEBUG COMPARACIÓN - CallBell Estado: 'NULL' + +DEBUG COMPARACIÓN - UCRM Estado: '🟠 Suspendido' + +DEBUG COMPARACIÓN - Diferencia en name. CallBell: 'NULL', UCRM: 'Juan Calavera González' + +EJECUTANDO PATCH - Se detectaron cambios + +Response Patch CallBell: + +[2026-03-22 16:00:06.870731] [notice] Logging level set to:debug +[2026-03-22 16:00:06.870785] [debug] Payload recibido: {"uuid":"90f266db-df10-44e1-9913-8ed061101a43","changeType":"draft_approved","entity":"invoice","entityId":"3236","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3236,"clientId":138,"number":"003182","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3253,"type":"service","label":"Basico 300 01\/04\/2026 \u2013 30\/04\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":148,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Mofles","clientLastName":"El Ruco Lopez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"89 Baja California Sur","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-22 16:00:07.085515] [debug] Evento recibido: invoice.draft_approved +[2026-03-22 16:00:07.085639] [debug] Aprobación de Factura + +[2026-03-22 16:00:07.484793] [notice] Logging level set to:debug +[2026-03-22 16:00:07.484868] [debug] Payload recibido: {"uuid":"7f4ab373-0717-45be-aeb0-82af906baf1b","changeType":"draft_approved","entity":"invoice","entityId":"3237","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3237,"clientId":176,"number":"003183","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3254,"type":"service","label":"Basico 300 04\/03\/2026 \u2013 31\/03\/2026","price":300,"quantity":0.9333333333333333,"total":280,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":175,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":280,"discount":null,"discountLabel":"Descuento","taxes":[],"total":280,"amountPaid":0,"totalUntaxed":280,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":280,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Diego Emmanuel","clientLastName":"Rodr\u00edguez Arellano","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"54 Calle Nayarit","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-22 16:00:07.725831] [debug] Evento recibido: invoice.draft_approved +[2026-03-22 16:00:07.725954] [debug] Aprobación de Factura + +[2026-03-22 16:00:11.026905] [notice] Logging level set to:debug +[2026-03-22 16:00:11.026963] [debug] Payload recibido: {"uuid":"aba9a1d2-04a5-4435-b8de-c98a8f0292b9","changeType":"draft_approved","entity":"invoice","entityId":"3238","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3238,"clientId":148,"number":"003184","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3255,"type":"service","label":"plan300 01\/03\/2026 \u2013 31\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":116,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El AR","clientLastName":"Real 3D","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"24 Campeche","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-22 16:00:11.271172] [debug] Evento recibido: invoice.draft_approved +[2026-03-22 16:00:11.271313] [debug] Aprobación de Factura + +[2026-03-22 16:00:11.271405] [debug] onlyUpdate: Iniciando actualización para teléfono: 41818781806 +[2026-03-22 16:00:11.271505] [debug] onlyUpdate: Teléfono validado: 41818781806 +[2026-03-22 16:00:11.985872] [debug] onlyUpdate: Contacto obtenido de CallBell: {"error":"not found"} +[2026-03-22 16:00:11.985939] [info] onlyUpdate: Ejecutando patchWhatsapp para teléfono: 41818781806 +Notificacion data: {"uuid":"aba9a1d2-04a5-4435-b8de-c98a8f0292b9","changeType":"draft_approved","entity":"invoice","entityId":3238,"message":null,"clientId":148,"eventName":"invoice.draft_approved","clientData":{"id":148,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"24 Campeche","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Campeche 24, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-08-19T00:00:00-0600","leadConvertedAt":"2024-08-19T15:08:20-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El AR","lastName":"Real 3D","username":null,"contacts":[{"id":152,"clientId":148,"email":"elarquijuve@gmail.com","phone":"41818781806","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":147,"clientId":148,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_Qh0pTQM9a96D8B","clientZoneVisible":true},{"id":148,"clientId":148,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180834778043086","clientZoneVisible":true},{"id":406,"clientId":148,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"(Mfr:}C5pG4DE@giW?{{","clientZoneVisible":false}],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#c62828","addressGpsLat":21.1558353,"addressGpsLon":-100.9384629,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":3238,"clientId":148,"number":"003184","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3255,"type":"service","label":"plan300 01\/03\/2026 \u2013 31\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":116,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El AR","clientLastName":"Real 3D","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"24 Campeche","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":368,"clientId":148,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-08-19T15:10:06-0600","amount":3500,"currencyCode":"MXN","note":null,"receiptSentDate":"2024-08-19T15:10:13-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":416,"invoiceId":852,"paymentId":368,"creditNoteId":null,"refundId":null,"amount":3500}],"creditAmount":0,"userId":1015,"attributes":[]}] + +Nombre del cliente que se va a actualizar: El AR Real 3D + +UUID: + +JSON con los datos a actualizar: {"name":"El AR Real 3D","custom_fields":{"Site":"","Estado":"\ud83d\udfe0 Suspendido","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/148","Nombre":"\ud83d\udc64 El AR Real 3D","Cliente":148,"Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/03\/2026 10:00","Saldo Actual":"\ud83d\udcb24200 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 3500","Clabe Interbancaria":"002180834778043086","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 19\/08\/2024 15:10 con Efectivo \ud83d\udcb5","Antena\/Sectorial":"","Domicilio":"\ud83d\udccd Campeche 24, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Resumen":"{\"Cliente\": \"148\",\"Nombre\": \"El AR Real 3D\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/148\",\"Saldo Actual\": \"\ud83d\udcb24200 pendientes\",\"Monto Ultimo Pago\": \"$ 3500\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 19\/08\/2024 15:10 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"22\/03\/2026 10:00\",\"Clabe Interbancaria\": \"002180834778043086\",\"Site\": \"\",\"Antena\/Sectorial\": \"\",\"Password Antena\": {\"Servicio 1\":\"(Mfr:}C5pG4DE@giW?{{\"}}","password-antena":"{\"Servicio 1\":\"(Mfr:}C5pG4DE@giW?{{\"}"}} + +DEBUG COMPARACIÓN - CallBell Saldo Actual: 'NULL' + +DEBUG COMPARACIÓN - UCRM Saldo Actual: '💲4200 pendientes' + +DEBUG COMPARACIÓN - CallBell Estado: 'NULL' + +DEBUG COMPARACIÓN - UCRM Estado: '🟠 Suspendido' + +DEBUG COMPARACIÓN - Diferencia en name. CallBell: 'NULL', UCRM: 'El AR Real 3D' + +EJECUTANDO PATCH - Se detectaron cambios + +[2026-03-22 16:00:21.465442] [notice] Logging level set to:debug +[2026-03-22 16:00:21.465502] [debug] Payload recibido: {"uuid":"a819bca1-cabe-40e7-9156-8e7f1d0eed59","changeType":"draft_approved","entity":"invoice","entityId":"3239","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3239,"clientId":164,"number":"003185","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3256,"type":"service","label":"Basico 300 01\/03\/2026 \u2013 31\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":166,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Isra","clientLastName":"Marcial","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Coahuila","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-22 16:00:21.665697] [debug] Evento recibido: invoice.draft_approved +[2026-03-22 16:00:21.665811] [debug] Aprobación de Factura + +[2026-03-22 16:00:22.063106] [notice] Logging level set to:debug +[2026-03-22 16:00:22.063150] [debug] Payload recibido: {"uuid":"606f64a7-b10d-454b-becc-de89aa53e15c","changeType":"draft_approved","entity":"invoice","entityId":"3240","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3240,"clientId":112,"number":"003186","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3257,"type":"service","label":"Basico 300 01\/04\/2026 \u2013 30\/04\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":153,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Do\u00f1a petra","clientLastName":"Gonzalez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Tamaulipas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-22 16:00:22.258987] [debug] Evento recibido: invoice.draft_approved +[2026-03-22 16:00:22.259088] [debug] Aprobación de Factura + +[2026-03-22 16:00:22.686168] [notice] Logging level set to:debug +[2026-03-22 16:00:22.686218] [debug] Payload recibido: {"uuid":"ffbd8eab-cca7-4127-8251-5522dcdc87ea","changeType":"draft_approved","entity":"invoice","entityId":"3241","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3241,"clientId":155,"number":"003187","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3258,"type":"service","label":"Basico 300 01\/03\/2026 \u2013 31\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":167,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"German","clientLastName":"Mart\u00ednez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Sinaloa","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-22 16:00:22.888284] [debug] Evento recibido: invoice.draft_approved +[2026-03-22 16:00:22.888390] [debug] Aprobación de Factura + +[2026-03-22 16:00:22.888447] [debug] onlyUpdate: Iniciando actualización para teléfono: 4181234589 +[2026-03-22 16:00:22.888576] [debug] onlyUpdate: Teléfono validado: 524181234589 +[2026-03-22 16:00:23.248428] [debug] onlyUpdate: Contacto obtenido de CallBell: {"error":"not found"} +[2026-03-22 16:00:23.248529] [info] onlyUpdate: Ejecutando patchWhatsapp para teléfono: 524181234589 +Notificacion data: {"uuid":"ffbd8eab-cca7-4127-8251-5522dcdc87ea","changeType":"draft_approved","entity":"invoice","entityId":3241,"message":null,"clientId":155,"eventName":"invoice.draft_approved","clientData":{"id":155,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Sinaloa","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Sinaloa 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-11-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"German","lastName":"Mart\u00ednez","username":null,"contacts":[{"id":153,"clientId":155,"email":null,"phone":"4181234589","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":149,"clientId":155,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RJYf1z7xvK9ZUF","clientZoneVisible":true},{"id":150,"clientId":155,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180629437591110","clientZoneVisible":true},{"id":256,"clientId":155,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"Q,f3c-:EmCGB?j8N","clientZoneVisible":false}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":14,"name":"PAGO SILLEROS","colorBackground":"#8e1600","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#546e7a","addressGpsLat":21.160578,"addressGpsLon":-100.9364158,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":3241,"clientId":155,"number":"003187","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3258,"type":"service","label":"Basico 300 01\/03\/2026 \u2013 31\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":167,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"German","clientLastName":"Mart\u00ednez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Sinaloa","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":985,"clientId":155,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-03-02T12:58:45-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":"Manual","providerPaymentId":"1772477925357-155","providerPaymentTime":"2026-03-02T12:58:45-0600","paymentCovers":[{"id":1552,"invoiceId":3103,"paymentId":985,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}] + +Nombre del cliente que se va a actualizar: German Martínez + +UUID: + +JSON con los datos a actualizar: {"name":"German Mart\u00ednez","custom_fields":{"Site":"","Estado":"\ud83d\udfe2 Activo ","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/155","Nombre":"\ud83d\udc64 German Mart\u00ednez","Cliente":155,"Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/03\/2026 10:00","Saldo Actual":"\ud83d\udcb2300 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 300","Clabe Interbancaria":"124180629437591110","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 02\/03\/2026 12:58 con Personalizado \ud83d\udcdd\ud83d\udcb8","Antena\/Sectorial":"","Domicilio":"\ud83d\udccd Sinaloa 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Resumen":"{\"Cliente\": \"155\",\"Nombre\": \"German Mart\u00ednez\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/155\",\"Saldo Actual\": \"\ud83d\udcb2300 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 02\/03\/2026 12:58 con Personalizado \ud83d\udcdd\ud83d\udcb8\",\"Fecha Ultima Actualizacion\": \"22\/03\/2026 10:00\",\"Clabe Interbancaria\": \"124180629437591110\",\"Site\": \"\",\"Antena\/Sectorial\": \"\",\"Password Antena\": {\"Servicio 1\":\"Q,f3c-:EmCGB?j8N\"}}","password-antena":"{\"Servicio 1\":\"Q,f3c-:EmCGB?j8N\"}"}} + +DEBUG COMPARACIÓN - CallBell Saldo Actual: 'NULL' + +DEBUG COMPARACIÓN - UCRM Saldo Actual: '💲300 pendientes' + +DEBUG COMPARACIÓN - CallBell Estado: 'NULL' + +DEBUG COMPARACIÓN - UCRM Estado: '🟢 Activo ' + +DEBUG COMPARACIÓN - Diferencia en name. CallBell: 'NULL', UCRM: 'German Martínez' + +EJECUTANDO PATCH - Se detectaron cambios + +Response Patch CallBell: + +[2026-03-22 16:00:24.142801] [notice] Logging level set to:debug +[2026-03-22 16:00:24.142844] [debug] Payload recibido: {"uuid":"685a68b9-e39d-4363-b407-3d5aa52976a8","changeType":"draft_approved","entity":"invoice","entityId":"3242","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3242,"clientId":172,"number":"003188","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3259,"type":"service","label":"Basico 300 01\/03\/2026 \u2013 31\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":158,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":60,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":240,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":1563,"invoiceId":3242,"paymentId":980,"creditNoteId":null,"refundId":null,"amount":50},{"id":1564,"invoiceId":3242,"paymentId":981,"creditNoteId":null,"refundId":null,"amount":10}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Gabriel","clientLastName":"Rodr\u00edguez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"veracruz 24","clientStreet2":null,"clientCity":"Dolores hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-22 16:00:24.339895] [debug] Evento recibido: invoice.draft_approved +[2026-03-22 16:00:24.340003] [debug] Aprobación de Factura + +[2026-03-22 16:00:24.744412] [notice] Logging level set to:debug +[2026-03-22 16:00:24.744460] [debug] Payload recibido: {"uuid":"c661a726-58b5-4be7-bf63-98e4bf229511","changeType":"draft_approved","entity":"invoice","entityId":"3243","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3243,"clientId":167,"number":"003189","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3260,"type":"service","label":"PREMIUM 01\/03\/2026 \u2013 31\/03\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":173,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":493.33,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":206.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":1565,"invoiceId":3243,"paymentId":579,"creditNoteId":null,"refundId":null,"amount":43.33},{"id":1566,"invoiceId":3243,"paymentId":583,"creditNoteId":null,"refundId":null,"amount":300},{"id":1567,"invoiceId":3243,"paymentId":841,"creditNoteId":null,"refundId":null,"amount":150}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Javier","clientLastName":"Alatorre","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Avenida Sur","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-22 16:00:24.940329] [debug] Evento recibido: invoice.draft_approved +[2026-03-22 16:00:24.940437] [debug] Aprobación de Factura + +[2026-03-22 16:00:25.345876] [notice] Logging level set to:debug +[2026-03-22 16:00:25.345930] [debug] Payload recibido: {"uuid":"05a8bc72-62c5-4142-88ac-0b346752b6a7","changeType":"draft_approved","entity":"invoice","entityId":"3244","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3244,"clientId":174,"number":"003190","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3261,"type":"service","label":"Basico 300 01\/03\/2026 \u2013 31\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":159,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Luigi","clientLastName":"S\u00e1nchez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Guadalupe 23","clientStreet2":null,"clientCity":"Dolores Hidalgo Guanajuato","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-22 16:00:25.544565] [debug] Evento recibido: invoice.draft_approved +[2026-03-22 16:00:25.544678] [debug] Aprobación de Factura + +[2026-03-22 16:00:26.521018] [notice] Logging level set to:debug +[2026-03-22 16:00:26.521070] [debug] Payload recibido: {"uuid":"4f098032-d37d-493e-9fc2-86404c7d773a","changeType":"draft_approved","entity":"invoice","entityId":"3245","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3245,"clientId":129,"number":"003191","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3262,"type":"service","label":"INTERMEDIO 01\/03\/2026 \u2013 31\/03\/2026","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":117,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Loco","clientLastName":"Valdez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Coahuila","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-22 16:00:26.733848] [debug] Evento recibido: invoice.draft_approved +[2026-03-22 16:00:26.733954] [debug] Aprobación de Factura + +[2026-03-22 16:00:28.218152] [notice] Logging level set to:debug +[2026-03-22 16:00:28.218215] [debug] Payload recibido: {"uuid":"7323577b-ff5f-4d02-8e21-10495bf49f4f","changeType":"draft_approved","entity":"invoice","entityId":"3246","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3246,"clientId":12,"number":"003192","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3263,"type":"service","label":"Basico 300 01\/03\/2026 \u2013 31\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":163,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MIRIAM","clientLastName":"ZURITA RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-22 16:00:28.593902] [debug] Evento recibido: invoice.draft_approved +[2026-03-22 16:00:28.594012] [debug] Aprobación de Factura + +[2026-03-22 16:00:28.594084] [debug] onlyUpdate: Iniciando actualización para teléfono: 4181577623 +[2026-03-22 16:00:28.594149] [debug] onlyUpdate: Teléfono validado: 524181577623 +[2026-03-22 16:00:29.405242] [debug] onlyUpdate: Contacto obtenido de CallBell: {"contact":{"uuid":"7ec1948ad8af4bcd8eff0d7c2a995d09","name":"ALEJANDRO MOCTEZUMA ALMAGUER","phoneNumber":"5214181577623","avatarUrl":null,"createdAt":"2023-12-22T16:52:57Z","closedAt":"2025-01-07T23:12:30Z","source":"whatsapp","funnelId":null,"href":"https:\/\/dash.callbell.eu\/contacts\/7ec1948ad8af4bcd8eff0d7c2a995d09","conversationHref":"https:\/\/dash.callbell.eu\/chat\/d06f5a96768c4945b7a659a6930e5fa0","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clabe Interbancaria":"124180650725363841","user name":"M\u00edriam Moctezuma","Antena\/Sectorial":"SECTORIAL-2 172.16.12.11\/24","Site":"GPE1","Estado":"\ud83d\udfe2 Activo ","Cliente":"574","Domicilio":"\ud83d\udccd DOCTOR MORA #51,FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo C.I.N., 37800","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/574","Saldo Actual":"\ud83d\udcb230 a favor","Monto Ultimo Pago":"\ud83d\udcb2 10","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 02\/01\/2025 17:44 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/03\/2026 06:28","Nombre":"\ud83d\udc64 ALEJANDRO MOCTEZUMA ALMAGUER","Resumen":"{\"Cliente\": \"574\",\"Nombre\": \"ALEJANDRO MOCTEZUMA ALMAGUER\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/574\",\"Saldo Actual\": \"\ud83d\udcb230 a favor\",\"Monto Ultimo Pago\": \"$ 10\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 02\/01\/2025 17:44 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"22\/03\/2026 06:28\",\"Clabe Interbancaria\": \"124180650725363841\",\"Site\": \"GPE1\",\"Antena\/Sectorial\": \"SECTORIAL-2 172.16.12.11\/24\",\"Password Antena\": {\"Servicio 1\":\"s&~=qL~QeV3pH5!;(@J~\"}}","password-antena":"{\"Servicio 1\":\"s&~=qL~QeV3pH5!;(@J~\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":5,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"discardedAt":null,"type":"whatsapp","main":true},"blockedAt":null}} +[2026-03-22 16:00:29.405314] [info] onlyUpdate: Ejecutando patchWhatsapp para teléfono: 524181577623 +Notificacion data: {"uuid":"7323577b-ff5f-4d02-8e21-10495bf49f4f","changeType":"draft_approved","entity":"invoice","entityId":3246,"message":null,"clientId":12,"eventName":"invoice.draft_approved","clientData":{"id":12,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"DOLORES HIDALGO","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MIRIAM","lastName":"ZURITA RAMIREZ","username":"mzurita12","contacts":[{"id":13,"clientId":12,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":247,"clientId":12,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-14833.33,"accountCredit":0,"accountOutstanding":14833.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#9c27b0","addressGpsLat":21.1574,"addressGpsLon":-100.934617,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":3246,"clientId":12,"number":"003192","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3263,"type":"service","label":"Basico 300 01\/03\/2026 \u2013 31\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":163,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MIRIAM","clientLastName":"ZURITA RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":11,"clientId":12,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-01-29T11:46:50-0600","amount":3500,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":13,"invoiceId":20,"paymentId":11,"creditNoteId":null,"refundId":null,"amount":3500}],"creditAmount":0,"userId":1000,"attributes":[]}] + +Nombre del cliente que se va a actualizar: MIRIAM ZURITA RAMIREZ + +UUID: 7ec1948ad8af4bcd8eff0d7c2a995d09 + +JSON con los datos a actualizar: {"name":"MIRIAM ZURITA RAMIREZ","custom_fields":{"Site":"","Estado":"\ud83d\udfe0 Suspendido","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/12","Nombre":"\ud83d\udc64 MIRIAM ZURITA RAMIREZ","Cliente":12,"Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/03\/2026 10:00","Saldo Actual":"\ud83d\udcb214833.33 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 3500","Clabe Interbancaria":"","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 29\/01\/2024 11:46 con Efectivo \ud83d\udcb5","Antena\/Sectorial":"","Domicilio":"\ud83d\udccd DOLORES HIDALGO","Resumen":"{\"Cliente\": \"12\",\"Nombre\": \"MIRIAM ZURITA RAMIREZ\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/12\",\"Saldo Actual\": \"\ud83d\udcb214833.33 pendientes\",\"Monto Ultimo Pago\": \"$ 3500\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29\/01\/2024 11:46 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"22\/03\/2026 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena\/Sectorial\": \"\",\"Password Antena\": {\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\\/V\"}}","password-antena":"{\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\\/V\"}"}} + +DEBUG COMPARACIÓN - CallBell Saldo Actual: '💲30 a favor' + +DEBUG COMPARACIÓN - UCRM Saldo Actual: '💲14833.33 pendientes' + +DEBUG COMPARACIÓN - CallBell Estado: '🟢 Activo ' + +DEBUG COMPARACIÓN - UCRM Estado: '🟠 Suspendido' + +DEBUG COMPARACIÓN - Diferencia en name. CallBell: 'ALEJANDRO MOCTEZUMA ALMAGUER', UCRM: 'MIRIAM ZURITA RAMIREZ' + +EJECUTANDO PATCH - Se detectaron cambios + +Response Patch CallBell: {"contact":{"uuid":"7ec1948ad8af4bcd8eff0d7c2a995d09","name":"MIRIAM ZURITA RAMIREZ","phoneNumber":"5214181577623","avatarUrl":null,"createdAt":"2023-12-22T16:52:57Z","closedAt":"2025-01-07T23:12:30Z","source":"whatsapp","funnelId":null,"href":"https://dash.callbell.eu/contacts/7ec1948ad8af4bcd8eff0d7c2a995d09","conversationHref":"https://dash.callbell.eu/chat/d06f5a96768c4945b7a659a6930e5fa0","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clabe Interbancaria":"124180650725363841","user name":"Míriam Moctezuma","Antena/Sectorial":"SECTORIAL-2 172.16.12.11/24","Site":"GPE1","Cliente":"12","Fecha Ultimo Pago":"📆💸 29/01/2024 11:46 con Efectivo 💵","Estado":"🟠 Suspendido","Domicilio":"📍 DOLORES HIDALGO","URL":"🌐 https://sistema.siip.mx/crm/client/12","Saldo Actual":"💲14833.33 pendientes","Monto Ultimo Pago":"💲 3500","Fecha Ultima Actualizacion":"📆🔄️ 22/03/2026 10:00","Nombre":"👤 MIRIAM ZURITA RAMIREZ","Resumen":"{\"Cliente\": \"12\",\"Nombre\": \"MIRIAM ZURITA RAMIREZ\",\"URL\": \"https://sistema.siip.mx/crm/client/12\",\"Saldo Actual\": \"💲14833.33 pendientes\",\"Monto Ultimo Pago\": \"$ 3500\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 29/01/2024 11:46 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"22/03/2026 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\",\"Password Antena\": {\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\/V\"}}","password-antena":"{\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\/V\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":5,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"discardedAt":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2026-03-22 16:00:30.544826] [notice] Logging level set to:debug +[2026-03-22 16:00:30.544878] [debug] Payload recibido: {"uuid":"6ac9752e-219c-4da0-ac4f-4f335e81abf7","changeType":"draft_approved","entity":"invoice","entityId":"3247","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3247,"clientId":166,"number":"003193","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3264,"type":"service","label":"Basico 300 01\/03\/2026 \u2013 31\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":171,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Sebastian","clientLastName":"Tejeda Gonzalez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"39 Campeche","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-22 16:00:30.745038] [debug] Evento recibido: invoice.draft_approved +[2026-03-22 16:00:30.745147] [debug] Aprobación de Factura + +[2026-03-22 16:00:31.803989] [notice] Logging level set to:debug +[2026-03-22 16:00:31.804054] [debug] Payload recibido: {"uuid":"4fafe52d-3c41-4003-afec-2033efe2aa6f","changeType":"draft_approved","entity":"invoice","entityId":"3248","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3248,"clientId":156,"number":"003194","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3265,"type":"service","label":"Basico 300 01\/03\/2026 \u2013 31\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":161,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Maria Gricelda","clientLastName":"L\u00f3pez Avalos","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Yucat\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-22 16:00:32.032847] [debug] Evento recibido: invoice.draft_approved +[2026-03-22 16:00:32.032949] [debug] Aprobación de Factura + +[2026-03-22 16:00:32.033015] [debug] onlyUpdate: Iniciando actualización para teléfono: 4181817609 +[2026-03-22 16:00:32.033077] [debug] onlyUpdate: Teléfono validado: 524181817609 +[2026-03-22 16:00:32.824177] [debug] onlyUpdate: Contacto obtenido de CallBell: {"contact":{"uuid":"2038d2d99ae543f3b56f1ae54f4cc82b","name":"Maria Gricelda L\u00f3pez Avalos","phoneNumber":"5214181817609","avatarUrl":null,"createdAt":"2024-01-26T18:16:09Z","closedAt":"2026-01-17T17:59:46Z","source":"whatsapp","funnelId":null,"href":"https:\/\/dash.callbell.eu\/contacts\/2038d2d99ae543f3b56f1ae54f4cc82b","conversationHref":"https:\/\/dash.callbell.eu\/chat\/90611886ac204c56a75240f951c53874","tags":["s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Cliente":"156","Site":"0LOCS","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24","Clabe Interbancaria":"124180553522369174","Domicilio":"\ud83d\udccd Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/156","Nombre":"\ud83d\udc64 Maria Gricelda L\u00f3pez Avalos","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 06\/03\/2026 12:30","Monto Ultimo Pago":"\ud83d\udcb2 899.33","user name":"Gricel","password-antena":"{\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\\/V\"}","Estado":"\ud83d\udfe0 Suspendido","Resumen":"{\"Cliente\": \"156\",\"Nombre\": \"Maria Gricelda L\u00f3pez Avalos\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/156\",\"Saldo Actual\": \"\ud83d\udcb2300 pendientes\",\"Monto Ultimo Pago\": \"$ 899.33\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 09\/02\/2026 10:28 con Personalizado \ud83d\udcdd\ud83d\udcb8\",\"Fecha Ultima Actualizacion\": \"19\/02\/2026 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena\/Sectorial\": \"\",\"Password Antena\": {\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\\/V\"}}","Saldo Actual":"\ud83d\udcb2300 pendientes","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 09\/02\/2026 10:28 con Personalizado \ud83d\udcdd\ud83d\udcb8"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":5,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"discardedAt":null,"type":"whatsapp","main":true},"blockedAt":null}} +[2026-03-22 16:00:32.824239] [info] onlyUpdate: Ejecutando patchWhatsapp para teléfono: 524181817609 +Notificacion data: {"uuid":"4fafe52d-3c41-4003-afec-2033efe2aa6f","changeType":"draft_approved","entity":"invoice","entityId":3248,"message":null,"clientId":156,"eventName":"invoice.draft_approved","clientData":{"id":156,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"34 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Maria Gricelda","lastName":"L\u00f3pez Avalos","username":null,"contacts":[{"id":160,"clientId":156,"email":null,"phone":"4181817609","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":152,"clientId":156,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RWj8SZIs9d3z41","clientZoneVisible":true},{"id":153,"clientId":156,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180553522369174","clientZoneVisible":true},{"id":204,"clientId":156,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-600,"accountCredit":0,"accountOutstanding":600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":11,"name":"PAGO EJIDO GV","colorBackground":"#fed74a","colorText":"#444"}],"invitationEmailSentDate":null,"avatarColor":"#7cb342","addressGpsLat":21.1562598,"addressGpsLon":-100.9370894,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":3248,"clientId":156,"number":"003194","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3265,"type":"service","label":"Basico 300 01\/03\/2026 \u2013 31\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":161,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Maria Gricelda","clientLastName":"L\u00f3pez Avalos","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Yucat\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":952,"clientId":156,"methodId":"d8c1eae9-d41d-479f-aeaf-38497975d7b3","checkNumber":null,"createdDate":"2026-02-09T10:28:22-0600","amount":899.33,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":1515,"invoiceId":2693,"paymentId":952,"creditNoteId":null,"refundId":null,"amount":299.33},{"id":1516,"invoiceId":2839,"paymentId":952,"creditNoteId":null,"refundId":null,"amount":300},{"id":1517,"invoiceId":2981,"paymentId":952,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[{"id":"e81bd96f-4164-4550-873b-6ce17a348e87","paymentId":952,"customAttributeId":6,"name":"Pagos De","key":"pagosDe","value":"EGV","clientZoneVisible":true}]}] + +Nombre del cliente que se va a actualizar: Maria Gricelda López Avalos + +UUID: 2038d2d99ae543f3b56f1ae54f4cc82b + +JSON con los datos a actualizar: {"name":"Maria Gricelda L\u00f3pez Avalos","custom_fields":{"Site":"","Estado":"\ud83d\udfe0 Suspendido","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/156","Nombre":"\ud83d\udc64 Maria Gricelda L\u00f3pez Avalos","Cliente":156,"Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/03\/2026 10:00","Saldo Actual":"\ud83d\udcb2600 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 899.33","Clabe Interbancaria":"124180553522369174","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 09\/02\/2026 10:28 con Personalizado \ud83d\udcdd\ud83d\udcb8","Antena\/Sectorial":"","Domicilio":"\ud83d\udccd Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Resumen":"{\"Cliente\": \"156\",\"Nombre\": \"Maria Gricelda L\u00f3pez Avalos\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/156\",\"Saldo Actual\": \"\ud83d\udcb2600 pendientes\",\"Monto Ultimo Pago\": \"$ 899.33\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 09\/02\/2026 10:28 con Personalizado \ud83d\udcdd\ud83d\udcb8\",\"Fecha Ultima Actualizacion\": \"22\/03\/2026 10:00\",\"Clabe Interbancaria\": \"124180553522369174\",\"Site\": \"\",\"Antena\/Sectorial\": \"\",\"Password Antena\": {\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\\/V\"}}","password-antena":"{\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\\/V\"}"}} + +DEBUG COMPARACIÓN - CallBell Saldo Actual: '💲300 pendientes' + +DEBUG COMPARACIÓN - UCRM Saldo Actual: '💲600 pendientes' + +DEBUG COMPARACIÓN - CallBell Estado: '🟠 Suspendido' + +DEBUG COMPARACIÓN - UCRM Estado: '🟠 Suspendido' + +DEBUG COMPARACIÓN - Diferencia encontrada en Site. CallBell: '0LOCS', UCRM: '' + +EJECUTANDO PATCH - Se detectaron cambios + +Response Patch CallBell: {"contact":{"uuid":"2038d2d99ae543f3b56f1ae54f4cc82b","name":"Maria Gricelda López Avalos","phoneNumber":"5214181817609","avatarUrl":null,"createdAt":"2024-01-26T18:16:09Z","closedAt":"2026-01-17T17:59:46Z","source":"whatsapp","funnelId":null,"href":"https://dash.callbell.eu/contacts/2038d2d99ae543f3b56f1ae54f4cc82b","conversationHref":"https://dash.callbell.eu/chat/90611886ac204c56a75240f951c53874","tags":["s0LOCS"],"assignedUser":null,"customFields":{"Saldo Actual":"💲600 pendientes","Fecha Ultima Actualizacion":"📆🔄️ 22/03/2026 10:00","user entry point":"inbound_message","Cliente":"156","Site":"0LOCS","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","Clabe Interbancaria":"124180553522369174","Domicilio":"📍 Yucatán 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","URL":"🌐 https://sistema.siip.mx/crm/client/156","Nombre":"👤 Maria Gricelda López Avalos","Monto Ultimo Pago":"💲 899.33","user name":"Gricel","password-antena":"{\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\/V\"}","Estado":"🟠 Suspendido","Resumen":"{\"Cliente\": \"156\",\"Nombre\": \"Maria Gricelda López Avalos\",\"URL\": \"https://sistema.siip.mx/crm/client/156\",\"Saldo Actual\": \"💲600 pendientes\",\"Monto Ultimo Pago\": \"$ 899.33\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 09/02/2026 10:28 con Personalizado 📝💸\",\"Fecha Ultima Actualizacion\": \"22/03/2026 10:00\",\"Clabe Interbancaria\": \"124180553522369174\",\"Site\": \"\",\"Antena/Sectorial\": \"\",\"Password Antena\": {\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\/V\"}}","Fecha Ultimo Pago":"📆💸 09/02/2026 10:28 con Personalizado 📝💸"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":5,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"discardedAt":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2026-03-22 16:00:36.043590] [notice] Logging level set to:debug +[2026-03-22 16:00:36.043644] [debug] Payload recibido: {"uuid":"311774d1-acc7-42ae-a72f-84714ed5570e","changeType":"draft_approved","entity":"invoice","entityId":"3249","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3249,"clientId":137,"number":"003195","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3266,"type":"service","label":"Basico 300 01\/03\/2026 \u2013 31\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":168,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El t\u00edo","clientLastName":"Lucas","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Hidalgo","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-22 16:00:36.251250] [debug] Evento recibido: invoice.draft_approved +[2026-03-22 16:00:36.251354] [debug] Aprobación de Factura + +[2026-03-22 16:00:36.645327] [notice] Logging level set to:debug +[2026-03-22 16:00:36.645378] [debug] Payload recibido: {"uuid":"3dfc1191-c440-4799-92d2-7989a8817bfd","changeType":"draft_approved","entity":"invoice","entityId":"3250","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3250,"clientId":157,"number":"003196","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3267,"type":"service","label":"plan300 01\/03\/2026 \u2013 31\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":127,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGEL","clientLastName":"ARVIZU SIIP","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-22 16:00:36.839843] [debug] Evento recibido: invoice.draft_approved +[2026-03-22 16:00:36.839967] [debug] Aprobación de Factura + +[2026-03-22 16:00:36.840034] [debug] onlyUpdate: Iniciando actualización para teléfono: 5214181515664 +[2026-03-22 16:00:36.840125] [debug] onlyUpdate: Teléfono validado: 5214181515664 +[2026-03-22 16:00:37.628819] [debug] onlyUpdate: Contacto obtenido de CallBell: {"contact":{"uuid":"362193e0af9b4ffc8ed5d7f930dd120f","name":"ANGEL ARVIZU SIIP","phoneNumber":"5214181515664","avatarUrl":null,"createdAt":"2025-01-07T22:55:44Z","closedAt":"2025-03-20T17:12:35Z","source":"whatsapp","funnelId":null,"href":"https:\/\/dash.callbell.eu\/contacts\/362193e0af9b4ffc8ed5d7f930dd120f","conversationHref":"https:\/\/dash.callbell.eu\/chat\/56dec9b4f3334325b737683f2d8ff8b2","tags":[],"assignedUser":null,"customFields":{"Domicilio":"\ud83d\udccd ADJUNTAS DEL RIO, Dolores Hidalgo Cuna de la Independencia Nacional, 37803","Acciones":"NOBOT-SIIP","user entry point":"inbound_message","Clabe Interbancaria":"124180695267429334","Antena\/Sectorial":"157","Nombre":"\ud83d\udc64 ANGEL ARVIZU SIIP","user name":"Angel \ud83d\ude07\/\ud83d\ude08","Cliente":"157","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/157","password-antena":"{\"Servicio 1\":\"ShY2XV@G@H4au#n6\"}","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"157\",\"Nombre\": \"ANGEL ARVIZU SIIP\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/157\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 28\/02\/2026 13:28 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"28\/02\/2026 13:28\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena\/Sectorial\": \"\",\"Password Antena\": {\"Servicio 1\":\"ShY2XV@G@H4au#n6\"}}","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 28\/02\/2026 13:28 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/02\/2026 13:28"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":5,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"discardedAt":null,"type":"whatsapp","main":true},"blockedAt":null}} +[2026-03-22 16:00:37.628899] [info] onlyUpdate: Ejecutando patchWhatsapp para teléfono: 5214181515664 +Notificacion data: {"uuid":"3dfc1191-c440-4799-92d2-7989a8817bfd","changeType":"draft_approved","entity":"invoice","entityId":3250,"message":null,"clientId":157,"eventName":"invoice.draft_approved","clientData":{"id":157,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"ADJUNTAS DEL RIO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"ADJUNTAS DEL RIO, Dolores Hidalgo Cuna de la Independencia Nacional, 37803","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANGEL","lastName":"ARVIZU SIIP","username":null,"contacts":[{"id":161,"clientId":157,"email":null,"phone":"5214181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":154,"clientId":157,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RWjBO6Lsy1TgAV","clientZoneVisible":true},{"id":155,"clientId":157,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180695267429334","clientZoneVisible":true},{"id":274,"clientId":157,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"ShY2XV@G@H4au#n6","clientZoneVisible":false},{"id":273,"clientId":157,"customAttributeId":21,"name":"RUTA DE COBRANZA","key":"rutaDeCobranza","value":"GUSANO","clientZoneVisible":true}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1181055,"addressGpsLon":-100.8554524,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":3250,"clientId":157,"number":"003196","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3267,"type":"service","label":"plan300 01\/03\/2026 \u2013 31\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":127,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGEL","clientLastName":"ARVIZU SIIP","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":976,"clientId":157,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2026-02-28T13:28:34-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":1546,"invoiceId":3110,"paymentId":976,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}] + +Nombre del cliente que se va a actualizar: ANGEL ARVIZU SIIP + +UUID: 362193e0af9b4ffc8ed5d7f930dd120f + +JSON con los datos a actualizar: {"name":"ANGEL ARVIZU SIIP","custom_fields":{"Site":"","Estado":"\ud83d\udfe2 Activo ","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/157","Nombre":"\ud83d\udc64 ANGEL ARVIZU SIIP","Cliente":157,"Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/03\/2026 10:00","Saldo Actual":"\ud83d\udcb2300 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 300","Clabe Interbancaria":"124180695267429334","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 28\/02\/2026 13:28 con Efectivo \ud83d\udcb5","Antena\/Sectorial":"","Domicilio":"\ud83d\udccd ADJUNTAS DEL RIO, Dolores Hidalgo Cuna de la Independencia Nacional, 37803","Resumen":"{\"Cliente\": \"157\",\"Nombre\": \"ANGEL ARVIZU SIIP\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/157\",\"Saldo Actual\": \"\ud83d\udcb2300 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 28\/02\/2026 13:28 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"22\/03\/2026 10:00\",\"Clabe Interbancaria\": \"124180695267429334\",\"Site\": \"\",\"Antena\/Sectorial\": \"\",\"Password Antena\": {\"Servicio 1\":\"ShY2XV@G@H4au#n6\"}}","password-antena":"{\"Servicio 1\":\"ShY2XV@G@H4au#n6\"}"}} + +DEBUG COMPARACIÓN - CallBell Saldo Actual: '💲0 está al corriente' + +DEBUG COMPARACIÓN - UCRM Saldo Actual: '💲300 pendientes' + +DEBUG COMPARACIÓN - CallBell Estado: '🟢 Activo ' + +DEBUG COMPARACIÓN - UCRM Estado: '🟢 Activo ' + +DEBUG COMPARACIÓN - Diferencia encontrada en Saldo Actual. CallBell: '💲0 está al corriente', UCRM: '💲300 pendientes' + +EJECUTANDO PATCH - Se detectaron cambios + +Response Patch CallBell: {"contact":{"uuid":"362193e0af9b4ffc8ed5d7f930dd120f","name":"ANGEL ARVIZU SIIP","phoneNumber":"5214181515664","avatarUrl":null,"createdAt":"2025-01-07T22:55:44Z","closedAt":"2025-03-20T17:12:35Z","source":"whatsapp","funnelId":null,"href":"https://dash.callbell.eu/contacts/362193e0af9b4ffc8ed5d7f930dd120f","conversationHref":"https://dash.callbell.eu/chat/56dec9b4f3334325b737683f2d8ff8b2","tags":[],"assignedUser":null,"customFields":{"Domicilio":"📍 ADJUNTAS DEL RIO, Dolores Hidalgo Cuna de la Independencia Nacional, 37803","Acciones":"NOBOT-SIIP","user entry point":"inbound_message","Clabe Interbancaria":"124180695267429334","Antena/Sectorial":"157","Nombre":"👤 ANGEL ARVIZU SIIP","user name":"Angel 😇/😈","Cliente":"157","URL":"🌐 https://sistema.siip.mx/crm/client/157","Resumen":"{\"Cliente\": \"157\",\"Nombre\": \"ANGEL ARVIZU SIIP\",\"URL\": \"https://sistema.siip.mx/crm/client/157\",\"Saldo Actual\": \"💲300 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 28/02/2026 13:28 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"22/03/2026 10:00\",\"Clabe Interbancaria\": \"124180695267429334\",\"Site\": \"\",\"Antena/Sectorial\": \"\",\"Password Antena\": {\"Servicio 1\":\"ShY2XV@G@H4au#n6\"}}","password-antena":"{\"Servicio 1\":\"ShY2XV@G@H4au#n6\"}","Monto Ultimo Pago":"💲 300","Estado":"🟢 Activo ","Saldo Actual":"💲300 pendientes","Fecha Ultimo Pago":"📆💸 28/02/2026 13:28 con Efectivo 💵","Fecha Ultima Actualizacion":"📆🔄️ 22/03/2026 10:00"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":5,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"discardedAt":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2026-03-22 16:00:38.707232] [notice] Logging level set to:debug +[2026-03-22 16:00:38.707292] [debug] Payload recibido: {"uuid":"22387248-25e1-4d7b-98b2-3a8de38b0f78","changeType":"draft_approved","entity":"invoice","entityId":"3251","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3251,"clientId":162,"number":"003197","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3268,"type":"service","label":"PREMIUM 01\/03\/2026 \u2013 31\/03\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":128,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Edward","clientLastName":"Elric","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"76 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-22 16:00:38.916920] [debug] Evento recibido: invoice.draft_approved +[2026-03-22 16:00:38.917033] [debug] Aprobación de Factura + +[2026-03-22 16:00:38.917093] [debug] onlyUpdate: Iniciando actualización para teléfono: 4181878106 +[2026-03-22 16:00:38.917160] [debug] onlyUpdate: Teléfono validado: 524181878106 +[2026-03-22 16:00:39.299525] [debug] onlyUpdate: Contacto obtenido de CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"MAY HUMBERTO SOTO VILLEGAS","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2026-03-19T19:28:26Z","source":"whatsapp","funnelId":null,"href":"https:\/\/dash.callbell.eu\/contacts\/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https:\/\/dash.callbell.eu\/chat\/53c8229c428c4081b197ab136feab73b","tags":["PRUEBAS","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clabe Interbancaria":"124180650741646979","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/3201","Site":"0LOCS","Saldo Actual":"\ud83d\udcb220 a favor","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 17\/03\/2026 12:31","Cliente":"3201","Monto Ultimo Pago":"\ud83d\udcb2 20","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24","password-antena":"{\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\\/V\"}","Domicilio":"\ud83d\udccd CALLE CHIAPAS #31, ZONA CENTRO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Estado":"\ud83d\udfe2 Activo ","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 10\/03\/2026 15:35 con Tarjeta de cr\u00e9dito PayPal \ud83d\udcb3","user name":"Daniel Humberto","Nombre":"\ud83d\udc64 MAY HUMBERTO SOTO VILLEGAS","Resumen":"{\"Cliente\": \"3201\",\"Nombre\": \"MAY HUMBERTO SOTO VILLEGAS\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/3201\",\"Saldo Actual\": \"\ud83d\udcb220 a favor\",\"Monto Ultimo Pago\": \"$ 20\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 10\/03\/2026 15:35 con Tarjeta de cr\u00e9dito PayPal \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"17\/03\/2026 12:31\",\"Clabe Interbancaria\": \"124180650741646979\",\"Site\": \"0LOCS\",\"Antena\/Sectorial\": \"Sectorial-4b 172.16.13.16\/24\",\"Password Antena\": {\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\\/V\"}}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":5,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"discardedAt":null,"type":"whatsapp","main":true},"blockedAt":null}} +[2026-03-22 16:00:39.299608] [info] onlyUpdate: Ejecutando patchWhatsapp para teléfono: 524181878106 +Notificacion data: {"uuid":"22387248-25e1-4d7b-98b2-3a8de38b0f78","changeType":"draft_approved","entity":"invoice","entityId":3251,"message":null,"clientId":162,"eventName":"invoice.draft_approved","clientData":{"id":162,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"76 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 76, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":"2025-01-10T10:32:20-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Edward","lastName":"Elric","username":null,"contacts":[{"id":166,"clientId":162,"email":"eduardelric@gmail.com","phone":"4181878106","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":160,"clientId":162,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RYsuykCEvupaGF","clientZoneVisible":true},{"id":161,"clientId":162,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180599808752427","clientZoneVisible":true},{"id":233,"clientId":162,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false},{"id":297,"clientId":162,"customAttributeId":21,"name":"RUTA DE COBRANZA","key":"rutaDeCobranza","value":"GUSANO","clientZoneVisible":true}],"accountBalance":-1300,"accountCredit":0,"accountOutstanding":1300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#d84315","addressGpsLat":21.1575488,"addressGpsLon":-100.9409119,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":3251,"clientId":162,"number":"003197","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3268,"type":"service","label":"PREMIUM 01\/03\/2026 \u2013 31\/03\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":128,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Edward","clientLastName":"Elric","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"76 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":889,"clientId":162,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2026-01-26T17:53:56-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":1540,"invoiceId":3116,"paymentId":889,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":1015,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Edward Elric + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Edward Elric","custom_fields":{"Site":"","Estado":"\ud83d\udfe0 Suspendido","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/162","Nombre":"\ud83d\udc64 Edward Elric","Cliente":162,"Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/03\/2026 10:00","Saldo Actual":"\ud83d\udcb21300 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 100","Clabe Interbancaria":"124180599808752427","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/01\/2026 17:53 con Efectivo \ud83d\udcb5","Antena\/Sectorial":"","Domicilio":"\ud83d\udccd Chiapas 76, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Resumen":"{\"Cliente\": \"162\",\"Nombre\": \"Edward Elric\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/162\",\"Saldo Actual\": \"\ud83d\udcb21300 pendientes\",\"Monto Ultimo Pago\": \"$ 100\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 26\/01\/2026 17:53 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"22\/03\/2026 10:00\",\"Clabe Interbancaria\": \"124180599808752427\",\"Site\": \"\",\"Antena\/Sectorial\": \"\",\"Password Antena\": {\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\\/V\"}}","password-antena":"{\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\\/V\"}"}} + +DEBUG COMPARACIÓN - CallBell Saldo Actual: '💲20 a favor' + +DEBUG COMPARACIÓN - UCRM Saldo Actual: '💲1300 pendientes' + +DEBUG COMPARACIÓN - CallBell Estado: '🟢 Activo ' + +DEBUG COMPARACIÓN - UCRM Estado: '🟠 Suspendido' + +DEBUG COMPARACIÓN - Diferencia en name. CallBell: 'MAY HUMBERTO SOTO VILLEGAS', UCRM: 'Edward Elric' + +EJECUTANDO PATCH - Se detectaron cambios + +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Edward Elric","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2026-03-19T19:28:26Z","source":"whatsapp","funnelId":null,"href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":["PRUEBAS","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Resumen":"{\"Cliente\": \"162\",\"Nombre\": \"Edward Elric\",\"URL\": \"https://sistema.siip.mx/crm/client/162\",\"Saldo Actual\": \"💲1300 pendientes\",\"Monto Ultimo Pago\": \"$ 100\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 26/01/2026 17:53 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"22/03/2026 10:00\",\"Clabe Interbancaria\": \"124180599808752427\",\"Site\": \"\",\"Antena/Sectorial\": \"\",\"Password Antena\": {\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\/V\"}}","Domicilio":"📍 Chiapas 76, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Saldo Actual":"💲1300 pendientes","Clabe Interbancaria":"124180599808752427","URL":"🌐 https://sistema.siip.mx/crm/client/162","Site":"0LOCS","Fecha Ultima Actualizacion":"📆🔄️ 22/03/2026 10:00","Cliente":"162","Monto Ultimo Pago":"💲 100","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","password-antena":"{\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\/V\"}","Estado":"🟠 Suspendido","Fecha Ultimo Pago":"📆💸 26/01/2026 17:53 con Efectivo 💵","user name":"Daniel Humberto","Nombre":"👤 Edward Elric"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":5,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"discardedAt":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2026-03-22 16:00:40.443284] [notice] Logging level set to:debug +[2026-03-22 16:00:40.443342] [debug] Payload recibido: {"uuid":"79870b3c-6332-49f4-9516-96c1964facbf","changeType":"draft_approved","entity":"invoice","entityId":"3252","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3252,"clientId":161,"number":"003198","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3269,"type":"service","label":"PREMIUM 01\/03\/2026 \u2013 31\/03\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":164,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Cesar Antonio","clientLastName":"Juarez Garcia","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"S\/N Carretera a R\u00edo Laja","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-22 16:00:40.674828] [debug] Evento recibido: invoice.draft_approved +[2026-03-22 16:00:40.674941] [debug] Aprobación de Factura + +[2026-03-22 16:00:41.757925] [notice] Logging level set to:debug +[2026-03-22 16:00:41.757988] [debug] Payload recibido: {"uuid":"06ad3c05-dab5-4354-b5b4-367374ee8493","changeType":"draft_approved","entity":"invoice","entityId":"3253","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3253,"clientId":173,"number":"003199","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3270,"type":"service","label":"Basico 300 01\/03\/2026 \u2013 31\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":170,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Jos\u00e9","clientLastName":"P\u00e9rez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"baja california sur 23","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-22 16:00:42.024797] [debug] Evento recibido: invoice.draft_approved +[2026-03-22 16:00:42.024905] [debug] Aprobación de Factura + +[2026-03-22 16:00:43.210721] [notice] Logging level set to:debug +[2026-03-22 16:00:43.210779] [debug] Payload recibido: {"uuid":"dc0fda01-a0ea-4240-af7e-4b0e08b148e3","changeType":"draft_approved","entity":"invoice","entityId":"3254","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3254,"clientId":141,"number":"003200","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3271,"type":"service","label":"Basico 300 01\/04\/2026 \u2013 30\/04\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":135,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Caim\u00e1n","clientLastName":"Dorado","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"23 Coahuila","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-22 16:00:43.431755] [debug] Evento recibido: invoice.draft_approved +[2026-03-22 16:00:43.431869] [debug] Aprobación de Factura + +[2026-03-22 16:00:44.702898] [notice] Logging level set to:debug +[2026-03-22 16:00:44.702943] [debug] Payload recibido: {"uuid":"694611ef-e795-4f65-a3d6-7cfcb97ad573","changeType":"draft_approved","entity":"invoice","entityId":"3255","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3255,"clientId":1,"number":"003201","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3272,"type":"service","label":"PREMIUM 01\/04\/2026 \u2013 30\/04\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":162,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Don Miguel \u00c1ngel","clientLastName":"Guerrero Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Calle Morelos 34","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-22 16:00:44.920648] [debug] Evento recibido: invoice.draft_approved +[2026-03-22 16:00:44.920748] [debug] Aprobación de Factura + +[2026-03-22 16:00:44.920804] [debug] onlyUpdate: Iniciando actualización para teléfono: 5214181148554 +[2026-03-22 16:00:44.920866] [debug] onlyUpdate: Teléfono validado: 5214181148554 +[2026-03-22 16:00:45.751260] [debug] onlyUpdate: Contacto obtenido de CallBell: {"contact":{"uuid":"0e53e926ce424db5b9284a75915d24fe","name":"Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez","phoneNumber":"5214181148554","avatarUrl":null,"createdAt":"2024-01-26T17:29:28Z","closedAt":"2025-10-09T16:32:07Z","source":"whatsapp","funnelId":null,"href":"https:\/\/dash.callbell.eu\/contacts\/0e53e926ce424db5b9284a75915d24fe","conversationHref":"https:\/\/dash.callbell.eu\/chat\/f017e454a6b94ab297509274216c6795","tags":["SIIP","Sus","Contra."],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clientes Relacionados":"oxxo","Antena\/Sectorial":"1","Nombre":"\ud83d\udc64 Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez","Clabe Interbancaria":"002180697144444854","Acciones":"1","Domicilio":"\ud83d\udccd Calle Morelos 34, Dolores Hidalgo, 37800","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/1","Cliente":"1","user name":"Angel","Saldo Actual":"\ud83d\udcb26800 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 70","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 28\/11\/2025 12:22 con Efectivo \ud83d\udcb5","Estado":"\ud83d\udfe0 Suspendido","password-antena":"{\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\\/V\"}","Resumen":"{\"Cliente\": \"1\",\"Nombre\": \"Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/1\",\"Saldo Actual\": \"\ud83d\udcb26800 pendientes\",\"Monto Ultimo Pago\": \"$ 70\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 28\/11\/2025 12:22 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"27\/02\/2026 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena\/Sectorial\": \"\",\"Password Antena\": {\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\\/V\"}}","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 27\/02\/2026 10:00"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":5,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"discardedAt":null,"type":"whatsapp","main":true},"blockedAt":null}} +[2026-03-22 16:00:45.751319] [info] onlyUpdate: Ejecutando patchWhatsapp para teléfono: 5214181148554 +Notificacion data: {"uuid":"694611ef-e795-4f65-a3d6-7cfcb97ad573","changeType":"draft_approved","entity":"invoice","entityId":3255,"message":null,"clientId":1,"eventName":"invoice.draft_approved","clientData":{"id":1,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"Calle Morelos 34","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Calle Morelos 34, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"El jefe","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-15T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Don Miguel \u00c1ngel","lastName":"Guerrero Gonz\u00e1lez","username":"dguerrero01","contacts":[{"id":1,"clientId":1,"email":"mangelgg@gmail.com","phone":"5214181148554","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":110,"clientId":1,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PdQvAvQ2wipl5k","clientZoneVisible":true},{"id":111,"clientId":1,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180697144444854","clientZoneVisible":true},{"id":203,"clientId":1,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false}],"accountBalance":-7500,"accountCredit":0,"accountOutstanding":7500,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.1572096,"addressGpsLon":-100.9377327,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":3255,"clientId":1,"number":"003201","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3272,"type":"service","label":"PREMIUM 01\/04\/2026 \u2013 30\/04\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":162,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Don Miguel \u00c1ngel","clientLastName":"Guerrero Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Calle Morelos 34","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":696,"clientId":1,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2025-11-28T12:22:40-0600","amount":70,"currencyCode":"MXN","note":null,"receiptSentDate":"2025-11-28T12:22:43-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":832,"invoiceId":2712,"paymentId":696,"creditNoteId":null,"refundId":null,"amount":70}],"creditAmount":0,"userId":1015,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Don Miguel Ángel Guerrero González + +UUID: 0e53e926ce424db5b9284a75915d24fe + +JSON con los datos a actualizar: {"name":"Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez","custom_fields":{"Site":"","Estado":"\ud83d\udfe0 Suspendido","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/1","Nombre":"\ud83d\udc64 Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez","Cliente":1,"Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/03\/2026 10:00","Saldo Actual":"\ud83d\udcb27500 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 70","Clabe Interbancaria":"002180697144444854","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 28\/11\/2025 12:22 con Efectivo \ud83d\udcb5","Antena\/Sectorial":"","Domicilio":"\ud83d\udccd Calle Morelos 34, Dolores Hidalgo, 37800","Resumen":"{\"Cliente\": \"1\",\"Nombre\": \"Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/1\",\"Saldo Actual\": \"\ud83d\udcb27500 pendientes\",\"Monto Ultimo Pago\": \"$ 70\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 28\/11\/2025 12:22 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"22\/03\/2026 10:00\",\"Clabe Interbancaria\": \"002180697144444854\",\"Site\": \"\",\"Antena\/Sectorial\": \"\",\"Password Antena\": {\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\\/V\"}}","password-antena":"{\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\\/V\"}"}} + +DEBUG COMPARACIÓN - CallBell Saldo Actual: '💲6800 pendientes' + +DEBUG COMPARACIÓN - UCRM Saldo Actual: '💲7500 pendientes' + +DEBUG COMPARACIÓN - CallBell Estado: '🟠 Suspendido' + +DEBUG COMPARACIÓN - UCRM Estado: '🟠 Suspendido' + +DEBUG COMPARACIÓN - Diferencia encontrada en Saldo Actual. CallBell: '💲6800 pendientes', UCRM: '💲7500 pendientes' + +EJECUTANDO PATCH - Se detectaron cambios + +Response Patch CallBell: {"contact":{"uuid":"0e53e926ce424db5b9284a75915d24fe","name":"Don Miguel Ángel Guerrero González","phoneNumber":"5214181148554","avatarUrl":null,"createdAt":"2024-01-26T17:29:28Z","closedAt":"2025-10-09T16:32:07Z","source":"whatsapp","funnelId":null,"href":"https://dash.callbell.eu/contacts/0e53e926ce424db5b9284a75915d24fe","conversationHref":"https://dash.callbell.eu/chat/f017e454a6b94ab297509274216c6795","tags":["SIIP","Sus","Contra."],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clientes Relacionados":"oxxo","Antena/Sectorial":"1","Nombre":"👤 Don Miguel Ángel Guerrero González","Clabe Interbancaria":"002180697144444854","Acciones":"1","Domicilio":"📍 Calle Morelos 34, Dolores Hidalgo, 37800","URL":"🌐 https://sistema.siip.mx/crm/client/1","Cliente":"1","user name":"Angel","Resumen":"{\"Cliente\": \"1\",\"Nombre\": \"Don Miguel Ángel Guerrero González\",\"URL\": \"https://sistema.siip.mx/crm/client/1\",\"Saldo Actual\": \"💲7500 pendientes\",\"Monto Ultimo Pago\": \"$ 70\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 28/11/2025 12:22 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"22/03/2026 10:00\",\"Clabe Interbancaria\": \"002180697144444854\",\"Site\": \"\",\"Antena/Sectorial\": \"\",\"Password Antena\": {\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\/V\"}}","Saldo Actual":"💲7500 pendientes","Monto Ultimo Pago":"💲 70","Fecha Ultimo Pago":"📆💸 28/11/2025 12:22 con Efectivo 💵","Estado":"🟠 Suspendido","password-antena":"{\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\/V\"}","Fecha Ultima Actualizacion":"📆🔄️ 22/03/2026 10:00"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":5,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"discardedAt":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2026-03-22 16:00:47.459470] [notice] Logging level set to:debug +[2026-03-22 16:00:47.459530] [debug] Payload recibido: {"uuid":"6d9e1a2f-b740-4d19-9d45-ead23e452c87","changeType":"draft_approved","entity":"invoice","entityId":"3256","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3256,"clientId":135,"number":"003202","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3273,"type":"service","label":"Basico 300 01\/03\/2026 \u2013 31\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":172,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0},{"id":3274,"type":"service","label":"INTERMEDIO 01\/03\/2026 \u2013 31\/03\/2026","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":174,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":800,"discount":null,"discountLabel":"Descuento","taxes":[],"total":800,"amountPaid":800.0000000000001,"totalUntaxed":800,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":1568,"invoiceId":3256,"paymentId":899,"creditNoteId":null,"refundId":null,"amount":16.67},{"id":1569,"invoiceId":3256,"paymentId":900,"creditNoteId":null,"refundId":null,"amount":175},{"id":1570,"invoiceId":3256,"paymentId":901,"creditNoteId":null,"refundId":null,"amount":220},{"id":1571,"invoiceId":3256,"paymentId":902,"creditNoteId":null,"refundId":null,"amount":50},{"id":1572,"invoiceId":3256,"paymentId":903,"creditNoteId":null,"refundId":null,"amount":170},{"id":1573,"invoiceId":3256,"paymentId":904,"creditNoteId":null,"refundId":null,"amount":168.33}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Juan","clientLastName":"Escutia","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"13 Calle San Antonio","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37806","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-22 16:00:47.684540] [debug] Evento recibido: invoice.draft_approved +[2026-03-22 16:00:47.684642] [debug] Aprobación de Factura + +[2026-03-22 16:00:47.684710] [debug] onlyUpdate: Iniciando actualización para teléfono: 4181878106 +[2026-03-22 16:00:47.684772] [debug] onlyUpdate: Teléfono validado: 524181878106 +[2026-03-22 16:00:48.059473] [debug] onlyUpdate: Contacto obtenido de CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Edward Elric","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2026-03-19T19:28:26Z","source":"whatsapp","funnelId":null,"href":"https:\/\/dash.callbell.eu\/contacts\/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https:\/\/dash.callbell.eu\/chat\/53c8229c428c4081b197ab136feab73b","tags":["PRUEBAS","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Resumen":"{\"Cliente\": \"162\",\"Nombre\": \"Edward Elric\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/162\",\"Saldo Actual\": \"\ud83d\udcb21300 pendientes\",\"Monto Ultimo Pago\": \"$ 100\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 26\/01\/2026 17:53 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"22\/03\/2026 10:00\",\"Clabe Interbancaria\": \"124180599808752427\",\"Site\": \"\",\"Antena\/Sectorial\": \"\",\"Password Antena\": {\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\\/V\"}}","Domicilio":"\ud83d\udccd Chiapas 76, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Saldo Actual":"\ud83d\udcb21300 pendientes","Clabe Interbancaria":"124180599808752427","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/162","Site":"0LOCS","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/03\/2026 10:00","Cliente":"162","Monto Ultimo Pago":"\ud83d\udcb2 100","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24","password-antena":"{\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\\/V\"}","Estado":"\ud83d\udfe0 Suspendido","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/01\/2026 17:53 con Efectivo \ud83d\udcb5","user name":"Daniel Humberto","Nombre":"\ud83d\udc64 Edward Elric"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":5,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"discardedAt":null,"type":"whatsapp","main":true},"blockedAt":null}} +[2026-03-22 16:00:48.059602] [info] onlyUpdate: Ejecutando patchWhatsapp para teléfono: 524181878106 +Notificacion data: {"uuid":"6d9e1a2f-b740-4d19-9d45-ead23e452c87","changeType":"draft_approved","entity":"invoice","entityId":3256,"message":null,"clientId":135,"eventName":"invoice.draft_approved","clientData":{"id":135,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"13 Calle San Antonio","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37806","fullAddress":"Calle San Antonio 13, Lindavista, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-18T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Escutia","username":null,"contacts":[{"id":139,"clientId":135,"email":"juanvaliente@gmail.com","phone":"4181878106","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":137,"clientId":135,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_QJk0PDx5ClqJ4w","clientZoneVisible":true},{"id":138,"clientId":135,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180674088308545","clientZoneVisible":true},{"id":310,"clientId":135,"customAttributeId":15,"name":"Site","key":"site","value":"VENUS","clientZoneVisible":false},{"id":312,"clientId":135,"customAttributeId":22,"name":"ip","key":"ip","value":"172.16.86.64","clientZoneVisible":false},{"id":313,"clientId":135,"customAttributeId":24,"name":"adminpass","key":"adminpass","value":"admin1390","clientZoneVisible":true},{"id":314,"clientId":135,"customAttributeId":29,"name":"instalador","key":"instalador","value":"Chanclas","clientZoneVisible":true},{"id":311,"clientId":135,"customAttributeId":16,"name":"Antena\/Sectorial","key":"antenaSectorial","value":"Sectorial de pruebas 172.16.5.134","clientZoneVisible":false},{"id":429,"clientId":135,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"Servicio 1: A758fuWkA4bN@Z3E Servicio 2: ZckxzQJGU4TrJ#Bw","clientZoneVisible":false}],"accountBalance":9491.67,"accountCredit":9491.67,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":12,"name":"PAGO ELI","colorBackground":"#0050a1","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f9a825","addressGpsLat":21.1468281,"addressGpsLon":-100.9577464,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":3256,"clientId":135,"number":"003202","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3273,"type":"service","label":"Basico 300 01\/03\/2026 \u2013 31\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":172,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0},{"id":3274,"type":"service","label":"INTERMEDIO 01\/03\/2026 \u2013 31\/03\/2026","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":174,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":800,"discount":null,"discountLabel":"Descuento","taxes":[],"total":800,"amountPaid":800,"totalUntaxed":800,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":1568,"invoiceId":3256,"paymentId":899,"creditNoteId":null,"refundId":null,"amount":16.67},{"id":1569,"invoiceId":3256,"paymentId":900,"creditNoteId":null,"refundId":null,"amount":175},{"id":1570,"invoiceId":3256,"paymentId":901,"creditNoteId":null,"refundId":null,"amount":220},{"id":1571,"invoiceId":3256,"paymentId":902,"creditNoteId":null,"refundId":null,"amount":50},{"id":1572,"invoiceId":3256,"paymentId":903,"creditNoteId":null,"refundId":null,"amount":170},{"id":1573,"invoiceId":3256,"paymentId":904,"creditNoteId":null,"refundId":null,"amount":168.33}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Juan","clientLastName":"Escutia","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"13 Calle San Antonio","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37806","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":963,"clientId":135,"methodId":"b01c0b35-b42c-48d9-9ad9-ea6591adfbbb","checkNumber":null,"createdDate":"2026-02-12T13:36:09-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":100,"userId":1180,"attributes":[{"id":"e64dea77-a797-4075-af12-b97ef40b374b","paymentId":963,"customAttributeId":20,"name":"Tipo Pago Stripe","key":"tipoPagoStripe","value":"OXXO Pay","clientZoneVisible":true}]}] + +Nombre del cliente que se va a actualizar: Juan Escutia + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Juan Escutia","custom_fields":{"Site":"VENUS","Estado":"\ud83d\udfe2 Activo ","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/135","Nombre":"\ud83d\udc64 Juan Escutia","Cliente":135,"Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/03\/2026 10:00","Saldo Actual":"\ud83d\udcb29491.67 a favor","Monto Ultimo Pago":"\ud83d\udcb2 100","Clabe Interbancaria":"002180674088308545","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 12\/02\/2026 13:36 con Desconocido, revisar metodos de pago no contemplados","Antena\/Sectorial":"Sectorial de pruebas 172.16.5.134","Domicilio":"\ud83d\udccd Calle San Antonio 13, Lindavista, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Resumen":"{\"Cliente\": \"135\",\"Nombre\": \"Juan Escutia\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/135\",\"Saldo Actual\": \"\ud83d\udcb29491.67 a favor\",\"Monto Ultimo Pago\": \"$ 100\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 12\/02\/2026 13:36 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"22\/03\/2026 10:00\",\"Clabe Interbancaria\": \"002180674088308545\",\"Site\": \"VENUS\",\"Antena\/Sectorial\": \"Sectorial de pruebas 172.16.5.134\",\"Password Antena\": {\"Servicio 1\":\"A758fuWkA4bN@Z3E\",\"Servicio 2\":\"ZckxzQJGU4TrJ#Bw\"}}","password-antena":"{\"Servicio 1\":\"A758fuWkA4bN@Z3E\",\"Servicio 2\":\"ZckxzQJGU4TrJ#Bw\"}"}} + +DEBUG COMPARACIÓN - CallBell Saldo Actual: '💲1300 pendientes' + +DEBUG COMPARACIÓN - UCRM Saldo Actual: '💲9491.67 a favor' + +DEBUG COMPARACIÓN - CallBell Estado: '🟠 Suspendido' + +DEBUG COMPARACIÓN - UCRM Estado: '🟢 Activo ' + +DEBUG COMPARACIÓN - Diferencia en name. CallBell: 'Edward Elric', UCRM: 'Juan Escutia' + +EJECUTANDO PATCH - Se detectaron cambios + +Response Patch CallBell: {"error":{"custom_fields":["Resumen: is too long (maximum is 500 characters)"]}} + +[2026-03-22 16:00:49.376528] [notice] Logging level set to:debug +[2026-03-22 16:00:49.376580] [debug] Payload recibido: {"uuid":"32f8939e-2a79-41af-a3d8-41f8040a60a4","changeType":"draft_approved","entity":"invoice","entityId":"3257","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3257,"clientId":158,"number":"003203","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3275,"type":"service","label":"Basico 300 01\/03\/2026 \u2013 31\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":165,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Luis","clientLastName":"Guti\u00e9rrez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"23 San Luis","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37804","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-22 16:00:49.573196] [debug] Evento recibido: invoice.draft_approved +[2026-03-22 16:00:49.573304] [debug] Aprobación de Factura + +[2026-03-22 16:00:50.737726] [notice] Logging level set to:debug +[2026-03-22 16:00:50.737782] [debug] Payload recibido: {"uuid":"00d25392-95e8-439c-bcb2-0d751063cd97","changeType":"draft_approved","entity":"invoice","entityId":"3258","eventName":"invoice.draft_approved","extraData":{"entity":{"id":3258,"clientId":131,"number":"003204","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3276,"type":"service","label":"Basico 300 01\/03\/2026 \u2013 31\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":160,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Payaso","clientLastName":"Loco","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"15 Campeche","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"entityBeforeEdit":null}} + +[2026-03-22 16:00:50.944782] [debug] Evento recibido: invoice.draft_approved +[2026-03-22 16:00:50.944883] [debug] Aprobación de Factura + +[2026-03-22 16:00:50.944952] [debug] onlyUpdate: Iniciando actualización para teléfono: 4181878106 +[2026-03-22 16:00:50.945013] [debug] onlyUpdate: Teléfono validado: 524181878106 +[2026-03-22 16:00:51.323635] [debug] onlyUpdate: Contacto obtenido de CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Edward Elric","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2026-03-19T19:28:26Z","source":"whatsapp","funnelId":null,"href":"https:\/\/dash.callbell.eu\/contacts\/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https:\/\/dash.callbell.eu\/chat\/53c8229c428c4081b197ab136feab73b","tags":["PRUEBAS","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Resumen":"{\"Cliente\": \"162\",\"Nombre\": \"Edward Elric\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/162\",\"Saldo Actual\": \"\ud83d\udcb21300 pendientes\",\"Monto Ultimo Pago\": \"$ 100\",\"Estado\": \"Suspendido\",\"Fecha Ultimo Pago\": \" 26\/01\/2026 17:53 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"22\/03\/2026 10:00\",\"Clabe Interbancaria\": \"124180599808752427\",\"Site\": \"\",\"Antena\/Sectorial\": \"\",\"Password Antena\": {\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\\/V\"}}","Domicilio":"\ud83d\udccd Chiapas 76, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Saldo Actual":"\ud83d\udcb21300 pendientes","Clabe Interbancaria":"124180599808752427","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/162","Site":"0LOCS","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/03\/2026 10:00","Cliente":"162","Monto Ultimo Pago":"\ud83d\udcb2 100","Antena\/Sectorial":"Sectorial-4b 172.16.13.16\/24","password-antena":"{\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\\/V\"}","Estado":"\ud83d\udfe0 Suspendido","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/01\/2026 17:53 con Efectivo \ud83d\udcb5","user name":"Daniel Humberto","Nombre":"\ud83d\udc64 Edward Elric"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":5,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"discardedAt":null,"type":"whatsapp","main":true},"blockedAt":null}} +[2026-03-22 16:00:51.323692] [info] onlyUpdate: Ejecutando patchWhatsapp para teléfono: 524181878106 +Notificacion data: {"uuid":"00d25392-95e8-439c-bcb2-0d751063cd97","changeType":"draft_approved","entity":"invoice","entityId":3258,"message":null,"clientId":131,"eventName":"invoice.draft_approved","clientData":{"id":131,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"15 Campeche","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Campeche 15, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-18T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Payaso","lastName":"Loco","username":null,"contacts":[{"id":135,"clientId":131,"email":"payasoloco@gmail.com","phone":"4181878106","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":208,"clientId":131,"customAttributeId":17,"name":"Password Antena Cliente","key":"passwordAntenaCliente","value":"gYAIEK:Be}SK*01z5+\/V","clientZoneVisible":false},{"id":279,"clientId":131,"customAttributeId":21,"name":"RUTA DE COBRANZA","key":"rutaDeCobranza","value":"GUSANO","clientZoneVisible":true}],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#d81b60","addressGpsLat":21.1582653,"addressGpsLon":-100.9371641,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":3258,"clientId":131,"number":"003204","createdDate":"2026-03-22T10:00:01-0600","dueDate":"2026-04-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2026-03-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":3276,"type":"service","label":"Basico 300 01\/03\/2026 \u2013 31\/03\/2026","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":160,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Payaso","clientLastName":"Loco","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"15 Campeche","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false,"printed":false},"paymentData":null} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":991,"clientId":131,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2026-03-12T14:26:59-0600","amount":300,"currencyCode":"MXN","note":"Cobrado por: danielhumberto","receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":1554,"invoiceId":3117,"paymentId":991,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Payaso Loco + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Payaso Loco","custom_fields":{"Site":"","Estado":"\ud83d\udfe2 Activo ","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/131","Nombre":"\ud83d\udc64 Payaso Loco","Cliente":131,"Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/03\/2026 10:00","Saldo Actual":"\ud83d\udcb2300 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 300","Clabe Interbancaria":"","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 12\/03\/2026 14:26 con Efectivo \ud83d\udcb5","Antena\/Sectorial":"","Domicilio":"\ud83d\udccd Campeche 15, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Resumen":"{\"Cliente\": \"131\",\"Nombre\": \"Payaso Loco\",\"URL\": \"https:\/\/sistema.siip.mx\/crm\/client\/131\",\"Saldo Actual\": \"\ud83d\udcb2300 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 12\/03\/2026 14:26 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"22\/03\/2026 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena\/Sectorial\": \"\",\"Password Antena\": {\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\\/V\"}}","password-antena":"{\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\\/V\"}"}} + +DEBUG COMPARACIÓN - CallBell Saldo Actual: '💲1300 pendientes' + +DEBUG COMPARACIÓN - UCRM Saldo Actual: '💲300 pendientes' + +DEBUG COMPARACIÓN - CallBell Estado: '🟠 Suspendido' + +DEBUG COMPARACIÓN - UCRM Estado: '🟢 Activo ' + +DEBUG COMPARACIÓN - Diferencia en name. CallBell: 'Edward Elric', UCRM: 'Payaso Loco' + +EJECUTANDO PATCH - Se detectaron cambios + +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Payaso Loco","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2026-03-19T19:28:26Z","source":"whatsapp","funnelId":null,"href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":["PRUEBAS","s0LOCS"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Resumen":"{\"Cliente\": \"131\",\"Nombre\": \"Payaso Loco\",\"URL\": \"https://sistema.siip.mx/crm/client/131\",\"Saldo Actual\": \"💲300 pendientes\",\"Monto Ultimo Pago\": \"$ 300\",\"Estado\": \"Activo\",\"Fecha Ultimo Pago\": \" 12/03/2026 14:26 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"22/03/2026 10:00\",\"Clabe Interbancaria\": \"\",\"Site\": \"\",\"Antena/Sectorial\": \"\",\"Password Antena\": {\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\/V\"}}","Domicilio":"📍 Campeche 15, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Saldo Actual":"💲300 pendientes","Clabe Interbancaria":"124180599808752427","URL":"🌐 https://sistema.siip.mx/crm/client/131","Site":"0LOCS","Fecha Ultima Actualizacion":"📆🔄️ 22/03/2026 10:00","Cliente":"131","Monto Ultimo Pago":"💲 300","Antena/Sectorial":"Sectorial-4b 172.16.13.16/24","password-antena":"{\"Servicio 1\":\"gYAIEK:Be}SK*01z5+\\/V\"}","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 12/03/2026 14:26 con Efectivo 💵","user name":"Daniel Humberto","Nombre":"👤 Payaso Loco"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":5,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"discardedAt":null,"type":"whatsapp","main":true},"blockedAt":null}} +