From cd74cafedaf76be5fca5f3f67b1b6c8306b1eef2 Mon Sep 17 00:00:00 2001 From: server Date: Tue, 4 Mar 2025 09:32:03 +0000 Subject: [PATCH] HotFix para manejo de excepciones de timeout para referencias de oxxo y otros errores --- .gitignore | 0 README.md | 5 +- ...e_Daniel_Humberto_Soto_Villegas_El_may.pdf | Bin ...e_Daniel_Humberto_Soto_Villegas_El_may.png | Bin ...nte_Don_Miguel_Ángel_Guerrero_González.pdf | Bin ...nte_Don_Miguel_Ángel_Guerrero_González.png | Bin .../Comprobante_Mofles_El_Ruco_Lopez.pdf | Bin .../Comprobante_Mofles_El_Ruco_Lopez.png | Bin .../Comprobante_Águila_Calva_En_el_Nopal.pdf | Bin .../Comprobante_Águila_Calva_En_el_Nopal.png | Bin data/plugin.log | 4813 +++++++++++++++++ manifest.json | 4 +- src/Facade/AbstractOxxoOperationsFacade.php | 94 +- src/Facade/ClientCallBellAPI.php | 230 +- src/Plugin.php | 71 +- vendor/composer/installed.php | 4 +- 16 files changed, 5016 insertions(+), 205 deletions(-) mode change 100644 => 100755 .gitignore mode change 100644 => 100755 comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_El_may.pdf mode change 100644 => 100755 comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_El_may.png mode change 100644 => 100755 comprobantes/Comprobante_Don_Miguel_Ángel_Guerrero_González.pdf mode change 100644 => 100755 comprobantes/Comprobante_Don_Miguel_Ángel_Guerrero_González.png mode change 100644 => 100755 comprobantes/Comprobante_Mofles_El_Ruco_Lopez.pdf mode change 100644 => 100755 comprobantes/Comprobante_Mofles_El_Ruco_Lopez.png mode change 100644 => 100755 comprobantes/Comprobante_Águila_Calva_En_el_Nopal.pdf mode change 100644 => 100755 comprobantes/Comprobante_Águila_Calva_En_el_Nopal.png diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/README.md b/README.md index ae4215c4..eb5c028a 100755 --- a/README.md +++ b/README.md @@ -1,8 +1,7 @@ # SIIP - Procesador de Pagos en línea con Stripe, Oxxo y Transferencia, Sincronizador de CallBell y Envío de Notificaciones y comprobantes vía WhatsApp -* This plugin sends WhatsApp notifications to clients. -* It only sends SMS to clients having a phone number set in their contacts details. -* [Twilio](https://www.twilio.com/) account is required to access its API. +Este plugin sincroniza los clientes del sitema UISP CRM con los contactos de WhatsApp en CallBell, además procesa pagos de Stripe como las trasferencias bancarias y genera referencias de pago vía OXXO, además envía comprobantes de pago en formato imagen PNG o texto vía Whatsapp a los clientes + ## Configuration diff --git a/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_El_may.pdf b/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_El_may.pdf old mode 100644 new mode 100755 diff --git a/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_El_may.png b/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_El_may.png old mode 100644 new mode 100755 diff --git a/comprobantes/Comprobante_Don_Miguel_Ángel_Guerrero_González.pdf b/comprobantes/Comprobante_Don_Miguel_Ángel_Guerrero_González.pdf old mode 100644 new mode 100755 diff --git a/comprobantes/Comprobante_Don_Miguel_Ángel_Guerrero_González.png b/comprobantes/Comprobante_Don_Miguel_Ángel_Guerrero_González.png old mode 100644 new mode 100755 diff --git a/comprobantes/Comprobante_Mofles_El_Ruco_Lopez.pdf b/comprobantes/Comprobante_Mofles_El_Ruco_Lopez.pdf old mode 100644 new mode 100755 diff --git a/comprobantes/Comprobante_Mofles_El_Ruco_Lopez.png b/comprobantes/Comprobante_Mofles_El_Ruco_Lopez.png old mode 100644 new mode 100755 diff --git a/comprobantes/Comprobante_Águila_Calva_En_el_Nopal.pdf b/comprobantes/Comprobante_Águila_Calva_En_el_Nopal.pdf old mode 100644 new mode 100755 diff --git a/comprobantes/Comprobante_Águila_Calva_En_el_Nopal.png b/comprobantes/Comprobante_Águila_Calva_En_el_Nopal.png old mode 100644 new mode 100755 diff --git a/data/plugin.log b/data/plugin.log index 2cbd2bbf..ee69f31e 100755 --- a/data/plugin.log +++ b/data/plugin.log @@ -6282,3 +6282,4816 @@ JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy", Response Patch CallBell: {"contact":{"uuid":"2038d2d99ae543f3b56f1ae54f4cc82b","name":"Daniel Humberto Soto Villegas el boy","phoneNumber":"5214181817609","avatarUrl":null,"createdAt":"2024-01-26T18:16:09Z","closedAt":"2025-02-17T19:00:45Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/2038d2d99ae543f3b56f1ae54f4cc82b","conversationHref":"https://dash.callbell.eu/chat/90611886ac204c56a75240f951c53874","tags":[],"assignedUser":null,"customFields":{"Nombre":"👤 Daniel Humberto Soto Villegas el boy","Cliente":"2","Clabe Interbancaria":"0021804341999569810","Fecha Ultima Actualizacion":"📆🔄️ 18/02/2025 14:16","user entry point":"inbound_message","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 18/02/2025 20:16 con Desconocido, revisar metodos de pago no contemplados","Saldo Actual":"💲256.67 pendientes","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Monto Ultimo Pago":"💲 ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas el boy\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲256.67 pendientes\",\"Monto Ultimo Pago\": \"💲 \",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 18/02/2025 20:16 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 18/02/2025 14:16\",\"Clabe Interbancaria\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/crm/client/2","user name":"Grisel"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} +[2025-02-19 3:14:15.838184] [notice] Logging level set to:debug +[2025-02-19 3:14:15.990616] [debug] valor el evento recibido por webhook: invoice.edit + +[2025-02-19 3:14:15.990840] [debug] Valor de JSON: {"uuid":"bf572481-a644-4d8f-b37a-1319bd1c637a","changeType":"edit","entity":"invoice","entityId":"1564","eventName":"invoice.edit","extraData":{"entity":{"id":1564,"clientId":2,"number":"001521","createdDate":"2025-02-18T14:16:03-0600","dueDate":"2025-03-04T14:16:03-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-18T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1567,"type":"service","label":"PREMIUM 18\/02\/2025 \u2013 28\/02\/2025","price":700,"quantity":0.36666666666667,"total":256.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":134,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":256.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":256.67,"amountPaid":256.67,"totalUntaxed":256.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":659,"invoiceId":1564,"paymentId":587,"creditNoteId":null,"refundId":null,"amount":256.67}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":{"id":1564,"clientId":2,"number":"001521","createdDate":"2025-02-18T14:16:03-0600","dueDate":"2025-03-04T14:16:03-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-18T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1567,"type":"service","label":"PREMIUM 18\/02\/2025 \u2013 28\/02\/2025","price":700,"quantity":0.36666666666667,"total":256.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":134,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":256.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":256.67,"amountPaid":0,"totalUntaxed":256.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":256.67,"currencyCode":"MXN","status":1,"paymentCovers":[{"id":659,"invoiceId":1564,"paymentId":587,"creditNoteId":null,"refundId":null,"amount":256.67}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false}}} + +[2025-02-19 3:14:15.991111] [debug] Edición de Factura + +[2025-02-19 3:14:15.991219] [debug] {"uuid":"bf572481-a644-4d8f-b37a-1319bd1c637a","changeType":"edit","entity":"invoice","entityId":1564,"message":null,"clientId":2,"eventName":"invoice.edit","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1564,"clientId":2,"number":"001521","createdDate":"2025-02-18T14:16:03-0600","dueDate":"2025-03-04T14:16:03-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-18T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1567,"type":"service","label":"PREMIUM 18\/02\/2025 \u2013 28\/02\/2025","price":700,"quantity":0.36666666666667,"total":256.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":134,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":256.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":256.67,"amountPaid":256.67,"totalUntaxed":256.67,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":659,"invoiceId":1564,"paymentId":587,"creditNoteId":null,"refundId":null,"amount":256.67}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-19 3:14:15.991331] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-19 3:14:15.991380] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":587,"clientId":2,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2025-02-18T21:14:08-0600","amount":256.67,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":659,"invoiceId":1564,"paymentId":587,"creditNoteId":null,"refundId":null,"amount":256.67}],"creditAmount":0,"userId":1015,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 256.67","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 256.67\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 18\/02\/2025 21:14 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 18\/02\/2025 21:14\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 18\/02\/2025 21:14 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 18\/02\/2025 21:14","Clabe Interbancaria":"0021804341999569810"}} + +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas el boy","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-02-06T23:47:27Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"0021804341999569810","user entry point":"inbound_message","Saldo Actual":"💲0 está al corriente","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 18/02/2025 21:14 con Efectivo 💵","URL":"🌐 https://172.16.5.120/crm/client/2","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Monto Ultimo Pago":"💲 256.67","user name":"Daniel Humberto 🐁","Nombre":"👤 Daniel Humberto Soto Villegas el boy","Fecha Ultima Actualizacion":"📆🔄️ 18/02/2025 21:14","Cliente":"2","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas el boy\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"💲 256.67\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 18/02/2025 21:14 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 18/02/2025 21:14\",\"Clabe Interbancaria\": \"0021804341999569810\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":587,"clientId":2,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2025-02-18T21:14:08-0600","amount":256.67,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":659,"invoiceId":1564,"paymentId":587,"creditNoteId":null,"refundId":null,"amount":256.67}],"creditAmount":0,"userId":1015,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 2038d2d99ae543f3b56f1ae54f4cc82b + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 256.67","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 256.67\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 18\/02\/2025 21:14 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 18\/02\/2025 21:14\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 18\/02\/2025 21:14 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 18\/02\/2025 21:14","Clabe Interbancaria":"0021804341999569810"}} + +Response Patch CallBell: {"contact":{"uuid":"2038d2d99ae543f3b56f1ae54f4cc82b","name":"Daniel Humberto Soto Villegas el boy","phoneNumber":"5214181817609","avatarUrl":null,"createdAt":"2024-01-26T18:16:09Z","closedAt":"2025-02-17T19:00:45Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/2038d2d99ae543f3b56f1ae54f4cc82b","conversationHref":"https://dash.callbell.eu/chat/90611886ac204c56a75240f951c53874","tags":[],"assignedUser":null,"customFields":{"Nombre":"👤 Daniel Humberto Soto Villegas el boy","Cliente":"2","Clabe Interbancaria":"0021804341999569810","Fecha Ultima Actualizacion":"📆🔄️ 18/02/2025 21:14","user entry point":"inbound_message","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 18/02/2025 21:14 con Efectivo 💵","Saldo Actual":"💲0 está al corriente","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Monto Ultimo Pago":"💲 256.67","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas el boy\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"💲 256.67\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 18/02/2025 21:14 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 18/02/2025 21:14\",\"Clabe Interbancaria\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/crm/client/2","user name":"Grisel"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-19 3:14:19.733098] [notice] Logging level set to:debug +[2025-02-19 3:14:19.849553] [debug] valor el evento recibido por webhook: payment.add + +[2025-02-19 3:14:19.849695] [debug] Valor de JSON: {"uuid":"8e582e1f-6cfe-47ea-a30d-2a146e74e6e6","changeType":"insert","entity":"payment","entityId":"587","eventName":"payment.add","extraData":{"entity":{"id":587,"clientId":2,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2025-02-18T21:14:08-0600","amount":256.67,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":659,"invoiceId":1564,"paymentId":587,"creditNoteId":null,"refundId":null,"amount":256.67}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":null}} + +[2025-02-19 3:14:19.849929] [debug] Notification encodificado en JSON:{"uuid":"8e582e1f-6cfe-47ea-a30d-2a146e74e6e6","changeType":"insert","entity":"payment","entityId":587,"message":null,"clientId":2,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":587,"clientId":2,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2025-02-18T21:14:08-0600","amount":256.67,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":659,"invoiceId":1564,"paymentId":587,"creditNoteId":null,"refundId":null,"amount":256.67}],"creditAmount":0,"userId":1015,"attributes":[]}} + +[2025-02-19 3:14:19.850007] [debug] valor del payment data: {"id":587,"clientId":2,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2025-02-18T21:14:08-0600","amount":256.67,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":659,"invoiceId":1564,"paymentId":587,"creditNoteId":null,"refundId":null,"amount":256.67}],"creditAmount":0,"userId":1015,"attributes":[]} + +[2025-02-19 3:14:19.968677] [notice] Logging level set to:debug +[2025-02-19 3:14:20.082957] [debug] valor el evento recibido por webhook: payment.edit + +[2025-02-19 3:14:20.083142] [debug] Valor de JSON: {"uuid":"74381f10-0608-418d-b21b-6fa3b4c5b66f","changeType":"edit","entity":"payment","entityId":"587","eventName":"payment.edit","extraData":{"entity":{"id":587,"clientId":2,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2025-02-18T21:14:08-0600","amount":256.67,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":659,"invoiceId":1564,"paymentId":587,"creditNoteId":null,"refundId":null,"amount":256.67}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":587,"clientId":2,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2025-02-18T21:14:08-0600","amount":256.67,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":659,"invoiceId":1564,"paymentId":587,"creditNoteId":null,"refundId":null,"amount":256.67}],"creditAmount":0,"userId":1015,"attributes":[]}}} + +[2025-02-19 16:00:03.718334] [notice] Logging level set to:debug +[2025-02-19 16:00:03.906764] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-19 16:00:03.906838] [debug] Valor de JSON: {"uuid":"d94928fb-6602-48b0-a58f-f9001c9461b4","changeType":"insert","entity":"invoice","entityId":"1565","eventName":"invoice.add_draft","extraData":{"entity":{"id":1565,"clientId":1,"number":"001522","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-17T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1568,"type":"service","label":"plan300 25\/01\/2025 \u2013 17\/02\/2025","price":300,"quantity":0.8,"total":240,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":132,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":240,"discount":null,"discountLabel":"Descuento","taxes":[],"total":240,"amountPaid":240,"totalUntaxed":240,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":660,"invoiceId":1565,"paymentId":478,"creditNoteId":null,"refundId":null,"amount":80},{"id":661,"invoiceId":1565,"paymentId":480,"creditNoteId":null,"refundId":null,"amount":160}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Don Miguel \u00c1ngel","clientLastName":"Guerrero Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Calle Morelos 34","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-19 16:00:03.920044] [debug] Adición de borrador de Factura + +[2025-02-19 16:00:03.920176] [debug] {"uuid":"d94928fb-6602-48b0-a58f-f9001c9461b4","changeType":"insert","entity":"invoice","entityId":1565,"message":null,"clientId":1,"eventName":"invoice.add_draft","clientData":{"id":1,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"Calle Morelos 34","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Calle Morelos 34, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-15T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Don Miguel \u00c1ngel","lastName":"Guerrero Gonz\u00e1lez","username":"dguerrero01","contacts":[{"id":1,"clientId":1,"email":"mangelgg@gmail.com","phone":"5214181148554","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":110,"clientId":1,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PdQvAvQ2wipl5k","clientZoneVisible":true},{"id":111,"clientId":1,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180697144444854","clientZoneVisible":true}],"accountBalance":1840,"accountCredit":1840,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.1572096,"addressGpsLon":-100.9377327,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1565,"clientId":1,"number":"001522","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-16T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1568,"type":"service","label":"plan300 25\/01\/2025 \u2013 17\/02\/2025","price":300,"quantity":0.8,"total":240,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":132,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":240,"discount":null,"discountLabel":"Descuento","taxes":[],"total":240,"amountPaid":240,"totalUntaxed":240,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":660,"invoiceId":1565,"paymentId":478,"creditNoteId":null,"refundId":null,"amount":80},{"id":661,"invoiceId":1565,"paymentId":480,"creditNoteId":null,"refundId":null,"amount":160}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Don Miguel \u00c1ngel","clientLastName":"Guerrero Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Calle Morelos 34","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-19 16:00:03.920306] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-19 16:00:03.920320] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":585,"clientId":1,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-02-15T10:28:13-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":"2025-02-15T10:28:14-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Don Miguel Ángel Guerrero González + +UUID: 0e53e926ce424db5b9284a75915d24fe + +JSON con los datos a actualizar: {"name":"Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez","custom_fields":{"Cliente":1,"Domicilio":"\ud83d\udccd Calle Morelos 34, Dolores Hidalgo, 37800","Nombre":"\ud83d\udc64 Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/1","Saldo Actual":"\ud83d\udcb21840 a favor","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"1\",\"Domicilio\": \"\ud83d\udccd Calle Morelos 34, Dolores Hidalgo, 37800\",\"Nombre\": \"\ud83d\udc64 Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/1\",\"Saldo Actual\": \"\ud83d\udcb21840 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 300\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 15\/02\/2025 10:28 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00\",\"Clabe Interbancaria\": \"002180697144444854\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 15\/02\/2025 10:28 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00","Clabe Interbancaria":"002180697144444854"}} + +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-02-15T17:17:12Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/0e53e926ce424db5b9284a75915d24fe","conversationHref":"https://dash.callbell.eu/chat/f017e454a6b94ab297509274216c6795","tags":["SIIP","Suspendido"],"assignedUser":null,"customFields":{"URL":"🌐 https://172.16.5.120/crm/client/1","user entry point":"inbound_message","Clientes Relacionados":"oxxo","Cliente":"1","Nombre":"👤 Don Miguel Ángel Guerrero González","Clabe Interbancaria":"002180697144444854","Fecha Ultima Actualizacion":"📆🔄️ 19/02/2025 10:00","Monto Ultimo Pago":"💲 300","Acciones":"1","Fecha Ultimo Pago":"📆💸 15/02/2025 10:28 con Tarjeta de crédito Stripe 💳","Domicilio":"📍 Calle Morelos 34, Dolores Hidalgo, 37800","user name":"Angel","Estado":"🟢 Activo ","Resumen":"{\"Cliente\": \"1\",\"Domicilio\": \"📍 Calle Morelos 34, Dolores Hidalgo, 37800\",\"Nombre\": \"👤 Don Miguel Ángel Guerrero González\",\"URL\": \"🌐 https://172.16.5.120/crm/client/1\",\"Saldo Actual\": \"💲1840 a favor\",\"Monto Ultimo Pago\": \"💲 300\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 15/02/2025 10:28 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 19/02/2025 10:00\",\"Clabe Interbancaria\": \"002180697144444854\"}","Saldo Actual":"💲1840 a favor"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-19 16:00:05.373823] [notice] Logging level set to:debug +[2025-02-19 16:00:05.641522] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-19 16:00:05.641591] [debug] Valor de JSON: {"uuid":"3fed7ccb-e3f6-421d-b4a3-ad3434c2a27f","changeType":"draft_approved","entity":"invoice","entityId":"1565","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1565,"clientId":1,"number":"001522","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-17T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1568,"type":"service","label":"plan300 25\/01\/2025 \u2013 17\/02\/2025","price":300,"quantity":0.8,"total":240,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":132,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":240,"discount":null,"discountLabel":"Descuento","taxes":[],"total":240,"amountPaid":240,"totalUntaxed":240,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":660,"invoiceId":1565,"paymentId":478,"creditNoteId":null,"refundId":null,"amount":80},{"id":661,"invoiceId":1565,"paymentId":480,"creditNoteId":null,"refundId":null,"amount":160}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Don Miguel \u00c1ngel","clientLastName":"Guerrero Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Calle Morelos 34","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-19 16:00:05.641690] [debug] Aprobación de Factura + +[2025-02-19 16:00:05.641808] [debug] {"uuid":"3fed7ccb-e3f6-421d-b4a3-ad3434c2a27f","changeType":"draft_approved","entity":"invoice","entityId":1565,"message":null,"clientId":1,"eventName":"invoice.draft_approved","clientData":{"id":1,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"Calle Morelos 34","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Calle Morelos 34, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-15T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Don Miguel \u00c1ngel","lastName":"Guerrero Gonz\u00e1lez","username":"dguerrero01","contacts":[{"id":1,"clientId":1,"email":"mangelgg@gmail.com","phone":"5214181148554","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":110,"clientId":1,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PdQvAvQ2wipl5k","clientZoneVisible":true},{"id":111,"clientId":1,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180697144444854","clientZoneVisible":true}],"accountBalance":1840,"accountCredit":1840,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.1572096,"addressGpsLon":-100.9377327,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1565,"clientId":1,"number":"001522","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-16T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1568,"type":"service","label":"plan300 25\/01\/2025 \u2013 17\/02\/2025","price":300,"quantity":0.8,"total":240,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":132,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":240,"discount":null,"discountLabel":"Descuento","taxes":[],"total":240,"amountPaid":240,"totalUntaxed":240,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":660,"invoiceId":1565,"paymentId":478,"creditNoteId":null,"refundId":null,"amount":80},{"id":661,"invoiceId":1565,"paymentId":480,"creditNoteId":null,"refundId":null,"amount":160}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Don Miguel \u00c1ngel","clientLastName":"Guerrero Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Calle Morelos 34","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-19 16:00:05.641853] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-19 16:00:05.641864] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":585,"clientId":1,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-02-15T10:28:13-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":"2025-02-15T10:28:14-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Don Miguel Ángel Guerrero González + +UUID: 0e53e926ce424db5b9284a75915d24fe + +JSON con los datos a actualizar: {"name":"Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez","custom_fields":{"Cliente":1,"Domicilio":"\ud83d\udccd Calle Morelos 34, Dolores Hidalgo, 37800","Nombre":"\ud83d\udc64 Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/1","Saldo Actual":"\ud83d\udcb21840 a favor","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"1\",\"Domicilio\": \"\ud83d\udccd Calle Morelos 34, Dolores Hidalgo, 37800\",\"Nombre\": \"\ud83d\udc64 Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/1\",\"Saldo Actual\": \"\ud83d\udcb21840 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 300\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 15\/02\/2025 10:28 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00\",\"Clabe Interbancaria\": \"002180697144444854\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 15\/02\/2025 10:28 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00","Clabe Interbancaria":"002180697144444854"}} + +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-02-15T17:17:12Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/0e53e926ce424db5b9284a75915d24fe","conversationHref":"https://dash.callbell.eu/chat/f017e454a6b94ab297509274216c6795","tags":["SIIP","Suspendido"],"assignedUser":null,"customFields":{"URL":"🌐 https://172.16.5.120/crm/client/1","user entry point":"inbound_message","Clientes Relacionados":"oxxo","Cliente":"1","Nombre":"👤 Don Miguel Ángel Guerrero González","Clabe Interbancaria":"002180697144444854","Fecha Ultima Actualizacion":"📆🔄️ 19/02/2025 10:00","Monto Ultimo Pago":"💲 300","Acciones":"1","Fecha Ultimo Pago":"📆💸 15/02/2025 10:28 con Tarjeta de crédito Stripe 💳","Domicilio":"📍 Calle Morelos 34, Dolores Hidalgo, 37800","user name":"Angel","Estado":"🟢 Activo ","Resumen":"{\"Cliente\": \"1\",\"Domicilio\": \"📍 Calle Morelos 34, Dolores Hidalgo, 37800\",\"Nombre\": \"👤 Don Miguel Ángel Guerrero González\",\"URL\": \"🌐 https://172.16.5.120/crm/client/1\",\"Saldo Actual\": \"💲1840 a favor\",\"Monto Ultimo Pago\": \"💲 300\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 15/02/2025 10:28 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 19/02/2025 10:00\",\"Clabe Interbancaria\": \"002180697144444854\"}","Saldo Actual":"💲1840 a favor"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-19 16:00:06.761085] [notice] Logging level set to:debug +[2025-02-19 16:00:06.912313] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-19 16:00:06.912813] [debug] Valor de JSON: {"uuid":"944fbd1c-819f-4718-935f-23889d2e0587","changeType":"insert","entity":"invoice","entityId":"1566","eventName":"invoice.add_draft","extraData":{"entity":{"id":1566,"clientId":2,"number":"001523","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1569,"type":"service","label":"PREMIUM 01\/03\/2025 \u2013 31\/03\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":134,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-19 16:00:06.913034] [debug] Adición de borrador de Factura + +[2025-02-19 16:00:06.913152] [debug] {"uuid":"944fbd1c-819f-4718-935f-23889d2e0587","changeType":"insert","entity":"invoice","entityId":1566,"message":null,"clientId":2,"eventName":"invoice.add_draft","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1566,"clientId":2,"number":"001523","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1569,"type":"service","label":"PREMIUM 01\/03\/2025 \u2013 31\/03\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":134,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-19 16:00:06.913428] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-19 16:00:06.913496] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":587,"clientId":2,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2025-02-18T21:14:08-0600","amount":256.67,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":659,"invoiceId":1564,"paymentId":587,"creditNoteId":null,"refundId":null,"amount":256.67}],"creditAmount":0,"userId":1015,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 256.67","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2700 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 256.67\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 18\/02\/2025 21:14 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 18\/02\/2025 21:14 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00","Clabe Interbancaria":"0021804341999569810"}} + +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas el boy","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-02-06T23:47:27Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"0021804341999569810","user entry point":"inbound_message","Saldo Actual":"💲700 pendientes","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 18/02/2025 21:14 con Efectivo 💵","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Monto Ultimo Pago":"💲 256.67","user name":"Daniel Humberto 🐁","Nombre":"👤 Daniel Humberto Soto Villegas el boy","Fecha Ultima Actualizacion":"📆🔄️ 19/02/2025 10:00","URL":"🌐 https://172.16.5.120/crm/client/2","Cliente":"2","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas el boy\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲700 pendientes\",\"Monto Ultimo Pago\": \"💲 256.67\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 18/02/2025 21:14 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 19/02/2025 10:00\",\"Clabe Interbancaria\": \"0021804341999569810\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":587,"clientId":2,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2025-02-18T21:14:08-0600","amount":256.67,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":659,"invoiceId":1564,"paymentId":587,"creditNoteId":null,"refundId":null,"amount":256.67}],"creditAmount":0,"userId":1015,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 2038d2d99ae543f3b56f1ae54f4cc82b + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 256.67","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2700 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 256.67\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 18\/02\/2025 21:14 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 18\/02\/2025 21:14 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00","Clabe Interbancaria":"0021804341999569810"}} + +Response Patch CallBell: {"contact":{"uuid":"2038d2d99ae543f3b56f1ae54f4cc82b","name":"Daniel Humberto Soto Villegas el boy","phoneNumber":"5214181817609","avatarUrl":null,"createdAt":"2024-01-26T18:16:09Z","closedAt":"2025-02-17T19:00:45Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/2038d2d99ae543f3b56f1ae54f4cc82b","conversationHref":"https://dash.callbell.eu/chat/90611886ac204c56a75240f951c53874","tags":[],"assignedUser":null,"customFields":{"Nombre":"👤 Daniel Humberto Soto Villegas el boy","Cliente":"2","Clabe Interbancaria":"0021804341999569810","Fecha Ultima Actualizacion":"📆🔄️ 19/02/2025 10:00","user entry point":"inbound_message","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 18/02/2025 21:14 con Efectivo 💵","Saldo Actual":"💲700 pendientes","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Monto Ultimo Pago":"💲 256.67","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas el boy\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲700 pendientes\",\"Monto Ultimo Pago\": \"💲 256.67\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 18/02/2025 21:14 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 19/02/2025 10:00\",\"Clabe Interbancaria\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/crm/client/2","user name":"Grisel"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-19 16:00:10.189172] [notice] Logging level set to:debug +[2025-02-19 16:00:10.313986] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-19 16:00:10.314183] [debug] Valor de JSON: {"uuid":"a3fc67fd-7d65-49c2-98db-ac2eac910384","changeType":"draft_approved","entity":"invoice","entityId":"1566","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1566,"clientId":2,"number":"001523","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1569,"type":"service","label":"PREMIUM 01\/03\/2025 \u2013 31\/03\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":134,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-19 16:00:10.314352] [debug] Aprobación de Factura + +[2025-02-19 16:00:10.314443] [debug] {"uuid":"a3fc67fd-7d65-49c2-98db-ac2eac910384","changeType":"draft_approved","entity":"invoice","entityId":1566,"message":null,"clientId":2,"eventName":"invoice.draft_approved","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1566,"clientId":2,"number":"001523","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1569,"type":"service","label":"PREMIUM 01\/03\/2025 \u2013 31\/03\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":134,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-19 16:00:10.314522] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-19 16:00:10.314562] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":587,"clientId":2,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2025-02-18T21:14:08-0600","amount":256.67,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":659,"invoiceId":1564,"paymentId":587,"creditNoteId":null,"refundId":null,"amount":256.67}],"creditAmount":0,"userId":1015,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 256.67","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2700 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 256.67\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 18\/02\/2025 21:14 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 18\/02\/2025 21:14 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00","Clabe Interbancaria":"0021804341999569810"}} + +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas el boy","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-02-06T23:47:27Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"0021804341999569810","user entry point":"inbound_message","Saldo Actual":"💲700 pendientes","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 18/02/2025 21:14 con Efectivo 💵","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Monto Ultimo Pago":"💲 256.67","user name":"Daniel Humberto 🐁","Nombre":"👤 Daniel Humberto Soto Villegas el boy","Fecha Ultima Actualizacion":"📆🔄️ 19/02/2025 10:00","URL":"🌐 https://172.16.5.120/crm/client/2","Cliente":"2","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas el boy\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲700 pendientes\",\"Monto Ultimo Pago\": \"💲 256.67\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 18/02/2025 21:14 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 19/02/2025 10:00\",\"Clabe Interbancaria\": \"0021804341999569810\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":587,"clientId":2,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2025-02-18T21:14:08-0600","amount":256.67,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":659,"invoiceId":1564,"paymentId":587,"creditNoteId":null,"refundId":null,"amount":256.67}],"creditAmount":0,"userId":1015,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 2038d2d99ae543f3b56f1ae54f4cc82b + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 256.67","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2700 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 256.67\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 18\/02\/2025 21:14 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 18\/02\/2025 21:14 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00","Clabe Interbancaria":"0021804341999569810"}} + +Response Patch CallBell: {"contact":{"uuid":"2038d2d99ae543f3b56f1ae54f4cc82b","name":"Daniel Humberto Soto Villegas el boy","phoneNumber":"5214181817609","avatarUrl":null,"createdAt":"2024-01-26T18:16:09Z","closedAt":"2025-02-17T19:00:45Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/2038d2d99ae543f3b56f1ae54f4cc82b","conversationHref":"https://dash.callbell.eu/chat/90611886ac204c56a75240f951c53874","tags":[],"assignedUser":null,"customFields":{"Nombre":"👤 Daniel Humberto Soto Villegas el boy","Cliente":"2","Clabe Interbancaria":"0021804341999569810","Fecha Ultima Actualizacion":"📆🔄️ 19/02/2025 10:00","user entry point":"inbound_message","Estado":"🟢 Activo ","Fecha Ultimo Pago":"📆💸 18/02/2025 21:14 con Efectivo 💵","Saldo Actual":"💲700 pendientes","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Monto Ultimo Pago":"💲 256.67","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas el boy\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲700 pendientes\",\"Monto Ultimo Pago\": \"💲 256.67\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 18/02/2025 21:14 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 19/02/2025 10:00\",\"Clabe Interbancaria\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/crm/client/2","user name":"Grisel"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-19 16:00:13.432548] [notice] Logging level set to:debug +[2025-02-19 16:00:13.566560] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-19 16:00:13.566833] [debug] Valor de JSON: {"uuid":"ef82fbf8-786c-46da-8273-50258a398cff","changeType":"insert","entity":"invoice","entityId":"1567","eventName":"invoice.add_draft","extraData":{"entity":{"id":1567,"clientId":129,"number":"001524","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1570,"type":"service","label":"INTERMEDIO 01\/02\/2025 \u2013 28\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":117,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Loco","clientLastName":"Valdez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Coahuila","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-19 16:00:13.566997] [debug] Adición de borrador de Factura + +[2025-02-19 16:00:13.567084] [debug] {"uuid":"ef82fbf8-786c-46da-8273-50258a398cff","changeType":"insert","entity":"invoice","entityId":1567,"message":null,"clientId":129,"eventName":"invoice.add_draft","clientData":{"id":129,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"34 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-17T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Loco","lastName":"Valdez","username":null,"contacts":[{"id":133,"clientId":129,"email":"pepepeltoro141089@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":133,"clientId":129,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_QJSCgri287Ic0V","clientZoneVisible":true},{"id":134,"clientId":129,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180966482840265","clientZoneVisible":true}],"accountBalance":-1250,"accountCredit":0,"accountOutstanding":1250,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00897b","addressGpsLat":21.1608752,"addressGpsLon":-100.935835,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1567,"clientId":129,"number":"001524","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1570,"type":"service","label":"INTERMEDIO 01\/02\/2025 \u2013 28\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":117,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Loco","clientLastName":"Valdez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Coahuila","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-19 16:00:13.567178] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-19 16:00:13.567233] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":375,"clientId":129,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2024-09-27T14:50:47-0600","amount":250,"currencyCode":"MXN","note":null,"receiptSentDate":"2024-09-27T14:50:48-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":425,"invoiceId":976,"paymentId":375,"creditNoteId":null,"refundId":null,"amount":250}],"creditAmount":0,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: El Loco Valdez + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"El Loco Valdez","custom_fields":{"Cliente":129,"Domicilio":"\ud83d\udccd Coahuila 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 El Loco Valdez","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/129","Saldo Actual":"\ud83d\udcb21250 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 250","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"129\",\"Domicilio\": \"\ud83d\udccd Coahuila 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 El Loco Valdez\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/129\",\"Saldo Actual\": \"\ud83d\udcb21250 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 250\",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 27\/09\/2024 14:50 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00\",\"Clabe Interbancaria\": \"002180966482840265\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 27\/09\/2024 14:50 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00","Clabe Interbancaria":"002180966482840265"}} + +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"El Loco Valdez","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-02-06T23:47:27Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"002180966482840265","user entry point":"inbound_message","Saldo Actual":"💲1250 pendientes","Fecha Ultimo Pago":"📆💸 27/09/2024 14:50 con Tarjeta de crédito Stripe 💳","Monto Ultimo Pago":"💲 250","user name":"Daniel Humberto 🐁","Nombre":"👤 El Loco Valdez","Fecha Ultima Actualizacion":"📆🔄️ 19/02/2025 10:00","URL":"🌐 https://172.16.5.120/crm/client/129","Domicilio":"📍 Coahuila 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🔴 Suspendido","Cliente":"129","Resumen":"{\"Cliente\": \"129\",\"Domicilio\": \"📍 Coahuila 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 El Loco Valdez\",\"URL\": \"🌐 https://172.16.5.120/crm/client/129\",\"Saldo Actual\": \"💲1250 pendientes\",\"Monto Ultimo Pago\": \"💲 250\",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 27/09/2024 14:50 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 19/02/2025 10:00\",\"Clabe Interbancaria\": \"002180966482840265\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-19 16:00:15.358762] [notice] Logging level set to:debug +[2025-02-19 16:00:15.508707] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-19 16:00:15.508846] [debug] Valor de JSON: {"uuid":"3751f447-6565-4b53-bd4b-b619f4965051","changeType":"draft_approved","entity":"invoice","entityId":"1567","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1567,"clientId":129,"number":"001524","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1570,"type":"service","label":"INTERMEDIO 01\/02\/2025 \u2013 28\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":117,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Loco","clientLastName":"Valdez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Coahuila","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-19 16:00:15.508982] [debug] Aprobación de Factura + +[2025-02-19 16:00:15.509063] [debug] {"uuid":"3751f447-6565-4b53-bd4b-b619f4965051","changeType":"draft_approved","entity":"invoice","entityId":1567,"message":null,"clientId":129,"eventName":"invoice.draft_approved","clientData":{"id":129,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"34 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-17T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Loco","lastName":"Valdez","username":null,"contacts":[{"id":133,"clientId":129,"email":"pepepeltoro141089@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":133,"clientId":129,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_QJSCgri287Ic0V","clientZoneVisible":true},{"id":134,"clientId":129,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180966482840265","clientZoneVisible":true}],"accountBalance":-1250,"accountCredit":0,"accountOutstanding":1250,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00897b","addressGpsLat":21.1608752,"addressGpsLon":-100.935835,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1567,"clientId":129,"number":"001524","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1570,"type":"service","label":"INTERMEDIO 01\/02\/2025 \u2013 28\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":117,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Loco","clientLastName":"Valdez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Coahuila","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-19 16:00:15.509124] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-19 16:00:15.509165] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":375,"clientId":129,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2024-09-27T14:50:47-0600","amount":250,"currencyCode":"MXN","note":null,"receiptSentDate":"2024-09-27T14:50:48-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":425,"invoiceId":976,"paymentId":375,"creditNoteId":null,"refundId":null,"amount":250}],"creditAmount":0,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: El Loco Valdez + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"El Loco Valdez","custom_fields":{"Cliente":129,"Domicilio":"\ud83d\udccd Coahuila 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 El Loco Valdez","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/129","Saldo Actual":"\ud83d\udcb21250 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 250","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"129\",\"Domicilio\": \"\ud83d\udccd Coahuila 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 El Loco Valdez\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/129\",\"Saldo Actual\": \"\ud83d\udcb21250 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 250\",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 27\/09\/2024 14:50 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00\",\"Clabe Interbancaria\": \"002180966482840265\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 27\/09\/2024 14:50 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00","Clabe Interbancaria":"002180966482840265"}} + +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"El Loco Valdez","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-02-06T23:47:27Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"002180966482840265","user entry point":"inbound_message","Saldo Actual":"💲1250 pendientes","Fecha Ultimo Pago":"📆💸 27/09/2024 14:50 con Tarjeta de crédito Stripe 💳","Monto Ultimo Pago":"💲 250","user name":"Daniel Humberto 🐁","Nombre":"👤 El Loco Valdez","Fecha Ultima Actualizacion":"📆🔄️ 19/02/2025 10:00","URL":"🌐 https://172.16.5.120/crm/client/129","Domicilio":"📍 Coahuila 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🔴 Suspendido","Cliente":"129","Resumen":"{\"Cliente\": \"129\",\"Domicilio\": \"📍 Coahuila 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 El Loco Valdez\",\"URL\": \"🌐 https://172.16.5.120/crm/client/129\",\"Saldo Actual\": \"💲1250 pendientes\",\"Monto Ultimo Pago\": \"💲 250\",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 27/09/2024 14:50 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 19/02/2025 10:00\",\"Clabe Interbancaria\": \"002180966482840265\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-19 16:00:16.964776] [notice] Logging level set to:debug +[2025-02-19 16:00:17.111902] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-19 16:00:17.112056] [debug] Valor de JSON: {"uuid":"a0b6155f-e964-4419-9a50-c0c445f5584a","changeType":"insert","entity":"invoice","entityId":"1568","eventName":"invoice.add_draft","extraData":{"entity":{"id":1568,"clientId":148,"number":"001525","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1571,"type":"service","label":"plan300 01\/02\/2025 \u2013 28\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":116,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El AR","clientLastName":"Real 3D","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"24 Campeche","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-19 16:00:17.112207] [debug] Adición de borrador de Factura + +[2025-02-19 16:00:17.112293] [debug] {"uuid":"a0b6155f-e964-4419-9a50-c0c445f5584a","changeType":"insert","entity":"invoice","entityId":1568,"message":null,"clientId":148,"eventName":"invoice.add_draft","clientData":{"id":148,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"24 Campeche","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Campeche 24, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-08-19T00:00:00-0600","leadConvertedAt":"2024-08-19T15:08:20-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El AR","lastName":"Real 3D","username":null,"contacts":[{"id":152,"clientId":148,"email":"elarquijuve@gmail.com","phone":"41818781806","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":147,"clientId":148,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_Qh0pTQM9a96D8B","clientZoneVisible":true},{"id":148,"clientId":148,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180834778043086","clientZoneVisible":true},{"id":151,"clientId":148,"customAttributeId":8,"name":"conekta","key":"conekta","value":"aasdad","clientZoneVisible":true}],"accountBalance":-1930,"accountCredit":0,"accountOutstanding":1930,"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":1568,"clientId":148,"number":"001525","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1571,"type":"service","label":"plan300 01\/02\/2025 \u2013 28\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":116,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El AR","clientLastName":"Real 3D","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"24 Campeche","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-19 16:00:17.112377] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-19 16:00:17.112417] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":368,"clientId":148,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-08-19T15:10:06-0600","amount":3500,"currencyCode":"MXN","note":null,"receiptSentDate":"2024-08-19T15:10:13-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":416,"invoiceId":852,"paymentId":368,"creditNoteId":null,"refundId":null,"amount":3500}],"creditAmount":0,"userId":1015,"attributes":[]}] + +Nombre del cliente que se va a actualizar: El AR Real 3D + +UUID: + +JSON con los datos a actualizar: {"name":"El AR Real 3D","custom_fields":{"Cliente":148,"Domicilio":"\ud83d\udccd Campeche 24, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 El AR Real 3D","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/148","Saldo Actual":"\ud83d\udcb21930 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 3500","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"148\",\"Domicilio\": \"\ud83d\udccd Campeche 24, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 El AR Real 3D\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/148\",\"Saldo Actual\": \"\ud83d\udcb21930 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 3500\",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 19\/08\/2024 15:10 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00\",\"Clabe Interbancaria\": \"002180834778043086\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 19\/08\/2024 15:10 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00","Clabe Interbancaria":"002180834778043086"}} + +Response Patch CallBell: + +[2025-02-19 16:00:18.798616] [notice] Logging level set to:debug +[2025-02-19 16:00:18.960982] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-19 16:00:18.961164] [debug] Valor de JSON: {"uuid":"e0755a70-fd19-48cc-9a91-c0b989237957","changeType":"draft_approved","entity":"invoice","entityId":"1568","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1568,"clientId":148,"number":"001525","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1571,"type":"service","label":"plan300 01\/02\/2025 \u2013 28\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":116,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El AR","clientLastName":"Real 3D","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"24 Campeche","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-19 16:00:18.961302] [debug] Aprobación de Factura + +[2025-02-19 16:00:18.961385] [debug] {"uuid":"e0755a70-fd19-48cc-9a91-c0b989237957","changeType":"draft_approved","entity":"invoice","entityId":1568,"message":null,"clientId":148,"eventName":"invoice.draft_approved","clientData":{"id":148,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"24 Campeche","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Campeche 24, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-08-19T00:00:00-0600","leadConvertedAt":"2024-08-19T15:08:20-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El AR","lastName":"Real 3D","username":null,"contacts":[{"id":152,"clientId":148,"email":"elarquijuve@gmail.com","phone":"41818781806","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":147,"clientId":148,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_Qh0pTQM9a96D8B","clientZoneVisible":true},{"id":148,"clientId":148,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180834778043086","clientZoneVisible":true},{"id":151,"clientId":148,"customAttributeId":8,"name":"conekta","key":"conekta","value":"aasdad","clientZoneVisible":true}],"accountBalance":-1930,"accountCredit":0,"accountOutstanding":1930,"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":1568,"clientId":148,"number":"001525","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1571,"type":"service","label":"plan300 01\/02\/2025 \u2013 28\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":116,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El AR","clientLastName":"Real 3D","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"24 Campeche","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-19 16:00:18.961451] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-19 16:00:18.961489] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":368,"clientId":148,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-08-19T15:10:06-0600","amount":3500,"currencyCode":"MXN","note":null,"receiptSentDate":"2024-08-19T15:10:13-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":416,"invoiceId":852,"paymentId":368,"creditNoteId":null,"refundId":null,"amount":3500}],"creditAmount":0,"userId":1015,"attributes":[]}] + +Nombre del cliente que se va a actualizar: El AR Real 3D + +UUID: + +JSON con los datos a actualizar: {"name":"El AR Real 3D","custom_fields":{"Cliente":148,"Domicilio":"\ud83d\udccd Campeche 24, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 El AR Real 3D","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/148","Saldo Actual":"\ud83d\udcb21930 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 3500","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"148\",\"Domicilio\": \"\ud83d\udccd Campeche 24, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 El AR Real 3D\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/148\",\"Saldo Actual\": \"\ud83d\udcb21930 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 3500\",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 19\/08\/2024 15:10 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00\",\"Clabe Interbancaria\": \"002180834778043086\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 19\/08\/2024 15:10 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00","Clabe Interbancaria":"002180834778043086"}} + +Response Patch CallBell: + +[2025-02-19 16:00:20.756062] [notice] Logging level set to:debug +[2025-02-19 16:00:20.936096] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-19 16:00:20.936244] [debug] Valor de JSON: {"uuid":"68aade50-06a2-4178-a1af-2c335911e8f1","changeType":"insert","entity":"invoice","entityId":"1569","eventName":"invoice.add_draft","extraData":{"entity":{"id":1569,"clientId":156,"number":"001526","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1572,"type":"service","label":"PREMIUM 01\/02\/2025 \u2013 28\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":126,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":700,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":662,"invoiceId":1569,"paymentId":502,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Maria Gricelda","clientLastName":"L\u00f3pez Avalos","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Yucat\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-19 16:00:20.936398] [debug] Adición de borrador de Factura + +[2025-02-19 16:00:20.936480] [debug] {"uuid":"68aade50-06a2-4178-a1af-2c335911e8f1","changeType":"insert","entity":"invoice","entityId":1569,"message":null,"clientId":156,"eventName":"invoice.add_draft","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}],"accountBalance":2646.67,"accountCredit":2646.67,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#7cb342","addressGpsLat":21.1562598,"addressGpsLon":-100.9370894,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1569,"clientId":156,"number":"001526","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1572,"type":"service","label":"PREMIUM 01\/02\/2025 \u2013 28\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":126,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":700,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":662,"invoiceId":1569,"paymentId":502,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Maria Gricelda","clientLastName":"L\u00f3pez Avalos","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Yucat\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-19 16:00:20.936557] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-19 16:00:20.936597] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":514,"clientId":156,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-17T14:52:20-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Maria Gricelda López Avalos + +UUID: 2038d2d99ae543f3b56f1ae54f4cc82b + +JSON con los datos a actualizar: {"name":"Maria Gricelda L\u00f3pez Avalos","custom_fields":{"Cliente":156,"Domicilio":"\ud83d\udccd Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Maria Gricelda L\u00f3pez Avalos","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/156","Saldo Actual":"\ud83d\udcb22646.67 a favor","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"156\",\"Domicilio\": \"\ud83d\udccd Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Maria Gricelda L\u00f3pez Avalos\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/156\",\"Saldo Actual\": \"\ud83d\udcb22646.67 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 300\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 17\/01\/2025 14:52 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00\",\"Clabe Interbancaria\": \"124180553522369174\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 17\/01\/2025 14:52 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00","Clabe Interbancaria":"124180553522369174"}} + +Response Patch CallBell: {"contact":{"uuid":"2038d2d99ae543f3b56f1ae54f4cc82b","name":"Maria Gricelda López Avalos","phoneNumber":"5214181817609","avatarUrl":null,"createdAt":"2024-01-26T18:16:09Z","closedAt":"2025-02-17T19:00:45Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/2038d2d99ae543f3b56f1ae54f4cc82b","conversationHref":"https://dash.callbell.eu/chat/90611886ac204c56a75240f951c53874","tags":[],"assignedUser":null,"customFields":{"Cliente":"156","Clabe Interbancaria":"124180553522369174","Fecha Ultima Actualizacion":"📆🔄️ 19/02/2025 10:00","user entry point":"inbound_message","Estado":"🟢 Activo ","Monto Ultimo Pago":"💲 300","user name":"Grisel","Domicilio":"📍 Yucatán 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Fecha Ultimo Pago":"📆💸 17/01/2025 14:52 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Maria Gricelda López Avalos","Resumen":"{\"Cliente\": \"156\",\"Domicilio\": \"📍 Yucatán 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Maria Gricelda López Avalos\",\"URL\": \"🌐 https://172.16.5.120/crm/client/156\",\"Saldo Actual\": \"💲2646.67 a favor\",\"Monto Ultimo Pago\": \"💲 300\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 17/01/2025 14:52 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 19/02/2025 10:00\",\"Clabe Interbancaria\": \"124180553522369174\"}","Saldo Actual":"💲2646.67 a favor","URL":"🌐 https://172.16.5.120/crm/client/156"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-19 16:00:22.598136] [notice] Logging level set to:debug +[2025-02-19 16:00:22.777687] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-19 16:00:22.777884] [debug] Valor de JSON: {"uuid":"d6826c61-008a-4443-b2ba-6e3817bb6245","changeType":"draft_approved","entity":"invoice","entityId":"1569","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1569,"clientId":156,"number":"001526","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1572,"type":"service","label":"PREMIUM 01\/02\/2025 \u2013 28\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":126,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":700,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":662,"invoiceId":1569,"paymentId":502,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Maria Gricelda","clientLastName":"L\u00f3pez Avalos","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Yucat\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-19 16:00:22.778023] [debug] Aprobación de Factura + +[2025-02-19 16:00:22.778105] [debug] {"uuid":"d6826c61-008a-4443-b2ba-6e3817bb6245","changeType":"draft_approved","entity":"invoice","entityId":1569,"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}],"accountBalance":2646.67,"accountCredit":2646.67,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#7cb342","addressGpsLat":21.1562598,"addressGpsLon":-100.9370894,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1569,"clientId":156,"number":"001526","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1572,"type":"service","label":"PREMIUM 01\/02\/2025 \u2013 28\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":126,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":700,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":662,"invoiceId":1569,"paymentId":502,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Maria Gricelda","clientLastName":"L\u00f3pez Avalos","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Yucat\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-19 16:00:22.778167] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-19 16:00:22.778207] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":514,"clientId":156,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-17T14:52:20-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Maria Gricelda López Avalos + +UUID: 2038d2d99ae543f3b56f1ae54f4cc82b + +JSON con los datos a actualizar: {"name":"Maria Gricelda L\u00f3pez Avalos","custom_fields":{"Cliente":156,"Domicilio":"\ud83d\udccd Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Maria Gricelda L\u00f3pez Avalos","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/156","Saldo Actual":"\ud83d\udcb22646.67 a favor","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"156\",\"Domicilio\": \"\ud83d\udccd Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Maria Gricelda L\u00f3pez Avalos\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/156\",\"Saldo Actual\": \"\ud83d\udcb22646.67 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 300\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 17\/01\/2025 14:52 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00\",\"Clabe Interbancaria\": \"124180553522369174\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 17\/01\/2025 14:52 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00","Clabe Interbancaria":"124180553522369174"}} + +Response Patch CallBell: {"contact":{"uuid":"2038d2d99ae543f3b56f1ae54f4cc82b","name":"Maria Gricelda López Avalos","phoneNumber":"5214181817609","avatarUrl":null,"createdAt":"2024-01-26T18:16:09Z","closedAt":"2025-02-17T19:00:45Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/2038d2d99ae543f3b56f1ae54f4cc82b","conversationHref":"https://dash.callbell.eu/chat/90611886ac204c56a75240f951c53874","tags":[],"assignedUser":null,"customFields":{"Cliente":"156","Clabe Interbancaria":"124180553522369174","Fecha Ultima Actualizacion":"📆🔄️ 19/02/2025 10:00","user entry point":"inbound_message","Estado":"🟢 Activo ","Monto Ultimo Pago":"💲 300","user name":"Grisel","Domicilio":"📍 Yucatán 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Fecha Ultimo Pago":"📆💸 17/01/2025 14:52 con Tarjeta de crédito Stripe 💳","Nombre":"👤 Maria Gricelda López Avalos","Resumen":"{\"Cliente\": \"156\",\"Domicilio\": \"📍 Yucatán 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Maria Gricelda López Avalos\",\"URL\": \"🌐 https://172.16.5.120/crm/client/156\",\"Saldo Actual\": \"💲2646.67 a favor\",\"Monto Ultimo Pago\": \"💲 300\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 17/01/2025 14:52 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 19/02/2025 10:00\",\"Clabe Interbancaria\": \"124180553522369174\"}","Saldo Actual":"💲2646.67 a favor","URL":"🌐 https://172.16.5.120/crm/client/156"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-19 16:00:24.392046] [notice] Logging level set to:debug +[2025-02-19 16:00:24.617528] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-19 16:00:24.617676] [debug] Valor de JSON: {"uuid":"4377dbd6-4d48-4e31-bf61-442dc5488ae0","changeType":"insert","entity":"invoice","entityId":"1570","eventName":"invoice.add_draft","extraData":{"entity":{"id":1570,"clientId":157,"number":"001527","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1573,"type":"service","label":"plan300 01\/02\/2025 \u2013 28\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":127,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Angel Mamey","clientLastName":"Arvizu","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Calle Colima","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-19 16:00:24.617909] [debug] Adición de borrador de Factura + +[2025-02-19 16:00:24.618012] [debug] {"uuid":"4377dbd6-4d48-4e31-bf61-442dc5488ae0","changeType":"insert","entity":"invoice","entityId":1570,"message":null,"clientId":157,"eventName":"invoice.add_draft","clientData":{"id":157,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Angel Mamey","lastName":"Arvizu","username":null,"contacts":[{"id":161,"clientId":157,"email":null,"phone":"5214181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":154,"clientId":157,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RWjBO6Lsy1TgAV","clientZoneVisible":true},{"id":155,"clientId":157,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180695267429334","clientZoneVisible":true}],"accountBalance":-580,"accountCredit":0,"accountOutstanding":580,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574303,"addressGpsLon":-100.9275061,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1570,"clientId":157,"number":"001527","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1573,"type":"service","label":"plan300 01\/02\/2025 \u2013 28\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":127,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Angel Mamey","clientLastName":"Arvizu","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Calle Colima","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-19 16:00:24.618086] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-19 16:00:24.618139] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [] + +Nombre del cliente que se va a actualizar: Angel Mamey Arvizu + +UUID: 362193e0af9b4ffc8ed5d7f930dd120f + +JSON con los datos a actualizar: {"name":"Angel Mamey Arvizu","custom_fields":{"Cliente":157,"Domicilio":"\ud83d\udccd Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Angel Mamey Arvizu","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/157","Saldo Actual":"\ud83d\udcb2580 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"157\",\"Domicilio\": \"\ud83d\udccd Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Angel Mamey Arvizu\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/157\",\"Saldo Actual\": \"\ud83d\udcb2580 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 19\/02\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00\",\"Clabe Interbancaria\": \"124180695267429334\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 19\/02\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00","Clabe Interbancaria":"124180695267429334"}} + +Response Patch CallBell: {"contact":{"uuid":"362193e0af9b4ffc8ed5d7f930dd120f","name":"Angel Mamey Arvizu","phoneNumber":"5214181515664","avatarUrl":null,"createdAt":"2025-01-07T22:55:44Z","closedAt":null,"source":"whatsapp","href":"https://dash.callbell.eu/contacts/362193e0af9b4ffc8ed5d7f930dd120f","conversationHref":"https://dash.callbell.eu/chat/56dec9b4f3334325b737683f2d8ff8b2","tags":["SIIP","NOBOT"],"assignedUser":"avalos.mgla@gmail.com","customFields":{"Acciones":"NOBOT-SIIP","user entry point":"inbound_message","Estado":"🔴 Suspendido","user name":"Angel 😇/😈","Clabe Interbancaria":"124180695267429334","Cliente":"157","Domicilio":"📍 Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Fecha Ultima Actualizacion":"📆🔄️ 19/02/2025 10:00","Fecha Ultimo Pago":"📆💸 19/02/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Monto Ultimo Pago":"💲 ","Nombre":"👤 Angel Mamey Arvizu","Resumen":"{\"Cliente\": \"157\",\"Domicilio\": \"📍 Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Angel Mamey Arvizu\",\"URL\": \"🌐 https://172.16.5.120/crm/client/157\",\"Saldo Actual\": \"💲580 pendientes\",\"Monto Ultimo Pago\": \"💲 \",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 19/02/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 19/02/2025 10:00\",\"Clabe Interbancaria\": \"124180695267429334\"}","Saldo Actual":"💲580 pendientes","URL":"🌐 https://172.16.5.120/crm/client/157"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-19 16:00:26.149749] [notice] Logging level set to:debug +[2025-02-19 16:00:26.331989] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-19 16:00:26.332168] [debug] Valor de JSON: {"uuid":"25668386-bc34-438f-a034-2e562bf12aa0","changeType":"draft_approved","entity":"invoice","entityId":"1570","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1570,"clientId":157,"number":"001527","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1573,"type":"service","label":"plan300 01\/02\/2025 \u2013 28\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":127,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Angel Mamey","clientLastName":"Arvizu","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Calle Colima","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-19 16:00:26.332314] [debug] Aprobación de Factura + +[2025-02-19 16:00:26.332395] [debug] {"uuid":"25668386-bc34-438f-a034-2e562bf12aa0","changeType":"draft_approved","entity":"invoice","entityId":1570,"message":null,"clientId":157,"eventName":"invoice.draft_approved","clientData":{"id":157,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Angel Mamey","lastName":"Arvizu","username":null,"contacts":[{"id":161,"clientId":157,"email":null,"phone":"5214181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":154,"clientId":157,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RWjBO6Lsy1TgAV","clientZoneVisible":true},{"id":155,"clientId":157,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180695267429334","clientZoneVisible":true}],"accountBalance":-580,"accountCredit":0,"accountOutstanding":580,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574303,"addressGpsLon":-100.9275061,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1570,"clientId":157,"number":"001527","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1573,"type":"service","label":"plan300 01\/02\/2025 \u2013 28\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":127,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Angel Mamey","clientLastName":"Arvizu","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"45 Calle Colima","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-19 16:00:26.332458] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-19 16:00:26.332496] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [] + +Nombre del cliente que se va a actualizar: Angel Mamey Arvizu + +UUID: 362193e0af9b4ffc8ed5d7f930dd120f + +JSON con los datos a actualizar: {"name":"Angel Mamey Arvizu","custom_fields":{"Cliente":157,"Domicilio":"\ud83d\udccd Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Angel Mamey Arvizu","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/157","Saldo Actual":"\ud83d\udcb2580 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"157\",\"Domicilio\": \"\ud83d\udccd Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Angel Mamey Arvizu\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/157\",\"Saldo Actual\": \"\ud83d\udcb2580 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 19\/02\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00\",\"Clabe Interbancaria\": \"124180695267429334\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 19\/02\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00","Clabe Interbancaria":"124180695267429334"}} + +Response Patch CallBell: {"contact":{"uuid":"362193e0af9b4ffc8ed5d7f930dd120f","name":"Angel Mamey Arvizu","phoneNumber":"5214181515664","avatarUrl":null,"createdAt":"2025-01-07T22:55:44Z","closedAt":null,"source":"whatsapp","href":"https://dash.callbell.eu/contacts/362193e0af9b4ffc8ed5d7f930dd120f","conversationHref":"https://dash.callbell.eu/chat/56dec9b4f3334325b737683f2d8ff8b2","tags":["SIIP","NOBOT"],"assignedUser":"avalos.mgla@gmail.com","customFields":{"Acciones":"NOBOT-SIIP","user entry point":"inbound_message","Estado":"🔴 Suspendido","user name":"Angel 😇/😈","Clabe Interbancaria":"124180695267429334","Cliente":"157","Domicilio":"📍 Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Fecha Ultima Actualizacion":"📆🔄️ 19/02/2025 10:00","Fecha Ultimo Pago":"📆💸 19/02/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Monto Ultimo Pago":"💲 ","Nombre":"👤 Angel Mamey Arvizu","Resumen":"{\"Cliente\": \"157\",\"Domicilio\": \"📍 Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Angel Mamey Arvizu\",\"URL\": \"🌐 https://172.16.5.120/crm/client/157\",\"Saldo Actual\": \"💲580 pendientes\",\"Monto Ultimo Pago\": \"💲 \",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 19/02/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 19/02/2025 10:00\",\"Clabe Interbancaria\": \"124180695267429334\"}","Saldo Actual":"💲580 pendientes","URL":"🌐 https://172.16.5.120/crm/client/157"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-19 16:00:27.432874] [notice] Logging level set to:debug +[2025-02-19 16:00:27.599001] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-19 16:00:27.599283] [debug] Valor de JSON: {"uuid":"388250be-91c1-409b-a46f-6d858f3c5650","changeType":"insert","entity":"invoice","entityId":"1571","eventName":"invoice.add_draft","extraData":{"entity":{"id":1571,"clientId":162,"number":"001528","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1574,"type":"service","label":"PREMIUM 12\/02\/2025 \u2013 28\/02\/2025","price":700,"quantity":0.5666666666666667,"total":396.66666666666663,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":128,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":396.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":396.67,"amountPaid":180,"totalUntaxed":396.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":216.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":663,"invoiceId":1571,"paymentId":506,"creditNoteId":null,"refundId":null,"amount":180}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Edward","clientLastName":"Elric","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"76 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-19 16:00:27.599447] [debug] Adición de borrador de Factura + +[2025-02-19 16:00:27.599535] [debug] {"uuid":"388250be-91c1-409b-a46f-6d858f3c5650","changeType":"insert","entity":"invoice","entityId":1571,"message":null,"clientId":162,"eventName":"invoice.add_draft","clientData":{"id":162,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"76 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 76, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":"2025-01-10T10:32:20-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Edward","lastName":"Elric","username":null,"contacts":[{"id":166,"clientId":162,"email":"eduardelric@gmail.com","phone":"5214181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":159,"clientId":162,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"434876867834423324","clientZoneVisible":true},{"id":160,"clientId":162,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RYsuykCEvupaGF","clientZoneVisible":true},{"id":161,"clientId":162,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180599808752427","clientZoneVisible":true}],"accountBalance":-216.67,"accountCredit":0,"accountOutstanding":216.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#d84315","addressGpsLat":21.1575488,"addressGpsLon":-100.9409119,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1571,"clientId":162,"number":"001528","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1574,"type":"service","label":"PREMIUM 12\/02\/2025 \u2013 28\/02\/2025","price":700,"quantity":0.56666666666667,"total":396.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":128,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":396.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":396.67,"amountPaid":180,"totalUntaxed":396.67,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":216.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":663,"invoiceId":1571,"paymentId":506,"creditNoteId":null,"refundId":null,"amount":180}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Edward","clientLastName":"Elric","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"76 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-19 16:00:27.599621] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-19 16:00:27.599661] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":506,"clientId":162,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-12T22:10:30-0600","amount":180,"currencyCode":"MXN","note":null,"receiptSentDate":"2025-01-12T22:10:31-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":663,"invoiceId":1571,"paymentId":506,"creditNoteId":null,"refundId":null,"amount":180}],"creditAmount":0,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Edward Elric + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Edward Elric","custom_fields":{"Cliente":162,"Domicilio":"\ud83d\udccd Chiapas 76, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Edward Elric","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/162","Saldo Actual":"\ud83d\udcb2216.67 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 180","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"162\",\"Domicilio\": \"\ud83d\udccd Chiapas 76, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Edward Elric\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/162\",\"Saldo Actual\": \"\ud83d\udcb2216.67 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 180\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 12\/01\/2025 22:10 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00\",\"Clabe Interbancaria\": \"124180599808752427\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 12\/01\/2025 22:10 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00","Clabe Interbancaria":"124180599808752427"}} + +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Edward Elric","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-02-06T23:47:27Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","user name":"Daniel Humberto 🐁","Nombre":"👤 Edward Elric","Fecha Ultima Actualizacion":"📆🔄️ 19/02/2025 10:00","URL":"🌐 https://172.16.5.120/crm/client/162","Clabe Interbancaria":"124180599808752427","Fecha Ultimo Pago":"📆💸 12/01/2025 22:10 con Tarjeta de crédito Stripe 💳","Monto Ultimo Pago":"💲 180","Saldo Actual":"💲216.67 pendientes","Domicilio":"📍 Chiapas 76, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Cliente":"162","Resumen":"{\"Cliente\": \"162\",\"Domicilio\": \"📍 Chiapas 76, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Edward Elric\",\"URL\": \"🌐 https://172.16.5.120/crm/client/162\",\"Saldo Actual\": \"💲216.67 pendientes\",\"Monto Ultimo Pago\": \"💲 180\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 12/01/2025 22:10 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 19/02/2025 10:00\",\"Clabe Interbancaria\": \"124180599808752427\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-19 16:00:29.122068] [notice] Logging level set to:debug +[2025-02-19 16:00:29.252757] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-19 16:00:29.252933] [debug] Valor de JSON: {"uuid":"c345987a-ef76-4c2d-92bc-14a9886d2dc5","changeType":"draft_approved","entity":"invoice","entityId":"1571","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1571,"clientId":162,"number":"001528","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1574,"type":"service","label":"PREMIUM 12\/02\/2025 \u2013 28\/02\/2025","price":700,"quantity":0.5666666666666667,"total":396.66666666666663,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":128,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":396.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":396.67,"amountPaid":180,"totalUntaxed":396.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":216.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":663,"invoiceId":1571,"paymentId":506,"creditNoteId":null,"refundId":null,"amount":180}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Edward","clientLastName":"Elric","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"76 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-19 16:00:29.253078] [debug] Aprobación de Factura + +[2025-02-19 16:00:29.253160] [debug] {"uuid":"c345987a-ef76-4c2d-92bc-14a9886d2dc5","changeType":"draft_approved","entity":"invoice","entityId":1571,"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":"5214181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":159,"clientId":162,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"434876867834423324","clientZoneVisible":true},{"id":160,"clientId":162,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RYsuykCEvupaGF","clientZoneVisible":true},{"id":161,"clientId":162,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180599808752427","clientZoneVisible":true}],"accountBalance":-216.67,"accountCredit":0,"accountOutstanding":216.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#d84315","addressGpsLat":21.1575488,"addressGpsLon":-100.9409119,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1571,"clientId":162,"number":"001528","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":"2025-02-19T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1574,"type":"service","label":"PREMIUM 12\/02\/2025 \u2013 28\/02\/2025","price":700,"quantity":0.56666666666667,"total":396.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":128,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":396.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":396.67,"amountPaid":180,"totalUntaxed":396.67,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":216.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":663,"invoiceId":1571,"paymentId":506,"creditNoteId":null,"refundId":null,"amount":180}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Edward","clientLastName":"Elric","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"76 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-19 16:00:29.253231] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-19 16:00:29.253268] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":506,"clientId":162,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-12T22:10:30-0600","amount":180,"currencyCode":"MXN","note":null,"receiptSentDate":"2025-01-12T22:10:31-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":663,"invoiceId":1571,"paymentId":506,"creditNoteId":null,"refundId":null,"amount":180}],"creditAmount":0,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Edward Elric + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Edward Elric","custom_fields":{"Cliente":162,"Domicilio":"\ud83d\udccd Chiapas 76, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Edward Elric","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/162","Saldo Actual":"\ud83d\udcb2216.67 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 180","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"162\",\"Domicilio\": \"\ud83d\udccd Chiapas 76, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Edward Elric\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/162\",\"Saldo Actual\": \"\ud83d\udcb2216.67 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 180\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 12\/01\/2025 22:10 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00\",\"Clabe Interbancaria\": \"124180599808752427\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 12\/01\/2025 22:10 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 10:00","Clabe Interbancaria":"124180599808752427"}} + +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Edward Elric","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-02-06T23:47:27Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","user name":"Daniel Humberto 🐁","Nombre":"👤 Edward Elric","Fecha Ultima Actualizacion":"📆🔄️ 19/02/2025 10:00","URL":"🌐 https://172.16.5.120/crm/client/162","Clabe Interbancaria":"124180599808752427","Fecha Ultimo Pago":"📆💸 12/01/2025 22:10 con Tarjeta de crédito Stripe 💳","Monto Ultimo Pago":"💲 180","Saldo Actual":"💲216.67 pendientes","Domicilio":"📍 Chiapas 76, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Cliente":"162","Resumen":"{\"Cliente\": \"162\",\"Domicilio\": \"📍 Chiapas 76, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Edward Elric\",\"URL\": \"🌐 https://172.16.5.120/crm/client/162\",\"Saldo Actual\": \"💲216.67 pendientes\",\"Monto Ultimo Pago\": \"💲 180\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 12/01/2025 22:10 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 19/02/2025 10:00\",\"Clabe Interbancaria\": \"124180599808752427\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-19 20:18:47.050344] [notice] Logging level set to:debug +[2025-02-19 20:18:47.213304] [debug] valor el evento recibido por webhook: service.add + +[2025-02-19 20:18:47.213462] [debug] Valor de JSON: {"uuid":"cd26b5cc-b7b5-4f83-868b-1af552601fb5","changeType":"insert","entity":"service","entityId":"135","eventName":"service.add","extraData":{"entity":{"id":135,"prepaid":false,"clientId":141,"status":1,"name":"Basico 300","fullAddress":"Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"23 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1609302,"addressGpsLon":-100.9360472,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-19T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-02-19T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"7dab5f15-5694-44f0-972c-edb71849738f","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":null}} + +[2025-02-19 20:18:53.301975] [notice] Logging level set to:debug +[2025-02-19 20:18:53.458184] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-19 20:18:53.458352] [debug] Valor de JSON: {"uuid":"9f936595-793e-4f28-a3d6-f11cb41911b1","changeType":"insert","entity":"invoice","entityId":"1572","eventName":"invoice.add_draft","extraData":{"entity":{"id":1572,"clientId":141,"number":"001529","createdDate":"2025-02-19T14:18:52-0600","dueDate":"2025-03-05T14:18:52-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1575,"type":"service","label":"Basico 300 19\/02\/2025 \u2013 28\/02\/2025","price":300,"quantity":0.3333333333333333,"total":100,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":135,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":100,"discount":null,"discountLabel":"Descuento","taxes":[],"total":100,"amountPaid":30,"totalUntaxed":100,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":70,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":664,"invoiceId":1572,"paymentId":337,"creditNoteId":null,"refundId":null,"amount":30}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Caim\u00e1n","clientLastName":"Dorado","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"23 Coahuila","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-19 20:18:53.458508] [debug] Adición de borrador de Factura + +[2025-02-19 20:18:53.458586] [debug] {"uuid":"9f936595-793e-4f28-a3d6-f11cb41911b1","changeType":"insert","entity":"invoice","entityId":1572,"message":null,"clientId":141,"eventName":"invoice.add_draft","clientData":{"id":141,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-26T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Caim\u00e1n","lastName":"Dorado","username":null,"contacts":[{"id":145,"clientId":141,"email":"caimangolden@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-370,"accountCredit":0,"accountOutstanding":370,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#43a047","addressGpsLat":21.1609302,"addressGpsLon":-100.9360472,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1572,"clientId":141,"number":"001529","createdDate":"2025-02-19T14:18:52-0600","dueDate":"2025-03-05T14:18:52-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1575,"type":"service","label":"Basico 300 19\/02\/2025 \u2013 28\/02\/2025","price":300,"quantity":0.33333333333333,"total":100,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":135,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":100,"discount":null,"discountLabel":"Descuento","taxes":[],"total":100,"amountPaid":30,"totalUntaxed":100,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":70,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":664,"invoiceId":1572,"paymentId":337,"creditNoteId":null,"refundId":null,"amount":30}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Caim\u00e1n","clientLastName":"Dorado","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"23 Coahuila","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-19 20:18:53.458689] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-19 20:18:53.458730] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":337,"clientId":141,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2024-06-28T14:08:58-0600","amount":30,"currencyCode":"MXN","note":null,"receiptSentDate":"2024-06-28T14:09:40-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":664,"invoiceId":1572,"paymentId":337,"creditNoteId":null,"refundId":null,"amount":30}],"creditAmount":0,"userId":1015,"attributes":[]}] + +Nombre del cliente que se va a actualizar: El Caimán Dorado + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"El Caim\u00e1n Dorado","custom_fields":{"Cliente":141,"Domicilio":"\ud83d\udccd Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 El Caim\u00e1n Dorado","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/141","Saldo Actual":"\ud83d\udcb2370 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 30","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"141\",\"Domicilio\": \"\ud83d\udccd Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 El Caim\u00e1n Dorado\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/141\",\"Saldo Actual\": \"\ud83d\udcb2370 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 30\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 28\/06\/2024 14:08 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 14:18\",\"Clabe Interbancaria\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 28\/06\/2024 14:08 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 14:18","Clabe Interbancaria":null}} + +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"El Caimán Dorado","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-02-06T23:47:27Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","user name":"Daniel Humberto 🐁","Nombre":"👤 El Caimán Dorado","Clabe Interbancaria":"124180650741646979","Monto Ultimo Pago":"💲 30","Estado":"🟢 Activo ","Cliente":"141","Domicilio":"📍 Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Fecha Ultimo Pago":"📆💸 28/06/2024 14:08 con Tarjeta de crédito Stripe 💳","Saldo Actual":"💲370 pendientes","URL":"🌐 https://sistema.siip.mx/crm/client/141","Fecha Ultima Actualizacion":"📆🔄️ 19/02/2025 14:18","Resumen":"{\"Cliente\": \"141\",\"Domicilio\": \"📍 Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 El Caimán Dorado\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/141\",\"Saldo Actual\": \"💲370 pendientes\",\"Monto Ultimo Pago\": \"💲 30\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 28/06/2024 14:08 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 19/02/2025 14:18\",\"Clabe Interbancaria\": \"\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-19 20:18:55.526335] [notice] Logging level set to:debug +[2025-02-19 20:18:55.686275] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-19 20:18:55.686614] [debug] Valor de JSON: {"uuid":"644294f1-21ab-4fd3-9570-47b37c3d066b","changeType":"draft_approved","entity":"invoice","entityId":"1572","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1572,"clientId":141,"number":"001529","createdDate":"2025-02-19T14:18:52-0600","dueDate":"2025-03-05T14:18:52-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1575,"type":"service","label":"Basico 300 19\/02\/2025 \u2013 28\/02\/2025","price":300,"quantity":0.3333333333333333,"total":100,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":135,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":100,"discount":null,"discountLabel":"Descuento","taxes":[],"total":100,"amountPaid":30,"totalUntaxed":100,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":70,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":664,"invoiceId":1572,"paymentId":337,"creditNoteId":null,"refundId":null,"amount":30}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Caim\u00e1n","clientLastName":"Dorado","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"23 Coahuila","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-19 20:18:55.686749] [debug] Aprobación de Factura + +[2025-02-19 20:18:55.686830] [debug] {"uuid":"644294f1-21ab-4fd3-9570-47b37c3d066b","changeType":"draft_approved","entity":"invoice","entityId":1572,"message":null,"clientId":141,"eventName":"invoice.draft_approved","clientData":{"id":141,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-26T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Caim\u00e1n","lastName":"Dorado","username":null,"contacts":[{"id":145,"clientId":141,"email":"caimangolden@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-370,"accountCredit":0,"accountOutstanding":370,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#43a047","addressGpsLat":21.1609302,"addressGpsLon":-100.9360472,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1572,"clientId":141,"number":"001529","createdDate":"2025-02-19T14:18:52-0600","dueDate":"2025-03-05T14:18:52-0600","emailSentDate":"2025-02-19T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1575,"type":"service","label":"Basico 300 19\/02\/2025 \u2013 28\/02\/2025","price":300,"quantity":0.33333333333333,"total":100,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":135,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":100,"discount":null,"discountLabel":"Descuento","taxes":[],"total":100,"amountPaid":30,"totalUntaxed":100,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":70,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":664,"invoiceId":1572,"paymentId":337,"creditNoteId":null,"refundId":null,"amount":30}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Caim\u00e1n","clientLastName":"Dorado","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"23 Coahuila","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-19 20:18:55.686899] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-19 20:18:55.686939] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":337,"clientId":141,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2024-06-28T14:08:58-0600","amount":30,"currencyCode":"MXN","note":null,"receiptSentDate":"2024-06-28T14:09:40-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":664,"invoiceId":1572,"paymentId":337,"creditNoteId":null,"refundId":null,"amount":30}],"creditAmount":0,"userId":1015,"attributes":[]}] + +Nombre del cliente que se va a actualizar: El Caimán Dorado + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"El Caim\u00e1n Dorado","custom_fields":{"Cliente":141,"Domicilio":"\ud83d\udccd Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 El Caim\u00e1n Dorado","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/141","Saldo Actual":"\ud83d\udcb2370 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 30","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"141\",\"Domicilio\": \"\ud83d\udccd Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 El Caim\u00e1n Dorado\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/141\",\"Saldo Actual\": \"\ud83d\udcb2370 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 30\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 28\/06\/2024 14:08 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 14:18\",\"Clabe Interbancaria\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 28\/06\/2024 14:08 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 14:18","Clabe Interbancaria":null}} + +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"El Caimán Dorado","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-02-06T23:47:27Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","user name":"Daniel Humberto 🐁","Nombre":"👤 El Caimán Dorado","Clabe Interbancaria":"124180650741646979","Monto Ultimo Pago":"💲 30","Estado":"🟢 Activo ","Cliente":"141","Domicilio":"📍 Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Fecha Ultimo Pago":"📆💸 28/06/2024 14:08 con Tarjeta de crédito Stripe 💳","Saldo Actual":"💲370 pendientes","URL":"🌐 https://sistema.siip.mx/crm/client/141","Fecha Ultima Actualizacion":"📆🔄️ 19/02/2025 14:18","Resumen":"{\"Cliente\": \"141\",\"Domicilio\": \"📍 Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 El Caimán Dorado\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/141\",\"Saldo Actual\": \"💲370 pendientes\",\"Monto Ultimo Pago\": \"💲 30\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 28/06/2024 14:08 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 19/02/2025 14:18\",\"Clabe Interbancaria\": \"\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-19 20:18:57.530970] [notice] Logging level set to:debug +[2025-02-19 20:18:57.658066] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-19 20:18:57.658282] [debug] Valor de JSON: {"uuid":"5a95474e-0d86-40db-9077-f39fad5ced97","changeType":"insert","entity":"invoice","entityId":"1573","eventName":"invoice.add_draft","extraData":{"entity":{"id":1573,"clientId":141,"number":"001530","createdDate":"2025-02-19T14:18:52-0600","dueDate":"2025-03-05T14:18:52-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1576,"type":"service","label":"Basico 300 01\/03\/2025 \u2013 31\/03\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":135,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Caim\u00e1n","clientLastName":"Dorado","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"23 Coahuila","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-19 20:18:57.658484] [debug] Adición de borrador de Factura + +[2025-02-19 20:18:57.658576] [debug] {"uuid":"5a95474e-0d86-40db-9077-f39fad5ced97","changeType":"insert","entity":"invoice","entityId":1573,"message":null,"clientId":141,"eventName":"invoice.add_draft","clientData":{"id":141,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-26T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Caim\u00e1n","lastName":"Dorado","username":null,"contacts":[{"id":145,"clientId":141,"email":"caimangolden@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-370,"accountCredit":0,"accountOutstanding":370,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#43a047","addressGpsLat":21.1609302,"addressGpsLon":-100.9360472,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1573,"clientId":141,"number":"001530","createdDate":"2025-02-19T14:18:52-0600","dueDate":"2025-03-05T14:18:52-0600","emailSentDate":"2025-02-19T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1576,"type":"service","label":"Basico 300 01\/03\/2025 \u2013 31\/03\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":135,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Caim\u00e1n","clientLastName":"Dorado","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"23 Coahuila","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-19 20:18:57.658652] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-19 20:18:57.658691] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":337,"clientId":141,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2024-06-28T14:08:58-0600","amount":30,"currencyCode":"MXN","note":null,"receiptSentDate":"2024-06-28T14:09:40-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":664,"invoiceId":1572,"paymentId":337,"creditNoteId":null,"refundId":null,"amount":30}],"creditAmount":0,"userId":1015,"attributes":[]}] + +Nombre del cliente que se va a actualizar: El Caimán Dorado + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"El Caim\u00e1n Dorado","custom_fields":{"Cliente":141,"Domicilio":"\ud83d\udccd Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 El Caim\u00e1n Dorado","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/141","Saldo Actual":"\ud83d\udcb2370 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 30","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"141\",\"Domicilio\": \"\ud83d\udccd Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 El Caim\u00e1n Dorado\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/141\",\"Saldo Actual\": \"\ud83d\udcb2370 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 30\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 28\/06\/2024 14:08 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 14:18\",\"Clabe Interbancaria\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 28\/06\/2024 14:08 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 14:18","Clabe Interbancaria":null}} + +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"El Caimán Dorado","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-02-06T23:47:27Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","user name":"Daniel Humberto 🐁","Nombre":"👤 El Caimán Dorado","Clabe Interbancaria":"124180650741646979","Monto Ultimo Pago":"💲 30","Estado":"🟢 Activo ","Cliente":"141","Domicilio":"📍 Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Fecha Ultimo Pago":"📆💸 28/06/2024 14:08 con Tarjeta de crédito Stripe 💳","Saldo Actual":"💲370 pendientes","URL":"🌐 https://sistema.siip.mx/crm/client/141","Fecha Ultima Actualizacion":"📆🔄️ 19/02/2025 14:18","Resumen":"{\"Cliente\": \"141\",\"Domicilio\": \"📍 Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 El Caimán Dorado\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/141\",\"Saldo Actual\": \"💲370 pendientes\",\"Monto Ultimo Pago\": \"💲 30\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 28/06/2024 14:08 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 19/02/2025 14:18\",\"Clabe Interbancaria\": \"\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-19 20:18:59.624588] [notice] Logging level set to:debug +[2025-02-19 20:18:59.772268] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-19 20:18:59.772337] [debug] Valor de JSON: {"uuid":"40131198-c490-41f3-9bc1-27e9acf6534a","changeType":"draft_approved","entity":"invoice","entityId":"1573","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1573,"clientId":141,"number":"001530","createdDate":"2025-02-19T14:18:52-0600","dueDate":"2025-03-05T14:18:52-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1576,"type":"service","label":"Basico 300 01\/03\/2025 \u2013 31\/03\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":135,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Caim\u00e1n","clientLastName":"Dorado","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"23 Coahuila","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-19 20:18:59.772447] [debug] Aprobación de Factura + +[2025-02-19 20:18:59.772495] [debug] {"uuid":"40131198-c490-41f3-9bc1-27e9acf6534a","changeType":"draft_approved","entity":"invoice","entityId":1573,"message":null,"clientId":141,"eventName":"invoice.draft_approved","clientData":{"id":141,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-26T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Caim\u00e1n","lastName":"Dorado","username":null,"contacts":[{"id":145,"clientId":141,"email":"caimangolden@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-370,"accountCredit":0,"accountOutstanding":370,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#43a047","addressGpsLat":21.1609302,"addressGpsLon":-100.9360472,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1573,"clientId":141,"number":"001530","createdDate":"2025-02-19T14:18:52-0600","dueDate":"2025-03-05T14:18:52-0600","emailSentDate":"2025-02-19T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1576,"type":"service","label":"Basico 300 01\/03\/2025 \u2013 31\/03\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":135,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Caim\u00e1n","clientLastName":"Dorado","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"23 Coahuila","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-19 20:18:59.772536] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-19 20:18:59.772548] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":337,"clientId":141,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2024-06-28T14:08:58-0600","amount":30,"currencyCode":"MXN","note":null,"receiptSentDate":"2024-06-28T14:09:40-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":664,"invoiceId":1572,"paymentId":337,"creditNoteId":null,"refundId":null,"amount":30}],"creditAmount":0,"userId":1015,"attributes":[]}] + +Nombre del cliente que se va a actualizar: El Caimán Dorado + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"El Caim\u00e1n Dorado","custom_fields":{"Cliente":141,"Domicilio":"\ud83d\udccd Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 El Caim\u00e1n Dorado","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/141","Saldo Actual":"\ud83d\udcb2370 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 30","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"141\",\"Domicilio\": \"\ud83d\udccd Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 El Caim\u00e1n Dorado\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/141\",\"Saldo Actual\": \"\ud83d\udcb2370 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 30\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 28\/06\/2024 14:08 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 14:19\",\"Clabe Interbancaria\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 28\/06\/2024 14:08 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 14:19","Clabe Interbancaria":null}} + +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"El Caimán Dorado","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-02-06T23:47:27Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","user name":"Daniel Humberto 🐁","Nombre":"👤 El Caimán Dorado","Clabe Interbancaria":"124180650741646979","Monto Ultimo Pago":"💲 30","Estado":"🟢 Activo ","Cliente":"141","Domicilio":"📍 Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Fecha Ultimo Pago":"📆💸 28/06/2024 14:08 con Tarjeta de crédito Stripe 💳","Saldo Actual":"💲370 pendientes","URL":"🌐 https://sistema.siip.mx/crm/client/141","Fecha Ultima Actualizacion":"📆🔄️ 19/02/2025 14:19","Resumen":"{\"Cliente\": \"141\",\"Domicilio\": \"📍 Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 El Caimán Dorado\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/141\",\"Saldo Actual\": \"💲370 pendientes\",\"Monto Ultimo Pago\": \"💲 30\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 28/06/2024 14:08 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 19/02/2025 14:19\",\"Clabe Interbancaria\": \"\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-19 20:19:01.633861] [notice] Logging level set to:debug +[2025-02-19 20:19:01.803395] [debug] valor el evento recibido por webhook: service.edit + +[2025-02-19 20:19:01.803608] [debug] Valor de JSON: {"uuid":"9c9faf98-d893-4612-9c94-b1bab7141f7a","changeType":"edit","entity":"service","entityId":"135","eventName":"service.edit","extraData":{"entity":{"id":135,"prepaid":false,"clientId":141,"status":1,"name":"Basico 300","fullAddress":"Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"23 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1609302,"addressGpsLon":-100.9360472,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-19T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-02-19T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-03-31T00:00:00-0600","unmsClientSiteId":"7dab5f15-5694-44f0-972c-edb71849738f","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":{"id":135,"prepaid":false,"clientId":141,"status":1,"name":"Basico 300","fullAddress":"Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"23 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1609302,"addressGpsLon":-100.9360472,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-19T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-02-19T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-03-31T00:00:00-0600","unmsClientSiteId":"7dab5f15-5694-44f0-972c-edb71849738f","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]}}} + +[2025-02-19 20:19:01.803787] [debug] Se editó el servicio a un cliente + +[2025-02-19 20:19:01.803879] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-19 20:19:01.803921] [info] Tipo de contacto normalizado: 'whatsapp' +[2025-02-19 20:19:01.803987] [info] {"uuid":"9c9faf98-d893-4612-9c94-b1bab7141f7a","changeType":"edit","entity":"service","entityId":135,"message":null,"clientId":141,"eventName":"service.edit","clientData":{"id":141,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-26T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Caim\u00e1n","lastName":"Dorado","username":null,"contacts":[{"id":145,"clientId":141,"email":"caimangolden@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-370,"accountCredit":0,"accountOutstanding":370,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#43a047","addressGpsLat":21.1609302,"addressGpsLon":-100.9360472,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":{"id":135,"prepaid":false,"clientId":141,"status":1,"name":"Basico 300","fullAddress":"Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"23 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1609302,"addressGpsLon":-100.9360472,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-19T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-02-19T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-03-31T00:00:00-0600","unmsClientSiteId":"7dab5f15-5694-44f0-972c-edb71849738f","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"invoiceData":null,"paymentData":null} + +Actualizando estado del servicio + +Nombre del cliente al que se va a actualizar el estado del servicio: El Caimán Dorado + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"custom_fields":{"Estado":"\ud83d\udfe2 Activo","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 14:19"}} + +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"El Caimán Dorado","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-02-06T23:47:27Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","user name":"Daniel Humberto 🐁","Nombre":"👤 El Caimán Dorado","Clabe Interbancaria":"124180650741646979","Monto Ultimo Pago":"💲 30","Estado":"🟢 Activo","Cliente":"141","Domicilio":"📍 Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Fecha Ultimo Pago":"📆💸 28/06/2024 14:08 con Tarjeta de crédito Stripe 💳","Saldo Actual":"💲370 pendientes","URL":"🌐 https://sistema.siip.mx/crm/client/141","Fecha Ultima Actualizacion":"📆🔄️ 19/02/2025 14:19","Resumen":"{\"Cliente\": \"141\",\"Domicilio\": \"📍 Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 El Caimán Dorado\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/141\",\"Saldo Actual\": \"💲370 pendientes\",\"Monto Ultimo Pago\": \"💲 30\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 28/06/2024 14:08 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 19/02/2025 14:19\",\"Clabe Interbancaria\": \"\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-19 20:19:03.539175] [notice] Logging level set to:debug +[2025-02-19 20:19:03.624074] [debug] valor el evento recibido por webhook: client.edit + +[2025-02-19 20:19:03.624285] [debug] Valor de JSON: {"uuid":"80ade403-4633-46ff-9690-7d35bcf87367","changeType":"edit","entity":"client","entityId":"141","eventName":"client.edit","extraData":{"entity":{"id":141,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-26T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Caim\u00e1n","lastName":"Dorado","username":null,"contacts":[{"id":145,"clientId":141,"email":"caimangolden@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-370,"accountCredit":0,"accountOutstanding":370,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":3,"name":"STRIPE","colorBackground":"#e30000","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#43a047","addressGpsLat":21.1609302,"addressGpsLon":-100.9360472,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":141,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-26T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Caim\u00e1n","lastName":"Dorado","username":null,"contacts":[{"id":145,"clientId":141,"email":"caimangolden@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-370,"accountCredit":0,"accountOutstanding":370,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#43a047","addressGpsLat":21.1609302,"addressGpsLon":-100.9360472,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} + +[2025-02-19 20:19:03.624433] [debug] Se actualiza a un cliente +[2025-02-19 20:19:03.624500] [debug] Valor de json_data: {"uuid":"80ade403-4633-46ff-9690-7d35bcf87367","changeType":"edit","entity":"client","entityId":"141","eventName":"client.edit","extraData":{"entity":{"id":141,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-26T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Caim\u00e1n","lastName":"Dorado","username":null,"contacts":[{"id":145,"clientId":141,"email":"caimangolden@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-370,"accountCredit":0,"accountOutstanding":370,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":3,"name":"STRIPE","colorBackground":"#e30000","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#43a047","addressGpsLat":21.1609302,"addressGpsLon":-100.9360472,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":141,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-26T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Caim\u00e1n","lastName":"Dorado","username":null,"contacts":[{"id":145,"clientId":141,"email":"caimangolden@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-370,"accountCredit":0,"accountOutstanding":370,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#43a047","addressGpsLat":21.1609302,"addressGpsLon":-100.9360472,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} +[2025-02-19 20:19:03.624548] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-02-19 20:19:03.624584] [debug] Los datos entityBeforeEdit y entity contienen el campo isLead +[2025-02-19 20:19:03.624619] [debug] No hubo cambio de true a false en el campo isLead +[2025-02-19 20:19:03.624665] [debug] Validando claves dentro de entity y entityBeforeEdit +[2025-02-19 20:19:03.624703] [debug] Los datos entity y entityBeforeEdit contienen el campo tags +[2025-02-19 20:19:03.624747] [debug] Validando si la etiqueta STRIPE existe en entity pero no en entityBeforeEdit +[2025-02-19 20:19:03.624783] [debug] La etiqueta STRIPE se agregó al cliente +[2025-02-19 20:19:03.650052] [info] Creando el Customer Stripe + +[2025-02-19 20:19:03.650176] [info] El cliente a procesar es : El Caimán Dorado + +[2025-02-19 20:19:03.650244] [info] Datos notificationData: {"uuid":"80ade403-4633-46ff-9690-7d35bcf87367","changeType":"edit","entity":"client","entityId":141,"message":null,"clientId":141,"eventName":"client.edit","clientData":{"id":141,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-26T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Caim\u00e1n","lastName":"Dorado","username":null,"contacts":[{"id":145,"clientId":141,"email":"caimangolden@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-370,"accountCredit":0,"accountOutstanding":370,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":3,"name":"STRIPE","colorBackground":"#e30000","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#43a047","addressGpsLat":21.1609302,"addressGpsLon":-100.9360472,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null} + +[2025-02-19 20:19:03.650369] [info] Ya dentro del FOREACH!!! + +[2025-02-19 20:19:03.650413] [info] REVISANDO EL PRIMER CONTACTO!!! + +[2025-02-19 20:19:03.650449] [info] REVISANDO EL PRIMER CONTACTO!!! + +[2025-02-19 20:19:03.650482] [info] REVISANDO EL PRIMER CONTACTO!!! + +[2025-02-19 20:19:03.650520] [info] SE VALIDA EL EMAIL!!! + +[2025-02-19 20:19:03.651268] [info] ahora se procede a validar el teléfono!!! + +[2025-02-19 20:19:03.651400] [info] AHORA SE MANDA A CREAR EL CLIENTE A STRIPE!!! + +[2025-02-19 20:19:04.273540] [info] {"id":"cus_Rnvaue7NF9h1b0","object":"customer","address":null,"balance":0,"created":1739996344,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 141","discount":null,"email":"caimangolden@gmail.com","invoice_prefix":"36BF3C6F","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":[],"name":"El Caim\u00e1n Dorado","next_invoice_sequence":1,"phone":"4181878106","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null} + +[2025-02-19 20:19:06.579454] [info] {"id":"cus_Rnvaue7NF9h1b0","object":"customer","address":null,"balance":0,"created":1739996344,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 141","discount":null,"email":"caimangolden@gmail.com","invoice_prefix":"36BF3C6F","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":{"ucrm_client_id":"141"},"name":"El Caim\u00e1n Dorado","next_invoice_sequence":1,"phone":"4181878106","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null} + +[2025-02-19 20:19:06.883261] [notice] Logging level set to:debug +[2025-02-19 20:19:06.883452] [info] No UUID found in the webhook data +[2025-02-19 20:19:09.018841] [info] {"object":"funding_instructions","bank_transfer":{"country":"MX","financial_addresses":[{"spei":{"account_holder_address":{"city":"Ciudad de M\u00e9xico","country":"MX","line1":"Av Paseo de la Reforma 180 piso 29 col Juarez","line2":null,"postal_code":"06600","state":"Ciudad de M\u00e9xico"},"account_holder_name":"SIIP INTERNET","bank_address":{"city":"Naucalpan","country":"MX","line1":"Blvd. Manuel Avila Camacho 1902","line2":"Planta Baja, Cd. Satelite","postal_code":"C.P. 53100","state":"Estado de Mexico"},"bank_code":"124","bank_name":"CITI MEXICO","clabe":"124180607213787791"},"supported_networks":["spei"],"type":"spei"}],"type":"mx_bank_transfer"},"currency":"mxn","funding_type":"bank_transfer","livemode":false} + +[2025-02-19 20:19:09.339467] [info] CLABE guardada en metadata: 124180607213787791 + +[2025-02-19 20:19:09.606137] [info] Error al hacer el patch al CRM: Client error: `PATCH https://172.16.5.134/crm/api/v1.0/clients/141` resulted in a `415 Unsupported Media Type` response: +{"code":415,"message":""} + + +[2025-02-19 20:19:09.606306] [info] null + +[2025-02-19 20:19:09.686661] [notice] Logging level set to:debug +[2025-02-19 20:19:09.686830] [info] No UUID found in the webhook data +[2025-02-19 20:19:16.193871] [notice] Logging level set to:debug +[2025-02-19 20:19:16.283701] [debug] valor el evento recibido por webhook: client.edit + +[2025-02-19 20:19:16.283787] [debug] Valor de JSON: {"uuid":"434bc153-6893-4c82-abc0-28394e32bc9c","changeType":"edit","entity":"client","entityId":"141","eventName":"client.edit","extraData":{"entity":{"id":141,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-26T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Caim\u00e1n","lastName":"Dorado","username":null,"contacts":[{"id":145,"clientId":141,"email":"caimangolden@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-370,"accountCredit":0,"accountOutstanding":370,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#43a047","addressGpsLat":21.1609302,"addressGpsLon":-100.9360472,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":141,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-26T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Caim\u00e1n","lastName":"Dorado","username":null,"contacts":[{"id":145,"clientId":141,"email":"caimangolden@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-370,"accountCredit":0,"accountOutstanding":370,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":3,"name":"STRIPE","colorBackground":"#e30000","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#43a047","addressGpsLat":21.1609302,"addressGpsLon":-100.9360472,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} + +[2025-02-19 20:19:16.283926] [debug] Se actualiza a un cliente +[2025-02-19 20:19:16.283958] [debug] Valor de json_data: {"uuid":"434bc153-6893-4c82-abc0-28394e32bc9c","changeType":"edit","entity":"client","entityId":"141","eventName":"client.edit","extraData":{"entity":{"id":141,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-26T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Caim\u00e1n","lastName":"Dorado","username":null,"contacts":[{"id":145,"clientId":141,"email":"caimangolden@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-370,"accountCredit":0,"accountOutstanding":370,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#43a047","addressGpsLat":21.1609302,"addressGpsLon":-100.9360472,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":141,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-26T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Caim\u00e1n","lastName":"Dorado","username":null,"contacts":[{"id":145,"clientId":141,"email":"caimangolden@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-370,"accountCredit":0,"accountOutstanding":370,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":3,"name":"STRIPE","colorBackground":"#e30000","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#43a047","addressGpsLat":21.1609302,"addressGpsLon":-100.9360472,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} +[2025-02-19 20:19:16.283973] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-02-19 20:19:16.283982] [debug] Los datos entityBeforeEdit y entity contienen el campo isLead +[2025-02-19 20:19:16.283991] [debug] No hubo cambio de true a false en el campo isLead +[2025-02-19 20:19:16.283998] [debug] Validando claves dentro de entity y entityBeforeEdit +[2025-02-19 20:19:16.284006] [debug] Los datos entity y entityBeforeEdit contienen el campo tags +[2025-02-19 20:19:16.284012] [debug] Validando si la etiqueta STRIPE existe en entity pero no en entityBeforeEdit +[2025-02-19 20:19:16.284019] [debug] La etiqueta STRIPE no se agregó al cliente +[2025-02-19 20:19:16.284045] [debug] {"uuid":"434bc153-6893-4c82-abc0-28394e32bc9c","changeType":"edit","entity":"client","entityId":141,"message":null,"clientId":141,"eventName":"client.edit","clientData":{"id":141,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-26T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Caim\u00e1n","lastName":"Dorado","username":null,"contacts":[{"id":145,"clientId":141,"email":"caimangolden@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-370,"accountCredit":0,"accountOutstanding":370,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#43a047","addressGpsLat":21.1609302,"addressGpsLon":-100.9360472,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null} + +[2025-02-19 20:19:16.284081] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-19 20:19:16.284091] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":337,"clientId":141,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2024-06-28T14:08:58-0600","amount":30,"currencyCode":"MXN","note":null,"receiptSentDate":"2024-06-28T14:09:40-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":664,"invoiceId":1572,"paymentId":337,"creditNoteId":null,"refundId":null,"amount":30}],"creditAmount":0,"userId":1015,"attributes":[]}] + +Nombre del cliente que se va a actualizar: El Caimán Dorado + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"El Caim\u00e1n Dorado","custom_fields":{"Cliente":141,"Domicilio":"\ud83d\udccd Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 El Caim\u00e1n Dorado","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/141","Saldo Actual":"\ud83d\udcb2370 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 30","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"141\",\"Domicilio\": \"\ud83d\udccd Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 El Caim\u00e1n Dorado\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/141\",\"Saldo Actual\": \"\ud83d\udcb2370 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 30\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 28\/06\/2024 14:08 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 14:19\",\"Clabe Interbancaria\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 28\/06\/2024 14:08 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 19\/02\/2025 14:19","Clabe Interbancaria":null}} + +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"El Caimán Dorado","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-02-06T23:47:27Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","user name":"Daniel Humberto 🐁","Nombre":"👤 El Caimán Dorado","Clabe Interbancaria":"124180650741646979","Monto Ultimo Pago":"💲 30","Estado":"🟢 Activo ","Cliente":"141","Domicilio":"📍 Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Fecha Ultimo Pago":"📆💸 28/06/2024 14:08 con Tarjeta de crédito Stripe 💳","Saldo Actual":"💲370 pendientes","URL":"🌐 https://sistema.siip.mx/crm/client/141","Fecha Ultima Actualizacion":"📆🔄️ 19/02/2025 14:19","Resumen":"{\"Cliente\": \"141\",\"Domicilio\": \"📍 Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 El Caimán Dorado\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/141\",\"Saldo Actual\": \"💲370 pendientes\",\"Monto Ultimo Pago\": \"💲 30\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 28/06/2024 14:08 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 19/02/2025 14:19\",\"Clabe Interbancaria\": \"\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-19 23:33:27.084673] [notice] Logging level set to:debug +[2025-02-19 23:33:27.159878] [debug] valor el evento recibido por webhook: client.edit + +[2025-02-19 23:33:27.160038] [debug] Valor de JSON: {"uuid":"7d029b3e-76d3-4d0d-a32b-80e8a84e8775","changeType":"edit","entity":"client","entityId":"141","eventName":"client.edit","extraData":{"entity":{"id":141,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-26T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Caim\u00e1n","lastName":"Dorado","username":null,"contacts":[{"id":145,"clientId":141,"email":"caimangolden@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-370,"accountCredit":0,"accountOutstanding":370,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":3,"name":"STRIPE","colorBackground":"#e30000","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#43a047","addressGpsLat":21.1609302,"addressGpsLon":-100.9360472,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":141,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-26T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Caim\u00e1n","lastName":"Dorado","username":null,"contacts":[{"id":145,"clientId":141,"email":"caimangolden@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-370,"accountCredit":0,"accountOutstanding":370,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#43a047","addressGpsLat":21.1609302,"addressGpsLon":-100.9360472,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} + +[2025-02-19 23:33:27.160274] [debug] Se actualiza a un cliente +[2025-02-19 23:33:27.160348] [debug] Valor de json_data: {"uuid":"7d029b3e-76d3-4d0d-a32b-80e8a84e8775","changeType":"edit","entity":"client","entityId":"141","eventName":"client.edit","extraData":{"entity":{"id":141,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-26T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Caim\u00e1n","lastName":"Dorado","username":null,"contacts":[{"id":145,"clientId":141,"email":"caimangolden@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-370,"accountCredit":0,"accountOutstanding":370,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":3,"name":"STRIPE","colorBackground":"#e30000","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#43a047","addressGpsLat":21.1609302,"addressGpsLon":-100.9360472,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":141,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-26T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Caim\u00e1n","lastName":"Dorado","username":null,"contacts":[{"id":145,"clientId":141,"email":"caimangolden@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-370,"accountCredit":0,"accountOutstanding":370,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#43a047","addressGpsLat":21.1609302,"addressGpsLon":-100.9360472,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} +[2025-02-19 23:33:27.160392] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-02-19 23:33:27.160425] [debug] Los datos entityBeforeEdit y entity contienen el campo isLead +[2025-02-19 23:33:27.160458] [debug] No hubo cambio de true a false en el campo isLead +[2025-02-19 23:33:27.160490] [debug] Validando claves dentro de entity y entityBeforeEdit +[2025-02-19 23:33:27.160521] [debug] Los datos entity y entityBeforeEdit contienen el campo tags +[2025-02-19 23:33:27.160552] [debug] Validando si la etiqueta STRIPE existe en entity pero no en entityBeforeEdit +[2025-02-19 23:33:27.160969] [debug] La etiqueta STRIPE se agregará al cliente +[2025-02-19 23:33:27.189342] [info] Creando el Customer Stripe + +[2025-02-19 23:33:27.189452] [info] El cliente a procesar es : El Caimán Dorado + +[2025-02-19 23:33:27.189516] [info] Datos notificationData: {"uuid":"7d029b3e-76d3-4d0d-a32b-80e8a84e8775","changeType":"edit","entity":"client","entityId":141,"message":null,"clientId":141,"eventName":"client.edit","clientData":{"id":141,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-26T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Caim\u00e1n","lastName":"Dorado","username":null,"contacts":[{"id":145,"clientId":141,"email":"caimangolden@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-370,"accountCredit":0,"accountOutstanding":370,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":3,"name":"STRIPE","colorBackground":"#e30000","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#43a047","addressGpsLat":21.1609302,"addressGpsLon":-100.9360472,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null} + +[2025-02-19 23:33:27.189563] [info] Ya dentro del FOREACH!!! + +[2025-02-19 23:33:27.189599] [info] REVISANDO EL PRIMER CONTACTO!!! + +[2025-02-19 23:33:27.189634] [info] REVISANDO EL PRIMER CONTACTO!!! + +[2025-02-19 23:33:27.189667] [info] REVISANDO EL PRIMER CONTACTO!!! + +[2025-02-19 23:33:27.189703] [info] SE VALIDA EL EMAIL!!! + +[2025-02-19 23:33:27.190403] [info] ahora se procede a validar el teléfono!!! + +[2025-02-19 23:33:27.190558] [info] AHORA SE MANDA A CREAR EL CLIENTE A STRIPE!!! + +[2025-02-19 23:33:27.810436] [info] {"id":"cus_Rnyjyu9kK8abbp","object":"customer","address":null,"balance":0,"created":1740008007,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 141","discount":null,"email":"caimangolden@gmail.com","invoice_prefix":"CF4A61B5","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":[],"name":"El Caim\u00e1n Dorado","next_invoice_sequence":1,"phone":"4181878106","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null} + +[2025-02-19 23:33:30.128186] [info] {"id":"cus_Rnyjyu9kK8abbp","object":"customer","address":null,"balance":0,"created":1740008007,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 141","discount":null,"email":"caimangolden@gmail.com","invoice_prefix":"CF4A61B5","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":{"ucrm_client_id":"141"},"name":"El Caim\u00e1n Dorado","next_invoice_sequence":1,"phone":"4181878106","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null} + +[2025-02-19 23:33:30.516002] [notice] Logging level set to:debug +[2025-02-19 23:33:30.516309] [info] No UUID found in the webhook data +[2025-02-19 23:33:32.631035] [info] {"object":"funding_instructions","bank_transfer":{"country":"MX","financial_addresses":[{"spei":{"account_holder_address":{"city":"Ciudad de M\u00e9xico","country":"MX","line1":"Av Paseo de la Reforma 180 piso 29 col Juarez","line2":null,"postal_code":"06600","state":"Ciudad de M\u00e9xico"},"account_holder_name":"SIIP INTERNET","bank_address":{"city":"Naucalpan","country":"MX","line1":"Blvd. Manuel Avila Camacho 1902","line2":"Planta Baja, Cd. Satelite","postal_code":"C.P. 53100","state":"Estado de Mexico"},"bank_code":"124","bank_name":"CITI MEXICO","clabe":"124180436222325917"},"supported_networks":["spei"],"type":"spei"}],"type":"mx_bank_transfer"},"currency":"mxn","funding_type":"bank_transfer","livemode":false} + +[2025-02-19 23:33:32.974441] [info] CLABE guardada en metadata: 124180436222325917 + +[2025-02-19 23:33:33.237934] [notice] Logging level set to:debug +[2025-02-19 23:33:33.238265] [info] No UUID found in the webhook data +[2025-02-19 23:33:35.037662] [info] Error al hacer el patch al CRM: Client error: `PATCH https://172.16.5.134/crm/api/v1.0/clients/141` resulted in a `415 Unsupported Media Type` response: +{"code":415,"message":""} + + +[2025-02-19 23:33:35.037827] [info] null + +[2025-02-20 3:20:51.345601] [notice] Logging level set to:debug +[2025-02-20 3:20:51.346213] [warning] no input +[2025-02-20 16:00:06.081687] [notice] Logging level set to:debug +[2025-02-20 16:00:06.220211] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-20 16:00:06.220391] [debug] Valor de JSON: {"uuid":"71a28433-1578-4766-9ab4-dd60fd2af58a","changeType":"insert","entity":"invoice","entityId":"1574","eventName":"invoice.add_draft","extraData":{"entity":{"id":1574,"clientId":121,"number":"001531","createdDate":"2025-02-20T10:00:02-0600","dueDate":"2025-03-06T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1577,"type":"service","label":"INTERMEDIO 20\/01\/2025 \u2013 19\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":106,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"flor","clientLastName":"marquez gonzalez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"plutarco elias calles 8,lindavista","clientStreet2":"enfrente del parque","clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-20 16:00:06.220643] [debug] Adición de borrador de Factura + +[2025-02-20 16:00:06.220732] [debug] {"uuid":"71a28433-1578-4766-9ab4-dd60fd2af58a","changeType":"insert","entity":"invoice","entityId":1574,"message":null,"clientId":121,"eventName":"invoice.add_draft","clientData":{"id":121,"userIdent":"-105.998","previousIsp":"angel","isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"plutarco elias calles 8,lindavista","street2":"enfrente del parque","city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"plutarco elias calles 8,lindavista, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":false,"invoiceMaturityDays":null,"stopServiceDue":false,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-05-20T00:00:00-0600","leadConvertedAt":"2024-05-20T13:45:39-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"flor","lastName":"marquez gonzalez","username":null,"contacts":[{"id":125,"clientId":121,"email":null,"phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":120,"clientId":121,"customAttributeId":2,"name":"CelularNotificaciones","key":"celularnotificaciones","value":"172.16.117.243","clientZoneVisible":true},{"id":121,"clientId":121,"customAttributeId":4,"name":"Whatsapp","key":"whatsapp","value":"Siip.567","clientZoneVisible":true},{"id":122,"clientId":121,"customAttributeId":5,"name":"uuid","key":"uuid","value":"admin1343","clientZoneVisible":true},{"id":123,"clientId":121,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"22372x9000055","clientZoneVisible":true},{"id":124,"clientId":121,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"21.9758566","clientZoneVisible":true}],"accountBalance":-4316.67,"accountCredit":0,"accountOutstanding":4316.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef5350","addressGpsLat":21.5,"addressGpsLon":-100,"isArchived":false,"generateProformaInvoices":false,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1574,"clientId":121,"number":"001531","createdDate":"2025-02-20T10:00:02-0600","dueDate":"2025-03-06T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-18T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1577,"type":"service","label":"INTERMEDIO 20\/01\/2025 \u2013 19\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":106,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"flor","clientLastName":"marquez gonzalez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"plutarco elias calles 8,lindavista","clientStreet2":"enfrente del parque","clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-20 16:00:06.370573] [notice] Logging level set to:debug +[2025-02-20 16:00:06.515260] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-20 16:00:06.515322] [debug] Valor de JSON: {"uuid":"cfdba62c-602c-4d4c-988b-ef408058ee4a","changeType":"draft_approved","entity":"invoice","entityId":"1574","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1574,"clientId":121,"number":"001531","createdDate":"2025-02-20T10:00:02-0600","dueDate":"2025-03-06T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1577,"type":"service","label":"INTERMEDIO 20\/01\/2025 \u2013 19\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":106,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"flor","clientLastName":"marquez gonzalez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"plutarco elias calles 8,lindavista","clientStreet2":"enfrente del parque","clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-20 16:00:06.515429] [debug] Aprobación de Factura + +[2025-02-20 16:00:06.515481] [debug] {"uuid":"cfdba62c-602c-4d4c-988b-ef408058ee4a","changeType":"draft_approved","entity":"invoice","entityId":1574,"message":null,"clientId":121,"eventName":"invoice.draft_approved","clientData":{"id":121,"userIdent":"-105.998","previousIsp":"angel","isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"plutarco elias calles 8,lindavista","street2":"enfrente del parque","city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"plutarco elias calles 8,lindavista, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":false,"invoiceMaturityDays":null,"stopServiceDue":false,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-05-20T00:00:00-0600","leadConvertedAt":"2024-05-20T13:45:39-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"flor","lastName":"marquez gonzalez","username":null,"contacts":[{"id":125,"clientId":121,"email":null,"phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":120,"clientId":121,"customAttributeId":2,"name":"CelularNotificaciones","key":"celularnotificaciones","value":"172.16.117.243","clientZoneVisible":true},{"id":121,"clientId":121,"customAttributeId":4,"name":"Whatsapp","key":"whatsapp","value":"Siip.567","clientZoneVisible":true},{"id":122,"clientId":121,"customAttributeId":5,"name":"uuid","key":"uuid","value":"admin1343","clientZoneVisible":true},{"id":123,"clientId":121,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"22372x9000055","clientZoneVisible":true},{"id":124,"clientId":121,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"21.9758566","clientZoneVisible":true}],"accountBalance":-4316.67,"accountCredit":0,"accountOutstanding":4316.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef5350","addressGpsLat":21.5,"addressGpsLon":-100,"isArchived":false,"generateProformaInvoices":false,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1574,"clientId":121,"number":"001531","createdDate":"2025-02-20T10:00:02-0600","dueDate":"2025-03-06T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-18T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1577,"type":"service","label":"INTERMEDIO 20\/01\/2025 \u2013 19\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":106,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"flor","clientLastName":"marquez gonzalez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"plutarco elias calles 8,lindavista","clientStreet2":"enfrente del parque","clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-20 16:00:07.488997] [notice] Logging level set to:debug +[2025-02-20 16:00:07.643006] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-20 16:00:07.643084] [debug] Valor de JSON: {"uuid":"0e214651-6ce1-4c88-9b55-4d8e0d1074de","changeType":"insert","entity":"invoice","entityId":"1575","eventName":"invoice.add_draft","extraData":{"entity":{"id":1575,"clientId":122,"number":"001532","createdDate":"2025-02-20T10:00:02-0600","dueDate":"2025-03-06T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1578,"type":"service","label":"plan300 20\/01\/2025 \u2013 19\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":107,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUDITH","clientLastName":"MARQUEZ GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PLTARCO 8, LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-20 16:00:07.643213] [debug] Adición de borrador de Factura + +[2025-02-20 16:00:07.643280] [debug] {"uuid":"0e214651-6ce1-4c88-9b55-4d8e0d1074de","changeType":"insert","entity":"invoice","entityId":1575,"message":null,"clientId":122,"eventName":"invoice.add_draft","clientData":{"id":122,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"PLTARCO 8, LINDAVISTA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"PLTARCO 8, LINDAVISTA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-05-20T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JUDITH","lastName":"MARQUEZ GONZALEZ","username":null,"contacts":[{"id":126,"clientId":122,"email":null,"phone":"55667788","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":125,"clientId":122,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_Q8uWOC8sjQem1K","clientZoneVisible":true},{"id":126,"clientId":122,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180296730137251","clientZoneVisible":true}],"accountBalance":-4590,"accountCredit":0,"accountOutstanding":4590,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef5350","addressGpsLat":21.171581132292,"addressGpsLon":-100.9286433436,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1575,"clientId":122,"number":"001532","createdDate":"2025-02-20T10:00:02-0600","dueDate":"2025-03-06T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-18T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1578,"type":"service","label":"plan300 20\/01\/2025 \u2013 19\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":107,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUDITH","clientLastName":"MARQUEZ GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PLTARCO 8, LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-20 16:00:07.762495] [notice] Logging level set to:debug +[2025-02-20 16:00:08.011336] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-20 16:00:08.011468] [debug] Valor de JSON: {"uuid":"823e0e7c-e6ff-415b-9826-7474b386bf57","changeType":"draft_approved","entity":"invoice","entityId":"1575","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1575,"clientId":122,"number":"001532","createdDate":"2025-02-20T10:00:02-0600","dueDate":"2025-03-06T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1578,"type":"service","label":"plan300 20\/01\/2025 \u2013 19\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":107,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUDITH","clientLastName":"MARQUEZ GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PLTARCO 8, LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-20 16:00:08.011586] [debug] Aprobación de Factura + +[2025-02-20 16:00:08.011637] [debug] {"uuid":"823e0e7c-e6ff-415b-9826-7474b386bf57","changeType":"draft_approved","entity":"invoice","entityId":1575,"message":null,"clientId":122,"eventName":"invoice.draft_approved","clientData":{"id":122,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"PLTARCO 8, LINDAVISTA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"PLTARCO 8, LINDAVISTA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-05-20T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JUDITH","lastName":"MARQUEZ GONZALEZ","username":null,"contacts":[{"id":126,"clientId":122,"email":null,"phone":"55667788","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":125,"clientId":122,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_Q8uWOC8sjQem1K","clientZoneVisible":true},{"id":126,"clientId":122,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180296730137251","clientZoneVisible":true}],"accountBalance":-4590,"accountCredit":0,"accountOutstanding":4590,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef5350","addressGpsLat":21.171581132292,"addressGpsLon":-100.9286433436,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1575,"clientId":122,"number":"001532","createdDate":"2025-02-20T10:00:02-0600","dueDate":"2025-03-06T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-18T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1578,"type":"service","label":"plan300 20\/01\/2025 \u2013 19\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":107,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUDITH","clientLastName":"MARQUEZ GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PLTARCO 8, LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-20 19:28:44.357238] [notice] Logging level set to:debug +[2025-02-20 19:28:44.357399] [info] No UUID found in the webhook data +[2025-02-20 19:28:44.357422] [info] Evento de referencia de oxxo recibido + +[2025-02-20 19:28:44.357435] [info] Referencia persnoalizada, Valor del monto: 100 + +[2025-02-20 19:28:44.357446] [info] Creando referencia del cliente para OXXO: + +[2025-02-20 19:28:44.530642] [info] Monto proporcionado directamente: 100 + +[2025-02-20 19:28:44.530684] [info] Creando referencia en Stripe por: 10000 para el cliente cus_PetN1dhr4rx0kX + +[2025-02-20 19:28:45.065979] [info] El nombre del cliente es: Daniel Humberto Soto Villegas el boy + +[2025-02-20 19:28:45.066087] [info] Creando payment methods del voucher + +[2025-02-20 19:28:45.288542] [info] Confirmando el paymentIntent + +[2025-02-20 19:28:45.927299] [info] Se terminó de confirmar el paymentIntent + +[2025-02-20 19:28:45.927364] [info] Referencia OXXO: 12345678901234657890123456789012 + +[2025-02-20 19:28:45.927375] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9Sb0kwcHF5b1pQbEVoeFpjcnQ3YzRmcDUzYTVSc3hD0100EdJojQOS + +[2025-02-20 19:28:45.927651] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9Sb0kwcHF5b1pQbEVoeFpjcnQ3YzRmcDUzYTVSc3hD0100EdJojQOS"} +[2025-02-20 19:31:50.236012] [notice] Logging level set to:debug +[2025-02-20 19:31:50.466495] [debug] valor el evento recibido por webhook: invoice.edit + +[2025-02-20 19:31:50.466672] [debug] Valor de JSON: {"uuid":"0e7a0b4d-f8db-46d7-a55f-fcd354be10bb","changeType":"edit","entity":"invoice","entityId":"1566","eventName":"invoice.edit","extraData":{"entity":{"id":1566,"clientId":2,"number":"001523","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1569,"type":"service","label":"PREMIUM 01\/03\/2025 \u2013 31\/03\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":134,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":100,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":600,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":665,"invoiceId":1566,"paymentId":588,"creditNoteId":null,"refundId":null,"amount":100}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":{"id":1566,"clientId":2,"number":"001523","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1569,"type":"service","label":"PREMIUM 01\/03\/2025 \u2013 31\/03\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":134,"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":[{"id":665,"invoiceId":1566,"paymentId":588,"creditNoteId":null,"refundId":null,"amount":100}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false}}} + +[2025-02-20 19:31:50.466914] [debug] Edición de Factura + +[2025-02-20 19:31:50.467012] [debug] {"uuid":"0e7a0b4d-f8db-46d7-a55f-fcd354be10bb","changeType":"edit","entity":"invoice","entityId":1566,"message":null,"clientId":2,"eventName":"invoice.edit","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-600,"accountCredit":0,"accountOutstanding":600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1566,"clientId":2,"number":"001523","createdDate":"2025-02-19T10:00:01-0600","dueDate":"2025-03-05T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1569,"type":"service","label":"PREMIUM 01\/03\/2025 \u2013 31\/03\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":134,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":100,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":600,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":665,"invoiceId":1566,"paymentId":588,"creditNoteId":null,"refundId":null,"amount":100}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-20 19:31:50.467134] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-20 19:31:50.467178] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":588,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-02-20T13:31:49-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":665,"invoiceId":1566,"paymentId":588,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2600 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 100","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2600 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 100\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 20\/02\/2025 13:31 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 20\/02\/2025 13:31\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 20\/02\/2025 13:31 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 20\/02\/2025 13:31","Clabe Interbancaria":"0021804341999569810"}} + +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas el boy","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-02-06T23:47:27Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","user name":"Daniel Humberto 🐁","Nombre":"👤 Daniel Humberto Soto Villegas el boy","Clabe Interbancaria":"0021804341999569810","Monto Ultimo Pago":"💲 100","Estado":"🟢 Activo ","Cliente":"2","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Fecha Ultimo Pago":"📆💸 20/02/2025 13:31 con Tarjeta de crédito Stripe 💳","Saldo Actual":"💲600 pendientes","URL":"🌐 https://sistema.siip.mx/crm/client/2","Fecha Ultima Actualizacion":"📆🔄️ 20/02/2025 13:31","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas el boy\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲600 pendientes\",\"Monto Ultimo Pago\": \"💲 100\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 20/02/2025 13:31 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 20/02/2025 13:31\",\"Clabe Interbancaria\": \"0021804341999569810\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":588,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-02-20T13:31:49-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":665,"invoiceId":1566,"paymentId":588,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 2038d2d99ae543f3b56f1ae54f4cc82b + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2600 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 100","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2600 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 100\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 20\/02\/2025 13:31 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 20\/02\/2025 13:31\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 20\/02\/2025 13:31 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 20\/02\/2025 13:31","Clabe Interbancaria":"0021804341999569810"}} + +Response Patch CallBell: {"contact":{"uuid":"2038d2d99ae543f3b56f1ae54f4cc82b","name":"Daniel Humberto Soto Villegas el boy","phoneNumber":"5214181817609","avatarUrl":null,"createdAt":"2024-01-26T18:16:09Z","closedAt":"2025-02-17T19:00:45Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/2038d2d99ae543f3b56f1ae54f4cc82b","conversationHref":"https://dash.callbell.eu/chat/90611886ac204c56a75240f951c53874","tags":[],"assignedUser":null,"customFields":{"Cliente":"2","Clabe Interbancaria":"0021804341999569810","Fecha Ultima Actualizacion":"📆🔄️ 20/02/2025 13:31","user entry point":"inbound_message","Estado":"🟢 Activo ","Monto Ultimo Pago":"💲 100","user name":"Grisel","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Fecha Ultimo Pago":"📆💸 20/02/2025 13:31 con Tarjeta de crédito Stripe 💳","Saldo Actual":"💲600 pendientes","Nombre":"👤 Daniel Humberto Soto Villegas el boy","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas el boy\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲600 pendientes\",\"Monto Ultimo Pago\": \"💲 100\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 20/02/2025 13:31 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 20/02/2025 13:31\",\"Clabe Interbancaria\": \"0021804341999569810\"}","URL":"🌐 https://sistema.siip.mx/crm/client/2"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-20 19:31:53.686224] [notice] Logging level set to:debug +[2025-02-20 19:31:53.828268] [debug] valor el evento recibido por webhook: payment.add + +[2025-02-20 19:31:53.828320] [debug] Valor de JSON: {"uuid":"a5c54bb0-6881-4c14-80fa-344a60be69b9","changeType":"insert","entity":"payment","entityId":"588","eventName":"payment.add","extraData":{"entity":{"id":588,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-02-20T13:31:49-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":665,"invoiceId":1566,"paymentId":588,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":null}} + +[2025-02-20 19:31:53.828459] [debug] Notification encodificado en JSON:{"uuid":"a5c54bb0-6881-4c14-80fa-344a60be69b9","changeType":"insert","entity":"payment","entityId":588,"message":null,"clientId":2,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-600,"accountCredit":0,"accountOutstanding":600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":588,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-02-20T13:31:49-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":665,"invoiceId":1566,"paymentId":588,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]}} + +[2025-02-20 19:31:53.828480] [debug] valor del payment data: {"id":588,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-02-20T13:31:49-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":665,"invoiceId":1566,"paymentId":588,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]} + +[2025-02-20 19:31:53.828520] [info] {"WhatsApp":["5214181878106","5214181817609"]} +[2025-02-20 19:31:53.828531] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-20 19:31:53.828540] [info] Tipo de contacto normalizado: 'whatsapp' +[2025-02-20 19:31:53.828550] [debug] ***Se notifica y actualiza al cliente sobre su pago*** + +Eviando comprobante de pago al cliente: 2 con número: 5214181878106 + +El archivo PDF se ha descargado y guardado correctamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.pdf + +El archivo PDF es válido y tiene contenido: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.pdf + +El archivo PNG se ha generado correctamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png + +Subiendo comprobante a worpdpress + +file_to_upload: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png + +Conexión FTP exitosa + +El archivo ha sido cargado exitosamente. + +La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png + +No se pudo obtener la lista de archivos de la carpeta FTP + +Se terminó de subir comprobante a wordpress + +La cadena CURL que se envia es: { + "to": "5214181878106", + "from": "whatsapp", + "type": "document", + "content": { + "text": "S/M", + "url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png" + }, + "template_values": ["Daniel Humberto Soto Villegas el boy", "$100", "$600 pendientes"], + "template_uuid": "57ead79cebd14902921477922403093b", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"1a5f94560503492486f7b63b2926ba3d","status":"enqueued"}} +Hay menos de 100 archivos en el directorio. No se eliminarán archivos. + +La notificación fue enviada correctamente con estado: enqueued + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":588,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-02-20T13:31:49-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":665,"invoiceId":1566,"paymentId":588,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2600 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 100","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2600 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 100\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 20\/02\/2025 13:31 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 20\/02\/2025 13:31\",\"Clabe Interbancaria\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 20\/02\/2025 13:31 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 20\/02\/2025 13:31","Clabe Interbancaria":null}} + +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas el boy","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-02-06T23:47:27Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","user name":"Daniel Humberto 🐁","Nombre":"👤 Daniel Humberto Soto Villegas el boy","Clabe Interbancaria":"0021804341999569810","Monto Ultimo Pago":"💲 100","Estado":"🟢 Activo ","Cliente":"2","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Fecha Ultimo Pago":"📆💸 20/02/2025 13:31 con Tarjeta de crédito Stripe 💳","Saldo Actual":"💲600 pendientes","URL":"🌐 https://sistema.siip.mx/crm/client/2","Fecha Ultima Actualizacion":"📆🔄️ 20/02/2025 13:31","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas el boy\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲600 pendientes\",\"Monto Ultimo Pago\": \"💲 100\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 20/02/2025 13:31 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 20/02/2025 13:31\",\"Clabe Interbancaria\": \"\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-20 19:31:59.135767] [debug] ***Se notifica y actualiza al cliente sobre su pago*** + +Eviando comprobante de pago al cliente: 2 con número: 5214181817609 + +El archivo PDF se ha descargado y guardado correctamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.pdf + +El archivo PDF es válido y tiene contenido: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.pdf + +El archivo PNG se ha generado correctamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png + +Subiendo comprobante a worpdpress + +file_to_upload: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png + +Conexión FTP exitosa + +El archivo ha sido cargado exitosamente. + +La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png + +No se pudo obtener la lista de archivos de la carpeta FTP + +Se terminó de subir comprobante a wordpress + +La cadena CURL que se envia es: { + "to": "5214181817609", + "from": "whatsapp", + "type": "document", + "content": { + "text": "S/M", + "url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png" + }, + "template_values": ["Daniel Humberto Soto Villegas el boy", "$100", "$600 pendientes"], + "template_uuid": "57ead79cebd14902921477922403093b", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"b46d22e578df415587e3fca06b9bb6e6","status":"enqueued"}} +Hay menos de 100 archivos en el directorio. No se eliminarán archivos. + +La notificación fue enviada correctamente con estado: enqueued + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":588,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-02-20T13:31:49-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":665,"invoiceId":1566,"paymentId":588,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 2038d2d99ae543f3b56f1ae54f4cc82b + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2600 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 100","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2600 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 100\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 20\/02\/2025 13:31 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 20\/02\/2025 13:32\",\"Clabe Interbancaria\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 20\/02\/2025 13:31 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 20\/02\/2025 13:32","Clabe Interbancaria":null}} + +Response Patch CallBell: {"contact":{"uuid":"2038d2d99ae543f3b56f1ae54f4cc82b","name":"Daniel Humberto Soto Villegas el boy","phoneNumber":"5214181817609","avatarUrl":null,"createdAt":"2024-01-26T18:16:09Z","closedAt":"2025-02-17T19:00:45Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/2038d2d99ae543f3b56f1ae54f4cc82b","conversationHref":"https://dash.callbell.eu/chat/90611886ac204c56a75240f951c53874","tags":[],"assignedUser":null,"customFields":{"Cliente":"2","Clabe Interbancaria":"0021804341999569810","Fecha Ultima Actualizacion":"📆🔄️ 20/02/2025 13:32","user entry point":"inbound_message","Estado":"🟢 Activo ","Monto Ultimo Pago":"💲 100","user name":"Grisel","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Fecha Ultimo Pago":"📆💸 20/02/2025 13:31 con Tarjeta de crédito Stripe 💳","Saldo Actual":"💲600 pendientes","Nombre":"👤 Daniel Humberto Soto Villegas el boy","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas el boy\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲600 pendientes\",\"Monto Ultimo Pago\": \"💲 100\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 20/02/2025 13:31 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 20/02/2025 13:32\",\"Clabe Interbancaria\": \"\"}","URL":"🌐 https://sistema.siip.mx/crm/client/2"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-20 19:32:03.823172] [notice] Logging level set to:debug +[2025-02-20 19:32:03.977557] [debug] valor el evento recibido por webhook: payment.edit + +[2025-02-20 19:32:03.977726] [debug] Valor de JSON: {"uuid":"d486ac7a-3583-44a0-8cfd-575af6babdeb","changeType":"edit","entity":"payment","entityId":"588","eventName":"payment.edit","extraData":{"entity":{"id":588,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-02-20T13:31:49-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":665,"invoiceId":1566,"paymentId":588,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":588,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-02-20T13:31:49-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":665,"invoiceId":1566,"paymentId":588,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]}}} + +[2025-02-21 6:36:58.429267] [notice] Logging level set to:debug +[2025-02-21 6:36:58.508347] [error] Error for request http://localhost/crm/api/v1.0/payments/1. HTTP error (404): {"code":404,"message":"Not Found"} +[2025-02-22 6:25:05.119362] [notice] Logging level set to:debug +[2025-02-22 6:25:05.406858] [debug] valor el evento recibido por webhook: invoice.overdue + +[2025-02-22 6:25:05.406919] [debug] Valor de JSON: {"uuid":"313bf809-3fea-4a55-b8f7-12cffa9e1f5f","changeType":"overdue","entity":"invoice","entityId":"1550","eventName":"invoice.overdue","extraData":{"entity":{"id":1550,"clientId":110,"number":"001514","createdDate":"2025-02-07T10:00:02-0600","dueDate":"2025-02-21T10:00:02-0600","emailSentDate":"2025-02-22T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-02-05T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1553,"type":"service","label":"plan300 07\/01\/2025 \u2013 06\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":109,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Maria la del Barrio","clientLastName":"Soy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"67 Morelos","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37805","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-22 6:25:05.409857] [debug] Factura vencida + +[2025-02-22 6:25:05.409929] [debug] datos del notification para el invoice overdue:{"uuid":"313bf809-3fea-4a55-b8f7-12cffa9e1f5f","changeType":"overdue","entity":"invoice","entityId":1550,"message":null,"clientId":110,"eventName":"invoice.overdue","clientData":{"id":110,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"67 Morelos","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37805","fullAddress":"Morelos 67, Dolores Hidalgo, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-04-23T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Maria la del Barrio","lastName":"Soy","username":null,"contacts":[{"id":114,"clientId":110,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-2400,"accountCredit":0,"accountOutstanding":2400,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef6c00","addressGpsLat":21.1464449,"addressGpsLon":-100.9141442,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1550,"clientId":110,"number":"001514","createdDate":"2025-02-07T10:00:02-0600","dueDate":"2025-02-21T10:00:02-0600","emailSentDate":"2025-02-22T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-02-05T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1553,"type":"service","label":"plan300 07\/01\/2025 \u2013 06\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":109,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Maria la del Barrio","clientLastName":"Soy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"67 Morelos","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37805","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-22 6:25:05.409956] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** + +[2025-02-22 6:25:05.418836] [debug] Numero de cel obtenido + +[2025-02-22 6:25:05.418878] [warning] No se encontró un teléfono celular válido para el cliente: 110 +[2025-02-22 6:25:05.614475] [notice] Logging level set to:debug +[2025-02-22 6:25:05.798336] [debug] valor el evento recibido por webhook: invoice.overdue + +[2025-02-22 6:25:05.798386] [debug] Valor de JSON: {"uuid":"655a335a-6a3f-4b82-8ab0-5be1f8d4831a","changeType":"overdue","entity":"invoice","entityId":"1551","eventName":"invoice.overdue","extraData":{"entity":{"id":1551,"clientId":116,"number":"001515","createdDate":"2025-02-07T10:00:02-0600","dueDate":"2025-02-21T10:00:02-0600","emailSentDate":"2025-02-22T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-02-05T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1554,"type":"service","label":"PREMIUM 07\/01\/2025 \u2013 06\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":110,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Jos\u00e9 Humberto","clientLastName":"Rodr\u00edguez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"28 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-22 6:25:05.798481] [debug] Factura vencida + +[2025-02-22 6:25:05.798518] [debug] datos del notification para el invoice overdue:{"uuid":"655a335a-6a3f-4b82-8ab0-5be1f8d4831a","changeType":"overdue","entity":"invoice","entityId":1551,"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":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-5600,"accountCredit":0,"accountOutstanding":5600,"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":1551,"clientId":116,"number":"001515","createdDate":"2025-02-07T10:00:02-0600","dueDate":"2025-02-21T10:00:02-0600","emailSentDate":"2025-02-22T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-02-05T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1554,"type":"service","label":"PREMIUM 07\/01\/2025 \u2013 06\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":110,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Jos\u00e9 Humberto","clientLastName":"Rodr\u00edguez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"28 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-22 6:25:05.798535] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** + +[2025-02-22 6:25:05.798587] [debug] Numero de cel obtenido + +[2025-02-22 6:25:05.798598] [warning] No se encontró un teléfono celular válido para el cliente: 116 +[2025-02-22 16:00:04.545353] [notice] Logging level set to:debug +[2025-02-22 16:00:04.704900] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-22 16:00:04.704962] [debug] Valor de JSON: {"uuid":"2b2b8c7d-84cd-4c37-a5f4-830424a0f97a","changeType":"insert","entity":"invoice","entityId":"1576","eventName":"invoice.add_draft","extraData":{"entity":{"id":1576,"clientId":105,"number":"001533","createdDate":"2025-02-22T10:00:01-0600","dueDate":"2025-03-08T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-20T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1579,"type":"service","label":"plan300 21\/01\/2025 \u2013 20\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":111,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"jota","clientLastName":"serpiente","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":null,"clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-22 16:00:04.705313] [debug] Adición de borrador de Factura + +[2025-02-22 16:00:04.705369] [debug] {"uuid":"2b2b8c7d-84cd-4c37-a5f4-830424a0f97a","changeType":"insert","entity":"invoice","entityId":1576,"message":null,"clientId":105,"eventName":"invoice.add_draft","clientData":{"id":105,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":null,"countryId":173,"stateId":null,"zipCode":null,"fullAddress":null,"invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-02-17T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"jota","lastName":"serpiente","username":null,"contacts":[{"id":109,"clientId":105,"email":null,"phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-2600,"accountCredit":0,"accountOutstanding":2600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#4527a0","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1576,"clientId":105,"number":"001533","createdDate":"2025-02-22T10:00:01-0600","dueDate":"2025-03-08T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1579,"type":"service","label":"plan300 21\/01\/2025 \u2013 20\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":111,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"jota","clientLastName":"serpiente","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":null,"clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-22 16:00:04.859359] [notice] Logging level set to:debug +[2025-02-22 16:00:05.038464] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-22 16:00:05.038516] [debug] Valor de JSON: {"uuid":"9c18d5d9-965f-4c56-a435-7d42aee3f63f","changeType":"draft_approved","entity":"invoice","entityId":"1576","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1576,"clientId":105,"number":"001533","createdDate":"2025-02-22T10:00:01-0600","dueDate":"2025-03-08T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-20T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1579,"type":"service","label":"plan300 21\/01\/2025 \u2013 20\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":111,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"jota","clientLastName":"serpiente","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":null,"clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-22 16:00:05.038616] [debug] Aprobación de Factura + +[2025-02-22 16:00:05.038655] [debug] {"uuid":"9c18d5d9-965f-4c56-a435-7d42aee3f63f","changeType":"draft_approved","entity":"invoice","entityId":1576,"message":null,"clientId":105,"eventName":"invoice.draft_approved","clientData":{"id":105,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":null,"countryId":173,"stateId":null,"zipCode":null,"fullAddress":null,"invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-02-17T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"jota","lastName":"serpiente","username":null,"contacts":[{"id":109,"clientId":105,"email":null,"phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-2600,"accountCredit":0,"accountOutstanding":2600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#4527a0","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1576,"clientId":105,"number":"001533","createdDate":"2025-02-22T10:00:01-0600","dueDate":"2025-03-08T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1579,"type":"service","label":"plan300 21\/01\/2025 \u2013 20\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":111,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"jota","clientLastName":"serpiente","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":null,"clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-22 16:00:05.960062] [notice] Logging level set to:debug +[2025-02-22 16:00:06.114574] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-22 16:00:06.114631] [debug] Valor de JSON: {"uuid":"188b8e5d-abbd-4d69-a35e-240b844d0032","changeType":"insert","entity":"invoice","entityId":"1577","eventName":"invoice.add_draft","extraData":{"entity":{"id":1577,"clientId":133,"number":"001534","createdDate":"2025-02-22T10:00:01-0600","dueDate":"2025-03-08T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-20T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1580,"type":"service","label":"INTERMEDIO 21\/01\/2025 \u2013 20\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":114,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Los Amigos","clientLastName":"Invisibles","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Calle Colima","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-22 16:00:06.114743] [debug] Adición de borrador de Factura + +[2025-02-22 16:00:06.114795] [debug] {"uuid":"188b8e5d-abbd-4d69-a35e-240b844d0032","changeType":"insert","entity":"invoice","entityId":1577,"message":null,"clientId":133,"eventName":"invoice.add_draft","clientData":{"id":133,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"34 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Colima 34, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-18T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Los Amigos","lastName":"Invisibles","username":null,"contacts":[{"id":137,"clientId":133,"email":"amigosinvisibles@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":135,"clientId":133,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_QJjZqeaZSSPwcT","clientZoneVisible":true},{"id":136,"clientId":133,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180822750421052","clientZoneVisible":true}],"accountBalance":-3833.33,"accountCredit":0,"accountOutstanding":3833.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ffc107","addressGpsLat":21.1568888,"addressGpsLon":-100.9275759,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1577,"clientId":133,"number":"001534","createdDate":"2025-02-22T10:00:01-0600","dueDate":"2025-03-08T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1580,"type":"service","label":"INTERMEDIO 21\/01\/2025 \u2013 20\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":114,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Los Amigos","clientLastName":"Invisibles","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Calle Colima","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-22 16:00:06.114826] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-22 16:00:06.114836] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [] + +Nombre del cliente que se va a actualizar: Los Amigos Invisibles + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Los Amigos Invisibles","custom_fields":{"Cliente":133,"Domicilio":"\ud83d\udccd Calle Colima 34, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Los Amigos Invisibles","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/133","Saldo Actual":"\ud83d\udcb23833.33 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"133\",\"Domicilio\": \"\ud83d\udccd Calle Colima 34, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Los Amigos Invisibles\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/133\",\"Saldo Actual\": \"\ud83d\udcb23833.33 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 22\/02\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/02\/2025 10:00\",\"Clabe Interbancaria\": \"002180822750421052\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 22\/02\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/02\/2025 10:00","Clabe Interbancaria":"002180822750421052"}} + +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Los Amigos Invisibles","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-02-22T08:51:03Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Nombre":"👤 Los Amigos Invisibles","Clabe Interbancaria":"002180822750421052","Monto Ultimo Pago":"💲 ","Estado":"🔴 Suspendido","Cliente":"133","Domicilio":"📍 Calle Colima 34, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Fecha Ultimo Pago":"📆💸 22/02/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Saldo Actual":"💲3833.33 pendientes","Fecha Ultima Actualizacion":"📆🔄️ 22/02/2025 10:00","Resumen":"{\"Cliente\": \"3201\",\"Domicilio\": \"📍 CALLE CHIAPAS #31, ZONA CENTRO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800\",\"Nombre\": \"👤 DANIEL HUMBERTO SOTO VILLEGAS\",\"URL\": \"🌐 https://172.16.5.120/crm/client/3201\",\"Saldo Actual\": \"💲10 a favor\",\"Monto Ultimo Pago\": \"💲 10\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 20/02/2025 23:17 con PayPal 🌐💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 22/02/2025 02:19\",\"Clabe Interbancaria\": \"124180650741646979\"}","URL":"🌐 https://sistema.siip.mx/crm/client/133","user name":"Daniel Humberto 🐁"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-22 16:00:09.064081] [notice] Logging level set to:debug +[2025-02-22 16:00:09.226293] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-22 16:00:09.226346] [debug] Valor de JSON: {"uuid":"a7f605d8-9a8f-48db-b6d1-81131b92b45b","changeType":"draft_approved","entity":"invoice","entityId":"1577","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1577,"clientId":133,"number":"001534","createdDate":"2025-02-22T10:00:01-0600","dueDate":"2025-03-08T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-20T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1580,"type":"service","label":"INTERMEDIO 21\/01\/2025 \u2013 20\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":114,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Los Amigos","clientLastName":"Invisibles","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Calle Colima","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-22 16:00:09.226455] [debug] Aprobación de Factura + +[2025-02-22 16:00:09.226500] [debug] {"uuid":"a7f605d8-9a8f-48db-b6d1-81131b92b45b","changeType":"draft_approved","entity":"invoice","entityId":1577,"message":null,"clientId":133,"eventName":"invoice.draft_approved","clientData":{"id":133,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"34 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Colima 34, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-18T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Los Amigos","lastName":"Invisibles","username":null,"contacts":[{"id":137,"clientId":133,"email":"amigosinvisibles@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":135,"clientId":133,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_QJjZqeaZSSPwcT","clientZoneVisible":true},{"id":136,"clientId":133,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180822750421052","clientZoneVisible":true}],"accountBalance":-3833.33,"accountCredit":0,"accountOutstanding":3833.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ffc107","addressGpsLat":21.1568888,"addressGpsLon":-100.9275759,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1577,"clientId":133,"number":"001534","createdDate":"2025-02-22T10:00:01-0600","dueDate":"2025-03-08T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1580,"type":"service","label":"INTERMEDIO 21\/01\/2025 \u2013 20\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":114,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Los Amigos","clientLastName":"Invisibles","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Calle Colima","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-22 16:00:09.226547] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-22 16:00:09.226557] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [] + +Nombre del cliente que se va a actualizar: Los Amigos Invisibles + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Los Amigos Invisibles","custom_fields":{"Cliente":133,"Domicilio":"\ud83d\udccd Calle Colima 34, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Los Amigos Invisibles","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/133","Saldo Actual":"\ud83d\udcb23833.33 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"133\",\"Domicilio\": \"\ud83d\udccd Calle Colima 34, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Los Amigos Invisibles\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/133\",\"Saldo Actual\": \"\ud83d\udcb23833.33 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 22\/02\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/02\/2025 10:00\",\"Clabe Interbancaria\": \"002180822750421052\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 22\/02\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/02\/2025 10:00","Clabe Interbancaria":"002180822750421052"}} + +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Los Amigos Invisibles","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-02-22T08:51:03Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Nombre":"👤 Los Amigos Invisibles","Clabe Interbancaria":"002180822750421052","Monto Ultimo Pago":"💲 ","Estado":"🔴 Suspendido","Cliente":"133","Domicilio":"📍 Calle Colima 34, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Fecha Ultimo Pago":"📆💸 22/02/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Saldo Actual":"💲3833.33 pendientes","Fecha Ultima Actualizacion":"📆🔄️ 22/02/2025 10:00","Resumen":"{\"Cliente\": \"3201\",\"Domicilio\": \"📍 CALLE CHIAPAS #31, ZONA CENTRO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800\",\"Nombre\": \"👤 DANIEL HUMBERTO SOTO VILLEGAS\",\"URL\": \"🌐 https://172.16.5.120/crm/client/3201\",\"Saldo Actual\": \"💲10 a favor\",\"Monto Ultimo Pago\": \"💲 10\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 20/02/2025 23:17 con PayPal 🌐💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 22/02/2025 02:19\",\"Clabe Interbancaria\": \"124180650741646979\"}","URL":"🌐 https://sistema.siip.mx/crm/client/133","user name":"Daniel Humberto 🐁"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-22 16:00:11.244894] [notice] Logging level set to:debug +[2025-02-22 16:00:11.382137] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-22 16:00:11.382190] [debug] Valor de JSON: {"uuid":"678b39a4-8099-4260-bcf4-92e30f3097c0","changeType":"insert","entity":"invoice","entityId":"1578","eventName":"invoice.add_draft","extraData":{"entity":{"id":1578,"clientId":134,"number":"001535","createdDate":"2025-02-22T10:00:01-0600","dueDate":"2025-03-08T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-20T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1581,"type":"service","label":"PREMIUM 21\/01\/2025 \u2013 20\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":113,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"La Mosca","clientLastName":"Tse Tse","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"25 Michoac\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-22 16:00:11.382294] [debug] Adición de borrador de Factura + +[2025-02-22 16:00:11.382339] [debug] {"uuid":"678b39a4-8099-4260-bcf4-92e30f3097c0","changeType":"insert","entity":"invoice","entityId":1578,"message":null,"clientId":134,"eventName":"invoice.add_draft","clientData":{"id":134,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"25 Michoac\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Michoac\u00e1n 25, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-18T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"La Mosca","lastName":"Tse Tse","username":null,"contacts":[{"id":138,"clientId":134,"email":"lamoscatsetse@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-5600,"accountCredit":0,"accountOutstanding":5600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#009688","addressGpsLat":21.1576726,"addressGpsLon":-100.9370354,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1578,"clientId":134,"number":"001535","createdDate":"2025-02-22T10:00:01-0600","dueDate":"2025-03-08T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1581,"type":"service","label":"PREMIUM 21\/01\/2025 \u2013 20\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":113,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"La Mosca","clientLastName":"Tse Tse","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"25 Michoac\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-22 16:00:11.382370] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-22 16:00:11.382380] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [] + +Nombre del cliente que se va a actualizar: La Mosca Tse Tse + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"La Mosca Tse Tse","custom_fields":{"Cliente":134,"Domicilio":"\ud83d\udccd Michoac\u00e1n 25, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 La Mosca Tse Tse","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/134","Saldo Actual":"\ud83d\udcb25600 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"134\",\"Domicilio\": \"\ud83d\udccd Michoac\u00e1n 25, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 La Mosca Tse Tse\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/134\",\"Saldo Actual\": \"\ud83d\udcb25600 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 22\/02\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/02\/2025 10:00\",\"Clabe Interbancaria\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 22\/02\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/02\/2025 10:00","Clabe Interbancaria":null}} + +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"La Mosca Tse Tse","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-02-22T08:51:03Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Nombre":"👤 La Mosca Tse Tse","Clabe Interbancaria":"002180822750421052","Monto Ultimo Pago":"💲 ","Estado":"🔴 Suspendido","Cliente":"134","Domicilio":"📍 Michoacán 25, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Fecha Ultimo Pago":"📆💸 22/02/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Saldo Actual":"💲5600 pendientes","Fecha Ultima Actualizacion":"📆🔄️ 22/02/2025 10:00","Resumen":"{\"Cliente\": \"134\",\"Domicilio\": \"📍 Michoacán 25, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 La Mosca Tse Tse\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/134\",\"Saldo Actual\": \"💲5600 pendientes\",\"Monto Ultimo Pago\": \"💲 \",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 22/02/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 22/02/2025 10:00\",\"Clabe Interbancaria\": \"\"}","URL":"🌐 https://sistema.siip.mx/crm/client/134","user name":"Daniel Humberto 🐁"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-22 16:00:13.364706] [notice] Logging level set to:debug +[2025-02-22 16:00:13.510464] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-22 16:00:13.510580] [debug] Valor de JSON: {"uuid":"d01fdddb-9af5-4d30-9085-6ac52a628845","changeType":"draft_approved","entity":"invoice","entityId":"1578","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1578,"clientId":134,"number":"001535","createdDate":"2025-02-22T10:00:01-0600","dueDate":"2025-03-08T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-20T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1581,"type":"service","label":"PREMIUM 21\/01\/2025 \u2013 20\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":113,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"La Mosca","clientLastName":"Tse Tse","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"25 Michoac\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-22 16:00:13.510704] [debug] Aprobación de Factura + +[2025-02-22 16:00:13.510750] [debug] {"uuid":"d01fdddb-9af5-4d30-9085-6ac52a628845","changeType":"draft_approved","entity":"invoice","entityId":1578,"message":null,"clientId":134,"eventName":"invoice.draft_approved","clientData":{"id":134,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"25 Michoac\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Michoac\u00e1n 25, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-18T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"La Mosca","lastName":"Tse Tse","username":null,"contacts":[{"id":138,"clientId":134,"email":"lamoscatsetse@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-5600,"accountCredit":0,"accountOutstanding":5600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#009688","addressGpsLat":21.1576726,"addressGpsLon":-100.9370354,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1578,"clientId":134,"number":"001535","createdDate":"2025-02-22T10:00:01-0600","dueDate":"2025-03-08T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1581,"type":"service","label":"PREMIUM 21\/01\/2025 \u2013 20\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":113,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"La Mosca","clientLastName":"Tse Tse","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"25 Michoac\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-22 16:00:13.510795] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-22 16:00:13.510960] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [] + +Nombre del cliente que se va a actualizar: La Mosca Tse Tse + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"La Mosca Tse Tse","custom_fields":{"Cliente":134,"Domicilio":"\ud83d\udccd Michoac\u00e1n 25, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 La Mosca Tse Tse","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/134","Saldo Actual":"\ud83d\udcb25600 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"134\",\"Domicilio\": \"\ud83d\udccd Michoac\u00e1n 25, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 La Mosca Tse Tse\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/134\",\"Saldo Actual\": \"\ud83d\udcb25600 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 22\/02\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/02\/2025 10:00\",\"Clabe Interbancaria\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 22\/02\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/02\/2025 10:00","Clabe Interbancaria":null}} + +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"La Mosca Tse Tse","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-02-22T08:51:03Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Nombre":"👤 La Mosca Tse Tse","Clabe Interbancaria":"002180822750421052","Monto Ultimo Pago":"💲 ","Estado":"🔴 Suspendido","Cliente":"134","Domicilio":"📍 Michoacán 25, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Fecha Ultimo Pago":"📆💸 22/02/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Saldo Actual":"💲5600 pendientes","Fecha Ultima Actualizacion":"📆🔄️ 22/02/2025 10:00","Resumen":"{\"Cliente\": \"134\",\"Domicilio\": \"📍 Michoacán 25, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 La Mosca Tse Tse\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/134\",\"Saldo Actual\": \"💲5600 pendientes\",\"Monto Ultimo Pago\": \"💲 \",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 22/02/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 22/02/2025 10:00\",\"Clabe Interbancaria\": \"\"}","URL":"🌐 https://sistema.siip.mx/crm/client/134","user name":"Daniel Humberto 🐁"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-22 16:00:15.543081] [notice] Logging level set to:debug +[2025-02-22 16:00:15.695954] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-22 16:00:15.696013] [debug] Valor de JSON: {"uuid":"353923c8-fc11-42a8-8b76-dbd4802eafb0","changeType":"insert","entity":"invoice","entityId":"1579","eventName":"invoice.add_draft","extraData":{"entity":{"id":1579,"clientId":136,"number":"001536","createdDate":"2025-02-22T10:00:01-0600","dueDate":"2025-03-08T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-20T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1582,"type":"service","label":"INTERMEDIO 21\/01\/2025 \u2013 20\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":112,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Mus","clientLastName":"Tafah","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"22 Yucat\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-22 16:00:15.696111] [debug] Adición de borrador de Factura + +[2025-02-22 16:00:15.696156] [debug] {"uuid":"353923c8-fc11-42a8-8b76-dbd4802eafb0","changeType":"insert","entity":"invoice","entityId":1579,"message":null,"clientId":136,"eventName":"invoice.add_draft","clientData":{"id":136,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"22 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Yucat\u00e1n 22, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-18T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Mus","lastName":"Tafah","username":null,"contacts":[{"id":140,"clientId":136,"email":"elmus@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-3833.33,"accountCredit":0,"accountOutstanding":3833.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1571597,"addressGpsLon":-100.9367744,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1579,"clientId":136,"number":"001536","createdDate":"2025-02-22T10:00:01-0600","dueDate":"2025-03-08T10:00:01-0600","emailSentDate":"2025-02-22T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-02-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1582,"type":"service","label":"INTERMEDIO 21\/01\/2025 \u2013 20\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":112,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Mus","clientLastName":"Tafah","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"22 Yucat\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-22 16:00:15.696192] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-22 16:00:15.696202] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [] + +Nombre del cliente que se va a actualizar: El Mus Tafah + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"El Mus Tafah","custom_fields":{"Cliente":136,"Domicilio":"\ud83d\udccd Yucat\u00e1n 22, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 El Mus Tafah","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/136","Saldo Actual":"\ud83d\udcb23833.33 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"136\",\"Domicilio\": \"\ud83d\udccd Yucat\u00e1n 22, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 El Mus Tafah\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/136\",\"Saldo Actual\": \"\ud83d\udcb23833.33 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 22\/02\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/02\/2025 10:00\",\"Clabe Interbancaria\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 22\/02\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/02\/2025 10:00","Clabe Interbancaria":null}} + +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"El Mus Tafah","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-02-22T08:51:03Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Nombre":"👤 El Mus Tafah","Clabe Interbancaria":"002180822750421052","Monto Ultimo Pago":"💲 ","Estado":"🔴 Suspendido","Cliente":"136","Domicilio":"📍 Yucatán 22, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Fecha Ultimo Pago":"📆💸 22/02/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Saldo Actual":"💲3833.33 pendientes","Fecha Ultima Actualizacion":"📆🔄️ 22/02/2025 10:00","Resumen":"{\"Cliente\": \"136\",\"Domicilio\": \"📍 Yucatán 22, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 El Mus Tafah\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/136\",\"Saldo Actual\": \"💲3833.33 pendientes\",\"Monto Ultimo Pago\": \"💲 \",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 22/02/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 22/02/2025 10:00\",\"Clabe Interbancaria\": \"\"}","URL":"🌐 https://sistema.siip.mx/crm/client/136","user name":"Daniel Humberto 🐁"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-22 16:00:17.684662] [notice] Logging level set to:debug +[2025-02-22 16:00:17.827779] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-22 16:00:17.827837] [debug] Valor de JSON: {"uuid":"4ee21d3b-5996-4fb4-93df-a7ce4d7ff3d6","changeType":"draft_approved","entity":"invoice","entityId":"1579","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1579,"clientId":136,"number":"001536","createdDate":"2025-02-22T10:00:01-0600","dueDate":"2025-03-08T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-20T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1582,"type":"service","label":"INTERMEDIO 21\/01\/2025 \u2013 20\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":112,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Mus","clientLastName":"Tafah","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"22 Yucat\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-22 16:00:17.827960] [debug] Aprobación de Factura + +[2025-02-22 16:00:17.828003] [debug] {"uuid":"4ee21d3b-5996-4fb4-93df-a7ce4d7ff3d6","changeType":"draft_approved","entity":"invoice","entityId":1579,"message":null,"clientId":136,"eventName":"invoice.draft_approved","clientData":{"id":136,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"22 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Yucat\u00e1n 22, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-18T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Mus","lastName":"Tafah","username":null,"contacts":[{"id":140,"clientId":136,"email":"elmus@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-3833.33,"accountCredit":0,"accountOutstanding":3833.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1571597,"addressGpsLon":-100.9367744,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1579,"clientId":136,"number":"001536","createdDate":"2025-02-22T10:00:01-0600","dueDate":"2025-03-08T10:00:01-0600","emailSentDate":"2025-02-22T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-02-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1582,"type":"service","label":"INTERMEDIO 21\/01\/2025 \u2013 20\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":112,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Mus","clientLastName":"Tafah","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"22 Yucat\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-22 16:00:17.828041] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-22 16:00:17.828054] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [] + +Nombre del cliente que se va a actualizar: El Mus Tafah + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"El Mus Tafah","custom_fields":{"Cliente":136,"Domicilio":"\ud83d\udccd Yucat\u00e1n 22, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 El Mus Tafah","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/136","Saldo Actual":"\ud83d\udcb23833.33 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"136\",\"Domicilio\": \"\ud83d\udccd Yucat\u00e1n 22, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 El Mus Tafah\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/136\",\"Saldo Actual\": \"\ud83d\udcb23833.33 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 22\/02\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/02\/2025 10:00\",\"Clabe Interbancaria\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 22\/02\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 22\/02\/2025 10:00","Clabe Interbancaria":null}} + +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"El Mus Tafah","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-02-22T08:51:03Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Nombre":"👤 El Mus Tafah","Clabe Interbancaria":"002180822750421052","Monto Ultimo Pago":"💲 ","Estado":"🔴 Suspendido","Cliente":"136","Domicilio":"📍 Yucatán 22, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Fecha Ultimo Pago":"📆💸 22/02/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Saldo Actual":"💲3833.33 pendientes","Fecha Ultima Actualizacion":"📆🔄️ 22/02/2025 10:00","Resumen":"{\"Cliente\": \"136\",\"Domicilio\": \"📍 Yucatán 22, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 El Mus Tafah\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/136\",\"Saldo Actual\": \"💲3833.33 pendientes\",\"Monto Ultimo Pago\": \"💲 \",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 22/02/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 22/02/2025 10:00\",\"Clabe Interbancaria\": \"\"}","URL":"🌐 https://sistema.siip.mx/crm/client/136","user name":"Daniel Humberto 🐁"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-22 17:34:32.372397] [notice] Logging level set to:debug +[2025-02-22 17:34:32.397605] [debug] valor el evento recibido por webhook: job.add + +[2025-02-22 17:34:32.397695] [debug] Valor de JSON: {"uuid":"871a7010-d4e5-40c0-b0a6-0163f1ce2403","changeType":"insert","entity":"job","entityId":"25","eventName":"job.add","extraData":{"entity":{"id":25,"title":"Tarea de pruebas para notificaciones","description":"Es una prueba para el dany boy","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":null}} + +[2025-02-22 17:34:32.397906] [debug] Se ha agregado un nuevo trabajo + +[2025-02-22 17:34:32.397922] [warning] El campo assignedUserId no existe en los datos del evento +[2025-02-22 17:34:32.535746] [notice] Logging level set to:debug +[2025-02-22 17:34:32.568083] [debug] valor el evento recibido por webhook: ticket.edit + +[2025-02-22 17:34:32.568165] [debug] Valor de JSON: {"uuid":"269a492f-b195-4b6f-8864-4ff28577c0b6","changeType":"edit","entity":"ticket","entityId":"12","eventName":"ticket.edit","extraData":{"entity":{"id":12,"subject":"CLIENTE NO TIENE INTERNET","clientId":2,"assignedGroupId":null,"assignedUserId":null,"createdAt":"2025-01-16T13:17:39-0600","emailFromAddress":null,"emailFromName":null,"status":0,"public":false,"lastActivity":"2025-02-22T17:34:32+0000","lastCommentAt":"2025-01-16T13:17:39-0600","isLastActivityByClient":false,"assignedJobIds":[21,23,19,20,25],"phoneFrom":null,"tags":[],"activity":[{"id":43,"ticketId":12,"userId":1015,"public":false,"createdAt":"2025-01-16T13:17:39-0600","assignment":null,"clientAssignment":null,"statusChange":null,"subjectChange":null,"jobAssignment":null,"groupAssignment":null,"type":"comment","comment":{"id":null,"body":"EL CLIENTE DICE QUE YA REINICI\u00d3 EL M\u00d3DEM","emailFromAddress":null,"emailFromName":null,"phoneFrom":null,"attachments":[]}},{"id":44,"ticketId":12,"userId":1015,"public":false,"createdAt":"2025-01-16T13:18:24-0600","assignment":null,"clientAssignment":null,"statusChange":null,"subjectChange":null,"jobAssignment":{"assignedJobId":19,"type":"add"},"groupAssignment":null,"type":"assignment_job","comment":null},{"id":45,"ticketId":12,"userId":1015,"public":false,"createdAt":"2025-01-20T04:00:52-0600","assignment":null,"clientAssignment":null,"statusChange":null,"subjectChange":null,"jobAssignment":{"assignedJobId":20,"type":"add"},"groupAssignment":null,"type":"assignment_job","comment":null},{"id":46,"ticketId":12,"userId":1015,"public":false,"createdAt":"2025-01-21T08:41:15-0600","assignment":null,"clientAssignment":null,"statusChange":null,"subjectChange":null,"jobAssignment":{"assignedJobId":21,"type":"add"},"groupAssignment":null,"type":"assignment_job","comment":null},{"id":49,"ticketId":12,"userId":1015,"public":false,"createdAt":"2025-01-23T04:42:37-0600","assignment":null,"clientAssignment":null,"statusChange":null,"subjectChange":null,"jobAssignment":{"assignedJobId":23,"type":"add"},"groupAssignment":null,"type":"assignment_job","comment":null},{"id":52,"ticketId":12,"userId":1015,"public":false,"createdAt":"2025-02-22T11:34:32-0600","assignment":null,"clientAssignment":null,"statusChange":null,"subjectChange":null,"jobAssignment":{"assignedJobId":25,"type":"add"},"groupAssignment":null,"type":"assignment_job","comment":null}]},"entityBeforeEdit":{"id":12,"subject":"CLIENTE NO TIENE INTERNET","clientId":2,"assignedGroupId":null,"assignedUserId":null,"createdAt":"2025-01-16T13:17:39-0600","emailFromAddress":null,"emailFromName":null,"status":0,"public":false,"lastActivity":"2025-01-23T04:42:37-0600","lastCommentAt":"2025-01-16T13:17:39-0600","isLastActivityByClient":false,"assignedJobIds":[21,23,19,20],"phoneFrom":null,"tags":[],"activity":[{"id":43,"ticketId":12,"userId":1015,"public":false,"createdAt":"2025-01-16T13:17:39-0600","assignment":null,"clientAssignment":null,"statusChange":null,"subjectChange":null,"jobAssignment":null,"groupAssignment":null,"type":"comment","comment":{"id":null,"body":"EL CLIENTE DICE QUE YA REINICI\u00d3 EL M\u00d3DEM","emailFromAddress":null,"emailFromName":null,"phoneFrom":null,"attachments":[]}},{"id":44,"ticketId":12,"userId":1015,"public":false,"createdAt":"2025-01-16T13:18:24-0600","assignment":null,"clientAssignment":null,"statusChange":null,"subjectChange":null,"jobAssignment":{"assignedJobId":19,"type":"add"},"groupAssignment":null,"type":"assignment_job","comment":null},{"id":45,"ticketId":12,"userId":1015,"public":false,"createdAt":"2025-01-20T04:00:52-0600","assignment":null,"clientAssignment":null,"statusChange":null,"subjectChange":null,"jobAssignment":{"assignedJobId":20,"type":"add"},"groupAssignment":null,"type":"assignment_job","comment":null},{"id":46,"ticketId":12,"userId":1015,"public":false,"createdAt":"2025-01-21T08:41:15-0600","assignment":null,"clientAssignment":null,"statusChange":null,"subjectChange":null,"jobAssignment":{"assignedJobId":21,"type":"add"},"groupAssignment":null,"type":"assignment_job","comment":null},{"id":49,"ticketId":12,"userId":1015,"public":false,"createdAt":"2025-01-23T04:42:37-0600","assignment":null,"clientAssignment":null,"statusChange":null,"subjectChange":null,"jobAssignment":{"assignedJobId":23,"type":"add"},"groupAssignment":null,"type":"assignment_job","comment":null},{"id":52,"ticketId":12,"userId":1015,"public":false,"createdAt":"2025-02-22T11:34:32-0600","assignment":null,"clientAssignment":null,"statusChange":null,"subjectChange":null,"jobAssignment":{"assignedJobId":25,"type":"add"},"groupAssignment":null,"type":"assignment_job","comment":null}]}}} + +[2025-02-22 17:34:32.685445] [notice] Logging level set to:debug +[2025-02-22 17:34:32.714812] [debug] valor el evento recibido por webhook: job.edit + +[2025-02-22 17:34:32.714850] [debug] Valor de JSON: {"uuid":"afc3ba36-0a44-439a-8904-7291f748d74f","changeType":"edit","entity":"job","entityId":"25","eventName":"job.edit","extraData":{"entity":{"id":25,"title":"Tarea de pruebas para notificaciones","description":"Es una prueba para el dany boy","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":25,"title":"Tarea de pruebas para notificaciones","description":"Es una prueba para el dany boy","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-02-22 17:34:32.714937] [debug] Se actualiza un trabajo + +[2025-02-22 17:34:32.714951] [debug] Valor de json_data: {"uuid":"afc3ba36-0a44-439a-8904-7291f748d74f","changeType":"edit","entity":"job","entityId":"25","eventName":"job.edit","extraData":{"entity":{"id":25,"title":"Tarea de pruebas para notificaciones","description":"Es una prueba para el dany boy","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":25,"title":"Tarea de pruebas para notificaciones","description":"Es una prueba para el dany boy","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-02-22 17:34:32.714960] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-02-22 17:34:32.714967] [debug] Los datos entityBeforeEdit y entity contienen el campo assignedUserId +[2025-02-22 17:34:32.714975] [debug] No hubo cambio en el instalador ni en la fecha +[2025-02-22 17:35:00.071139] [notice] Logging level set to:debug +[2025-02-22 17:35:00.101226] [debug] valor el evento recibido por webhook: job.edit + +[2025-02-22 17:35:00.101265] [debug] Valor de JSON: {"uuid":"cb826e3a-971f-42c0-8b62-dc717bc35d6d","changeType":"edit","entity":"job","entityId":"25","eventName":"job.edit","extraData":{"entity":{"id":25,"title":"Tarea de pruebas para notificaciones","description":"Es una prueba para el dany boy","assignedUserId":1015,"clientId":2,"date":"2025-02-22T11:34:59-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":25,"title":"Tarea de pruebas para notificaciones","description":"Es una prueba para el dany boy","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-02-22 17:35:00.101464] [debug] Se actualiza un trabajo + +[2025-02-22 17:35:00.101483] [debug] Valor de json_data: {"uuid":"cb826e3a-971f-42c0-8b62-dc717bc35d6d","changeType":"edit","entity":"job","entityId":"25","eventName":"job.edit","extraData":{"entity":{"id":25,"title":"Tarea de pruebas para notificaciones","description":"Es una prueba para el dany boy","assignedUserId":1015,"clientId":2,"date":"2025-02-22T11:34:59-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":25,"title":"Tarea de pruebas para notificaciones","description":"Es una prueba para el dany boy","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-02-22 17:35:00.101490] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-02-22 17:35:00.101499] [debug] Los datos entityBeforeEdit y entity contienen el campo assignedUserId +[2025-02-22 17:35:00.101506] [debug] El instalador cambió de null a un valor +[2025-02-22 17:35:00.101521] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"cb826e3a-971f-42c0-8b62-dc717bc35d6d","changeType":"edit","entity":"job","entityId":"25","eventName":"job.edit","extraData":{"entity":{"id":25,"title":"Tarea de pruebas para notificaciones","description":"Es una prueba para el dany boy","assignedUserId":1015,"clientId":2,"date":"2025-02-22T11:34:59-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":25,"title":"Tarea de pruebas para notificaciones","description":"Es una prueba para el dany boy","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-02-22 17:35:00.101527] [debug] Valor de $clientId en verifyJobActionToDo: 2 + +[2025-02-22 17:35:00.101535] [debug] Valor de $installerId en verifyJobActionToDo: 1015 + +[2025-02-22 17:35:00.101541] [debug] Valor de $jobId en verifyJobActionToDo: 25 + +[2025-02-22 17:35:00.101591] [debug] Valor de $installersData en verifyJobActionToDo: { + "instaladores": [ + { + "id": 1019, + "nombre": "Mucio Robledo", + "whatsapp": "4181878106" + }, + { + "id": 1173, + "nombre": "Angel Arvizu", + "whatsapp": "4181878106" + }, + { + "id": 1172, + "nombre": "Juan Rostro", + "whatsapp": "4181878106" + }, + { + "id": 1015, + "nombre": "Daniel Humberto", + "whatsapp": "4181878106" + } + ] +} + +[2025-02-22 17:35:00.138951] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1015,"unmsId":"0b6b2233-b5ad-4b2c-a9cd-c2247f73b6bb","email":"dhsv.141089@gmail.com","firstName":"Daniel Humberto ","lastName":"Soto Villegas","username":"danielhumberto","avatarColor":"#00acc1","isActive":true} + +[2025-02-22 17:35:00.138989] [debug] Número de WhatsApp del Instalador: 4181878106 + +[2025-02-22 17:35:00.170238] [debug] Valor de $installerFullName: Daniel Humberto Soto Villegas + +[2025-02-22 17:35:00.237719] [debug] Valor de $arrayClientCRM en verifyJobActionToDo: {"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-600,"accountCredit":0,"accountOutstanding":600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false} + +[2025-02-22 17:35:00.237790] [debug] Dirección completa: Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México + +[2025-02-22 17:35:00.237801] [debug] URL de Google Maps: https://www.google.com/maps?q=21.1564209,-100.9384185 + +[2025-02-22 17:35:00.237888] [debug] Valor de $arrayPhones en verifyJobActionToDo: {"WhatsApp":["5214181878106","5214181817609"]} + +[2025-02-22 17:35:00.237900] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181817609 + +[2025-02-22 17:35:00.237910] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181817609"] + +[2025-02-22 17:35:00.237988] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181817609"] + +[2025-02-22 17:35:00.237998] [debug] Valor de $resultadoFinalNumerosCliente en verifyJobActionToDo: 5214181878106, 5214181817609 + +[2025-02-22 17:35:00.238020] [debug] Se encontró un tipo de contacto whatsapp + +Enviando mensaje de trabajo para el cliente + +Datos de la notificación de trabajo: {"clientFullName":"Daniel Humberto Soto Villegas el boy","jobId":"25","date":"22\/02\/2025 a las 11:34 AM aproximadamente","installerName":"Daniel Humberto Soto Villegas"} + +Debugging: reprogramming = false, changeInstaller = false + +Enviando notificación normal de visita técnica al cliente, valor de reprogramming y valor de changeInstaller + +La cadena CURL que se envia es: { + "to": "5214181878106", + "from": "whatsapp", + "type": "text", + "content": { + "text": "S/M" + }, + "template_values": ["*Daniel Humberto Soto Villegas el boy*", "*#25*", "*22/02/2025 a las 11:34 AM aproximadamente*", "*Daniel Humberto Soto Villegas*"], + "template_uuid": "c0ef8228b50a4d9690a2e87bc11e9ab3", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"363717c78b5c4c979ac38e2948a3f40e","status":"enqueued"}} +La notificación fue enviada correctamente con estado: enqueued + +[2025-02-22 17:35:01.108962] [info] Notificación enviada correctamente al contacto 5214181878106 después de 1 intento(s). + +Enviando mensaje de trabajo para el cliente + +Datos de la notificación de trabajo: {"clientFullName":"Daniel Humberto Soto Villegas el boy","jobId":"25","date":"22\/02\/2025 a las 11:34 AM aproximadamente","installerName":"Daniel Humberto Soto Villegas"} + +Debugging: reprogramming = false, changeInstaller = false + +Enviando notificación normal de visita técnica al cliente, valor de reprogramming y valor de changeInstaller + +La cadena CURL que se envia es: { + "to": "5214181817609", + "from": "whatsapp", + "type": "text", + "content": { + "text": "S/M" + }, + "template_values": ["*Daniel Humberto Soto Villegas el boy*", "*#25*", "*22/02/2025 a las 11:34 AM aproximadamente*", "*Daniel Humberto Soto Villegas*"], + "template_uuid": "c0ef8228b50a4d9690a2e87bc11e9ab3", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"03837a4cac944a089508e72e6a698c85","status":"enqueued"}} +La notificación fue enviada correctamente con estado: enqueued + +[2025-02-22 17:35:01.934623] [info] Notificación enviada correctamente al contacto 5214181817609 después de 1 intento(s). + +[2025-02-22 17:35:01.934676] [debug] Valor de $installerWhatsApp en verifyJobActionToDo: 4181878106 + +Enviando mensaje de tarea al instalador + +Datos de la notificación de tarea: {"installerName":"Daniel Humberto Soto Villegas","clientFullName":"[2] Daniel Humberto Soto Villegas el boy","jobId":"25","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181817609","date":"22\/02\/2025 a las 11:34 AM aproximadamente","jobDescription":"Es una prueba para el dany boy","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} + +Enviando notificación normal de asignación de tarea al instalador, valor de reprogramming y valor de changeInstaller + +La cadena CURL que se envia es: { + "to": "5214181878106", + "from": "whatsapp", + "type": "text", + "content": { + "text": "S/M" + }, + "template_values": ["Daniel Humberto Soto Villegas", "*#25*", "[2] Daniel Humberto Soto Villegas el boy", "Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México", "5214181878106, 5214181817609", "22/02/2025 a las 11:34 AM aproximadamente", "Es una prueba para el dany boy", "https://www.google.com/maps?q=21.1564209,-100.9384185"], + "template_uuid": "b6663394265e4bcdb215369aa9ba0f21", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"bad20e41ffbf41b3aadfeb94839423cd","status":"enqueued"}} +La notificación fue enviada correctamente con estado: enqueued + +[2025-02-24 6:25:03.761882] [notice] Logging level set to:debug +[2025-02-24 6:25:03.941956] [debug] valor el evento recibido por webhook: invoice.overdue + +[2025-02-24 6:25:03.942013] [debug] Valor de JSON: {"uuid":"d944a397-8dd7-4d86-a669-0e690f88e52f","changeType":"overdue","entity":"invoice","entityId":"1553","eventName":"invoice.overdue","extraData":{"entity":{"id":1553,"clientId":118,"number":"001517","createdDate":"2025-02-09T10:00:01-0600","dueDate":"2025-02-23T10:00:01-0600","emailSentDate":"2025-02-24T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-02-07T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1556,"type":"service","label":"plan300 09\/01\/2025 \u2013 08\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":105,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Toro Sentado","clientLastName":"Ram\u00edrez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"56 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-24 6:25:03.942214] [debug] Factura vencida + +[2025-02-24 6:25:03.942260] [debug] datos del notification para el invoice overdue:{"uuid":"d944a397-8dd7-4d86-a669-0e690f88e52f","changeType":"overdue","entity":"invoice","entityId":1553,"message":null,"clientId":118,"eventName":"invoice.overdue","clientData":{"id":118,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"56 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 56, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-04-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Toro Sentado","lastName":"Ram\u00edrez","username":null,"contacts":[{"id":122,"clientId":118,"email":"pepeeltoro141089@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":119,"clientId":118,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180173419260258","clientZoneVisible":true}],"accountBalance":-2700,"accountCredit":0,"accountOutstanding":2700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#fb8c00","addressGpsLat":21.1572733,"addressGpsLon":-100.9403274,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1553,"clientId":118,"number":"001517","createdDate":"2025-02-09T10:00:01-0600","dueDate":"2025-02-23T10:00:01-0600","emailSentDate":"2025-02-24T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-02-07T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1556,"type":"service","label":"plan300 09\/01\/2025 \u2013 08\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":105,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Toro Sentado","clientLastName":"Ram\u00edrez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"56 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-24 6:25:03.942301] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** + +[2025-02-24 6:25:03.942405] [debug] Numero de cel obtenido + +[2025-02-24 6:25:03.942416] [warning] No se encontró un teléfono celular válido para el cliente: 118 +[2025-02-24 8:22:10.874439] [notice] Logging level set to:debug +[2025-02-24 8:22:10.950189] [debug] valor el evento recibido por webhook: client.edit + +[2025-02-24 8:22:10.950279] [debug] Valor de JSON: {"uuid":"d5025e91-b7a4-4566-9a8c-fcbc13d1f69b","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-600,"accountCredit":0,"accountOutstanding":600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-600,"accountCredit":0,"accountOutstanding":600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} + +[2025-02-24 8:22:10.950552] [debug] Se actualiza a un cliente +[2025-02-24 8:22:10.950604] [debug] Valor de json_data: {"uuid":"d5025e91-b7a4-4566-9a8c-fcbc13d1f69b","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-600,"accountCredit":0,"accountOutstanding":600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-600,"accountCredit":0,"accountOutstanding":600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} +[2025-02-24 8:22:10.950637] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-02-24 8:22:10.950647] [debug] Los datos entityBeforeEdit y entity contienen el campo isLead +[2025-02-24 8:22:10.950655] [debug] No hubo cambio de true a false en el campo isLead +[2025-02-24 8:22:10.950663] [debug] Validando claves dentro de entity y entityBeforeEdit +[2025-02-24 8:22:10.950670] [debug] Los datos entity y entityBeforeEdit contienen el campo tags +[2025-02-24 8:22:10.950676] [debug] Validando si la etiqueta STRIPE existe en entity pero no en entityBeforeEdit +[2025-02-24 8:22:10.950685] [debug] La etiqueta STRIPE no se agregó al cliente +[2025-02-24 8:22:10.950716] [debug] {"uuid":"d5025e91-b7a4-4566-9a8c-fcbc13d1f69b","changeType":"edit","entity":"client","entityId":2,"message":null,"clientId":2,"eventName":"client.edit","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-600,"accountCredit":0,"accountOutstanding":600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null} + +[2025-02-24 8:22:10.950798] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-24 8:22:10.950812] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":588,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-02-20T13:31:49-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":665,"invoiceId":1566,"paymentId":588,"creditNoteId":null,"refundId":null,"amount":100}],"creditAmount":0,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2600 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 100","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2600 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 100\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 20\/02\/2025 13:31 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 02:22\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 20\/02\/2025 13:31 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 02:22","Clabe Interbancaria":"0021804341999569810"}} + +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas el boy","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-02-23T13:05:58Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":["Suspendido"],"assignedUser":null,"customFields":{"Acciones":"NOBOT-SIIP","user entry point":"inbound_message","Nombre":"👤 Daniel Humberto Soto Villegas el boy","Clabe Interbancaria":"0021804341999569810","Monto Ultimo Pago":"💲 100","Estado":"🟢 Activo ","Cliente":"2","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Fecha Ultimo Pago":"📆💸 20/02/2025 13:31 con Tarjeta de crédito Stripe 💳","Saldo Actual":"💲600 pendientes","Fecha Ultima Actualizacion":"📆🔄️ 24/02/2025 02:22","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas el boy\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/2\",\"Saldo Actual\": \"💲600 pendientes\",\"Monto Ultimo Pago\": \"💲 100\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 20/02/2025 13:31 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 24/02/2025 02:22\",\"Clabe Interbancaria\": \"0021804341999569810\"}","URL":"🌐 https://sistema.siip.mx/crm/client/2","user name":"Daniel Humberto 🐁"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-24 8:22:18.013405] [notice] Logging level set to:debug +[2025-02-24 8:22:18.039717] [debug] valor el evento recibido por webhook: job.edit + +[2025-02-24 8:22:18.039856] [debug] Valor de JSON: {"uuid":"0b4ef5dd-469e-4369-9b07-2fd0a122e34f","changeType":"edit","entity":"job","entityId":"25","eventName":"job.edit","extraData":{"entity":{"id":25,"title":"Tarea de pruebas para notificaciones","description":"Es una prueba para el dany boy","assignedUserId":1015,"clientId":2,"date":"2025-02-22T11:34:59-0600","duration":60,"status":2,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":25,"title":"Tarea de pruebas para notificaciones","description":"Es una prueba para el dany boy","assignedUserId":1015,"clientId":2,"date":"2025-02-22T11:34:59-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-02-24 8:22:18.040011] [debug] Se actualiza un trabajo + +[2025-02-24 8:22:18.040066] [debug] Valor de json_data: {"uuid":"0b4ef5dd-469e-4369-9b07-2fd0a122e34f","changeType":"edit","entity":"job","entityId":"25","eventName":"job.edit","extraData":{"entity":{"id":25,"title":"Tarea de pruebas para notificaciones","description":"Es una prueba para el dany boy","assignedUserId":1015,"clientId":2,"date":"2025-02-22T11:34:59-0600","duration":60,"status":2,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":25,"title":"Tarea de pruebas para notificaciones","description":"Es una prueba para el dany boy","assignedUserId":1015,"clientId":2,"date":"2025-02-22T11:34:59-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-02-24 8:22:18.040103] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-02-24 8:22:18.040139] [debug] Los datos entityBeforeEdit y entity contienen el campo assignedUserId +[2025-02-24 8:22:18.040175] [debug] No hubo cambio en el instalador ni en la fecha +[2025-02-24 8:23:06.959151] [notice] Logging level set to:debug +[2025-02-24 8:23:06.986632] [debug] valor el evento recibido por webhook: job.edit + +[2025-02-24 8:23:06.986764] [debug] Valor de JSON: {"uuid":"c8d1ab5b-3fee-428b-abc9-40c6fe8a8062","changeType":"edit","entity":"job","entityId":"25","eventName":"job.edit","extraData":{"entity":{"id":25,"title":"Tarea de pruebas para notificaciones","description":"Es una prueba para el dany boy","assignedUserId":1015,"clientId":2,"date":"2025-02-22T11:34:59-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":25,"title":"Tarea de pruebas para notificaciones","description":"Es una prueba para el dany boy","assignedUserId":1015,"clientId":2,"date":"2025-02-22T11:34:59-0600","duration":60,"status":2,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-02-24 8:23:06.987041] [debug] Se actualiza un trabajo + +[2025-02-24 8:23:06.987103] [debug] Valor de json_data: {"uuid":"c8d1ab5b-3fee-428b-abc9-40c6fe8a8062","changeType":"edit","entity":"job","entityId":"25","eventName":"job.edit","extraData":{"entity":{"id":25,"title":"Tarea de pruebas para notificaciones","description":"Es una prueba para el dany boy","assignedUserId":1015,"clientId":2,"date":"2025-02-22T11:34:59-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":25,"title":"Tarea de pruebas para notificaciones","description":"Es una prueba para el dany boy","assignedUserId":1015,"clientId":2,"date":"2025-02-22T11:34:59-0600","duration":60,"status":2,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-02-24 8:23:06.987143] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-02-24 8:23:06.987179] [debug] Los datos entityBeforeEdit y entity contienen el campo assignedUserId +[2025-02-24 8:23:06.987215] [debug] No hubo cambio en el instalador ni en la fecha +[2025-02-24 8:23:52.452259] [notice] Logging level set to:debug +[2025-02-24 8:23:52.476696] [debug] valor el evento recibido por webhook: job.add + +[2025-02-24 8:23:52.476865] [debug] Valor de JSON: {"uuid":"743ddf42-329b-4564-98bb-9f3c70b5a5e7","changeType":"insert","entity":"job","entityId":"26","eventName":"job.add","extraData":{"entity":{"id":26,"title":"HOLA TAREA","description":"SALUDAR","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":null}} + +[2025-02-24 8:23:52.477112] [debug] Se ha agregado un nuevo trabajo + +[2025-02-24 8:23:52.477286] [warning] El campo assignedUserId no existe en los datos del evento +[2025-02-24 8:23:52.589831] [notice] Logging level set to:debug +[2025-02-24 8:23:52.618637] [debug] valor el evento recibido por webhook: ticket.edit + +[2025-02-24 8:23:52.618724] [debug] Valor de JSON: {"uuid":"a418188e-fc20-4f2f-8f28-7f97c60d319d","changeType":"edit","entity":"ticket","entityId":"12","eventName":"ticket.edit","extraData":{"entity":{"id":12,"subject":"CLIENTE NO TIENE INTERNET","clientId":2,"assignedGroupId":null,"assignedUserId":null,"createdAt":"2025-01-16T13:17:39-0600","emailFromAddress":null,"emailFromName":null,"status":0,"public":false,"lastActivity":"2025-02-24T08:23:52+0000","lastCommentAt":"2025-01-16T13:17:39-0600","isLastActivityByClient":false,"assignedJobIds":[21,23,19,20,25,26],"phoneFrom":null,"tags":[],"activity":[{"id":43,"ticketId":12,"userId":1015,"public":false,"createdAt":"2025-01-16T13:17:39-0600","assignment":null,"clientAssignment":null,"statusChange":null,"subjectChange":null,"jobAssignment":null,"groupAssignment":null,"type":"comment","comment":{"id":null,"body":"EL CLIENTE DICE QUE YA REINICI\u00d3 EL M\u00d3DEM","emailFromAddress":null,"emailFromName":null,"phoneFrom":null,"attachments":[]}},{"id":44,"ticketId":12,"userId":1015,"public":false,"createdAt":"2025-01-16T13:18:24-0600","assignment":null,"clientAssignment":null,"statusChange":null,"subjectChange":null,"jobAssignment":{"assignedJobId":19,"type":"add"},"groupAssignment":null,"type":"assignment_job","comment":null},{"id":45,"ticketId":12,"userId":1015,"public":false,"createdAt":"2025-01-20T04:00:52-0600","assignment":null,"clientAssignment":null,"statusChange":null,"subjectChange":null,"jobAssignment":{"assignedJobId":20,"type":"add"},"groupAssignment":null,"type":"assignment_job","comment":null},{"id":46,"ticketId":12,"userId":1015,"public":false,"createdAt":"2025-01-21T08:41:15-0600","assignment":null,"clientAssignment":null,"statusChange":null,"subjectChange":null,"jobAssignment":{"assignedJobId":21,"type":"add"},"groupAssignment":null,"type":"assignment_job","comment":null},{"id":49,"ticketId":12,"userId":1015,"public":false,"createdAt":"2025-01-23T04:42:37-0600","assignment":null,"clientAssignment":null,"statusChange":null,"subjectChange":null,"jobAssignment":{"assignedJobId":23,"type":"add"},"groupAssignment":null,"type":"assignment_job","comment":null},{"id":52,"ticketId":12,"userId":1015,"public":false,"createdAt":"2025-02-22T11:34:32-0600","assignment":null,"clientAssignment":null,"statusChange":null,"subjectChange":null,"jobAssignment":{"assignedJobId":25,"type":"add"},"groupAssignment":null,"type":"assignment_job","comment":null},{"id":53,"ticketId":12,"userId":1015,"public":false,"createdAt":"2025-02-24T02:23:52-0600","assignment":null,"clientAssignment":null,"statusChange":null,"subjectChange":null,"jobAssignment":{"assignedJobId":26,"type":"add"},"groupAssignment":null,"type":"assignment_job","comment":null}]},"entityBeforeEdit":{"id":12,"subject":"CLIENTE NO TIENE INTERNET","clientId":2,"assignedGroupId":null,"assignedUserId":null,"createdAt":"2025-01-16T13:17:39-0600","emailFromAddress":null,"emailFromName":null,"status":0,"public":false,"lastActivity":"2025-02-22T11:34:32-0600","lastCommentAt":"2025-01-16T13:17:39-0600","isLastActivityByClient":false,"assignedJobIds":[21,23,19,20,25],"phoneFrom":null,"tags":[],"activity":[{"id":43,"ticketId":12,"userId":1015,"public":false,"createdAt":"2025-01-16T13:17:39-0600","assignment":null,"clientAssignment":null,"statusChange":null,"subjectChange":null,"jobAssignment":null,"groupAssignment":null,"type":"comment","comment":{"id":null,"body":"EL CLIENTE DICE QUE YA REINICI\u00d3 EL M\u00d3DEM","emailFromAddress":null,"emailFromName":null,"phoneFrom":null,"attachments":[]}},{"id":44,"ticketId":12,"userId":1015,"public":false,"createdAt":"2025-01-16T13:18:24-0600","assignment":null,"clientAssignment":null,"statusChange":null,"subjectChange":null,"jobAssignment":{"assignedJobId":19,"type":"add"},"groupAssignment":null,"type":"assignment_job","comment":null},{"id":45,"ticketId":12,"userId":1015,"public":false,"createdAt":"2025-01-20T04:00:52-0600","assignment":null,"clientAssignment":null,"statusChange":null,"subjectChange":null,"jobAssignment":{"assignedJobId":20,"type":"add"},"groupAssignment":null,"type":"assignment_job","comment":null},{"id":46,"ticketId":12,"userId":1015,"public":false,"createdAt":"2025-01-21T08:41:15-0600","assignment":null,"clientAssignment":null,"statusChange":null,"subjectChange":null,"jobAssignment":{"assignedJobId":21,"type":"add"},"groupAssignment":null,"type":"assignment_job","comment":null},{"id":49,"ticketId":12,"userId":1015,"public":false,"createdAt":"2025-01-23T04:42:37-0600","assignment":null,"clientAssignment":null,"statusChange":null,"subjectChange":null,"jobAssignment":{"assignedJobId":23,"type":"add"},"groupAssignment":null,"type":"assignment_job","comment":null},{"id":52,"ticketId":12,"userId":1015,"public":false,"createdAt":"2025-02-22T11:34:32-0600","assignment":null,"clientAssignment":null,"statusChange":null,"subjectChange":null,"jobAssignment":{"assignedJobId":25,"type":"add"},"groupAssignment":null,"type":"assignment_job","comment":null},{"id":53,"ticketId":12,"userId":1015,"public":false,"createdAt":"2025-02-24T02:23:52-0600","assignment":null,"clientAssignment":null,"statusChange":null,"subjectChange":null,"jobAssignment":{"assignedJobId":26,"type":"add"},"groupAssignment":null,"type":"assignment_job","comment":null}]}}} + +[2025-02-24 8:23:52.734153] [notice] Logging level set to:debug +[2025-02-24 8:23:52.764182] [debug] valor el evento recibido por webhook: job.edit + +[2025-02-24 8:23:52.764297] [debug] Valor de JSON: {"uuid":"d0638f8d-2189-446d-b692-79eb921090b9","changeType":"edit","entity":"job","entityId":"26","eventName":"job.edit","extraData":{"entity":{"id":26,"title":"HOLA TAREA","description":"SALUDAR","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":26,"title":"HOLA TAREA","description":"SALUDAR","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-02-24 8:23:52.764591] [debug] Se actualiza un trabajo + +[2025-02-24 8:23:52.764792] [debug] Valor de json_data: {"uuid":"d0638f8d-2189-446d-b692-79eb921090b9","changeType":"edit","entity":"job","entityId":"26","eventName":"job.edit","extraData":{"entity":{"id":26,"title":"HOLA TAREA","description":"SALUDAR","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":26,"title":"HOLA TAREA","description":"SALUDAR","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-02-24 8:23:52.764920] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-02-24 8:23:52.765032] [debug] Los datos entityBeforeEdit y entity contienen el campo assignedUserId +[2025-02-24 8:23:52.765141] [debug] No hubo cambio en el instalador ni en la fecha +[2025-02-24 8:24:03.677439] [notice] Logging level set to:debug +[2025-02-24 8:24:03.704422] [debug] valor el evento recibido por webhook: job.edit + +[2025-02-24 8:24:03.704555] [debug] Valor de JSON: {"uuid":"f0a75084-fdb3-4a34-9f75-28fd13705a30","changeType":"edit","entity":"job","entityId":"26","eventName":"job.edit","extraData":{"entity":{"id":26,"title":"HOLA TAREA","description":"SALUDAR","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":26,"title":"HOLA TAREA","description":"SALUDAR","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-02-24 8:24:03.704699] [debug] Se actualiza un trabajo + +[2025-02-24 8:24:03.704750] [debug] Valor de json_data: {"uuid":"f0a75084-fdb3-4a34-9f75-28fd13705a30","changeType":"edit","entity":"job","entityId":"26","eventName":"job.edit","extraData":{"entity":{"id":26,"title":"HOLA TAREA","description":"SALUDAR","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":26,"title":"HOLA TAREA","description":"SALUDAR","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-02-24 8:24:03.704787] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-02-24 8:24:03.704823] [debug] Los datos entityBeforeEdit y entity contienen el campo assignedUserId +[2025-02-24 8:24:03.704859] [debug] No hubo cambio en el instalador ni en la fecha +[2025-02-24 8:25:01.531712] [notice] Logging level set to:debug +[2025-02-24 8:25:01.615490] [debug] valor el evento recibido por webhook: job.edit + +[2025-02-24 8:25:01.615686] [debug] Valor de JSON: {"uuid":"fe12962a-02e4-40d0-8c91-ff8432cc1d50","changeType":"edit","entity":"job","entityId":"26","eventName":"job.edit","extraData":{"entity":{"id":26,"title":"HOLA TAREA","description":"SALUDAR","assignedUserId":1015,"clientId":2,"date":"2025-02-24T02:25:01-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":26,"title":"HOLA TAREA","description":"SALUDAR","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-02-24 8:25:01.616010] [debug] Se actualiza un trabajo + +[2025-02-24 8:25:01.616075] [debug] Valor de json_data: {"uuid":"fe12962a-02e4-40d0-8c91-ff8432cc1d50","changeType":"edit","entity":"job","entityId":"26","eventName":"job.edit","extraData":{"entity":{"id":26,"title":"HOLA TAREA","description":"SALUDAR","assignedUserId":1015,"clientId":2,"date":"2025-02-24T02:25:01-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":26,"title":"HOLA TAREA","description":"SALUDAR","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} +[2025-02-24 8:25:01.616116] [debug] Validando claves dentro de entityBeforeEdit y entity +[2025-02-24 8:25:01.616153] [debug] Los datos entityBeforeEdit y entity contienen el campo assignedUserId +[2025-02-24 8:25:01.616189] [debug] El instalador cambió de null a un valor +[2025-02-24 8:25:01.616246] [debug] Valor de $jsonNotificationData en verifyJobActionToDo: {"uuid":"fe12962a-02e4-40d0-8c91-ff8432cc1d50","changeType":"edit","entity":"job","entityId":"26","eventName":"job.edit","extraData":{"entity":{"id":26,"title":"HOLA TAREA","description":"SALUDAR","assignedUserId":1015,"clientId":2,"date":"2025-02-24T02:25:01-0600","duration":60,"status":1,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]},"entityBeforeEdit":{"id":26,"title":"HOLA TAREA","description":"SALUDAR","assignedUserId":null,"clientId":2,"date":null,"duration":60,"status":0,"address":"31 Chiapas, Dolores Hidalgo Cuna de la Independencia Nacional, 37800, Mexico","gpsLat":null,"gpsLon":null,"attachments":[],"tasks":[]}}} + +[2025-02-24 8:25:01.616286] [debug] Valor de $clientId en verifyJobActionToDo: 2 + +[2025-02-24 8:25:01.616322] [debug] Valor de $installerId en verifyJobActionToDo: 1015 + +[2025-02-24 8:25:01.616357] [debug] Valor de $jobId en verifyJobActionToDo: 26 + +[2025-02-24 8:25:01.616444] [debug] Valor de $installersData en verifyJobActionToDo: { + "instaladores": [ + { + "id": 1019, + "nombre": "Mucio Robledo", + "whatsapp": "4181878106" + }, + { + "id": 1173, + "nombre": "Angel Arvizu", + "whatsapp": "4181878106" + }, + { + "id": 1172, + "nombre": "Juan Rostro", + "whatsapp": "4181878106" + }, + { + "id": 1015, + "nombre": "Daniel Humberto", + "whatsapp": "4181878106" + } + ] +} + +[2025-02-24 8:25:01.694329] [debug] Valor de $usersInstallers en verifyJobActionToDo: {"id":1015,"unmsId":"0b6b2233-b5ad-4b2c-a9cd-c2247f73b6bb","email":"dhsv.141089@gmail.com","firstName":"Daniel Humberto ","lastName":"Soto Villegas","username":"danielhumberto","avatarColor":"#00acc1","isActive":true} + +[2025-02-24 8:25:01.694473] [debug] Número de WhatsApp del Instalador: 4181878106 + +[2025-02-24 8:25:01.768939] [debug] Valor de $installerFullName: Daniel Humberto Soto Villegas + +[2025-02-24 8:25:01.876064] [debug] Valor de $arrayClientCRM en verifyJobActionToDo: {"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-600,"accountCredit":0,"accountOutstanding":600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false} + +[2025-02-24 8:25:01.879398] [debug] Dirección completa: Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México + +[2025-02-24 8:25:01.879508] [debug] URL de Google Maps: https://www.google.com/maps?q=21.1564209,-100.9384185 + +[2025-02-24 8:25:01.879622] [debug] Valor de $arrayPhones en verifyJobActionToDo: {"WhatsApp":["5214181878106"]} + +[2025-02-24 8:25:01.879668] [debug] Valor de $clientAllPhonesString en verifyJobActionToDo: 5214181878106,5214181817609 + +[2025-02-24 8:25:01.879705] [debug] Valor de $arrayNumeros en verifyJobActionToDo: ["5214181878106","5214181817609"] + +[2025-02-24 8:25:01.879813] [debug] Valor de $resultados en verifyJobActionToDo: ["5214181878106","5214181817609"] + +[2025-02-24 8:25:01.879853] [debug] Valor de $resultadoFinalNumerosCliente en verifyJobActionToDo: 5214181878106, 5214181817609 + +[2025-02-24 8:25:01.879906] [debug] Se encontró un tipo de contacto whatsapp + +Enviando mensaje de trabajo para el cliente + +Datos de la notificación de trabajo: {"clientFullName":"Daniel Humberto Soto Villegas el boy","jobId":"26","date":"24\/02\/2025 a las 02:25 AM aproximadamente","installerName":"Daniel Humberto Soto Villegas"} + +Debugging: reprogramming = false, changeInstaller = false + +Enviando notificación normal de visita técnica al cliente, valor de reprogramming y valor de changeInstaller + +La cadena CURL que se envia es: { + "to": "5214181878106", + "from": "whatsapp", + "type": "text", + "content": { + "text": "S/M" + }, + "template_values": ["*Daniel Humberto Soto Villegas el boy*", "*#26*", "*24/02/2025 a las 02:25 AM aproximadamente*", "*Daniel Humberto Soto Villegas*"], + "template_uuid": "c0ef8228b50a4d9690a2e87bc11e9ab3", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"2400cbf48a1949b193c8a41120076224","status":"enqueued"}} +La notificación fue enviada correctamente con estado: enqueued + +[2025-02-24 8:25:02.712645] [info] Notificación enviada correctamente al contacto 5214181878106 después de 1 intento(s). + +[2025-02-24 8:25:02.712765] [debug] Valor de $installerWhatsApp en verifyJobActionToDo: 4181878106 + +Enviando mensaje de tarea al instalador + +Datos de la notificación de tarea: {"installerName":"Daniel Humberto Soto Villegas","clientFullName":"[2] Daniel Humberto Soto Villegas el boy","jobId":"26","clientAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","clientWhatsApp":"5214181878106, 5214181817609","date":"24\/02\/2025 a las 02:25 AM aproximadamente","jobDescription":"SALUDAR","gmapsLocation":"https:\/\/www.google.com\/maps?q=21.1564209,-100.9384185"} + +Enviando notificación normal de asignación de tarea al instalador, valor de reprogramming y valor de changeInstaller + +La cadena CURL que se envia es: { + "to": "5214181878106", + "from": "whatsapp", + "type": "text", + "content": { + "text": "S/M" + }, + "template_values": ["Daniel Humberto Soto Villegas", "*#26*", "[2] Daniel Humberto Soto Villegas el boy", "Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México", "5214181878106, 5214181817609", "24/02/2025 a las 02:25 AM aproximadamente", "SALUDAR", "https://www.google.com/maps?q=21.1564209,-100.9384185"], + "template_uuid": "b6663394265e4bcdb215369aa9ba0f21", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"abc86ade8c82493bb39af71f6dc9c88d","status":"enqueued"}} +La notificación fue enviada correctamente con estado: enqueued + +[2025-02-24 16:00:04.169246] [notice] Logging level set to:debug +[2025-02-24 16:00:04.394965] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-24 16:00:04.395031] [debug] Valor de JSON: {"uuid":"6c6e745f-10be-478e-b4c4-c4e8bf65bf4c","changeType":"insert","entity":"invoice","entityId":"1580","eventName":"invoice.add_draft","extraData":{"entity":{"id":1580,"clientId":126,"number":"001537","createdDate":"2025-02-24T10:00:01-0600","dueDate":"2025-03-10T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-23T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1583,"type":"service","label":"PREMIUM 24\/01\/2025 \u2013 23\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":108,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL INNU","clientLastName":"RATA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-24 16:00:04.395255] [debug] Adición de borrador de Factura + +[2025-02-24 16:00:04.395317] [debug] {"uuid":"6c6e745f-10be-478e-b4c4-c4e8bf65bf4c","changeType":"insert","entity":"invoice","entityId":1580,"message":null,"clientId":126,"eventName":"invoice.add_draft","clientData":{"id":126,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-05-24T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"DANIEL INNU","lastName":"RATA","username":"dhsv.141089@gmail.com","contacts":[{"id":130,"clientId":126,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":127,"clientId":126,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_QASKG6Z0Hree1h","clientZoneVisible":true},{"id":128,"clientId":126,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180704572078989","clientZoneVisible":true}],"accountBalance":-2100,"accountCredit":0,"accountOutstanding":2100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":"2024-06-07T00:00:00-0600","avatarColor":"#00695c","addressGpsLat":21.156773,"addressGpsLon":-100.9391642,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1580,"clientId":126,"number":"001537","createdDate":"2025-02-24T10:00:01-0600","dueDate":"2025-03-10T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-22T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1583,"type":"service","label":"PREMIUM 24\/01\/2025 \u2013 23\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":108,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL INNU","clientLastName":"RATA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-24 16:00:04.395397] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-24 16:00:04.395411] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":296,"clientId":126,"methodId":"78e84000-9b5b-44a4-8367-da43df86ce34","checkNumber":null,"createdDate":"2024-06-07T13:36:46-0600","amount":2100,"currencyCode":"MXN","note":null,"receiptSentDate":"2024-06-07T13:37:23-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":337,"invoiceId":495,"paymentId":296,"creditNoteId":null,"refundId":null,"amount":700},{"id":338,"invoiceId":613,"paymentId":296,"creditNoteId":null,"refundId":null,"amount":700},{"id":339,"invoiceId":614,"paymentId":296,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}] + +Nombre del cliente que se va a actualizar: DANIEL INNU RATA + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"DANIEL INNU RATA","custom_fields":{"Cliente":126,"Domicilio":"\ud83d\udccd Chiapas, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 DANIEL INNU RATA","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/126","Saldo Actual":"\ud83d\udcb22100 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 2100","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"126\",\"Domicilio\": \"\ud83d\udccd Chiapas, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 DANIEL INNU RATA\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/126\",\"Saldo Actual\": \"\ud83d\udcb22100 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 2100\",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 07\/06\/2024 13:36 con PayPal \ud83c\udf10\ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 10:00\",\"Clabe Interbancaria\": \"002180704572078989\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 07\/06\/2024 13:36 con PayPal \ud83c\udf10\ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 10:00","Clabe Interbancaria":"002180704572078989"}} + +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"DANIEL INNU RATA","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-02-23T13:05:58Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":["Suspendido"],"assignedUser":null,"customFields":{"Acciones":"NOBOT-SIIP","user entry point":"inbound_message","Nombre":"👤 DANIEL INNU RATA","Clabe Interbancaria":"002180704572078989","Estado":"🔴 Suspendido","Cliente":"126","Domicilio":"📍 Chiapas, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Fecha Ultimo Pago":"📆💸 07/06/2024 13:36 con PayPal 🌐💳","Saldo Actual":"💲2100 pendientes","Fecha Ultima Actualizacion":"📆🔄️ 24/02/2025 10:00","Resumen":"{\"Cliente\": \"126\",\"Domicilio\": \"📍 Chiapas, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 DANIEL INNU RATA\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/126\",\"Saldo Actual\": \"💲2100 pendientes\",\"Monto Ultimo Pago\": \"💲 2100\",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 07/06/2024 13:36 con PayPal 🌐💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 24/02/2025 10:00\",\"Clabe Interbancaria\": \"002180704572078989\"}","Monto Ultimo Pago":"💲 2100","URL":"🌐 https://sistema.siip.mx/crm/client/126","user name":"Daniel Humberto 🐁"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-24 16:00:06.444120] [notice] Logging level set to:debug +[2025-02-24 16:00:06.606662] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-24 16:00:06.606723] [debug] Valor de JSON: {"uuid":"b519aa7d-01a3-415a-8c79-866e3cf82cff","changeType":"draft_approved","entity":"invoice","entityId":"1580","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1580,"clientId":126,"number":"001537","createdDate":"2025-02-24T10:00:01-0600","dueDate":"2025-03-10T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-23T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1583,"type":"service","label":"PREMIUM 24\/01\/2025 \u2013 23\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":108,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL INNU","clientLastName":"RATA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-24 16:00:06.606827] [debug] Aprobación de Factura + +[2025-02-24 16:00:06.606878] [debug] {"uuid":"b519aa7d-01a3-415a-8c79-866e3cf82cff","changeType":"draft_approved","entity":"invoice","entityId":1580,"message":null,"clientId":126,"eventName":"invoice.draft_approved","clientData":{"id":126,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-05-24T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"DANIEL INNU","lastName":"RATA","username":"dhsv.141089@gmail.com","contacts":[{"id":130,"clientId":126,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":127,"clientId":126,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_QASKG6Z0Hree1h","clientZoneVisible":true},{"id":128,"clientId":126,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180704572078989","clientZoneVisible":true}],"accountBalance":-2100,"accountCredit":0,"accountOutstanding":2100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":"2024-06-07T00:00:00-0600","avatarColor":"#00695c","addressGpsLat":21.156773,"addressGpsLon":-100.9391642,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1580,"clientId":126,"number":"001537","createdDate":"2025-02-24T10:00:01-0600","dueDate":"2025-03-10T10:00:01-0600","emailSentDate":"2025-02-24T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-02-22T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1583,"type":"service","label":"PREMIUM 24\/01\/2025 \u2013 23\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":108,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL INNU","clientLastName":"RATA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-24 16:00:06.606914] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-24 16:00:06.606925] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":296,"clientId":126,"methodId":"78e84000-9b5b-44a4-8367-da43df86ce34","checkNumber":null,"createdDate":"2024-06-07T13:36:46-0600","amount":2100,"currencyCode":"MXN","note":null,"receiptSentDate":"2024-06-07T13:37:23-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":337,"invoiceId":495,"paymentId":296,"creditNoteId":null,"refundId":null,"amount":700},{"id":338,"invoiceId":613,"paymentId":296,"creditNoteId":null,"refundId":null,"amount":700},{"id":339,"invoiceId":614,"paymentId":296,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}] + +Nombre del cliente que se va a actualizar: DANIEL INNU RATA + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"DANIEL INNU RATA","custom_fields":{"Cliente":126,"Domicilio":"\ud83d\udccd Chiapas, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 DANIEL INNU RATA","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/126","Saldo Actual":"\ud83d\udcb22100 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 2100","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"126\",\"Domicilio\": \"\ud83d\udccd Chiapas, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 DANIEL INNU RATA\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/126\",\"Saldo Actual\": \"\ud83d\udcb22100 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 2100\",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 07\/06\/2024 13:36 con PayPal \ud83c\udf10\ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 10:00\",\"Clabe Interbancaria\": \"002180704572078989\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 07\/06\/2024 13:36 con PayPal \ud83c\udf10\ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 10:00","Clabe Interbancaria":"002180704572078989"}} + +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"DANIEL INNU RATA","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-02-23T13:05:58Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":["Suspendido"],"assignedUser":null,"customFields":{"Acciones":"NOBOT-SIIP","user entry point":"inbound_message","Nombre":"👤 DANIEL INNU RATA","Clabe Interbancaria":"002180704572078989","Estado":"🔴 Suspendido","Cliente":"126","Domicilio":"📍 Chiapas, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Fecha Ultimo Pago":"📆💸 07/06/2024 13:36 con PayPal 🌐💳","Saldo Actual":"💲2100 pendientes","Fecha Ultima Actualizacion":"📆🔄️ 24/02/2025 10:00","Resumen":"{\"Cliente\": \"126\",\"Domicilio\": \"📍 Chiapas, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 DANIEL INNU RATA\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/126\",\"Saldo Actual\": \"💲2100 pendientes\",\"Monto Ultimo Pago\": \"💲 2100\",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 07/06/2024 13:36 con PayPal 🌐💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 24/02/2025 10:00\",\"Clabe Interbancaria\": \"002180704572078989\"}","Monto Ultimo Pago":"💲 2100","URL":"🌐 https://sistema.siip.mx/crm/client/126","user name":"Daniel Humberto 🐁"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-24 21:13:28.044778] [notice] Logging level set to:debug +[2025-02-24 21:13:28.141638] [error] Error for request http://localhost/crm/api/v1.0/clients/services/134. HTTP error (404): {"code":404,"message":"Not Found"} +[2025-02-24 21:13:28.285177] [notice] Logging level set to:debug +[2025-02-24 21:13:28.423075] [debug] valor el evento recibido por webhook: service.add + +[2025-02-24 21:13:28.423173] [debug] Valor de JSON: {"uuid":"3879f385-f140-44ec-a659-d54301bd1955","changeType":"insert","entity":"service","entityId":"136","eventName":"service.add","extraData":{"entity":{"id":136,"prepaid":false,"clientId":2,"status":1,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-02-24T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"}],"surcharges":[]},"entityBeforeEdit":{"id":134,"prepaid":false,"clientId":2,"status":5,"name":"PREMIUM","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":4,"servicePlanPeriodId":19,"price":700,"hasIndividualPrice":false,"totalPrice":700,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00:00:00-0600","activeTo":"2025-02-23T00:00:00-0600","contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-02-18T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"PREMIUM","servicePlanPrice":700,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":20,"uploadSpeed":20,"hasOutage":null,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-03-31T00:00:00-0600","unmsClientSiteId":null,"attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]}}} + +[2025-02-24 21:14:25.037425] [notice] Logging level set to:debug +[2025-02-24 21:14:25.111964] [error] Error for request http://localhost/crm/api/v1.0/clients/services/136. HTTP error (404): {"code":404,"message":"Not Found"} +[2025-02-24 21:14:25.231237] [notice] Logging level set to:debug +[2025-02-24 21:14:25.360521] [debug] valor el evento recibido por webhook: service.add + +[2025-02-24 21:14:25.360714] [debug] Valor de JSON: {"uuid":"e39d1306-75a6-411b-80ed-65e271314b1c","changeType":"insert","entity":"service","entityId":"137","eventName":"service.add","extraData":{"entity":{"id":137,"prepaid":false,"clientId":2,"status":1,"name":"PREMIUM","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":4,"servicePlanPeriodId":19,"price":700,"hasIndividualPrice":false,"totalPrice":700,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-02-24T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"PREMIUM","servicePlanPrice":700,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":20,"uploadSpeed":20,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"}],"surcharges":[]},"entityBeforeEdit":{"id":136,"prepaid":false,"clientId":2,"status":5,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00:00:00-0600","activeTo":"2025-02-23T00:00:00-0600","contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-02-24T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":null,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":null,"attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]}}} + +[2025-02-24 21:14:41.811259] [notice] Logging level set to:debug +[2025-02-24 21:14:41.873250] [error] Error for request http://localhost/crm/api/v1.0/clients/services/137. HTTP error (404): {"code":404,"message":"Not Found"} +[2025-02-24 21:14:42.015350] [notice] Logging level set to:debug +[2025-02-24 21:14:42.151176] [debug] valor el evento recibido por webhook: service.add + +[2025-02-24 21:14:42.151382] [debug] Valor de JSON: {"uuid":"88d2ea78-fa02-40d5-a2ef-472916d53cfb","changeType":"insert","entity":"service","entityId":"138","eventName":"service.add","extraData":{"entity":{"id":138,"prepaid":false,"clientId":2,"status":1,"name":"PREMIUM","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":4,"servicePlanPeriodId":19,"price":700,"hasIndividualPrice":false,"totalPrice":700,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-02-24T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"PREMIUM","servicePlanPrice":700,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":20,"uploadSpeed":20,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"}],"surcharges":[]},"entityBeforeEdit":{"id":137,"prepaid":false,"clientId":2,"status":5,"name":"PREMIUM","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":4,"servicePlanPeriodId":19,"price":700,"hasIndividualPrice":false,"totalPrice":700,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00:00:00-0600","activeTo":"2025-02-23T00:00:00-0600","contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-02-24T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"PREMIUM","servicePlanPrice":700,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":20,"uploadSpeed":20,"hasOutage":null,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":null,"attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]}}} + +[2025-02-24 21:14:59.528161] [notice] Logging level set to:debug +[2025-02-24 21:14:59.594542] [error] Error for request http://localhost/crm/api/v1.0/invoices/1564. HTTP error (404): {"code":404,"message":"Not Found"} +[2025-02-24 21:15:00.608517] [notice] Logging level set to:debug +[2025-02-24 21:15:00.716700] [error] Error for request http://localhost/crm/api/v1.0/invoices/1566. HTTP error (404): {"code":404,"message":"Not Found"} +[2025-02-24 21:15:11.603540] [notice] Logging level set to:debug +[2025-02-24 21:15:11.660046] [error] Error for request http://localhost/crm/api/v1.0/payments/587. HTTP error (404): {"code":404,"message":"Not Found"} +[2025-02-24 21:15:12.582690] [notice] Logging level set to:debug +[2025-02-24 21:15:12.639950] [error] Error for request http://localhost/crm/api/v1.0/payments/588. HTTP error (404): {"code":404,"message":"Not Found"} +[2025-02-24 21:15:24.750968] [notice] Logging level set to:debug +[2025-02-24 21:15:24.905296] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-24 21:15:24.905450] [debug] Valor de JSON: {"uuid":"57e09102-8e97-48ba-b55f-5740e638ee54","changeType":"insert","entity":"invoice","entityId":"1581","eventName":"invoice.add_draft","extraData":{"entity":{"id":1581,"clientId":2,"number":"001538","createdDate":"2025-02-24T15:15:23-0600","dueDate":"2025-03-10T15:15:23-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1584,"type":"service","label":"PREMIUM 24\/02\/2025 \u2013 31\/03\/2025","price":700,"quantity":1.1666666666666667,"total":816.6666666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":138,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":816.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":816.67,"amountPaid":0,"totalUntaxed":816.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":816.67,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-24 21:15:24.905708] [debug] Adición de borrador de Factura + +[2025-02-24 21:15:24.905810] [debug] {"uuid":"57e09102-8e97-48ba-b55f-5740e638ee54","changeType":"insert","entity":"invoice","entityId":1581,"message":null,"clientId":2,"eventName":"invoice.add_draft","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-816.67,"accountCredit":0,"accountOutstanding":816.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1581,"clientId":2,"number":"001538","createdDate":"2025-02-24T15:15:23-0600","dueDate":"2025-03-10T15:15:23-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1584,"type":"service","label":"PREMIUM 24\/02\/2025 \u2013 31\/03\/2025","price":700,"quantity":1.1666666666667,"total":816.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":138,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":816.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":816.67,"amountPaid":0,"totalUntaxed":816.67,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":816.67,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-24 21:15:24.905914] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-24 21:15:24.905957] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2816.67 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2816.67 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 24\/02\/2025 21:15 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 15:15\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 24\/02\/2025 21:15 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 15:15","Clabe Interbancaria":"0021804341999569810"}} + +Response Patch CallBell: {"error":{"custom_fields":["Cliente do not exist or are misspelled, please check before retrying"]}} + +[2025-02-24 21:15:26.622029] [notice] Logging level set to:debug +[2025-02-24 21:15:26.760679] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-24 21:15:26.760818] [debug] Valor de JSON: {"uuid":"33f1f0ab-7389-46a6-a277-9edd23ee1d3b","changeType":"draft_approved","entity":"invoice","entityId":"1581","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1581,"clientId":2,"number":"001538","createdDate":"2025-02-24T15:15:23-0600","dueDate":"2025-03-10T15:15:23-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1584,"type":"service","label":"PREMIUM 24\/02\/2025 \u2013 31\/03\/2025","price":700,"quantity":1.1666666666666667,"total":816.6666666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":138,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":816.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":816.67,"amountPaid":0,"totalUntaxed":816.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":816.67,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-24 21:15:26.760951] [debug] Aprobación de Factura + +[2025-02-24 21:15:26.761055] [debug] {"uuid":"33f1f0ab-7389-46a6-a277-9edd23ee1d3b","changeType":"draft_approved","entity":"invoice","entityId":1581,"message":null,"clientId":2,"eventName":"invoice.draft_approved","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-816.67,"accountCredit":0,"accountOutstanding":816.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1581,"clientId":2,"number":"001538","createdDate":"2025-02-24T15:15:23-0600","dueDate":"2025-03-10T15:15:23-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1584,"type":"service","label":"PREMIUM 24\/02\/2025 \u2013 31\/03\/2025","price":700,"quantity":1.1666666666667,"total":816.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":138,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":816.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":816.67,"amountPaid":0,"totalUntaxed":816.67,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":816.67,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-24 21:15:26.761133] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-24 21:15:26.761173] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2816.67 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2816.67 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 24\/02\/2025 21:15 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 15:15\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 24\/02\/2025 21:15 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 15:15","Clabe Interbancaria":"0021804341999569810"}} + +Response Patch CallBell: {"error":{"custom_fields":["Cliente do not exist or are misspelled, please check before retrying"]}} + +[2025-02-24 21:16:53.578789] [notice] Logging level set to:debug +[2025-02-24 21:16:53.695609] [error] Error for request http://localhost/crm/api/v1.0/clients/services/138. HTTP error (404): {"code":404,"message":"Not Found"} +[2025-02-24 21:16:53.813873] [notice] Logging level set to:debug +[2025-02-24 21:16:53.952159] [debug] valor el evento recibido por webhook: service.add + +[2025-02-24 21:16:53.952367] [debug] Valor de JSON: {"uuid":"6efe54d0-e4e2-4de6-9879-a3f851701ca7","changeType":"insert","entity":"service","entityId":"139","eventName":"service.add","extraData":{"entity":{"id":139,"prepaid":false,"clientId":2,"status":1,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-02-24T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"}],"surcharges":[]},"entityBeforeEdit":{"id":138,"prepaid":false,"clientId":2,"status":5,"name":"PREMIUM","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":4,"servicePlanPeriodId":19,"price":700,"hasIndividualPrice":false,"totalPrice":700,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00:00:00-0600","activeTo":"2025-02-23T00:00:00-0600","contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-02-24T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"PREMIUM","servicePlanPrice":700,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":20,"uploadSpeed":20,"hasOutage":null,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-03-31T00:00:00-0600","unmsClientSiteId":null,"attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]}}} + +[2025-02-24 21:17:05.195597] [notice] Logging level set to:debug +[2025-02-24 21:17:05.254460] [error] Error for request http://localhost/crm/api/v1.0/invoices/1581. HTTP error (404): {"code":404,"message":"Not Found"} +[2025-02-24 21:17:19.455065] [notice] Logging level set to:debug +[2025-02-24 21:17:19.645229] [debug] valor el evento recibido por webhook: invoice.add + +[2025-02-24 21:17:19.645299] [debug] Valor de JSON: {"uuid":"78b8039f-cc13-46df-8bef-a3689e1b8f51","changeType":"insert","entity":"invoice","entityId":"1582","eventName":"invoice.add","extraData":{"entity":{"id":1582,"clientId":2,"number":"001538","createdDate":"2025-02-24T15:17:12-0600","dueDate":"2025-03-10T15:17:12-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1585,"type":"service","label":"Basico 300 24\/02\/2025 \u2013 31\/03\/2025","price":300,"quantity":1.1666666666667,"total":350.00000000001,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":139,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":350,"discount":null,"discountLabel":"Descuento","taxes":[],"total":350,"amountPaid":0,"totalUntaxed":350,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":350,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-24 21:17:19.645502] [debug] Adición de Factura + +[2025-02-24 21:17:19.645556] [debug] datos del notification para el invoice add:{"uuid":"78b8039f-cc13-46df-8bef-a3689e1b8f51","changeType":"insert","entity":"invoice","entityId":1582,"message":null,"clientId":2,"eventName":"invoice.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-350,"accountCredit":0,"accountOutstanding":350,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1582,"clientId":2,"number":"001538","createdDate":"2025-02-24T15:17:12-0600","dueDate":"2025-03-10T15:17:12-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1585,"type":"service","label":"Basico 300 24\/02\/2025 \u2013 31\/03\/2025","price":300,"quantity":1.1666666666667,"total":350.00000000001,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":139,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":350,"discount":null,"discountLabel":"Descuento","taxes":[],"total":350,"amountPaid":0,"totalUntaxed":350,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":350,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-24 21:17:19.645586] [debug] Account Balance: -350 + +[2025-02-24 21:17:19.645622] [debug] {"uuid":"78b8039f-cc13-46df-8bef-a3689e1b8f51","changeType":"insert","entity":"invoice","entityId":1582,"message":null,"clientId":2,"eventName":"invoice.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-350,"accountCredit":0,"accountOutstanding":350,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1582,"clientId":2,"number":"001538","createdDate":"2025-02-24T15:17:12-0600","dueDate":"2025-03-10T15:17:12-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1585,"type":"service","label":"Basico 300 24\/02\/2025 \u2013 31\/03\/2025","price":300,"quantity":1.1666666666667,"total":350.00000000001,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":139,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":350,"discount":null,"discountLabel":"Descuento","taxes":[],"total":350,"amountPaid":0,"totalUntaxed":350,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":350,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-24 21:17:19.645711] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-24 21:17:19.645726] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2350 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2350 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 24\/02\/2025 21:17 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 15:17\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 24\/02\/2025 21:17 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 15:17","Clabe Interbancaria":"0021804341999569810"}} + +Response Patch CallBell: {"error":{"custom_fields":["Cliente do not exist or are misspelled, please check before retrying"]}} + +[2025-02-24 21:18:24.427036] [notice] Logging level set to:debug +[2025-02-24 21:18:24.488980] [error] Error for request http://localhost/crm/api/v1.0/clients/services/139. HTTP error (404): {"code":404,"message":"Not Found"} +[2025-02-24 21:18:24.603583] [notice] Logging level set to:debug +[2025-02-24 21:18:24.746947] [debug] valor el evento recibido por webhook: service.add + +[2025-02-24 21:18:24.747118] [debug] Valor de JSON: {"uuid":"bf29fd26-7b54-4a3f-9f64-8c2439ddc666","changeType":"insert","entity":"service","entityId":"140","eventName":"service.add","extraData":{"entity":{"id":140,"prepaid":false,"clientId":2,"status":1,"name":"PREMIUM","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":4,"servicePlanPeriodId":19,"price":700,"hasIndividualPrice":false,"totalPrice":700,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-02-24T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"PREMIUM","servicePlanPrice":700,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":20,"uploadSpeed":20,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"}],"surcharges":[]},"entityBeforeEdit":{"id":139,"prepaid":false,"clientId":2,"status":5,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00:00:00-0600","activeTo":"2025-02-23T00:00:00-0600","contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-02-24T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":null,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-03-31T00:00:00-0600","unmsClientSiteId":null,"attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]}}} + +[2025-02-24 21:19:20.350112] [notice] Logging level set to:debug +[2025-02-24 21:19:20.418656] [error] Error for request http://localhost/crm/api/v1.0/clients/services/140. HTTP error (404): {"code":404,"message":"Not Found"} +[2025-02-24 21:19:20.538166] [notice] Logging level set to:debug +[2025-02-24 21:19:20.666774] [debug] valor el evento recibido por webhook: service.add + +[2025-02-24 21:19:20.666975] [debug] Valor de JSON: {"uuid":"fc49e2fb-aa42-42bf-938a-939962e9fbb3","changeType":"insert","entity":"service","entityId":"141","eventName":"service.add","extraData":{"entity":{"id":141,"prepaid":false,"clientId":2,"status":1,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-02-24T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"}],"surcharges":[]},"entityBeforeEdit":{"id":140,"prepaid":false,"clientId":2,"status":5,"name":"PREMIUM","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":4,"servicePlanPeriodId":19,"price":700,"hasIndividualPrice":false,"totalPrice":700,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00:00:00-0600","activeTo":"2025-02-23T00:00:00-0600","contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-02-24T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"PREMIUM","servicePlanPrice":700,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":20,"uploadSpeed":20,"hasOutage":null,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":null,"attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]}}} + +[2025-02-24 21:19:57.930496] [notice] Logging level set to:debug +[2025-02-24 21:19:58.067117] [debug] valor el evento recibido por webhook: service.edit + +[2025-02-24 21:19:58.067220] [debug] Valor de JSON: {"uuid":"43e028d5-3335-4d53-990e-9ded3c918a64","changeType":"edit","entity":"service","entityId":"141","eventName":"service.edit","extraData":{"entity":{"id":141,"prepaid":false,"clientId":2,"status":1,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-02-24T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"}],"surcharges":[]},"entityBeforeEdit":{"id":141,"prepaid":false,"clientId":2,"status":1,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-02-24T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"}],"surcharges":[]}}} + +[2025-02-24 21:19:58.067442] [debug] Se editó el servicio a un cliente + +[2025-02-24 21:19:58.067514] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-24 21:19:58.067528] [info] Tipo de contacto normalizado: 'whatsapp' +[2025-02-24 21:19:58.067579] [info] {"uuid":"43e028d5-3335-4d53-990e-9ded3c918a64","changeType":"edit","entity":"service","entityId":141,"message":null,"clientId":2,"eventName":"service.edit","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-350,"accountCredit":0,"accountOutstanding":350,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":{"id":141,"prepaid":false,"clientId":2,"status":1,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-02-24T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"}],"surcharges":[]},"invoiceData":null,"paymentData":null} + +Actualizando estado del servicio + +Nombre del cliente al que se va a actualizar el estado del servicio: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"custom_fields":{"Estado":"\ud83d\udfe2 Activo","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 15:19"}} + +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"DANIEL HUMBERTO SOTO VILLEGAS","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-02-23T13:05:58Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":["Suspendido"],"assignedUser":null,"customFields":{"Acciones":"NOBOT-SIIP","user entry point":"inbound_message","Nombre":"👤 DANIEL HUMBERTO SOTO VILLEGAS","Clabe Interbancaria":"124180650741646979","Estado":"🟢 Activo","Sectorial":"3201","Domicilio":"📍 CALLE CHIAPAS #31, ZONA CENTRO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Fecha Ultimo Pago":"📆💸 20/02/2025 23:17 con PayPal 🌐💳","Saldo Actual":"💲10 a favor","Fecha Ultima Actualizacion":"📆🔄️ 24/02/2025 15:19","Resumen":"{\"Cliente\": \"3201\",\"Domicilio\": \"📍 CALLE CHIAPAS #31, ZONA CENTRO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800\",\"Nombre\": \"👤 DANIEL HUMBERTO SOTO VILLEGAS\",\"URL\": \"🌐 https://172.16.5.120/crm/client/3201\",\"Saldo Actual\": \"💲10 a favor\",\"Monto Ultimo Pago\": \"💲 10\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 20/02/2025 23:17 con PayPal 🌐💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 24/02/2025 12:19\",\"Clabe Interbancaria\": \"124180650741646979\"}","Monto Ultimo Pago":"💲 10","URL":"🌐 https://172.16.5.120/crm/client/3201","user name":"Daniel Humberto 🐁"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-24 21:20:03.413271] [notice] Logging level set to:debug +[2025-02-24 21:20:03.632970] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-24 21:20:03.633169] [debug] Valor de JSON: {"uuid":"5b6f1e64-c59f-4924-9cd6-90a576bc1c79","changeType":"insert","entity":"invoice","entityId":"1583","eventName":"invoice.add_draft","extraData":{"entity":{"id":1583,"clientId":2,"number":"001539","createdDate":"2025-02-24T15:20:02-0600","dueDate":"2025-03-10T15:20:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1586,"type":"service","label":"Basico 300 24\/02\/2025 \u2013 28\/02\/2025","price":300,"quantity":0.16666666666666666,"total":50,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":141,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":50,"discount":null,"discountLabel":"Descuento","taxes":[],"total":50,"amountPaid":0,"totalUntaxed":50,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":50,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-24 21:20:03.633354] [debug] Adición de borrador de Factura + +[2025-02-24 21:20:03.633449] [debug] {"uuid":"5b6f1e64-c59f-4924-9cd6-90a576bc1c79","changeType":"insert","entity":"invoice","entityId":1583,"message":null,"clientId":2,"eventName":"invoice.add_draft","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1583,"clientId":2,"number":"001539","createdDate":"2025-02-24T15:20:02-0600","dueDate":"2025-03-10T15:20:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1586,"type":"service","label":"Basico 300 24\/02\/2025 \u2013 28\/02\/2025","price":300,"quantity":0.16666666666667,"total":50,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":141,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":50,"discount":null,"discountLabel":"Descuento","taxes":[],"total":50,"amountPaid":0,"totalUntaxed":50,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":50,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-24 21:20:03.633531] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-24 21:20:03.633574] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2700 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 24\/02\/2025 21:20 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 15:20\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 24\/02\/2025 21:20 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 15:20","Clabe Interbancaria":"0021804341999569810"}} + +Response Patch CallBell: {"error":{"custom_fields":["Cliente do not exist or are misspelled, please check before retrying"]}} + +[2025-02-24 21:20:05.426286] [notice] Logging level set to:debug +[2025-02-24 21:20:05.578366] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-24 21:20:05.578558] [debug] Valor de JSON: {"uuid":"05da5a80-9128-44c1-b805-1d7c9dc6a5cf","changeType":"draft_approved","entity":"invoice","entityId":"1583","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1583,"clientId":2,"number":"001539","createdDate":"2025-02-24T15:20:02-0600","dueDate":"2025-03-10T15:20:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1586,"type":"service","label":"Basico 300 24\/02\/2025 \u2013 28\/02\/2025","price":300,"quantity":0.16666666666666666,"total":50,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":141,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":50,"discount":null,"discountLabel":"Descuento","taxes":[],"total":50,"amountPaid":0,"totalUntaxed":50,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":50,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-24 21:20:05.578768] [debug] Aprobación de Factura + +[2025-02-24 21:20:05.578881] [debug] {"uuid":"05da5a80-9128-44c1-b805-1d7c9dc6a5cf","changeType":"draft_approved","entity":"invoice","entityId":1583,"message":null,"clientId":2,"eventName":"invoice.draft_approved","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1583,"clientId":2,"number":"001539","createdDate":"2025-02-24T15:20:02-0600","dueDate":"2025-03-10T15:20:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1586,"type":"service","label":"Basico 300 24\/02\/2025 \u2013 28\/02\/2025","price":300,"quantity":0.16666666666667,"total":50,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":141,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":50,"discount":null,"discountLabel":"Descuento","taxes":[],"total":50,"amountPaid":0,"totalUntaxed":50,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":50,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-24 21:20:05.578974] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-24 21:20:05.579031] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2700 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 24\/02\/2025 21:20 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 15:20\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 24\/02\/2025 21:20 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 15:20","Clabe Interbancaria":"0021804341999569810"}} + +Response Patch CallBell: {"error":{"custom_fields":["Cliente do not exist or are misspelled, please check before retrying"]}} + +[2025-02-24 21:20:07.352206] [notice] Logging level set to:debug +[2025-02-24 21:20:07.520657] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-24 21:20:07.520723] [debug] Valor de JSON: {"uuid":"e18216f2-dcf0-4892-bd7d-01492b1d5e16","changeType":"insert","entity":"invoice","entityId":"1584","eventName":"invoice.add_draft","extraData":{"entity":{"id":1584,"clientId":2,"number":"001540","createdDate":"2025-02-24T15:20:02-0600","dueDate":"2025-03-10T15:20:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1587,"type":"service","label":"Basico 300 01\/03\/2025 \u2013 31\/03\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":141,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-24 21:20:07.520857] [debug] Adición de borrador de Factura + +[2025-02-24 21:20:07.520910] [debug] {"uuid":"e18216f2-dcf0-4892-bd7d-01492b1d5e16","changeType":"insert","entity":"invoice","entityId":1584,"message":null,"clientId":2,"eventName":"invoice.add_draft","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1584,"clientId":2,"number":"001540","createdDate":"2025-02-24T15:20:02-0600","dueDate":"2025-03-10T15:20:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1587,"type":"service","label":"Basico 300 01\/03\/2025 \u2013 31\/03\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":141,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-24 21:20:07.520961] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-24 21:20:07.520972] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2700 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 24\/02\/2025 21:20 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 15:20\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 24\/02\/2025 21:20 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 15:20","Clabe Interbancaria":"0021804341999569810"}} + +Response Patch CallBell: {"error":{"custom_fields":["Cliente do not exist or are misspelled, please check before retrying"]}} + +[2025-02-24 21:20:09.221527] [notice] Logging level set to:debug +[2025-02-24 21:20:09.352931] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-24 21:20:09.353106] [debug] Valor de JSON: {"uuid":"be21a33d-8667-4fc2-ab10-9b5c3ab681ec","changeType":"draft_approved","entity":"invoice","entityId":"1584","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1584,"clientId":2,"number":"001540","createdDate":"2025-02-24T15:20:02-0600","dueDate":"2025-03-10T15:20:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1587,"type":"service","label":"Basico 300 01\/03\/2025 \u2013 31\/03\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":141,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-24 21:20:09.353254] [debug] Aprobación de Factura + +[2025-02-24 21:20:09.353341] [debug] {"uuid":"be21a33d-8667-4fc2-ab10-9b5c3ab681ec","changeType":"draft_approved","entity":"invoice","entityId":1584,"message":null,"clientId":2,"eventName":"invoice.draft_approved","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1584,"clientId":2,"number":"001540","createdDate":"2025-02-24T15:20:02-0600","dueDate":"2025-03-10T15:20:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1587,"type":"service","label":"Basico 300 01\/03\/2025 \u2013 31\/03\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":141,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-24 21:20:09.353406] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-24 21:20:09.353449] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2700 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 24\/02\/2025 21:20 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 15:20\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 24\/02\/2025 21:20 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 15:20","Clabe Interbancaria":"0021804341999569810"}} + +Response Patch CallBell: {"error":{"custom_fields":["Cliente do not exist or are misspelled, please check before retrying"]}} + +[2025-02-24 21:20:26.428982] [notice] Logging level set to:debug +[2025-02-24 21:20:26.570903] [error] Error for request http://localhost/crm/api/v1.0/invoices/1583. HTTP error (404): {"code":404,"message":"Not Found"} +[2025-02-24 21:20:27.587191] [notice] Logging level set to:debug +[2025-02-24 21:20:27.651053] [error] Error for request http://localhost/crm/api/v1.0/invoices/1584. HTTP error (404): {"code":404,"message":"Not Found"} +[2025-02-24 21:20:48.363858] [notice] Logging level set to:debug +[2025-02-24 21:20:48.538961] [debug] valor el evento recibido por webhook: service.edit + +[2025-02-24 21:20:48.539176] [debug] Valor de JSON: {"uuid":"98fd9a99-b977-45c8-8751-84cec3311035","changeType":"edit","entity":"service","entityId":"141","eventName":"service.edit","extraData":{"entity":{"id":141,"prepaid":false,"clientId":2,"status":1,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-02-24T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-02-23T00:00:00-0600","unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"}],"surcharges":[]},"entityBeforeEdit":{"id":141,"prepaid":false,"clientId":2,"status":1,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-02-24T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-03-31T00:00:00-0600","unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"}],"surcharges":[]}}} + +[2025-02-24 21:20:48.539416] [debug] Se editó el servicio a un cliente + +[2025-02-24 21:20:48.539520] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-24 21:20:48.539561] [info] Tipo de contacto normalizado: 'whatsapp' +[2025-02-24 21:20:48.539635] [info] {"uuid":"98fd9a99-b977-45c8-8751-84cec3311035","changeType":"edit","entity":"service","entityId":141,"message":null,"clientId":2,"eventName":"service.edit","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-350,"accountCredit":0,"accountOutstanding":350,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":{"id":141,"prepaid":false,"clientId":2,"status":1,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-02-24T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-02-23T00:00:00-0600","unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"}],"surcharges":[]},"invoiceData":null,"paymentData":null} + +Actualizando estado del servicio + +Nombre del cliente al que se va a actualizar el estado del servicio: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"custom_fields":{"Estado":"\ud83d\udfe2 Activo","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 15:20"}} + +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"DANIEL HUMBERTO SOTO VILLEGAS","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-02-23T13:05:58Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":["Suspendido"],"assignedUser":null,"customFields":{"Acciones":"NOBOT-SIIP","user entry point":"inbound_message","Nombre":"👤 DANIEL HUMBERTO SOTO VILLEGAS","Clabe Interbancaria":"124180650741646979","Estado":"🟢 Activo","Sectorial":"3201","Domicilio":"📍 CALLE CHIAPAS #31, ZONA CENTRO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Fecha Ultimo Pago":"📆💸 20/02/2025 23:17 con PayPal 🌐💳","Saldo Actual":"💲10 a favor","Fecha Ultima Actualizacion":"📆🔄️ 24/02/2025 15:20","Resumen":"{\"Cliente\": \"3201\",\"Domicilio\": \"📍 CALLE CHIAPAS #31, ZONA CENTRO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800\",\"Nombre\": \"👤 DANIEL HUMBERTO SOTO VILLEGAS\",\"URL\": \"🌐 https://172.16.5.120/crm/client/3201\",\"Saldo Actual\": \"💲10 a favor\",\"Monto Ultimo Pago\": \"💲 10\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 20/02/2025 23:17 con PayPal 🌐💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 24/02/2025 12:19\",\"Clabe Interbancaria\": \"124180650741646979\"}","Monto Ultimo Pago":"💲 10","URL":"🌐 https://172.16.5.120/crm/client/3201","user name":"Daniel Humberto 🐁"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-24 21:20:50.323370] [notice] Logging level set to:debug +[2025-02-24 21:20:50.458435] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-24 21:20:50.458638] [debug] Valor de JSON: {"uuid":"1767d68c-f2db-4166-ade4-2a0b815acb42","changeType":"insert","entity":"invoice","entityId":"1585","eventName":"invoice.add_draft","extraData":{"entity":{"id":1585,"clientId":2,"number":"001539","createdDate":"2025-02-24T15:20:48-0600","dueDate":"2025-03-10T15:20:48-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1588,"type":"service","label":"Basico 300 24\/02\/2025 \u2013 31\/03\/2025","price":300,"quantity":1.1666666666666667,"total":350,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":141,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":350,"discount":null,"discountLabel":"Descuento","taxes":[],"total":350,"amountPaid":0,"totalUntaxed":350,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":350,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-24 21:20:50.458818] [debug] Adición de borrador de Factura + +[2025-02-24 21:20:50.458904] [debug] {"uuid":"1767d68c-f2db-4166-ade4-2a0b815acb42","changeType":"insert","entity":"invoice","entityId":1585,"message":null,"clientId":2,"eventName":"invoice.add_draft","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1585,"clientId":2,"number":"001539","createdDate":"2025-02-24T15:20:48-0600","dueDate":"2025-03-10T15:20:48-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1588,"type":"service","label":"Basico 300 24\/02\/2025 \u2013 31\/03\/2025","price":300,"quantity":1.1666666666667,"total":350,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":141,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":350,"discount":null,"discountLabel":"Descuento","taxes":[],"total":350,"amountPaid":0,"totalUntaxed":350,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":350,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-24 21:20:50.458969] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-24 21:20:50.459007] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2700 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 24\/02\/2025 21:20 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 15:20\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 24\/02\/2025 21:20 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 15:20","Clabe Interbancaria":"0021804341999569810"}} + +Response Patch CallBell: {"error":{"custom_fields":["Cliente do not exist or are misspelled, please check before retrying"]}} + +[2025-02-24 21:20:52.271420] [notice] Logging level set to:debug +[2025-02-24 21:20:52.410140] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-24 21:20:52.410336] [debug] Valor de JSON: {"uuid":"b148cb56-fcc1-4d6a-9ad8-a8fe804a92b0","changeType":"draft_approved","entity":"invoice","entityId":"1585","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1585,"clientId":2,"number":"001539","createdDate":"2025-02-24T15:20:48-0600","dueDate":"2025-03-10T15:20:48-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1588,"type":"service","label":"Basico 300 24\/02\/2025 \u2013 31\/03\/2025","price":300,"quantity":1.1666666666666667,"total":350,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":141,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":350,"discount":null,"discountLabel":"Descuento","taxes":[],"total":350,"amountPaid":0,"totalUntaxed":350,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":350,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-24 21:20:52.410511] [debug] Aprobación de Factura + +[2025-02-24 21:20:52.410594] [debug] {"uuid":"b148cb56-fcc1-4d6a-9ad8-a8fe804a92b0","changeType":"draft_approved","entity":"invoice","entityId":1585,"message":null,"clientId":2,"eventName":"invoice.draft_approved","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1585,"clientId":2,"number":"001539","createdDate":"2025-02-24T15:20:48-0600","dueDate":"2025-03-10T15:20:48-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1588,"type":"service","label":"Basico 300 24\/02\/2025 \u2013 31\/03\/2025","price":300,"quantity":1.1666666666667,"total":350,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":141,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":350,"discount":null,"discountLabel":"Descuento","taxes":[],"total":350,"amountPaid":0,"totalUntaxed":350,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":350,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-24 21:20:52.410670] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-24 21:20:52.410710] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2700 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 24\/02\/2025 21:20 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 15:20\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 24\/02\/2025 21:20 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 15:20","Clabe Interbancaria":"0021804341999569810"}} + +Response Patch CallBell: {"error":{"custom_fields":["Cliente do not exist or are misspelled, please check before retrying"]}} + +[2025-02-24 21:24:21.998574] [notice] Logging level set to:debug +[2025-02-24 21:24:22.109930] [error] Error for request http://localhost/crm/api/v1.0/clients/services/141. HTTP error (404): {"code":404,"message":"Not Found"} +[2025-02-24 21:24:22.234121] [notice] Logging level set to:debug +[2025-02-24 21:24:22.372273] [debug] valor el evento recibido por webhook: service.add + +[2025-02-24 21:24:22.372479] [debug] Valor de JSON: {"uuid":"632f7b68-c87a-45a9-ae6b-674419a4f544","changeType":"insert","entity":"service","entityId":"142","eventName":"service.add","extraData":{"entity":{"id":142,"prepaid":false,"clientId":2,"status":1,"name":"PREMIUM","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":4,"servicePlanPeriodId":19,"price":0,"hasIndividualPrice":true,"totalPrice":0,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-02-24T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"PREMIUM","servicePlanPrice":700,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":20,"uploadSpeed":20,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"}],"surcharges":[]},"entityBeforeEdit":{"id":141,"prepaid":false,"clientId":2,"status":5,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00:00:00-0600","activeTo":"2025-02-23T00:00:00-0600","contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-02-24T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":null,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-03-31T00:00:00-0600","unmsClientSiteId":null,"attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]}}} + +[2025-02-24 21:24:28.839353] [notice] Logging level set to:debug +[2025-02-24 21:24:29.002964] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-24 21:24:29.003113] [debug] Valor de JSON: {"uuid":"6d56fa7a-6c16-43f9-ba35-ec0c926203b0","changeType":"insert","entity":"invoice","entityId":"1586","eventName":"invoice.add_draft","extraData":{"entity":{"id":1586,"clientId":2,"number":"001540","createdDate":"2025-02-24T15:24:27-0600","dueDate":"2025-03-10T15:24:27-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1589,"type":"service","label":"PREMIUM 24\/02\/2025 \u2013 31\/03\/2025","price":0,"quantity":1.1666666666666667,"total":0,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":142,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":0,"discount":null,"discountLabel":"Descuento","taxes":[],"total":0,"amountPaid":0,"totalUntaxed":0,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-24 21:24:29.003261] [debug] Adición de borrador de Factura + +[2025-02-24 21:24:29.003345] [debug] {"uuid":"6d56fa7a-6c16-43f9-ba35-ec0c926203b0","changeType":"insert","entity":"invoice","entityId":1586,"message":null,"clientId":2,"eventName":"invoice.add_draft","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1586,"clientId":2,"number":"001540","createdDate":"2025-02-24T15:24:27-0600","dueDate":"2025-03-10T15:24:27-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1589,"type":"service","label":"PREMIUM 24\/02\/2025 \u2013 31\/03\/2025","price":0,"quantity":1.1666666666667,"total":0,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":142,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":0,"discount":null,"discountLabel":"Descuento","taxes":[],"total":0,"amountPaid":0,"totalUntaxed":0,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-24 21:24:29.003463] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-24 21:24:29.003505] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2700 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 24\/02\/2025 21:24 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 15:24\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 24\/02\/2025 21:24 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 15:24","Clabe Interbancaria":"0021804341999569810"}} + +Response Patch CallBell: {"error":{"custom_fields":["Cliente do not exist or are misspelled, please check before retrying"]}} + +[2025-02-24 21:24:30.775527] [notice] Logging level set to:debug +[2025-02-24 21:24:30.929841] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-24 21:24:30.929908] [debug] Valor de JSON: {"uuid":"9ea13de8-4f82-4539-958c-996ae61e65d4","changeType":"draft_approved","entity":"invoice","entityId":"1586","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1586,"clientId":2,"number":"001540","createdDate":"2025-02-24T15:24:27-0600","dueDate":"2025-03-10T15:24:27-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1589,"type":"service","label":"PREMIUM 24\/02\/2025 \u2013 31\/03\/2025","price":0,"quantity":1.1666666666666667,"total":0,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":142,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":0,"discount":null,"discountLabel":"Descuento","taxes":[],"total":0,"amountPaid":0,"totalUntaxed":0,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-24 21:24:30.930008] [debug] Aprobación de Factura + +[2025-02-24 21:24:30.930064] [debug] {"uuid":"9ea13de8-4f82-4539-958c-996ae61e65d4","changeType":"draft_approved","entity":"invoice","entityId":1586,"message":null,"clientId":2,"eventName":"invoice.draft_approved","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1586,"clientId":2,"number":"001540","createdDate":"2025-02-24T15:24:27-0600","dueDate":"2025-03-10T15:24:27-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1589,"type":"service","label":"PREMIUM 24\/02\/2025 \u2013 31\/03\/2025","price":0,"quantity":1.1666666666667,"total":0,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":142,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":0,"discount":null,"discountLabel":"Descuento","taxes":[],"total":0,"amountPaid":0,"totalUntaxed":0,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-24 21:24:30.930107] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-24 21:24:30.930183] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2700 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 24\/02\/2025 21:24 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 15:24\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 24\/02\/2025 21:24 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 15:24","Clabe Interbancaria":"0021804341999569810"}} + +Response Patch CallBell: {"error":{"custom_fields":["Cliente do not exist or are misspelled, please check before retrying"]}} + +[2025-02-24 21:25:50.771483] [notice] Logging level set to:debug +[2025-02-24 21:25:50.866686] [error] Error for request http://localhost/crm/api/v1.0/clients/services/142. HTTP error (404): {"code":404,"message":"Not Found"} +[2025-02-24 21:25:51.010029] [notice] Logging level set to:debug +[2025-02-24 21:25:51.146250] [debug] valor el evento recibido por webhook: service.add + +[2025-02-24 21:25:51.146353] [debug] Valor de JSON: {"uuid":"c223c18e-dc20-4ad4-8ca1-e17901084bf6","changeType":"insert","entity":"service","entityId":"143","eventName":"service.add","extraData":{"entity":{"id":143,"prepaid":false,"clientId":2,"status":1,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-02-24T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"}],"surcharges":[]},"entityBeforeEdit":{"id":142,"prepaid":false,"clientId":2,"status":5,"name":"PREMIUM","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":4,"servicePlanPeriodId":19,"price":0,"hasIndividualPrice":true,"totalPrice":0,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00:00:00-0600","activeTo":"2025-02-23T00:00:00-0600","contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-02-24T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"PREMIUM","servicePlanPrice":700,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":20,"uploadSpeed":20,"hasOutage":null,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2025-03-31T00:00:00-0600","unmsClientSiteId":null,"attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]}}} + +[2025-02-24 21:26:17.993328] [notice] Logging level set to:debug +[2025-02-24 21:26:18.116206] [error] Error for request http://localhost/crm/api/v1.0/invoices/1582. HTTP error (404): {"code":404,"message":"Not Found"} +[2025-02-24 21:26:19.062408] [notice] Logging level set to:debug +[2025-02-24 21:26:19.125724] [error] Error for request http://localhost/crm/api/v1.0/invoices/1585. HTTP error (404): {"code":404,"message":"Not Found"} +[2025-02-24 21:26:20.057945] [notice] Logging level set to:debug +[2025-02-24 21:26:20.131206] [error] Error for request http://localhost/crm/api/v1.0/invoices/1586. HTTP error (404): {"code":404,"message":"Not Found"} +[2025-02-24 21:27:00.532973] [notice] Logging level set to:debug +[2025-02-24 21:27:00.596812] [error] Error for request http://localhost/crm/api/v1.0/clients/services/143. HTTP error (404): {"code":404,"message":"Not Found"} +[2025-02-24 21:27:00.716963] [notice] Logging level set to:debug +[2025-02-24 21:27:00.846466] [debug] valor el evento recibido por webhook: service.add + +[2025-02-24 21:27:00.846649] [debug] Valor de JSON: {"uuid":"564ba44d-aa3f-4691-9a19-1240784173a1","changeType":"insert","entity":"service","entityId":"144","eventName":"service.add","extraData":{"entity":{"id":144,"prepaid":false,"clientId":2,"status":1,"name":"PREMIUM","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":4,"servicePlanPeriodId":19,"price":700,"hasIndividualPrice":false,"totalPrice":700,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-02-24T00:00:00-0600","invoicingPeriodType":2,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"PREMIUM","servicePlanPrice":700,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":20,"uploadSpeed":20,"hasOutage":true,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"13306f9e-1d9b-48b0-aa69-d97db512eab7","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":41,"startDate":"2024-02-23T00:00:00-0600","endDate":"2024-03-07T00:00:00-0600"},{"id":42,"startDate":"2024-03-11T00:00:00-0600","endDate":"2024-03-14T00:00:00-0600"},{"id":97,"startDate":"2024-05-10T00:00:00-0600","endDate":"2024-05-21T00:00:00-0600"},{"id":103,"startDate":"2024-07-07T00:00:00-0600","endDate":"2024-08-08T00:00:00-0600"},{"id":117,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":118,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":119,"startDate":"2024-12-12T00:00:00-0600","endDate":"2024-12-12T00:00:00-0600"},{"id":120,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":121,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":122,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":123,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":124,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":125,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":126,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":127,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":128,"startDate":"2024-12-16T00:00:00-0600","endDate":"2024-12-16T00:00:00-0600"},{"id":129,"startDate":"2024-12-17T00:00:00-0600","endDate":"2024-12-17T00:00:00-0600"},{"id":130,"startDate":"2024-12-19T00:00:00-0600","endDate":"2024-12-19T00:00:00-0600"}],"surcharges":[]},"entityBeforeEdit":{"id":143,"prepaid":false,"clientId":2,"status":5,"name":"Basico 300","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"servicePlanId":6,"servicePlanPeriodId":26,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-02-01T00:00:00-0600","activeTo":"2025-02-23T00:00:00-0600","contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-02-24T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":false,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"Basico 300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":8,"uploadSpeed":8,"hasOutage":null,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":null,"attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]}}} + +[2025-02-24 21:27:04.701383] [notice] Logging level set to:debug +[2025-02-24 21:27:04.863321] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-24 21:27:04.863466] [debug] Valor de JSON: {"uuid":"bea5d6af-d226-449f-848b-f80ebbc55d60","changeType":"insert","entity":"invoice","entityId":"1587","eventName":"invoice.add_draft","extraData":{"entity":{"id":1587,"clientId":2,"number":"001538","createdDate":"2025-02-24T15:27:03-0600","dueDate":"2025-03-10T15:27:03-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1590,"type":"service","label":"PREMIUM 24\/02\/2025 \u2013 31\/03\/2025","price":700,"quantity":1.1666666666666667,"total":816.6666666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":144,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":816.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":816.67,"amountPaid":0,"totalUntaxed":816.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":816.67,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-24 21:27:04.863609] [debug] Adición de borrador de Factura + +[2025-02-24 21:27:04.863692] [debug] {"uuid":"bea5d6af-d226-449f-848b-f80ebbc55d60","changeType":"insert","entity":"invoice","entityId":1587,"message":null,"clientId":2,"eventName":"invoice.add_draft","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-816.67,"accountCredit":0,"accountOutstanding":816.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1587,"clientId":2,"number":"001538","createdDate":"2025-02-24T15:27:03-0600","dueDate":"2025-03-10T15:27:03-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1590,"type":"service","label":"PREMIUM 24\/02\/2025 \u2013 31\/03\/2025","price":700,"quantity":1.1666666666667,"total":816.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":144,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":816.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":816.67,"amountPaid":0,"totalUntaxed":816.67,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":816.67,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-24 21:27:04.863806] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-24 21:27:04.863851] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2816.67 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2816.67 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 24\/02\/2025 21:27 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 15:27\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 24\/02\/2025 21:27 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 15:27","Clabe Interbancaria":"0021804341999569810"}} + +Response Patch CallBell: {"error":{"custom_fields":["Cliente do not exist or are misspelled, please check before retrying"]}} + +[2025-02-24 21:27:06.286576] [notice] Logging level set to:debug +[2025-02-24 21:27:06.438740] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-24 21:27:06.438939] [debug] Valor de JSON: {"uuid":"46f0b45e-e31a-49ac-8ca5-c685ecdb2704","changeType":"draft_approved","entity":"invoice","entityId":"1587","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1587,"clientId":2,"number":"001538","createdDate":"2025-02-24T15:27:03-0600","dueDate":"2025-03-10T15:27:03-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1590,"type":"service","label":"PREMIUM 24\/02\/2025 \u2013 31\/03\/2025","price":700,"quantity":1.1666666666666667,"total":816.6666666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":144,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":816.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":816.67,"amountPaid":0,"totalUntaxed":816.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":816.67,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-24 21:27:06.439054] [debug] Aprobación de Factura + +[2025-02-24 21:27:06.439111] [debug] {"uuid":"46f0b45e-e31a-49ac-8ca5-c685ecdb2704","changeType":"draft_approved","entity":"invoice","entityId":1587,"message":null,"clientId":2,"eventName":"invoice.draft_approved","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-816.67,"accountCredit":0,"accountOutstanding":816.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1587,"clientId":2,"number":"001538","createdDate":"2025-02-24T15:27:03-0600","dueDate":"2025-03-10T15:27:03-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1590,"type":"service","label":"PREMIUM 24\/02\/2025 \u2013 31\/03\/2025","price":700,"quantity":1.1666666666667,"total":816.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":144,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":816.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":816.67,"amountPaid":0,"totalUntaxed":816.67,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":816.67,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-24 21:27:06.439152] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-24 21:27:06.439165] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2816.67 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2816.67 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 24\/02\/2025 21:27 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 15:27\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 24\/02\/2025 21:27 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 24\/02\/2025 15:27","Clabe Interbancaria":"0021804341999569810"}} + +Response Patch CallBell: {"error":{"custom_fields":["Cliente do not exist or are misspelled, please check before retrying"]}} + +[2025-02-25 16:00:03.510715] [notice] Logging level set to:debug +[2025-02-25 16:00:03.713716] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-25 16:00:03.713886] [debug] Valor de JSON: {"uuid":"34ac816c-2e46-46c2-a9ba-aa5a315fec43","changeType":"insert","entity":"invoice","entityId":"1588","eventName":"invoice.add_draft","extraData":{"entity":{"id":1588,"clientId":1,"number":"001539","createdDate":"2025-02-25T10:00:01-0600","dueDate":"2025-03-11T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1591,"type":"service","label":"PREMIUM 18\/02\/2025 \u2013 24\/02\/2025","price":700,"quantity":0.23333333333333334,"total":163.33333333333334,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":132,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":163.33,"discount":null,"discountLabel":"Descuento","taxes":[],"total":163.33,"amountPaid":163.32999999999998,"totalUntaxed":163.33,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":666,"invoiceId":1588,"paymentId":480,"creditNoteId":null,"refundId":null,"amount":40},{"id":667,"invoiceId":1588,"paymentId":490,"creditNoteId":null,"refundId":null,"amount":123.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":"Don Miguel \u00c1ngel","clientLastName":"Guerrero Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Calle Morelos 34","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-25 16:00:03.714143] [debug] Adición de borrador de Factura + +[2025-02-25 16:00:03.714248] [debug] {"uuid":"34ac816c-2e46-46c2-a9ba-aa5a315fec43","changeType":"insert","entity":"invoice","entityId":1588,"message":null,"clientId":1,"eventName":"invoice.add_draft","clientData":{"id":1,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"Calle Morelos 34","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Calle Morelos 34, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-15T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Don Miguel \u00c1ngel","lastName":"Guerrero Gonz\u00e1lez","username":"dguerrero01","contacts":[{"id":1,"clientId":1,"email":"mangelgg@gmail.com","phone":"5214181148554","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":110,"clientId":1,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PdQvAvQ2wipl5k","clientZoneVisible":true},{"id":111,"clientId":1,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180697144444854","clientZoneVisible":true}],"accountBalance":1676.67,"accountCredit":1676.67,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.1572096,"addressGpsLon":-100.9377327,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1588,"clientId":1,"number":"001539","createdDate":"2025-02-25T10:00:01-0600","dueDate":"2025-03-11T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-23T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1591,"type":"service","label":"PREMIUM 18\/02\/2025 \u2013 24\/02\/2025","price":700,"quantity":0.23333333333333,"total":163.33333333333,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":132,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":163.33,"discount":null,"discountLabel":"Descuento","taxes":[],"total":163.33,"amountPaid":163.33,"totalUntaxed":163.33,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":666,"invoiceId":1588,"paymentId":480,"creditNoteId":null,"refundId":null,"amount":40},{"id":667,"invoiceId":1588,"paymentId":490,"creditNoteId":null,"refundId":null,"amount":123.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":"Don Miguel \u00c1ngel","clientLastName":"Guerrero Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Calle Morelos 34","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-25 16:00:03.714373] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-25 16:00:03.714418] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":585,"clientId":1,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-02-15T10:28:13-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":"2025-02-15T10:28:14-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Don Miguel Ángel Guerrero González + +UUID: 0e53e926ce424db5b9284a75915d24fe + +JSON con los datos a actualizar: {"name":"Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez","custom_fields":{"Cliente":1,"Domicilio":"\ud83d\udccd Calle Morelos 34, Dolores Hidalgo, 37800","Nombre":"\ud83d\udc64 Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/1","Saldo Actual":"\ud83d\udcb21676.67 a favor","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"1\",\"Domicilio\": \"\ud83d\udccd Calle Morelos 34, Dolores Hidalgo, 37800\",\"Nombre\": \"\ud83d\udc64 Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/1\",\"Saldo Actual\": \"\ud83d\udcb21676.67 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 300\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 15\/02\/2025 10:28 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 25\/02\/2025 10:00\",\"Clabe Interbancaria\": \"002180697144444854\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 15\/02\/2025 10:28 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 25\/02\/2025 10:00","Clabe Interbancaria":"002180697144444854"}} + +Response Patch CallBell: {"contact":{"uuid":"0e53e926ce424db5b9284a75915d24fe","name":"Don Miguel Ángel Guerrero González","phoneNumber":"5214181148554","avatarUrl":null,"createdAt":"2024-01-26T17:29:28Z","closedAt":null,"source":"whatsapp","href":"https://dash.callbell.eu/contacts/0e53e926ce424db5b9284a75915d24fe","conversationHref":"https://dash.callbell.eu/chat/f017e454a6b94ab297509274216c6795","tags":["SIIP"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clientes Relacionados":"oxxo","Sectorial":"1","Nombre":"👤 Don Miguel Ángel Guerrero González","Clabe Interbancaria":"002180697144444854","Fecha Ultima Actualizacion":"📆🔄️ 25/02/2025 10:00","Monto Ultimo Pago":"💲 300","Acciones":"1","Fecha Ultimo Pago":"📆💸 15/02/2025 10:28 con Tarjeta de crédito Stripe 💳","Domicilio":"📍 Calle Morelos 34, Dolores Hidalgo, 37800","Estado":"🟢 Activo ","Saldo Actual":"💲1676.67 a favor","user name":"Angel","URL":"🌐 https://sistema.siip.mx/crm/client/1","Cliente":"1","Resumen":"{\"Cliente\": \"1\",\"Domicilio\": \"📍 Calle Morelos 34, Dolores Hidalgo, 37800\",\"Nombre\": \"👤 Don Miguel Ángel Guerrero González\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/1\",\"Saldo Actual\": \"💲1676.67 a favor\",\"Monto Ultimo Pago\": \"💲 300\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 15/02/2025 10:28 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 25/02/2025 10:00\",\"Clabe Interbancaria\": \"002180697144444854\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-25 16:00:05.991471] [notice] Logging level set to:debug +[2025-02-25 16:00:06.151415] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-25 16:00:06.151483] [debug] Valor de JSON: {"uuid":"4884ffea-e536-403e-aa20-3ad38019f509","changeType":"draft_approved","entity":"invoice","entityId":"1588","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1588,"clientId":1,"number":"001539","createdDate":"2025-02-25T10:00:01-0600","dueDate":"2025-03-11T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1591,"type":"service","label":"PREMIUM 18\/02\/2025 \u2013 24\/02\/2025","price":700,"quantity":0.23333333333333334,"total":163.33333333333334,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":132,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":163.33,"discount":null,"discountLabel":"Descuento","taxes":[],"total":163.33,"amountPaid":163.32999999999998,"totalUntaxed":163.33,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":666,"invoiceId":1588,"paymentId":480,"creditNoteId":null,"refundId":null,"amount":40},{"id":667,"invoiceId":1588,"paymentId":490,"creditNoteId":null,"refundId":null,"amount":123.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":"Don Miguel \u00c1ngel","clientLastName":"Guerrero Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Calle Morelos 34","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-25 16:00:06.151587] [debug] Aprobación de Factura + +[2025-02-25 16:00:06.151642] [debug] {"uuid":"4884ffea-e536-403e-aa20-3ad38019f509","changeType":"draft_approved","entity":"invoice","entityId":1588,"message":null,"clientId":1,"eventName":"invoice.draft_approved","clientData":{"id":1,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"Calle Morelos 34","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Calle Morelos 34, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-15T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Don Miguel \u00c1ngel","lastName":"Guerrero Gonz\u00e1lez","username":"dguerrero01","contacts":[{"id":1,"clientId":1,"email":"mangelgg@gmail.com","phone":"5214181148554","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":110,"clientId":1,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PdQvAvQ2wipl5k","clientZoneVisible":true},{"id":111,"clientId":1,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180697144444854","clientZoneVisible":true}],"accountBalance":1676.67,"accountCredit":1676.67,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.1572096,"addressGpsLon":-100.9377327,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1588,"clientId":1,"number":"001539","createdDate":"2025-02-25T10:00:01-0600","dueDate":"2025-03-11T10:00:01-0600","emailSentDate":"2025-02-25T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-02-23T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1591,"type":"service","label":"PREMIUM 18\/02\/2025 \u2013 24\/02\/2025","price":700,"quantity":0.23333333333333,"total":163.33333333333,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":132,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":163.33,"discount":null,"discountLabel":"Descuento","taxes":[],"total":163.33,"amountPaid":163.33,"totalUntaxed":163.33,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":666,"invoiceId":1588,"paymentId":480,"creditNoteId":null,"refundId":null,"amount":40},{"id":667,"invoiceId":1588,"paymentId":490,"creditNoteId":null,"refundId":null,"amount":123.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":"Don Miguel \u00c1ngel","clientLastName":"Guerrero Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Calle Morelos 34","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-25 16:00:06.151675] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-25 16:00:06.151685] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":585,"clientId":1,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-02-15T10:28:13-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":"2025-02-15T10:28:14-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Don Miguel Ángel Guerrero González + +UUID: 0e53e926ce424db5b9284a75915d24fe + +JSON con los datos a actualizar: {"name":"Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez","custom_fields":{"Cliente":1,"Domicilio":"\ud83d\udccd Calle Morelos 34, Dolores Hidalgo, 37800","Nombre":"\ud83d\udc64 Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/1","Saldo Actual":"\ud83d\udcb21676.67 a favor","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"1\",\"Domicilio\": \"\ud83d\udccd Calle Morelos 34, Dolores Hidalgo, 37800\",\"Nombre\": \"\ud83d\udc64 Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/1\",\"Saldo Actual\": \"\ud83d\udcb21676.67 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 300\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 15\/02\/2025 10:28 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 25\/02\/2025 10:00\",\"Clabe Interbancaria\": \"002180697144444854\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 15\/02\/2025 10:28 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 25\/02\/2025 10:00","Clabe Interbancaria":"002180697144444854"}} + +Response Patch CallBell: {"contact":{"uuid":"0e53e926ce424db5b9284a75915d24fe","name":"Don Miguel Ángel Guerrero González","phoneNumber":"5214181148554","avatarUrl":null,"createdAt":"2024-01-26T17:29:28Z","closedAt":null,"source":"whatsapp","href":"https://dash.callbell.eu/contacts/0e53e926ce424db5b9284a75915d24fe","conversationHref":"https://dash.callbell.eu/chat/f017e454a6b94ab297509274216c6795","tags":["SIIP"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clientes Relacionados":"oxxo","Sectorial":"1","Nombre":"👤 Don Miguel Ángel Guerrero González","Clabe Interbancaria":"002180697144444854","Fecha Ultima Actualizacion":"📆🔄️ 25/02/2025 10:00","Monto Ultimo Pago":"💲 300","Acciones":"1","Fecha Ultimo Pago":"📆💸 15/02/2025 10:28 con Tarjeta de crédito Stripe 💳","Domicilio":"📍 Calle Morelos 34, Dolores Hidalgo, 37800","Estado":"🟢 Activo ","Saldo Actual":"💲1676.67 a favor","user name":"Angel","URL":"🌐 https://sistema.siip.mx/crm/client/1","Cliente":"1","Resumen":"{\"Cliente\": \"1\",\"Domicilio\": \"📍 Calle Morelos 34, Dolores Hidalgo, 37800\",\"Nombre\": \"👤 Don Miguel Ángel Guerrero González\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/1\",\"Saldo Actual\": \"💲1676.67 a favor\",\"Monto Ultimo Pago\": \"💲 300\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 15/02/2025 10:28 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 25/02/2025 10:00\",\"Clabe Interbancaria\": \"002180697144444854\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-27 16:00:03.438308] [notice] Logging level set to:debug +[2025-02-27 16:00:03.580612] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-27 16:00:03.580686] [debug] Valor de JSON: {"uuid":"9d8a3e62-8662-4210-b4d0-ef1a7395cd41","changeType":"insert","entity":"invoice","entityId":"1589","eventName":"invoice.add_draft","extraData":{"entity":{"id":1589,"clientId":1,"number":"001540","createdDate":"2025-02-27T10:00:01-0600","dueDate":"2025-03-13T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1592,"type":"service","label":"plan300 18\/02\/2025 \u2013 26\/02\/2025","price":300,"quantity":0.3,"total":90,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":133,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":90,"discount":null,"discountLabel":"Descuento","taxes":[],"total":90,"amountPaid":90,"totalUntaxed":90,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":668,"invoiceId":1589,"paymentId":490,"creditNoteId":null,"refundId":null,"amount":76.67},{"id":669,"invoiceId":1589,"paymentId":500,"creditNoteId":null,"refundId":null,"amount":13.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":"Don Miguel \u00c1ngel","clientLastName":"Guerrero Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Calle Morelos 34","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-27 16:00:03.580904] [debug] Adición de borrador de Factura + +[2025-02-27 16:00:03.580967] [debug] {"uuid":"9d8a3e62-8662-4210-b4d0-ef1a7395cd41","changeType":"insert","entity":"invoice","entityId":1589,"message":null,"clientId":1,"eventName":"invoice.add_draft","clientData":{"id":1,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"Calle Morelos 34","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Calle Morelos 34, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-15T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Don Miguel \u00c1ngel","lastName":"Guerrero Gonz\u00e1lez","username":"dguerrero01","contacts":[{"id":1,"clientId":1,"email":"mangelgg@gmail.com","phone":"5214181148554","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":110,"clientId":1,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PdQvAvQ2wipl5k","clientZoneVisible":true},{"id":111,"clientId":1,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180697144444854","clientZoneVisible":true}],"accountBalance":1586.67,"accountCredit":1586.67,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.1572096,"addressGpsLon":-100.9377327,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1589,"clientId":1,"number":"001540","createdDate":"2025-02-27T10:00:01-0600","dueDate":"2025-03-13T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-25T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1592,"type":"service","label":"plan300 18\/02\/2025 \u2013 26\/02\/2025","price":300,"quantity":0.3,"total":90,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":133,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":90,"discount":null,"discountLabel":"Descuento","taxes":[],"total":90,"amountPaid":90,"totalUntaxed":90,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":668,"invoiceId":1589,"paymentId":490,"creditNoteId":null,"refundId":null,"amount":76.67},{"id":669,"invoiceId":1589,"paymentId":500,"creditNoteId":null,"refundId":null,"amount":13.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":"Don Miguel \u00c1ngel","clientLastName":"Guerrero Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Calle Morelos 34","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-27 16:00:03.581048] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-27 16:00:03.581063] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":585,"clientId":1,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-02-15T10:28:13-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":"2025-02-15T10:28:14-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Don Miguel Ángel Guerrero González + +UUID: 0e53e926ce424db5b9284a75915d24fe + +JSON con los datos a actualizar: {"name":"Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez","custom_fields":{"Cliente":1,"Domicilio":"\ud83d\udccd Calle Morelos 34, Dolores Hidalgo, 37800","Nombre":"\ud83d\udc64 Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/1","Saldo Actual":"\ud83d\udcb21586.67 a favor","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"1\",\"Domicilio\": \"\ud83d\udccd Calle Morelos 34, Dolores Hidalgo, 37800\",\"Nombre\": \"\ud83d\udc64 Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/1\",\"Saldo Actual\": \"\ud83d\udcb21586.67 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 300\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 15\/02\/2025 10:28 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 27\/02\/2025 10:00\",\"Clabe Interbancaria\": \"002180697144444854\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 15\/02\/2025 10:28 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 27\/02\/2025 10:00","Clabe Interbancaria":"002180697144444854"}} + +Response Patch CallBell: {"contact":{"uuid":"0e53e926ce424db5b9284a75915d24fe","name":"Don Miguel Ángel Guerrero González","phoneNumber":"5214181148554","avatarUrl":null,"createdAt":"2024-01-26T17:29:28Z","closedAt":null,"source":"whatsapp","href":"https://dash.callbell.eu/contacts/0e53e926ce424db5b9284a75915d24fe","conversationHref":"https://dash.callbell.eu/chat/f017e454a6b94ab297509274216c6795","tags":["SIIP","LIA"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clientes Relacionados":"oxxo","Sectorial":"1","Nombre":"👤 Don Miguel Ángel Guerrero González","Clabe Interbancaria":"002180697144444854","Fecha Ultima Actualizacion":"📆🔄️ 27/02/2025 10:00","Monto Ultimo Pago":"💲 300","Acciones":"1","Fecha Ultimo Pago":"📆💸 15/02/2025 10:28 con Tarjeta de crédito Stripe 💳","Domicilio":"📍 Calle Morelos 34, Dolores Hidalgo, 37800","Estado":"🟢 Activo ","Saldo Actual":"💲1586.67 a favor","user name":"Angel","URL":"🌐 https://sistema.siip.mx/crm/client/1","Cliente":"1","Resumen":"{\"Cliente\": \"1\",\"Domicilio\": \"📍 Calle Morelos 34, Dolores Hidalgo, 37800\",\"Nombre\": \"👤 Don Miguel Ángel Guerrero González\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/1\",\"Saldo Actual\": \"💲1586.67 a favor\",\"Monto Ultimo Pago\": \"💲 300\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 15/02/2025 10:28 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 27/02/2025 10:00\",\"Clabe Interbancaria\": \"002180697144444854\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-27 16:00:05.665967] [notice] Logging level set to:debug +[2025-02-27 16:00:05.961097] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-27 16:00:05.961162] [debug] Valor de JSON: {"uuid":"baedca1c-8b08-43ae-b840-cb7c7a439136","changeType":"draft_approved","entity":"invoice","entityId":"1589","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1589,"clientId":1,"number":"001540","createdDate":"2025-02-27T10:00:01-0600","dueDate":"2025-03-13T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1592,"type":"service","label":"plan300 18\/02\/2025 \u2013 26\/02\/2025","price":300,"quantity":0.3,"total":90,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":133,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":90,"discount":null,"discountLabel":"Descuento","taxes":[],"total":90,"amountPaid":90,"totalUntaxed":90,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":668,"invoiceId":1589,"paymentId":490,"creditNoteId":null,"refundId":null,"amount":76.67},{"id":669,"invoiceId":1589,"paymentId":500,"creditNoteId":null,"refundId":null,"amount":13.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":"Don Miguel \u00c1ngel","clientLastName":"Guerrero Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Calle Morelos 34","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-27 16:00:05.961265] [debug] Aprobación de Factura + +[2025-02-27 16:00:05.961314] [debug] {"uuid":"baedca1c-8b08-43ae-b840-cb7c7a439136","changeType":"draft_approved","entity":"invoice","entityId":1589,"message":null,"clientId":1,"eventName":"invoice.draft_approved","clientData":{"id":1,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"Calle Morelos 34","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Calle Morelos 34, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-15T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Don Miguel \u00c1ngel","lastName":"Guerrero Gonz\u00e1lez","username":"dguerrero01","contacts":[{"id":1,"clientId":1,"email":"mangelgg@gmail.com","phone":"5214181148554","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":110,"clientId":1,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PdQvAvQ2wipl5k","clientZoneVisible":true},{"id":111,"clientId":1,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180697144444854","clientZoneVisible":true}],"accountBalance":1586.67,"accountCredit":1586.67,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.1572096,"addressGpsLon":-100.9377327,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1589,"clientId":1,"number":"001540","createdDate":"2025-02-27T10:00:01-0600","dueDate":"2025-03-13T10:00:01-0600","emailSentDate":"2025-02-27T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-02-25T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1592,"type":"service","label":"plan300 18\/02\/2025 \u2013 26\/02\/2025","price":300,"quantity":0.3,"total":90,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":133,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":90,"discount":null,"discountLabel":"Descuento","taxes":[],"total":90,"amountPaid":90,"totalUntaxed":90,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":668,"invoiceId":1589,"paymentId":490,"creditNoteId":null,"refundId":null,"amount":76.67},{"id":669,"invoiceId":1589,"paymentId":500,"creditNoteId":null,"refundId":null,"amount":13.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":"Don Miguel \u00c1ngel","clientLastName":"Guerrero Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Calle Morelos 34","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-27 16:00:05.961347] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-27 16:00:05.961359] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":585,"clientId":1,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-02-15T10:28:13-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":"2025-02-15T10:28:14-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Don Miguel Ángel Guerrero González + +UUID: 0e53e926ce424db5b9284a75915d24fe + +JSON con los datos a actualizar: {"name":"Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez","custom_fields":{"Cliente":1,"Domicilio":"\ud83d\udccd Calle Morelos 34, Dolores Hidalgo, 37800","Nombre":"\ud83d\udc64 Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/1","Saldo Actual":"\ud83d\udcb21586.67 a favor","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"1\",\"Domicilio\": \"\ud83d\udccd Calle Morelos 34, Dolores Hidalgo, 37800\",\"Nombre\": \"\ud83d\udc64 Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/1\",\"Saldo Actual\": \"\ud83d\udcb21586.67 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 300\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 15\/02\/2025 10:28 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 27\/02\/2025 10:00\",\"Clabe Interbancaria\": \"002180697144444854\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 15\/02\/2025 10:28 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 27\/02\/2025 10:00","Clabe Interbancaria":"002180697144444854"}} + +Response Patch CallBell: {"contact":{"uuid":"0e53e926ce424db5b9284a75915d24fe","name":"Don Miguel Ángel Guerrero González","phoneNumber":"5214181148554","avatarUrl":null,"createdAt":"2024-01-26T17:29:28Z","closedAt":null,"source":"whatsapp","href":"https://dash.callbell.eu/contacts/0e53e926ce424db5b9284a75915d24fe","conversationHref":"https://dash.callbell.eu/chat/f017e454a6b94ab297509274216c6795","tags":["SIIP","LIA"],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clientes Relacionados":"oxxo","Sectorial":"1","Nombre":"👤 Don Miguel Ángel Guerrero González","Clabe Interbancaria":"002180697144444854","Fecha Ultima Actualizacion":"📆🔄️ 27/02/2025 10:00","Monto Ultimo Pago":"💲 300","Acciones":"1","Fecha Ultimo Pago":"📆💸 15/02/2025 10:28 con Tarjeta de crédito Stripe 💳","Domicilio":"📍 Calle Morelos 34, Dolores Hidalgo, 37800","Estado":"🟢 Activo ","Saldo Actual":"💲1586.67 a favor","user name":"Angel","URL":"🌐 https://sistema.siip.mx/crm/client/1","Cliente":"1","Resumen":"{\"Cliente\": \"1\",\"Domicilio\": \"📍 Calle Morelos 34, Dolores Hidalgo, 37800\",\"Nombre\": \"👤 Don Miguel Ángel Guerrero González\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/1\",\"Saldo Actual\": \"💲1586.67 a favor\",\"Monto Ultimo Pago\": \"💲 300\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 15/02/2025 10:28 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 27/02/2025 10:00\",\"Clabe Interbancaria\": \"002180697144444854\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-27 16:00:07.798213] [notice] Logging level set to:debug +[2025-02-27 16:00:07.941385] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-27 16:00:07.941531] [debug] Valor de JSON: {"uuid":"b09b713d-dd3d-4b19-9e7a-13d331a72fab","changeType":"insert","entity":"invoice","entityId":"1590","eventName":"invoice.add_draft","extraData":{"entity":{"id":1590,"clientId":3,"number":"001541","createdDate":"2025-02-27T10:00:01-0600","dueDate":"2025-03-13T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1593,"type":"service","label":"plan300 27\/01\/2025 \u2013 26\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":3,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Lupita","clientLastName":"Morales","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"56 Oaxaca","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-27 16:00:07.941803] [debug] Adición de borrador de Factura + +[2025-02-27 16:00:07.941900] [debug] {"uuid":"b09b713d-dd3d-4b19-9e7a-13d331a72fab","changeType":"insert","entity":"invoice","entityId":1590,"message":null,"clientId":3,"eventName":"invoice.add_draft","clientData":{"id":3,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"56 Oaxaca","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Oaxaca 56, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"cliente empleada del siip","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-27T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Lupita","lastName":"Morales","username":"lmorales03","contacts":[{"id":3,"clientId":3,"email":null,"phone":"5214181577623","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":170,"clientId":3,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RfpyPlzb4OBIDe","clientZoneVisible":true},{"id":171,"clientId":3,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180299186033579","clientZoneVisible":true}],"accountBalance":-900,"accountCredit":0,"accountOutstanding":900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f9a825","addressGpsLat":21.16004,"addressGpsLon":-100.9368203,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1590,"clientId":3,"number":"001541","createdDate":"2025-02-27T10:00:01-0600","dueDate":"2025-03-13T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-25T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1593,"type":"service","label":"plan300 27\/01\/2025 \u2013 26\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":3,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Lupita","clientLastName":"Morales","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"56 Oaxaca","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-27 16:00:08.055283] [notice] Logging level set to:debug +[2025-02-27 16:00:08.219214] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-27 16:00:08.219372] [debug] Valor de JSON: {"uuid":"5fdc61d1-dbaf-4869-b3e3-6bee57e032c8","changeType":"draft_approved","entity":"invoice","entityId":"1590","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1590,"clientId":3,"number":"001541","createdDate":"2025-02-27T10:00:01-0600","dueDate":"2025-03-13T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1593,"type":"service","label":"plan300 27\/01\/2025 \u2013 26\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":3,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Lupita","clientLastName":"Morales","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"56 Oaxaca","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-27 16:00:08.219512] [debug] Aprobación de Factura + +[2025-02-27 16:00:08.219594] [debug] {"uuid":"5fdc61d1-dbaf-4869-b3e3-6bee57e032c8","changeType":"draft_approved","entity":"invoice","entityId":1590,"message":null,"clientId":3,"eventName":"invoice.draft_approved","clientData":{"id":3,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"56 Oaxaca","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Oaxaca 56, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"cliente empleada del siip","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-27T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Lupita","lastName":"Morales","username":"lmorales03","contacts":[{"id":3,"clientId":3,"email":null,"phone":"5214181577623","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":170,"clientId":3,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RfpyPlzb4OBIDe","clientZoneVisible":true},{"id":171,"clientId":3,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"124180299186033579","clientZoneVisible":true}],"accountBalance":-900,"accountCredit":0,"accountOutstanding":900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f9a825","addressGpsLat":21.16004,"addressGpsLon":-100.9368203,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1590,"clientId":3,"number":"001541","createdDate":"2025-02-27T10:00:01-0600","dueDate":"2025-03-13T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-25T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1593,"type":"service","label":"plan300 27\/01\/2025 \u2013 26\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":3,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Lupita","clientLastName":"Morales","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"56 Oaxaca","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-27 16:00:09.048444] [notice] Logging level set to:debug +[2025-02-27 16:00:09.184433] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-27 16:00:09.184586] [debug] Valor de JSON: {"uuid":"7eb8c3cc-943d-44f5-9c8c-251ca247a821","changeType":"insert","entity":"invoice","entityId":"1591","eventName":"invoice.add_draft","extraData":{"entity":{"id":1591,"clientId":4,"number":"001542","createdDate":"2025-02-27T10:00:01-0600","dueDate":"2025-03-13T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1594,"type":"service","label":"plan300 27\/01\/2025 \u2013 26\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":4,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Griselda","clientLastName":"Avalos","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"23 Yucat\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-27 16:00:09.184712] [debug] Adición de borrador de Factura + +[2025-02-27 16:00:09.184792] [debug] {"uuid":"7eb8c3cc-943d-44f5-9c8c-251ca247a821","changeType":"insert","entity":"invoice","entityId":1591,"message":null,"clientId":4,"eventName":"invoice.add_draft","clientData":{"id":4,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Yucat\u00e1n 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-27T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Griselda","lastName":"Avalos","username":"gavalos04","contacts":[{"id":4,"clientId":4,"email":"chicarosa@gmail.com","phone":"4181156999","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ff8f00","addressGpsLat":21.1542759,"addressGpsLon":-100.9379462,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1591,"clientId":4,"number":"001542","createdDate":"2025-02-27T10:00:01-0600","dueDate":"2025-03-13T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-25T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1594,"type":"service","label":"plan300 27\/01\/2025 \u2013 26\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":4,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Griselda","clientLastName":"Avalos","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"23 Yucat\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-27 16:00:09.184865] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-27 16:00:09.184907] [info] Tipo de contacto normalizado: 'whatsapp' +[2025-02-27 16:00:19.179371] [notice] Logging level set to:debug +[2025-02-27 16:00:19.341376] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-27 16:00:19.341447] [debug] Valor de JSON: {"uuid":"694acf65-5504-476e-9af3-0d85076c2657","changeType":"draft_approved","entity":"invoice","entityId":"1591","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1591,"clientId":4,"number":"001542","createdDate":"2025-02-27T10:00:01-0600","dueDate":"2025-03-13T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1594,"type":"service","label":"plan300 27\/01\/2025 \u2013 26\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":4,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Griselda","clientLastName":"Avalos","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"23 Yucat\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-27 16:00:19.341691] [debug] Aprobación de Factura + +[2025-02-27 16:00:19.341746] [debug] {"uuid":"694acf65-5504-476e-9af3-0d85076c2657","changeType":"draft_approved","entity":"invoice","entityId":1591,"message":null,"clientId":4,"eventName":"invoice.draft_approved","clientData":{"id":4,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Yucat\u00e1n 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-27T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Griselda","lastName":"Avalos","username":"gavalos04","contacts":[{"id":4,"clientId":4,"email":"chicarosa@gmail.com","phone":"4181156999","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ff8f00","addressGpsLat":21.1542759,"addressGpsLon":-100.9379462,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1591,"clientId":4,"number":"001542","createdDate":"2025-02-27T10:00:01-0600","dueDate":"2025-03-13T10:00:01-0600","emailSentDate":"2025-02-27T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-02-25T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1594,"type":"service","label":"plan300 27\/01\/2025 \u2013 26\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":4,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Griselda","clientLastName":"Avalos","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"23 Yucat\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-27 16:00:19.341819] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-27 16:00:19.341833] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [] + +Nombre del cliente que se va a actualizar: Griselda Avalos + +UUID: 6620b434a8594fc489e18e90363d59bd + +JSON con los datos a actualizar: {"name":"Griselda Avalos","custom_fields":{"Cliente":4,"Domicilio":"\ud83d\udccd Yucat\u00e1n 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Griselda Avalos","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/4","Saldo Actual":"\ud83d\udcb24200 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"4\",\"Domicilio\": \"\ud83d\udccd Yucat\u00e1n 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Griselda Avalos\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/4\",\"Saldo Actual\": \"\ud83d\udcb24200 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 27\/02\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 27\/02\/2025 10:00\",\"Clabe Interbancaria\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 27\/02\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 27\/02\/2025 10:00","Clabe Interbancaria":null}} + +Response Patch CallBell: {"contact":{"uuid":"6620b434a8594fc489e18e90363d59bd","name":"Griselda Avalos","phoneNumber":"5214181156999","avatarUrl":null,"createdAt":"2025-01-28T20:37:36Z","closedAt":"2025-01-28T22:38:41Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/6620b434a8594fc489e18e90363d59bd","conversationHref":"https://dash.callbell.eu/chat/1a14b3d2ad4141fa8447878f95cce1d6","tags":[],"assignedUser":null,"customFields":{"Sectorial":"4","Domicilio":"📍 Yucatán 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🔴 Suspendido","Fecha Ultima Actualizacion":"📆🔄️ 27/02/2025 10:00","Monto Ultimo Pago":"💲 ","Nombre":"👤 Griselda Avalos","Saldo Actual":"💲4200 pendientes","Cliente":"4","Fecha Ultimo Pago":"📆💸 27/02/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Resumen":"{\"Cliente\": \"4\",\"Domicilio\": \"📍 Yucatán 23, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Griselda Avalos\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/4\",\"Saldo Actual\": \"💲4200 pendientes\",\"Monto Ultimo Pago\": \"💲 \",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 27/02/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 27/02/2025 10:00\",\"Clabe Interbancaria\": \"\"}","URL":"🌐 https://sistema.siip.mx/crm/client/4"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-28 6:25:03.233257] [notice] Logging level set to:debug +[2025-02-28 6:25:03.460489] [debug] valor el evento recibido por webhook: invoice.overdue + +[2025-02-28 6:25:03.460695] [debug] Valor de JSON: {"uuid":"87c8b1ff-606a-449e-b343-50449d39401a","changeType":"overdue","entity":"invoice","entityId":"1556","eventName":"invoice.overdue","extraData":{"entity":{"id":1556,"clientId":146,"number":"001519","createdDate":"2025-02-13T14:41:59-0600","dueDate":"2025-02-27T14:41:59-0600","emailSentDate":"2025-02-28T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-02-13T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1559,"type":"service","label":"Basico 300 01\/03\/2025 \u2013 31\/03\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":131,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Delfino","clientLastName":"De los Mares","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"36 Yucat\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 6:25:03.460952] [debug] Factura vencida + +[2025-02-28 6:25:03.461040] [debug] datos del notification para el invoice overdue:{"uuid":"87c8b1ff-606a-449e-b343-50449d39401a","changeType":"overdue","entity":"invoice","entityId":1556,"message":null,"clientId":146,"eventName":"invoice.overdue","clientData":{"id":146,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"36 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Yucat\u00e1n 36, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-07-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Delfino","lastName":"De los Mares","username":null,"contacts":[{"id":150,"clientId":146,"email":"mariscoselsietemares@gmail.com","phone":"4188897415","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":145,"clientId":146,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_QZ7T1h3th3Dr7w","clientZoneVisible":true},{"id":146,"clientId":146,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"002180695453333629","clientZoneVisible":true}],"accountBalance":-800,"accountCredit":0,"accountOutstanding":800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":4,"name":"EQUIPO A CREDITO","colorBackground":"#fed74a","colorText":"#444"}],"invitationEmailSentDate":null,"avatarColor":"#3949ab","addressGpsLat":21.1561796,"addressGpsLon":-100.9371826,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1556,"clientId":146,"number":"001519","createdDate":"2025-02-13T14:41:59-0600","dueDate":"2025-02-27T14:41:59-0600","emailSentDate":"2025-02-28T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2025-02-13T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1559,"type":"service","label":"Basico 300 01\/03\/2025 \u2013 31\/03\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":131,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Delfino","clientLastName":"De los Mares","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"36 Yucat\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 6:25:03.461105] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** + +[2025-02-28 6:25:03.461250] [debug] Numero de cel obtenido + +[2025-02-28 6:25:03.461297] [warning] No se encontró un teléfono celular válido para el cliente: 146 +[2025-02-28 16:00:03.859440] [notice] Logging level set to:debug +[2025-02-28 16:00:04.009769] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:04.009835] [debug] Valor de JSON: {"uuid":"e12abe23-a161-4c03-93cc-a8994b5562e8","changeType":"insert","entity":"invoice","entityId":"1592","eventName":"invoice.add_draft","extraData":{"entity":{"id":1592,"clientId":7,"number":"001543","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1595,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":7,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JESUS","clientLastName":"GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:04.010065] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:04.010122] [debug] {"uuid":"e12abe23-a161-4c03-93cc-a8994b5562e8","changeType":"insert","entity":"invoice","entityId":1592,"message":null,"clientId":7,"eventName":"invoice.add_draft","clientData":{"id":7,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"ADJUNTAS DEL RIO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"ADJUNTAS DEL RIO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JESUS","lastName":"GONZALEZ","username":"jgonzalez07","contacts":[{"id":8,"clientId":7,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#607d8b","addressGpsLat":21.1191939,"addressGpsLon":-100.8698211,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1592,"clientId":7,"number":"001543","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1595,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":7,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JESUS","clientLastName":"GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:04.166449] [notice] Logging level set to:debug +[2025-02-28 16:00:04.309869] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:04.309933] [debug] Valor de JSON: {"uuid":"5423239b-cb43-416e-8501-d812c7cf1b87","changeType":"draft_approved","entity":"invoice","entityId":"1592","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1592,"clientId":7,"number":"001543","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1595,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":7,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JESUS","clientLastName":"GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:04.310034] [debug] Aprobación de Factura + +[2025-02-28 16:00:04.310084] [debug] {"uuid":"5423239b-cb43-416e-8501-d812c7cf1b87","changeType":"draft_approved","entity":"invoice","entityId":1592,"message":null,"clientId":7,"eventName":"invoice.draft_approved","clientData":{"id":7,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"ADJUNTAS DEL RIO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"ADJUNTAS DEL RIO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JESUS","lastName":"GONZALEZ","username":"jgonzalez07","contacts":[{"id":8,"clientId":7,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#607d8b","addressGpsLat":21.1191939,"addressGpsLon":-100.8698211,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1592,"clientId":7,"number":"001543","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1595,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":7,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JESUS","clientLastName":"GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:05.317384] [notice] Logging level set to:debug +[2025-02-28 16:00:05.460689] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:05.460782] [debug] Valor de JSON: {"uuid":"51566942-5484-4b9d-83f1-46ff5a5e4afc","changeType":"insert","entity":"invoice","entityId":"1593","eventName":"invoice.add_draft","extraData":{"entity":{"id":1593,"clientId":43,"number":"001544","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1596,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":42,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"VICTORIO","clientLastName":"DIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS FLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:05.460926] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:05.460988] [debug] {"uuid":"51566942-5484-4b9d-83f1-46ff5a5e4afc","changeType":"insert","entity":"invoice","entityId":1593,"message":null,"clientId":43,"eventName":"invoice.add_draft","clientData":{"id":43,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LAS FLORES","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LAS FLORES, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"VICTORIO","lastName":"DIAS","username":"vdias43","contacts":[{"id":44,"clientId":43,"email":null,"phone":"4181818706","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-9123.33,"accountCredit":0,"accountOutstanding":9123.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#fb8c00","addressGpsLat":21.1511969,"addressGpsLon":-100.9132525,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1593,"clientId":43,"number":"001544","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1596,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":42,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"VICTORIO","clientLastName":"DIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS FLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:05.577101] [notice] Logging level set to:debug +[2025-02-28 16:00:05.716590] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:05.716778] [debug] Valor de JSON: {"uuid":"4edadc3f-327a-4a35-838e-9d277c99dc77","changeType":"draft_approved","entity":"invoice","entityId":"1593","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1593,"clientId":43,"number":"001544","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1596,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":42,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"VICTORIO","clientLastName":"DIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS FLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:05.716934] [debug] Aprobación de Factura + +[2025-02-28 16:00:05.717020] [debug] {"uuid":"4edadc3f-327a-4a35-838e-9d277c99dc77","changeType":"draft_approved","entity":"invoice","entityId":1593,"message":null,"clientId":43,"eventName":"invoice.draft_approved","clientData":{"id":43,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LAS FLORES","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LAS FLORES, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"VICTORIO","lastName":"DIAS","username":"vdias43","contacts":[{"id":44,"clientId":43,"email":null,"phone":"4181818706","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-9123.33,"accountCredit":0,"accountOutstanding":9123.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#fb8c00","addressGpsLat":21.1511969,"addressGpsLon":-100.9132525,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1593,"clientId":43,"number":"001544","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1596,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":42,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"VICTORIO","clientLastName":"DIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS FLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:06.717907] [notice] Logging level set to:debug +[2025-02-28 16:00:06.879214] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:06.879281] [debug] Valor de JSON: {"uuid":"1b40bed6-d7ce-4270-9de8-a9fa4a133b90","changeType":"insert","entity":"invoice","entityId":"1594","eventName":"invoice.add_draft","extraData":{"entity":{"id":1594,"clientId":68,"number":"001545","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1597,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":67,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DOLORES","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:06.879400] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:06.879451] [debug] {"uuid":"1b40bed6-d7ce-4270-9de8-a9fa4a133b90","changeType":"insert","entity":"invoice","entityId":1594,"message":null,"clientId":68,"eventName":"invoice.add_draft","clientData":{"id":68,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ELIAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ELIAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"DOLORES","lastName":"GARCIA","username":"dgarcia68","contacts":[{"id":69,"clientId":68,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#9e9d24","addressGpsLat":21.2516667,"addressGpsLon":-101.0924998,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1594,"clientId":68,"number":"001545","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1597,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":67,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DOLORES","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:06.992886] [notice] Logging level set to:debug +[2025-02-28 16:00:07.127408] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:07.127558] [debug] Valor de JSON: {"uuid":"9a6a4d2a-f11a-4d43-9c3e-f58800bc1b6b","changeType":"draft_approved","entity":"invoice","entityId":"1594","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1594,"clientId":68,"number":"001545","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1597,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":67,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DOLORES","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:07.127697] [debug] Aprobación de Factura + +[2025-02-28 16:00:07.127782] [debug] {"uuid":"9a6a4d2a-f11a-4d43-9c3e-f58800bc1b6b","changeType":"draft_approved","entity":"invoice","entityId":1594,"message":null,"clientId":68,"eventName":"invoice.draft_approved","clientData":{"id":68,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ELIAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ELIAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"DOLORES","lastName":"GARCIA","username":"dgarcia68","contacts":[{"id":69,"clientId":68,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#9e9d24","addressGpsLat":21.2516667,"addressGpsLon":-101.0924998,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1594,"clientId":68,"number":"001545","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1597,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":67,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DOLORES","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:08.040349] [notice] Logging level set to:debug +[2025-02-28 16:00:08.178553] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:08.178714] [debug] Valor de JSON: {"uuid":"f7ee7a17-cc80-478e-b36f-c9a29a8f701a","changeType":"insert","entity":"invoice","entityId":"1595","eventName":"invoice.add_draft","extraData":{"entity":{"id":1595,"clientId":33,"number":"001546","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1598,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":32,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURELIA","clientLastName":"BARAJAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA CECILIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:08.178855] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:08.178945] [debug] {"uuid":"f7ee7a17-cc80-478e-b36f-c9a29a8f701a","changeType":"insert","entity":"invoice","entityId":1595,"message":null,"clientId":33,"eventName":"invoice.add_draft","clientData":{"id":33,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA CECILIA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA CECILIA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"AURELIA","lastName":"BARAJAS","username":"abarajas33","contacts":[{"id":34,"clientId":33,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4450,"accountCredit":0,"accountOutstanding":4450,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#8bc34a","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1595,"clientId":33,"number":"001546","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1598,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":32,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURELIA","clientLastName":"BARAJAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA CECILIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:08.288810] [notice] Logging level set to:debug +[2025-02-28 16:00:08.431019] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:08.431082] [debug] Valor de JSON: {"uuid":"3d07b306-6ffa-43c5-8c25-a2a25256d66e","changeType":"draft_approved","entity":"invoice","entityId":"1595","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1595,"clientId":33,"number":"001546","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1598,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":32,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURELIA","clientLastName":"BARAJAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA CECILIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:08.431193] [debug] Aprobación de Factura + +[2025-02-28 16:00:08.431243] [debug] {"uuid":"3d07b306-6ffa-43c5-8c25-a2a25256d66e","changeType":"draft_approved","entity":"invoice","entityId":1595,"message":null,"clientId":33,"eventName":"invoice.draft_approved","clientData":{"id":33,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA CECILIA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA CECILIA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"AURELIA","lastName":"BARAJAS","username":"abarajas33","contacts":[{"id":34,"clientId":33,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4450,"accountCredit":0,"accountOutstanding":4450,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#8bc34a","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1595,"clientId":33,"number":"001546","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1598,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":32,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURELIA","clientLastName":"BARAJAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA CECILIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:09.335985] [notice] Logging level set to:debug +[2025-02-28 16:00:09.502398] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:09.502475] [debug] Valor de JSON: {"uuid":"fc50630b-9d99-462d-b06f-e2aeb5bf45aa","changeType":"insert","entity":"invoice","entityId":"1596","eventName":"invoice.add_draft","extraData":{"entity":{"id":1596,"clientId":53,"number":"001547","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1599,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":52,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONIO","clientLastName":"CHAVEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:09.502612] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:09.502661] [debug] {"uuid":"fc50630b-9d99-462d-b06f-e2aeb5bf45aa","changeType":"insert","entity":"invoice","entityId":1596,"message":null,"clientId":53,"eventName":"invoice.add_draft","clientData":{"id":53,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA VENTA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA VENTA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANTONIO","lastName":"CHAVEZ","username":"achavez53","contacts":[{"id":54,"clientId":53,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef5350","addressGpsLat":21.1197222,"addressGpsLon":-100.7872222,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1596,"clientId":53,"number":"001547","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1599,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":52,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONIO","clientLastName":"CHAVEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:09.611768] [notice] Logging level set to:debug +[2025-02-28 16:00:09.759376] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:09.759439] [debug] Valor de JSON: {"uuid":"917bd77b-2d9d-48c4-b002-2b704d1c34c1","changeType":"draft_approved","entity":"invoice","entityId":"1596","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1596,"clientId":53,"number":"001547","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1599,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":52,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONIO","clientLastName":"CHAVEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:09.759536] [debug] Aprobación de Factura + +[2025-02-28 16:00:09.759582] [debug] {"uuid":"917bd77b-2d9d-48c4-b002-2b704d1c34c1","changeType":"draft_approved","entity":"invoice","entityId":1596,"message":null,"clientId":53,"eventName":"invoice.draft_approved","clientData":{"id":53,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA VENTA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA VENTA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANTONIO","lastName":"CHAVEZ","username":"achavez53","contacts":[{"id":54,"clientId":53,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef5350","addressGpsLat":21.1197222,"addressGpsLon":-100.7872222,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1596,"clientId":53,"number":"001547","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1599,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":52,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONIO","clientLastName":"CHAVEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:10.705362] [notice] Logging level set to:debug +[2025-02-28 16:00:10.843591] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:10.843658] [debug] Valor de JSON: {"uuid":"1b598826-6fb3-47bf-b4d1-01aa9b3c383c","changeType":"insert","entity":"invoice","entityId":"1597","eventName":"invoice.add_draft","extraData":{"entity":{"id":1597,"clientId":10,"number":"001548","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1600,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":10,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CARLOS","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:10.843766] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:10.843818] [debug] {"uuid":"1b598826-6fb3-47bf-b4d1-01aa9b3c383c","changeType":"insert","entity":"invoice","entityId":1597,"message":null,"clientId":10,"eventName":"invoice.add_draft","clientData":{"id":10,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"CARLOS","lastName":"MESA","username":"cmesa10","contacts":[{"id":11,"clientId":10,"email":null,"phone":"4425476911","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1001,"name":"WhatsApptmp"}]}],"attributes":[],"accountBalance":-4500,"accountCredit":0,"accountOutstanding":4500,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00695c","addressGpsLat":21.1574,"addressGpsLon":-100.934617,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1597,"clientId":10,"number":"001548","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1600,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":10,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CARLOS","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:10.951862] [notice] Logging level set to:debug +[2025-02-28 16:00:11.091521] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:11.091706] [debug] Valor de JSON: {"uuid":"43d96960-daf9-4a4c-bded-21753d1e53ab","changeType":"draft_approved","entity":"invoice","entityId":"1597","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1597,"clientId":10,"number":"001548","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1600,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":10,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CARLOS","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:11.091842] [debug] Aprobación de Factura + +[2025-02-28 16:00:11.091923] [debug] {"uuid":"43d96960-daf9-4a4c-bded-21753d1e53ab","changeType":"draft_approved","entity":"invoice","entityId":1597,"message":null,"clientId":10,"eventName":"invoice.draft_approved","clientData":{"id":10,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"CARLOS","lastName":"MESA","username":"cmesa10","contacts":[{"id":11,"clientId":10,"email":null,"phone":"4425476911","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1001,"name":"WhatsApptmp"}]}],"attributes":[],"accountBalance":-4500,"accountCredit":0,"accountOutstanding":4500,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00695c","addressGpsLat":21.1574,"addressGpsLon":-100.934617,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1597,"clientId":10,"number":"001548","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1600,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":10,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CARLOS","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:12.003755] [notice] Logging level set to:debug +[2025-02-28 16:00:12.169245] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:12.169313] [debug] Valor de JSON: {"uuid":"6be2c45e-cc7c-4090-b4e3-b6b9674a5922","changeType":"insert","entity":"invoice","entityId":"1598","eventName":"invoice.add_draft","extraData":{"entity":{"id":1598,"clientId":48,"number":"001549","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1601,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":47,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ISELA","clientLastName":"AZPEITIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTIAGUILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:12.169456] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:12.169508] [debug] {"uuid":"6be2c45e-cc7c-4090-b4e3-b6b9674a5922","changeType":"insert","entity":"invoice","entityId":1598,"message":null,"clientId":48,"eventName":"invoice.add_draft","clientData":{"id":48,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTIAGUILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTIAGUILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ISELA","lastName":"AZPEITIA","username":"iazpeitia48","contacts":[{"id":49,"clientId":48,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":104,"clientId":48,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtN1VUj6JXVCcUu","clientZoneVisible":true},{"id":105,"clientId":48,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"4896043950637164","clientZoneVisible":true}],"accountBalance":-6900,"accountCredit":0,"accountOutstanding":6900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#558b2f","addressGpsLat":21.0165209,"addressGpsLon":-100.9831731,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1598,"clientId":48,"number":"001549","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1601,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":47,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ISELA","clientLastName":"AZPEITIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTIAGUILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:12.280961] [notice] Logging level set to:debug +[2025-02-28 16:00:12.426589] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:12.426768] [debug] Valor de JSON: {"uuid":"5e713e5a-31e4-4e0d-ab21-4577de8de77a","changeType":"draft_approved","entity":"invoice","entityId":"1598","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1598,"clientId":48,"number":"001549","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1601,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":47,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ISELA","clientLastName":"AZPEITIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTIAGUILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:12.426903] [debug] Aprobación de Factura + +[2025-02-28 16:00:12.426987] [debug] {"uuid":"5e713e5a-31e4-4e0d-ab21-4577de8de77a","changeType":"draft_approved","entity":"invoice","entityId":1598,"message":null,"clientId":48,"eventName":"invoice.draft_approved","clientData":{"id":48,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTIAGUILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTIAGUILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ISELA","lastName":"AZPEITIA","username":"iazpeitia48","contacts":[{"id":49,"clientId":48,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":104,"clientId":48,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtN1VUj6JXVCcUu","clientZoneVisible":true},{"id":105,"clientId":48,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"4896043950637164","clientZoneVisible":true}],"accountBalance":-6900,"accountCredit":0,"accountOutstanding":6900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#558b2f","addressGpsLat":21.0165209,"addressGpsLon":-100.9831731,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1598,"clientId":48,"number":"001549","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1601,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":47,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ISELA","clientLastName":"AZPEITIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTIAGUILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:13.363780] [notice] Logging level set to:debug +[2025-02-28 16:00:13.506742] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:13.506930] [debug] Valor de JSON: {"uuid":"69767841-d80b-4c52-80f3-09f111c2c99c","changeType":"insert","entity":"invoice","entityId":"1599","eventName":"invoice.add_draft","extraData":{"entity":{"id":1599,"clientId":19,"number":"001550","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1602,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":18,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARIA","clientLastName":"RODRIGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:13.507095] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:13.507177] [debug] {"uuid":"69767841-d80b-4c52-80f3-09f111c2c99c","changeType":"insert","entity":"invoice","entityId":1599,"message":null,"clientId":19,"eventName":"invoice.add_draft","clientData":{"id":19,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MARIA","lastName":"RODRIGUEZ","username":"mrodriguez19","contacts":[{"id":20,"clientId":19,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-8433.33,"accountCredit":0,"accountOutstanding":8433.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ff5722","addressGpsLat":21.151597,"addressGpsLon":-100.9367183,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1599,"clientId":19,"number":"001550","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1602,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":18,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARIA","clientLastName":"RODRIGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:13.622500] [notice] Logging level set to:debug +[2025-02-28 16:00:13.762505] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:13.762687] [debug] Valor de JSON: {"uuid":"1cf084fd-2e9f-490d-b73f-2335b13358ff","changeType":"draft_approved","entity":"invoice","entityId":"1599","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1599,"clientId":19,"number":"001550","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1602,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":18,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARIA","clientLastName":"RODRIGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:13.762841] [debug] Aprobación de Factura + +[2025-02-28 16:00:13.762923] [debug] {"uuid":"1cf084fd-2e9f-490d-b73f-2335b13358ff","changeType":"draft_approved","entity":"invoice","entityId":1599,"message":null,"clientId":19,"eventName":"invoice.draft_approved","clientData":{"id":19,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MARIA","lastName":"RODRIGUEZ","username":"mrodriguez19","contacts":[{"id":20,"clientId":19,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-8433.33,"accountCredit":0,"accountOutstanding":8433.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ff5722","addressGpsLat":21.151597,"addressGpsLon":-100.9367183,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1599,"clientId":19,"number":"001550","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1602,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":18,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARIA","clientLastName":"RODRIGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:14.701231] [notice] Logging level set to:debug +[2025-02-28 16:00:14.853451] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:14.853636] [debug] Valor de JSON: {"uuid":"5c253f73-ecef-419a-bf0a-bb03cbc7758b","changeType":"insert","entity":"invoice","entityId":"1600","eventName":"invoice.add_draft","extraData":{"entity":{"id":1600,"clientId":34,"number":"001551","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1603,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":33,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NORMA","clientLastName":"ALMAGUER","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ROSALITO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:14.853821] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:14.853909] [debug] {"uuid":"5c253f73-ecef-419a-bf0a-bb03cbc7758b","changeType":"insert","entity":"invoice","entityId":1600,"message":null,"clientId":34,"eventName":"invoice.add_draft","clientData":{"id":34,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL ROSALITO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL ROSALITO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"NORMA","lastName":"ALMAGUER","username":"nalmaguer34","contacts":[{"id":35,"clientId":34,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4510,"accountCredit":0,"accountOutstanding":4510,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#0277bd","addressGpsLat":21.2514711,"addressGpsLon":-100.738323,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1600,"clientId":34,"number":"001551","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1603,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":33,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NORMA","clientLastName":"ALMAGUER","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ROSALITO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:14.970340] [notice] Logging level set to:debug +[2025-02-28 16:00:15.123905] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:15.124094] [debug] Valor de JSON: {"uuid":"b2f12796-daac-44ab-921b-9cdb952394c4","changeType":"draft_approved","entity":"invoice","entityId":"1600","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1600,"clientId":34,"number":"001551","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1603,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":33,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NORMA","clientLastName":"ALMAGUER","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ROSALITO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:15.124245] [debug] Aprobación de Factura + +[2025-02-28 16:00:15.124329] [debug] {"uuid":"b2f12796-daac-44ab-921b-9cdb952394c4","changeType":"draft_approved","entity":"invoice","entityId":1600,"message":null,"clientId":34,"eventName":"invoice.draft_approved","clientData":{"id":34,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL ROSALITO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL ROSALITO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"NORMA","lastName":"ALMAGUER","username":"nalmaguer34","contacts":[{"id":35,"clientId":34,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4510,"accountCredit":0,"accountOutstanding":4510,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#0277bd","addressGpsLat":21.2514711,"addressGpsLon":-100.738323,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1600,"clientId":34,"number":"001551","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1603,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":33,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NORMA","clientLastName":"ALMAGUER","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ROSALITO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:16.030946] [notice] Logging level set to:debug +[2025-02-28 16:00:16.172240] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:16.172384] [debug] Valor de JSON: {"uuid":"d63c9a69-cfad-496a-92bb-84c5aea61201","changeType":"insert","entity":"invoice","entityId":"1601","eventName":"invoice.add_draft","extraData":{"entity":{"id":1601,"clientId":89,"number":"001552","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1604,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":88,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RIO LAJA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:16.172527] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:16.172602] [debug] {"uuid":"d63c9a69-cfad-496a-92bb-84c5aea61201","changeType":"insert","entity":"invoice","entityId":1601,"message":null,"clientId":89,"eventName":"invoice.add_draft","clientData":{"id":89,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"RIO LAJA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"RIO LAJA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"TERESA","lastName":"SANCHEZ","username":"tsanchez89","contacts":[{"id":90,"clientId":89,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f9a825","addressGpsLat":21.2023922,"addressGpsLon":-100.9220375,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1601,"clientId":89,"number":"001552","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1604,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":88,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RIO LAJA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:16.285213] [notice] Logging level set to:debug +[2025-02-28 16:00:16.437333] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:16.437490] [debug] Valor de JSON: {"uuid":"8dfcfc7c-f879-4115-8a4b-7fcaea7e3d71","changeType":"draft_approved","entity":"invoice","entityId":"1601","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1601,"clientId":89,"number":"001552","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1604,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":88,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RIO LAJA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:16.437678] [debug] Aprobación de Factura + +[2025-02-28 16:00:16.437779] [debug] {"uuid":"8dfcfc7c-f879-4115-8a4b-7fcaea7e3d71","changeType":"draft_approved","entity":"invoice","entityId":1601,"message":null,"clientId":89,"eventName":"invoice.draft_approved","clientData":{"id":89,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"RIO LAJA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"RIO LAJA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"TERESA","lastName":"SANCHEZ","username":"tsanchez89","contacts":[{"id":90,"clientId":89,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f9a825","addressGpsLat":21.2023922,"addressGpsLon":-100.9220375,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1601,"clientId":89,"number":"001552","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1604,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":88,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RIO LAJA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:17.387691] [notice] Logging level set to:debug +[2025-02-28 16:00:17.522372] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:17.522525] [debug] Valor de JSON: {"uuid":"a32d491d-28f8-4d70-a7cb-94db95a74bac","changeType":"insert","entity":"invoice","entityId":"1602","eventName":"invoice.add_draft","extraData":{"entity":{"id":1602,"clientId":54,"number":"001553","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1605,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":53,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORETO","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"COLORADO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:17.522658] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:17.522741] [debug] {"uuid":"a32d491d-28f8-4d70-a7cb-94db95a74bac","changeType":"insert","entity":"invoice","entityId":1602,"message":null,"clientId":54,"eventName":"invoice.add_draft","clientData":{"id":54,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"COLORADO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"COLORADO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"LORETO","lastName":"HERRERA","username":"lherrera54","contacts":[{"id":55,"clientId":54,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ff8f00","addressGpsLat":21.1608267,"addressGpsLon":-100.7982422,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1602,"clientId":54,"number":"001553","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1605,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":53,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORETO","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"COLORADO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:17.634116] [notice] Logging level set to:debug +[2025-02-28 16:00:17.811269] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:17.811542] [debug] Valor de JSON: {"uuid":"58f6e705-56e0-4082-b09e-f4669b3f6315","changeType":"draft_approved","entity":"invoice","entityId":"1602","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1602,"clientId":54,"number":"001553","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1605,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":53,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORETO","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"COLORADO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:17.811685] [debug] Aprobación de Factura + +[2025-02-28 16:00:17.811767] [debug] {"uuid":"58f6e705-56e0-4082-b09e-f4669b3f6315","changeType":"draft_approved","entity":"invoice","entityId":1602,"message":null,"clientId":54,"eventName":"invoice.draft_approved","clientData":{"id":54,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"COLORADO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"COLORADO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"LORETO","lastName":"HERRERA","username":"lherrera54","contacts":[{"id":55,"clientId":54,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ff8f00","addressGpsLat":21.1608267,"addressGpsLon":-100.7982422,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1602,"clientId":54,"number":"001553","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1605,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":53,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORETO","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"COLORADO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:18.755815] [notice] Logging level set to:debug +[2025-02-28 16:00:18.927639] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:18.927709] [debug] Valor de JSON: {"uuid":"3cb83c22-44dd-46ff-bbed-46a645d25a3b","changeType":"insert","entity":"invoice","entityId":"1603","eventName":"invoice.add_draft","extraData":{"entity":{"id":1603,"clientId":72,"number":"001554","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1606,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":71,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BRANDOM","clientLastName":"EZQUIVEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:18.927814] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:18.927864] [debug] {"uuid":"3cb83c22-44dd-46ff-bbed-46a645d25a3b","changeType":"insert","entity":"invoice","entityId":1603,"message":null,"clientId":72,"eventName":"invoice.add_draft","clientData":{"id":72,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"MONTELONGO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"MONTELONGO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"BRANDOM","lastName":"EZQUIVEL","username":"bezquivel72","contacts":[{"id":73,"clientId":72,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ff8f00","addressGpsLat":21.2384788,"addressGpsLon":-100.8430302,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1603,"clientId":72,"number":"001554","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1606,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":71,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BRANDOM","clientLastName":"EZQUIVEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:19.041572] [notice] Logging level set to:debug +[2025-02-28 16:00:19.190232] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:19.190376] [debug] Valor de JSON: {"uuid":"a7b0fd09-581d-4cfc-bc27-fc536e3b8744","changeType":"draft_approved","entity":"invoice","entityId":"1603","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1603,"clientId":72,"number":"001554","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1606,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":71,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BRANDOM","clientLastName":"EZQUIVEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:19.190524] [debug] Aprobación de Factura + +[2025-02-28 16:00:19.190602] [debug] {"uuid":"a7b0fd09-581d-4cfc-bc27-fc536e3b8744","changeType":"draft_approved","entity":"invoice","entityId":1603,"message":null,"clientId":72,"eventName":"invoice.draft_approved","clientData":{"id":72,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"MONTELONGO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"MONTELONGO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"BRANDOM","lastName":"EZQUIVEL","username":"bezquivel72","contacts":[{"id":73,"clientId":72,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ff8f00","addressGpsLat":21.2384788,"addressGpsLon":-100.8430302,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1603,"clientId":72,"number":"001554","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1606,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":71,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BRANDOM","clientLastName":"EZQUIVEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:23.065392] [notice] Logging level set to:debug +[2025-02-28 16:00:23.221157] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:23.221224] [debug] Valor de JSON: {"uuid":"f3a93f13-c440-4245-9672-7cb71f81b40d","changeType":"insert","entity":"invoice","entityId":"1604","eventName":"invoice.add_draft","extraData":{"entity":{"id":1604,"clientId":91,"number":"001555","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1607,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":90,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CAROLINA","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:23.221353] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:23.221405] [debug] {"uuid":"f3a93f13-c440-4245-9672-7cb71f81b40d","changeType":"insert","entity":"invoice","entityId":1604,"message":null,"clientId":91,"eventName":"invoice.add_draft","clientData":{"id":91,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA CALIORNIA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA CALIORNIA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"CAROLINA","lastName":"PE\u00d1A","username":"cpe\u00d1a91","contacts":[{"id":92,"clientId":91,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-7100,"accountCredit":0,"accountOutstanding":7100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#03a9f4","addressGpsLat":21.2935854,"addressGpsLon":-100.8211626,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1604,"clientId":91,"number":"001555","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1607,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":90,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CAROLINA","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:23.333478] [notice] Logging level set to:debug +[2025-02-28 16:00:23.466114] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:23.466172] [debug] Valor de JSON: {"uuid":"d3a99e71-a29a-4f8e-a56f-99815b52cf5d","changeType":"draft_approved","entity":"invoice","entityId":"1604","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1604,"clientId":91,"number":"001555","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1607,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":90,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CAROLINA","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:23.466265] [debug] Aprobación de Factura + +[2025-02-28 16:00:23.466310] [debug] {"uuid":"d3a99e71-a29a-4f8e-a56f-99815b52cf5d","changeType":"draft_approved","entity":"invoice","entityId":1604,"message":null,"clientId":91,"eventName":"invoice.draft_approved","clientData":{"id":91,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA CALIORNIA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA CALIORNIA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"CAROLINA","lastName":"PE\u00d1A","username":"cpe\u00d1a91","contacts":[{"id":92,"clientId":91,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-7100,"accountCredit":0,"accountOutstanding":7100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#03a9f4","addressGpsLat":21.2935854,"addressGpsLon":-100.8211626,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1604,"clientId":91,"number":"001555","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1607,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":90,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CAROLINA","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:24.385793] [notice] Logging level set to:debug +[2025-02-28 16:00:24.523325] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:24.523483] [debug] Valor de JSON: {"uuid":"2bd61de2-95bb-44a6-9416-303d0bbd0629","changeType":"insert","entity":"invoice","entityId":"1605","eventName":"invoice.add_draft","extraData":{"entity":{"id":1605,"clientId":60,"number":"001556","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1608,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":59,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MANUEL","clientLastName":"CORENEO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:24.523639] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:24.523732] [debug] {"uuid":"2bd61de2-95bb-44a6-9416-303d0bbd0629","changeType":"insert","entity":"invoice","entityId":1605,"message":null,"clientId":60,"eventName":"invoice.add_draft","clientData":{"id":60,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TECOLOTE","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TECOLOTE, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MANUEL","lastName":"CORENEO","username":"mcoreneo60","contacts":[{"id":61,"clientId":60,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#6a1b9a","addressGpsLat":21.22987,"addressGpsLon":-101.0648115,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1605,"clientId":60,"number":"001556","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1608,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":59,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MANUEL","clientLastName":"CORENEO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:24.636081] [notice] Logging level set to:debug +[2025-02-28 16:00:24.772913] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:24.773051] [debug] Valor de JSON: {"uuid":"27fe9945-ea77-4285-9891-984daa1aba70","changeType":"draft_approved","entity":"invoice","entityId":"1605","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1605,"clientId":60,"number":"001556","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1608,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":59,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MANUEL","clientLastName":"CORENEO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:24.773185] [debug] Aprobación de Factura + +[2025-02-28 16:00:24.773261] [debug] {"uuid":"27fe9945-ea77-4285-9891-984daa1aba70","changeType":"draft_approved","entity":"invoice","entityId":1605,"message":null,"clientId":60,"eventName":"invoice.draft_approved","clientData":{"id":60,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TECOLOTE","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TECOLOTE, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MANUEL","lastName":"CORENEO","username":"mcoreneo60","contacts":[{"id":61,"clientId":60,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#6a1b9a","addressGpsLat":21.22987,"addressGpsLon":-101.0648115,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1605,"clientId":60,"number":"001556","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1608,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":59,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MANUEL","clientLastName":"CORENEO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:25.689625] [notice] Logging level set to:debug +[2025-02-28 16:00:25.820086] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:25.820280] [debug] Valor de JSON: {"uuid":"a80f2c9a-00e4-4332-bfba-846c9f4e06aa","changeType":"insert","entity":"invoice","entityId":"1606","eventName":"invoice.add_draft","extraData":{"entity":{"id":1606,"clientId":102,"number":"001557","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1609,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":101,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"XX","clientLastName":"XX","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:25.820437] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:25.820537] [debug] {"uuid":"a80f2c9a-00e4-4332-bfba-846c9f4e06aa","changeType":"insert","entity":"invoice","entityId":1606,"message":null,"clientId":102,"eventName":"invoice.add_draft","clientData":{"id":102,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"YERBAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"YERBAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"XX","lastName":"XX","username":"xxx02","contacts":[{"id":103,"clientId":102,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2e7d32","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1606,"clientId":102,"number":"001557","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1609,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":101,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"XX","clientLastName":"XX","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:25.930943] [notice] Logging level set to:debug +[2025-02-28 16:00:26.079355] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:26.079623] [debug] Valor de JSON: {"uuid":"b7cfbc61-bcc5-44e8-b368-aad978996af0","changeType":"draft_approved","entity":"invoice","entityId":"1606","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1606,"clientId":102,"number":"001557","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1609,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":101,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"XX","clientLastName":"XX","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:26.079771] [debug] Aprobación de Factura + +[2025-02-28 16:00:26.079852] [debug] {"uuid":"b7cfbc61-bcc5-44e8-b368-aad978996af0","changeType":"draft_approved","entity":"invoice","entityId":1606,"message":null,"clientId":102,"eventName":"invoice.draft_approved","clientData":{"id":102,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"YERBAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"YERBAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"XX","lastName":"XX","username":"xxx02","contacts":[{"id":103,"clientId":102,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2e7d32","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1606,"clientId":102,"number":"001557","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1609,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":101,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"XX","clientLastName":"XX","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:27.021579] [notice] Logging level set to:debug +[2025-02-28 16:00:27.171928] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:27.171991] [debug] Valor de JSON: {"uuid":"a3f80a03-624e-4f6c-ac54-4ed6e1bf2e32","changeType":"insert","entity":"invoice","entityId":"1607","eventName":"invoice.add_draft","extraData":{"entity":{"id":1607,"clientId":98,"number":"001558","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1610,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":97,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JULIO","clientLastName":"OLACHIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AGUILAR","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:27.172110] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:27.172157] [debug] {"uuid":"a3f80a03-624e-4f6c-ac54-4ed6e1bf2e32","changeType":"insert","entity":"invoice","entityId":1607,"message":null,"clientId":98,"eventName":"invoice.add_draft","clientData":{"id":98,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LOS AGUILAR","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LOS AGUILAR, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JULIO","lastName":"OLACHIA","username":"jolachia98","contacts":[{"id":99,"clientId":98,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#9c27b0","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1607,"clientId":98,"number":"001558","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1610,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":97,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JULIO","clientLastName":"OLACHIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AGUILAR","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:27.285947] [notice] Logging level set to:debug +[2025-02-28 16:00:27.418366] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:27.418425] [debug] Valor de JSON: {"uuid":"e6f77dee-dafe-4421-b314-34f653df9357","changeType":"draft_approved","entity":"invoice","entityId":"1607","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1607,"clientId":98,"number":"001558","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1610,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":97,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JULIO","clientLastName":"OLACHIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AGUILAR","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:27.418521] [debug] Aprobación de Factura + +[2025-02-28 16:00:27.418565] [debug] {"uuid":"e6f77dee-dafe-4421-b314-34f653df9357","changeType":"draft_approved","entity":"invoice","entityId":1607,"message":null,"clientId":98,"eventName":"invoice.draft_approved","clientData":{"id":98,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LOS AGUILAR","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LOS AGUILAR, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JULIO","lastName":"OLACHIA","username":"jolachia98","contacts":[{"id":99,"clientId":98,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#9c27b0","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1607,"clientId":98,"number":"001558","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1610,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":97,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JULIO","clientLastName":"OLACHIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AGUILAR","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:28.323975] [notice] Logging level set to:debug +[2025-02-28 16:00:28.461815] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:28.461875] [debug] Valor de JSON: {"uuid":"40cefa56-28a2-43a9-9875-f320bd9a57c9","changeType":"insert","entity":"invoice","entityId":"1608","eventName":"invoice.add_draft","extraData":{"entity":{"id":1608,"clientId":49,"number":"001559","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1611,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":48,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"ARGOTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:28.461975] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:28.462023] [debug] {"uuid":"40cefa56-28a2-43a9-9875-f320bd9a57c9","changeType":"insert","entity":"invoice","entityId":1608,"message":null,"clientId":49,"eventName":"invoice.add_draft","clientData":{"id":49,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"HUMBERTO","lastName":"ARGOTE","username":"hargote49","contacts":[{"id":50,"clientId":49,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":106,"clientId":49,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtN1TKNidnkizX4","clientZoneVisible":true},{"id":107,"clientId":49,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"5239864893662909","clientZoneVisible":true}],"accountBalance":-3910,"accountCredit":0,"accountOutstanding":3910,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1608,"clientId":49,"number":"001559","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1611,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":48,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"ARGOTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:28.591114] [notice] Logging level set to:debug +[2025-02-28 16:00:28.812341] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:28.812403] [debug] Valor de JSON: {"uuid":"442a2a07-9c81-4108-8072-3cd7ccadd692","changeType":"draft_approved","entity":"invoice","entityId":"1608","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1608,"clientId":49,"number":"001559","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1611,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":48,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"ARGOTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:28.812517] [debug] Aprobación de Factura + +[2025-02-28 16:00:28.812568] [debug] {"uuid":"442a2a07-9c81-4108-8072-3cd7ccadd692","changeType":"draft_approved","entity":"invoice","entityId":1608,"message":null,"clientId":49,"eventName":"invoice.draft_approved","clientData":{"id":49,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"HUMBERTO","lastName":"ARGOTE","username":"hargote49","contacts":[{"id":50,"clientId":49,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":106,"clientId":49,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtN1TKNidnkizX4","clientZoneVisible":true},{"id":107,"clientId":49,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"5239864893662909","clientZoneVisible":true}],"accountBalance":-3910,"accountCredit":0,"accountOutstanding":3910,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1608,"clientId":49,"number":"001559","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1611,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":48,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"ARGOTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:29.674915] [notice] Logging level set to:debug +[2025-02-28 16:00:29.829794] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:29.829957] [debug] Valor de JSON: {"uuid":"276d57f8-fafc-4025-b19c-5debb6dcbac5","changeType":"insert","entity":"invoice","entityId":"1609","eventName":"invoice.add_draft","extraData":{"entity":{"id":1609,"clientId":47,"number":"001560","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1612,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":46,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ASRAEL","clientLastName":"PONCE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:29.830118] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:29.830204] [debug] {"uuid":"276d57f8-fafc-4025-b19c-5debb6dcbac5","changeType":"insert","entity":"invoice","entityId":1609,"message":null,"clientId":47,"eventName":"invoice.add_draft","clientData":{"id":47,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ASRAEL","lastName":"PONCE","username":"aponce47","contacts":[{"id":48,"clientId":47,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":102,"clientId":47,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtN1ERR1n4E6GPk","clientZoneVisible":true},{"id":103,"clientId":47,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"8205258963078605","clientZoneVisible":true}],"accountBalance":-3880,"accountCredit":0,"accountOutstanding":3880,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef5350","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1609,"clientId":47,"number":"001560","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1612,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":46,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ASRAEL","clientLastName":"PONCE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:29.943711] [notice] Logging level set to:debug +[2025-02-28 16:00:30.192909] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:30.193068] [debug] Valor de JSON: {"uuid":"f9bcd0b6-dbe4-488f-af88-2f554c358739","changeType":"draft_approved","entity":"invoice","entityId":"1609","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1609,"clientId":47,"number":"001560","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1612,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":46,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ASRAEL","clientLastName":"PONCE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:30.193205] [debug] Aprobación de Factura + +[2025-02-28 16:00:30.193290] [debug] {"uuid":"f9bcd0b6-dbe4-488f-af88-2f554c358739","changeType":"draft_approved","entity":"invoice","entityId":1609,"message":null,"clientId":47,"eventName":"invoice.draft_approved","clientData":{"id":47,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ASRAEL","lastName":"PONCE","username":"aponce47","contacts":[{"id":48,"clientId":47,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":102,"clientId":47,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtN1ERR1n4E6GPk","clientZoneVisible":true},{"id":103,"clientId":47,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"8205258963078605","clientZoneVisible":true}],"accountBalance":-3880,"accountCredit":0,"accountOutstanding":3880,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef5350","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1609,"clientId":47,"number":"001560","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1612,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":46,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ASRAEL","clientLastName":"PONCE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:31.006948] [notice] Logging level set to:debug +[2025-02-28 16:00:31.141846] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:31.141989] [debug] Valor de JSON: {"uuid":"45aa768b-b76b-403c-8495-a5cb5869b61f","changeType":"insert","entity":"invoice","entityId":"1610","eventName":"invoice.add_draft","extraData":{"entity":{"id":1610,"clientId":80,"number":"001561","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1613,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":79,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AXEL","clientLastName":"FERNANDEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN SEBASTIAN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:31.142148] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:31.142225] [debug] {"uuid":"45aa768b-b76b-403c-8495-a5cb5869b61f","changeType":"insert","entity":"invoice","entityId":1610,"message":null,"clientId":80,"eventName":"invoice.add_draft","clientData":{"id":80,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN SEBASTIAN","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN SEBASTIAN, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"AXEL","lastName":"FERNANDEZ","username":"afernandez80","contacts":[{"id":81,"clientId":80,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef5350","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1610,"clientId":80,"number":"001561","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1613,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":79,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AXEL","clientLastName":"FERNANDEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN SEBASTIAN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:31.260818] [notice] Logging level set to:debug +[2025-02-28 16:00:31.533885] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:31.534060] [debug] Valor de JSON: {"uuid":"cde4116c-28f9-4214-aae1-162076500de6","changeType":"draft_approved","entity":"invoice","entityId":"1610","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1610,"clientId":80,"number":"001561","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1613,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":79,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AXEL","clientLastName":"FERNANDEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN SEBASTIAN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:31.534205] [debug] Aprobación de Factura + +[2025-02-28 16:00:31.534286] [debug] {"uuid":"cde4116c-28f9-4214-aae1-162076500de6","changeType":"draft_approved","entity":"invoice","entityId":1610,"message":null,"clientId":80,"eventName":"invoice.draft_approved","clientData":{"id":80,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN SEBASTIAN","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN SEBASTIAN, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"AXEL","lastName":"FERNANDEZ","username":"afernandez80","contacts":[{"id":81,"clientId":80,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef5350","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1610,"clientId":80,"number":"001561","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1613,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":79,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AXEL","clientLastName":"FERNANDEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN SEBASTIAN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:32.335402] [notice] Logging level set to:debug +[2025-02-28 16:00:32.489221] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:32.489281] [debug] Valor de JSON: {"uuid":"89b13732-7d7c-4098-acbb-2ca7dec80ac4","changeType":"insert","entity":"invoice","entityId":"1611","eventName":"invoice.add_draft","extraData":{"entity":{"id":1611,"clientId":73,"number":"001562","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1614,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":72,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ERICK","clientLastName":"VAZQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:32.489387] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:32.489433] [debug] {"uuid":"89b13732-7d7c-4098-acbb-2ca7dec80ac4","changeType":"insert","entity":"invoice","entityId":1611,"message":null,"clientId":73,"eventName":"invoice.add_draft","clientData":{"id":73,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ERICK","lastName":"VAZQUEZ","username":"evazquez73","contacts":[{"id":74,"clientId":73,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#d81b60","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1611,"clientId":73,"number":"001562","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1614,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":72,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ERICK","clientLastName":"VAZQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:32.603746] [notice] Logging level set to:debug +[2025-02-28 16:00:32.816778] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:32.816956] [debug] Valor de JSON: {"uuid":"bd2113ff-d4a6-461d-aebb-eda3dd0faa3d","changeType":"draft_approved","entity":"invoice","entityId":"1611","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1611,"clientId":73,"number":"001562","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1614,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":72,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ERICK","clientLastName":"VAZQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:32.817090] [debug] Aprobación de Factura + +[2025-02-28 16:00:32.817167] [debug] {"uuid":"bd2113ff-d4a6-461d-aebb-eda3dd0faa3d","changeType":"draft_approved","entity":"invoice","entityId":1611,"message":null,"clientId":73,"eventName":"invoice.draft_approved","clientData":{"id":73,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ERICK","lastName":"VAZQUEZ","username":"evazquez73","contacts":[{"id":74,"clientId":73,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#d81b60","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1611,"clientId":73,"number":"001562","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1614,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":72,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ERICK","clientLastName":"VAZQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:33.728760] [notice] Logging level set to:debug +[2025-02-28 16:00:33.865243] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:33.865418] [debug] Valor de JSON: {"uuid":"7d4f4e92-8789-4273-89ba-ade3f352f269","changeType":"insert","entity":"invoice","entityId":"1612","eventName":"invoice.add_draft","extraData":{"entity":{"id":1612,"clientId":95,"number":"001563","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1615,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":94,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SOFIA","clientLastName":"VALENCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:33.865562] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:33.865639] [debug] {"uuid":"7d4f4e92-8789-4273-89ba-ade3f352f269","changeType":"insert","entity":"invoice","entityId":1612,"message":null,"clientId":95,"eventName":"invoice.add_draft","clientData":{"id":95,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"SOFIA","lastName":"VALENCIA","username":"svalencia95","contacts":[{"id":96,"clientId":95,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-7000,"accountCredit":0,"accountOutstanding":7000,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#546e7a","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1612,"clientId":95,"number":"001563","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1615,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":94,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SOFIA","clientLastName":"VALENCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:33.979768] [notice] Logging level set to:debug +[2025-02-28 16:00:34.202352] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:34.202538] [debug] Valor de JSON: {"uuid":"e925211c-6e81-4e54-a18b-0671a0b81840","changeType":"draft_approved","entity":"invoice","entityId":"1612","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1612,"clientId":95,"number":"001563","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1615,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":94,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SOFIA","clientLastName":"VALENCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:34.202677] [debug] Aprobación de Factura + +[2025-02-28 16:00:34.202759] [debug] {"uuid":"e925211c-6e81-4e54-a18b-0671a0b81840","changeType":"draft_approved","entity":"invoice","entityId":1612,"message":null,"clientId":95,"eventName":"invoice.draft_approved","clientData":{"id":95,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"SOFIA","lastName":"VALENCIA","username":"svalencia95","contacts":[{"id":96,"clientId":95,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-7000,"accountCredit":0,"accountOutstanding":7000,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#546e7a","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1612,"clientId":95,"number":"001563","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1615,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":94,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SOFIA","clientLastName":"VALENCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:35.075051] [notice] Logging level set to:debug +[2025-02-28 16:00:35.221296] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:35.221474] [debug] Valor de JSON: {"uuid":"f5a4eca9-2495-4760-b3e5-3d1edc9fc823","changeType":"insert","entity":"invoice","entityId":"1613","eventName":"invoice.add_draft","extraData":{"entity":{"id":1613,"clientId":51,"number":"001564","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1616,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":50,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"MORENO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PADRE HIDALGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:35.221631] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:35.221729] [debug] {"uuid":"f5a4eca9-2495-4760-b3e5-3d1edc9fc823","changeType":"insert","entity":"invoice","entityId":1613,"message":null,"clientId":51,"eventName":"invoice.add_draft","clientData":{"id":51,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"PADRE HIDALGO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"PADRE HIDALGO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"DANIEL","lastName":"MORENO","username":"dmoreno51","contacts":[{"id":52,"clientId":51,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-7450,"accountCredit":0,"accountOutstanding":7450,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#fb8c00","addressGpsLat":21.1663422,"addressGpsLon":-100.9347882,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1613,"clientId":51,"number":"001564","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1616,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":50,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"MORENO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PADRE HIDALGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:35.333954] [notice] Logging level set to:debug +[2025-02-28 16:00:35.540913] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:35.541093] [debug] Valor de JSON: {"uuid":"3cf48bf4-0fdf-4354-94f5-7c0913dd5c5a","changeType":"draft_approved","entity":"invoice","entityId":"1613","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1613,"clientId":51,"number":"001564","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1616,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":50,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"MORENO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PADRE HIDALGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:35.541249] [debug] Aprobación de Factura + +[2025-02-28 16:00:35.541331] [debug] {"uuid":"3cf48bf4-0fdf-4354-94f5-7c0913dd5c5a","changeType":"draft_approved","entity":"invoice","entityId":1613,"message":null,"clientId":51,"eventName":"invoice.draft_approved","clientData":{"id":51,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"PADRE HIDALGO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"PADRE HIDALGO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"DANIEL","lastName":"MORENO","username":"dmoreno51","contacts":[{"id":52,"clientId":51,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-7450,"accountCredit":0,"accountOutstanding":7450,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#fb8c00","addressGpsLat":21.1663422,"addressGpsLon":-100.9347882,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1613,"clientId":51,"number":"001564","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1616,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":50,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"MORENO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PADRE HIDALGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:36.387351] [notice] Logging level set to:debug +[2025-02-28 16:00:36.530024] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:36.530198] [debug] Valor de JSON: {"uuid":"91df12c3-ee05-4405-894d-1e4b2a8aac03","changeType":"insert","entity":"invoice","entityId":"1614","eventName":"invoice.add_draft","extraData":{"entity":{"id":1614,"clientId":67,"number":"001565","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1617,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":66,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TOMAS","clientLastName":"SUASTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:36.530334] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:36.530412] [debug] {"uuid":"91df12c3-ee05-4405-894d-1e4b2a8aac03","changeType":"insert","entity":"invoice","entityId":1614,"message":null,"clientId":67,"eventName":"invoice.add_draft","clientData":{"id":67,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"TOMAS","lastName":"SUASTE","username":"tsuaste67","contacts":[{"id":68,"clientId":67,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#03a9f4","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1614,"clientId":67,"number":"001565","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1617,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":66,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TOMAS","clientLastName":"SUASTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:36.639652] [notice] Logging level set to:debug +[2025-02-28 16:00:36.860126] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:36.860302] [debug] Valor de JSON: {"uuid":"cd3fa3a6-f42d-44bf-9d3d-c1e3016d94e8","changeType":"draft_approved","entity":"invoice","entityId":"1614","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1614,"clientId":67,"number":"001565","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1617,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":66,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TOMAS","clientLastName":"SUASTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:36.860445] [debug] Aprobación de Factura + +[2025-02-28 16:00:36.860524] [debug] {"uuid":"cd3fa3a6-f42d-44bf-9d3d-c1e3016d94e8","changeType":"draft_approved","entity":"invoice","entityId":1614,"message":null,"clientId":67,"eventName":"invoice.draft_approved","clientData":{"id":67,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"TOMAS","lastName":"SUASTE","username":"tsuaste67","contacts":[{"id":68,"clientId":67,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#03a9f4","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1614,"clientId":67,"number":"001565","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1617,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":66,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TOMAS","clientLastName":"SUASTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:38.075048] [notice] Logging level set to:debug +[2025-02-28 16:00:38.360280] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:38.360465] [debug] Valor de JSON: {"uuid":"bdf9fcf3-835a-44f1-bd50-61966f44ec52","changeType":"insert","entity":"invoice","entityId":"1615","eventName":"invoice.add_draft","extraData":{"entity":{"id":1615,"clientId":85,"number":"001566","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1618,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":84,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GISELLE","clientLastName":"ARREDONDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GARABATILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:38.360622] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:38.360697] [debug] {"uuid":"bdf9fcf3-835a-44f1-bd50-61966f44ec52","changeType":"insert","entity":"invoice","entityId":1615,"message":null,"clientId":85,"eventName":"invoice.add_draft","clientData":{"id":85,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"GARABATILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"GARABATILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"GISELLE","lastName":"ARREDONDO","username":"garredondo85","contacts":[{"id":86,"clientId":85,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-7400,"accountCredit":0,"accountOutstanding":7400,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef6c00","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1615,"clientId":85,"number":"001566","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1618,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":84,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GISELLE","clientLastName":"ARREDONDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GARABATILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:38.475395] [notice] Logging level set to:debug +[2025-02-28 16:00:38.678173] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:38.678369] [debug] Valor de JSON: {"uuid":"2b786efc-5e24-406e-9f8d-e8b4500f0b9f","changeType":"draft_approved","entity":"invoice","entityId":"1615","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1615,"clientId":85,"number":"001566","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1618,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":84,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GISELLE","clientLastName":"ARREDONDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GARABATILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:38.678513] [debug] Aprobación de Factura + +[2025-02-28 16:00:38.678606] [debug] {"uuid":"2b786efc-5e24-406e-9f8d-e8b4500f0b9f","changeType":"draft_approved","entity":"invoice","entityId":1615,"message":null,"clientId":85,"eventName":"invoice.draft_approved","clientData":{"id":85,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"GARABATILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"GARABATILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"GISELLE","lastName":"ARREDONDO","username":"garredondo85","contacts":[{"id":86,"clientId":85,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-7400,"accountCredit":0,"accountOutstanding":7400,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef6c00","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1615,"clientId":85,"number":"001566","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1618,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":84,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GISELLE","clientLastName":"ARREDONDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GARABATILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:39.397289] [notice] Logging level set to:debug +[2025-02-28 16:00:39.544217] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:39.544364] [debug] Valor de JSON: {"uuid":"59e438f9-9bb6-4221-8ec5-ceda4573f383","changeType":"insert","entity":"invoice","entityId":"1616","eventName":"invoice.add_draft","extraData":{"entity":{"id":1616,"clientId":8,"number":"001567","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1619,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":8,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALFREDO","clientLastName":"GUTIERREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:39.544502] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:39.544579] [debug] {"uuid":"59e438f9-9bb6-4221-8ec5-ceda4573f383","changeType":"insert","entity":"invoice","entityId":1616,"message":null,"clientId":8,"eventName":"invoice.add_draft","clientData":{"id":8,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL BOBO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL BOBO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALFREDO","lastName":"GUTIERREZ","username":"agutierrez08","contacts":[{"id":9,"clientId":8,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-7030,"accountCredit":0,"accountOutstanding":7030,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.21484,"addressGpsLon":-100.8478122,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1616,"clientId":8,"number":"001567","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1619,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":8,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALFREDO","clientLastName":"GUTIERREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:39.652667] [notice] Logging level set to:debug +[2025-02-28 16:00:39.911576] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:39.911875] [debug] Valor de JSON: {"uuid":"87765c0d-abb0-4137-b3f4-af8f20b3368d","changeType":"draft_approved","entity":"invoice","entityId":"1616","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1616,"clientId":8,"number":"001567","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1619,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":8,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALFREDO","clientLastName":"GUTIERREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:39.912328] [debug] Aprobación de Factura + +[2025-02-28 16:00:39.912436] [debug] {"uuid":"87765c0d-abb0-4137-b3f4-af8f20b3368d","changeType":"draft_approved","entity":"invoice","entityId":1616,"message":null,"clientId":8,"eventName":"invoice.draft_approved","clientData":{"id":8,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL BOBO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL BOBO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALFREDO","lastName":"GUTIERREZ","username":"agutierrez08","contacts":[{"id":9,"clientId":8,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-7030,"accountCredit":0,"accountOutstanding":7030,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.21484,"addressGpsLon":-100.8478122,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1616,"clientId":8,"number":"001567","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1619,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":8,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALFREDO","clientLastName":"GUTIERREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:40.976232] [notice] Logging level set to:debug +[2025-02-28 16:00:41.119811] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:41.119872] [debug] Valor de JSON: {"uuid":"6d66bf87-8055-40dc-ad22-cd3fb38b0f2a","changeType":"insert","entity":"invoice","entityId":"1617","eventName":"invoice.add_draft","extraData":{"entity":{"id":1617,"clientId":29,"number":"001568","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1620,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":28,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTELA","clientLastName":"ORTIZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EJIDO DOLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:41.119976] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:41.120023] [debug] {"uuid":"6d66bf87-8055-40dc-ad22-cd3fb38b0f2a","changeType":"insert","entity":"invoice","entityId":1617,"message":null,"clientId":29,"eventName":"invoice.add_draft","clientData":{"id":29,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EJIDO DOLORES","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EJIDO DOLORES, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ESTELA","lastName":"ORTIZ","username":"eortiz29","contacts":[{"id":30,"clientId":29,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-6816.67,"accountCredit":0,"accountOutstanding":6816.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ffb300","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1617,"clientId":29,"number":"001568","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1620,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":28,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTELA","clientLastName":"ORTIZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EJIDO DOLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:41.272115] [notice] Logging level set to:debug +[2025-02-28 16:00:41.416764] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:41.416955] [debug] Valor de JSON: {"uuid":"32d47585-7740-484f-b84a-de483ed1ef8e","changeType":"draft_approved","entity":"invoice","entityId":"1617","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1617,"clientId":29,"number":"001568","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1620,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":28,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTELA","clientLastName":"ORTIZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EJIDO DOLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:41.417140] [debug] Aprobación de Factura + +[2025-02-28 16:00:41.417224] [debug] {"uuid":"32d47585-7740-484f-b84a-de483ed1ef8e","changeType":"draft_approved","entity":"invoice","entityId":1617,"message":null,"clientId":29,"eventName":"invoice.draft_approved","clientData":{"id":29,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EJIDO DOLORES","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EJIDO DOLORES, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ESTELA","lastName":"ORTIZ","username":"eortiz29","contacts":[{"id":30,"clientId":29,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-6816.67,"accountCredit":0,"accountOutstanding":6816.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ffb300","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1617,"clientId":29,"number":"001568","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1620,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":28,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTELA","clientLastName":"ORTIZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EJIDO DOLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:42.296716] [notice] Logging level set to:debug +[2025-02-28 16:00:42.431713] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:42.431890] [debug] Valor de JSON: {"uuid":"4f6776b2-999b-4926-ad81-44141c47424a","changeType":"insert","entity":"invoice","entityId":"1618","eventName":"invoice.add_draft","extraData":{"entity":{"id":1618,"clientId":99,"number":"001569","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1621,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":98,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BELINDA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:42.432044] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:42.432143] [debug] {"uuid":"4f6776b2-999b-4926-ad81-44141c47424a","changeType":"insert","entity":"invoice","entityId":1618,"message":null,"clientId":99,"eventName":"invoice.add_draft","clientData":{"id":99,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"MONTELONGO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"MONTELONGO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"BELINDA","lastName":"REYES","username":"breyes99","contacts":[{"id":100,"clientId":99,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#558b2f","addressGpsLat":21.2384788,"addressGpsLon":-100.8430302,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1618,"clientId":99,"number":"001569","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1621,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":98,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BELINDA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:42.548767] [notice] Logging level set to:debug +[2025-02-28 16:00:42.684567] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:42.684741] [debug] Valor de JSON: {"uuid":"0920fff0-33b7-42cf-97c3-e2b8a4a747ca","changeType":"draft_approved","entity":"invoice","entityId":"1618","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1618,"clientId":99,"number":"001569","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1621,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":98,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BELINDA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:42.685002] [debug] Aprobación de Factura + +[2025-02-28 16:00:42.685092] [debug] {"uuid":"0920fff0-33b7-42cf-97c3-e2b8a4a747ca","changeType":"draft_approved","entity":"invoice","entityId":1618,"message":null,"clientId":99,"eventName":"invoice.draft_approved","clientData":{"id":99,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"MONTELONGO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"MONTELONGO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"BELINDA","lastName":"REYES","username":"breyes99","contacts":[{"id":100,"clientId":99,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5400,"accountCredit":0,"accountOutstanding":5400,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#558b2f","addressGpsLat":21.2384788,"addressGpsLon":-100.8430302,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1618,"clientId":99,"number":"001569","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1621,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":98,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BELINDA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:43.566395] [notice] Logging level set to:debug +[2025-02-28 16:00:43.774394] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:43.774610] [debug] Valor de JSON: {"uuid":"317161d6-ecc0-4c85-947e-7a1798f854b6","changeType":"insert","entity":"invoice","entityId":"1619","eventName":"invoice.add_draft","extraData":{"entity":{"id":1619,"clientId":65,"number":"001570","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1622,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":64,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS MONCADA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:43.774761] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:43.774852] [debug] {"uuid":"317161d6-ecc0-4c85-947e-7a1798f854b6","changeType":"insert","entity":"invoice","entityId":1619,"message":null,"clientId":65,"eventName":"invoice.add_draft","clientData":{"id":65,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LOS MONCADA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LOS MONCADA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"SEBASTIAN","lastName":"MESA","username":"smesa65","contacts":[{"id":66,"clientId":65,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3949ab","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1619,"clientId":65,"number":"001570","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1622,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":64,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS MONCADA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:43.892038] [notice] Logging level set to:debug +[2025-02-28 16:00:44.044259] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:44.044435] [debug] Valor de JSON: {"uuid":"1512cbef-75fb-4237-8009-baf3e2a133ce","changeType":"draft_approved","entity":"invoice","entityId":"1619","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1619,"clientId":65,"number":"001570","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1622,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":64,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS MONCADA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:44.044581] [debug] Aprobación de Factura + +[2025-02-28 16:00:44.044660] [debug] {"uuid":"1512cbef-75fb-4237-8009-baf3e2a133ce","changeType":"draft_approved","entity":"invoice","entityId":1619,"message":null,"clientId":65,"eventName":"invoice.draft_approved","clientData":{"id":65,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LOS MONCADA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LOS MONCADA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"SEBASTIAN","lastName":"MESA","username":"smesa65","contacts":[{"id":66,"clientId":65,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3949ab","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1619,"clientId":65,"number":"001570","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1622,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":64,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS MONCADA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:44.964725] [notice] Logging level set to:debug +[2025-02-28 16:00:45.114029] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:45.114088] [debug] Valor de JSON: {"uuid":"9fa6e79f-753e-49ca-ba3c-dad3078106bb","changeType":"insert","entity":"invoice","entityId":"1620","eventName":"invoice.add_draft","extraData":{"entity":{"id":1620,"clientId":101,"number":"001571","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1623,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":100,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OCTAVIO","clientLastName":"VIDAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ESTA\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:45.114196] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:45.114243] [debug] {"uuid":"9fa6e79f-753e-49ca-ba3c-dad3078106bb","changeType":"insert","entity":"invoice","entityId":1620,"message":null,"clientId":101,"eventName":"invoice.add_draft","clientData":{"id":101,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL ESTA\u00d1O","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL ESTA\u00d1O, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"OCTAVIO","lastName":"VIDAL","username":"ovidal01","contacts":[{"id":102,"clientId":101,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1620,"clientId":101,"number":"001571","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1623,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":100,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OCTAVIO","clientLastName":"VIDAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ESTA\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:45.230377] [notice] Logging level set to:debug +[2025-02-28 16:00:45.364617] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:45.364753] [debug] Valor de JSON: {"uuid":"10da976a-6e74-4e90-b5fc-26ad33f57bbb","changeType":"draft_approved","entity":"invoice","entityId":"1620","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1620,"clientId":101,"number":"001571","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1623,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":100,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OCTAVIO","clientLastName":"VIDAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ESTA\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:45.364883] [debug] Aprobación de Factura + +[2025-02-28 16:00:45.364960] [debug] {"uuid":"10da976a-6e74-4e90-b5fc-26ad33f57bbb","changeType":"draft_approved","entity":"invoice","entityId":1620,"message":null,"clientId":101,"eventName":"invoice.draft_approved","clientData":{"id":101,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL ESTA\u00d1O","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL ESTA\u00d1O, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"OCTAVIO","lastName":"VIDAL","username":"ovidal01","contacts":[{"id":102,"clientId":101,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1620,"clientId":101,"number":"001571","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1623,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":100,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OCTAVIO","clientLastName":"VIDAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ESTA\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:46.288566] [notice] Logging level set to:debug +[2025-02-28 16:00:46.433891] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:46.434052] [debug] Valor de JSON: {"uuid":"96b794b6-30f3-4a3b-9346-ab84e08ba89e","changeType":"insert","entity":"invoice","entityId":"1621","eventName":"invoice.add_draft","extraData":{"entity":{"id":1621,"clientId":5,"number":"001572","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1624,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":5,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MUCIO","clientLastName":"ROBLEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CORREGIDORA #61, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:46.434200] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:46.434308] [debug] {"uuid":"96b794b6-30f3-4a3b-9346-ab84e08ba89e","changeType":"insert","entity":"invoice","entityId":1621,"message":null,"clientId":5,"eventName":"invoice.add_draft","clientData":{"id":5,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"CORREGIDORA #61, ZONA CENTRO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"CORREGIDORA #61, ZONA CENTRO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MUCIO","lastName":"ROBLEDO","username":"mrobledo05","contacts":[{"id":6,"clientId":5,"email":null,"phone":"5214181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-11033.33,"accountCredit":0,"accountOutstanding":11033.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.158357169062,"addressGpsLon":-100.93191261001,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1621,"clientId":5,"number":"001572","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1624,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":5,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MUCIO","clientLastName":"ROBLEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CORREGIDORA #61, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:46.434405] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-28 16:00:46.434472] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [] + +Nombre del cliente que se va a actualizar: MUCIO ROBLEDO + +UUID: 92dd9fb15b8f4ff6860f8a32ea9bd7e4 + +JSON con los datos a actualizar: {"name":"MUCIO ROBLEDO","custom_fields":{"Cliente":5,"Domicilio":"\ud83d\udccd CORREGIDORA #61, ZONA CENTRO, Dolores Hidalgo, 37800","Nombre":"\ud83d\udc64 MUCIO ROBLEDO","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/5","Saldo Actual":"\ud83d\udcb211033.33 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"5\",\"Domicilio\": \"\ud83d\udccd CORREGIDORA #61, ZONA CENTRO, Dolores Hidalgo, 37800\",\"Nombre\": \"\ud83d\udc64 MUCIO ROBLEDO\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/5\",\"Saldo Actual\": \"\ud83d\udcb211033.33 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 28\/02\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/02\/2025 10:00\",\"Clabe Interbancaria\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 28\/02\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/02\/2025 10:00","Clabe Interbancaria":null}} + +Response Patch CallBell: {"contact":{"uuid":"92dd9fb15b8f4ff6860f8a32ea9bd7e4","name":"MUCIO ROBLEDO","phoneNumber":"5214181091933","avatarUrl":null,"createdAt":"2023-12-22T16:55:50Z","closedAt":"2024-07-11T22:49:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/92dd9fb15b8f4ff6860f8a32ea9bd7e4","conversationHref":"https://dash.callbell.eu/chat/04a3e26142e0431789260acb0b60a3ac","tags":[],"assignedUser":null,"customFields":{"Domicilio":"📍 CORREGIDORA #61, ZONA CENTRO, Dolores Hidalgo, 37800","Monto Ultimo Pago":"💲 ","Clabe Interbancaria":"124180650659256341","Resumen":"{\"Cliente\": \"5\",\"Domicilio\": \"📍 CORREGIDORA #61, ZONA CENTRO, Dolores Hidalgo, 37800\",\"Nombre\": \"👤 MUCIO ROBLEDO\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/5\",\"Saldo Actual\": \"💲11033.33 pendientes\",\"Monto Ultimo Pago\": \"💲 \",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 28/02/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 28/02/2025 10:00\",\"Clabe Interbancaria\": \"\"}","Estado":"🔴 Suspendido","Fecha Ultima Actualizacion":"📆🔄️ 28/02/2025 10:00","Fecha Ultimo Pago":"📆💸 28/02/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Saldo Actual":"💲11033.33 pendientes","Nombre":"👤 MUCIO ROBLEDO","URL":"🌐 https://sistema.siip.mx/crm/client/5","Antena/Sectorial":"Sec3-Sb >> 172.16.55.13/24","Site":"SBARB","Cliente":"5"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-28 16:00:48.461042] [notice] Logging level set to:debug +[2025-02-28 16:00:48.598647] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:48.598786] [debug] Valor de JSON: {"uuid":"4160574a-defd-4610-9503-b0baa426f163","changeType":"draft_approved","entity":"invoice","entityId":"1621","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1621,"clientId":5,"number":"001572","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1624,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":5,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MUCIO","clientLastName":"ROBLEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CORREGIDORA #61, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:48.598931] [debug] Aprobación de Factura + +[2025-02-28 16:00:48.599011] [debug] {"uuid":"4160574a-defd-4610-9503-b0baa426f163","changeType":"draft_approved","entity":"invoice","entityId":1621,"message":null,"clientId":5,"eventName":"invoice.draft_approved","clientData":{"id":5,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"CORREGIDORA #61, ZONA CENTRO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"CORREGIDORA #61, ZONA CENTRO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MUCIO","lastName":"ROBLEDO","username":"mrobledo05","contacts":[{"id":6,"clientId":5,"email":null,"phone":"5214181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-11033.33,"accountCredit":0,"accountOutstanding":11033.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.158357169062,"addressGpsLon":-100.93191261001,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1621,"clientId":5,"number":"001572","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1624,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":5,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MUCIO","clientLastName":"ROBLEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CORREGIDORA #61, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:48.599092] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-28 16:00:48.599132] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [] + +Nombre del cliente que se va a actualizar: MUCIO ROBLEDO + +UUID: 92dd9fb15b8f4ff6860f8a32ea9bd7e4 + +JSON con los datos a actualizar: {"name":"MUCIO ROBLEDO","custom_fields":{"Cliente":5,"Domicilio":"\ud83d\udccd CORREGIDORA #61, ZONA CENTRO, Dolores Hidalgo, 37800","Nombre":"\ud83d\udc64 MUCIO ROBLEDO","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/5","Saldo Actual":"\ud83d\udcb211033.33 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"5\",\"Domicilio\": \"\ud83d\udccd CORREGIDORA #61, ZONA CENTRO, Dolores Hidalgo, 37800\",\"Nombre\": \"\ud83d\udc64 MUCIO ROBLEDO\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/5\",\"Saldo Actual\": \"\ud83d\udcb211033.33 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 28\/02\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/02\/2025 10:00\",\"Clabe Interbancaria\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 28\/02\/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/02\/2025 10:00","Clabe Interbancaria":null}} + +Response Patch CallBell: {"contact":{"uuid":"92dd9fb15b8f4ff6860f8a32ea9bd7e4","name":"MUCIO ROBLEDO","phoneNumber":"5214181091933","avatarUrl":null,"createdAt":"2023-12-22T16:55:50Z","closedAt":"2024-07-11T22:49:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/92dd9fb15b8f4ff6860f8a32ea9bd7e4","conversationHref":"https://dash.callbell.eu/chat/04a3e26142e0431789260acb0b60a3ac","tags":[],"assignedUser":null,"customFields":{"Domicilio":"📍 CORREGIDORA #61, ZONA CENTRO, Dolores Hidalgo, 37800","Monto Ultimo Pago":"💲 ","Clabe Interbancaria":"124180650659256341","Resumen":"{\"Cliente\": \"5\",\"Domicilio\": \"📍 CORREGIDORA #61, ZONA CENTRO, Dolores Hidalgo, 37800\",\"Nombre\": \"👤 MUCIO ROBLEDO\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/5\",\"Saldo Actual\": \"💲11033.33 pendientes\",\"Monto Ultimo Pago\": \"💲 \",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 28/02/2025 16:00 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 28/02/2025 10:00\",\"Clabe Interbancaria\": \"\"}","Estado":"🔴 Suspendido","Fecha Ultima Actualizacion":"📆🔄️ 28/02/2025 10:00","Fecha Ultimo Pago":"📆💸 28/02/2025 16:00 con Desconocido, revisar metodos de pago no contemplados","Saldo Actual":"💲11033.33 pendientes","Nombre":"👤 MUCIO ROBLEDO","URL":"🌐 https://sistema.siip.mx/crm/client/5","Antena/Sectorial":"Sec3-Sb >> 172.16.55.13/24","Site":"SBARB","Cliente":"5"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-28 16:00:50.499252] [notice] Logging level set to:debug +[2025-02-28 16:00:50.640737] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:50.640913] [debug] Valor de JSON: {"uuid":"73e01ee0-88e2-4d66-bf40-a639f2470575","changeType":"insert","entity":"invoice","entityId":"1622","eventName":"invoice.add_draft","extraData":{"entity":{"id":1622,"clientId":6,"number":"001573","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1625,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":6,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEJANDRO","clientLastName":"MOCTEZUMA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:50.641051] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:50.641141] [debug] {"uuid":"73e01ee0-88e2-4d66-bf40-a639f2470575","changeType":"insert","entity":"invoice","entityId":1622,"message":null,"clientId":6,"eventName":"invoice.add_draft","clientData":{"id":6,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"ALEJANDRO","lastName":"MOCTEZUMA","username":"amoctezuma06","contacts":[{"id":7,"clientId":6,"email":null,"phone":"5214181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-3880,"accountCredit":0,"accountOutstanding":3880,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574,"addressGpsLon":-100.934617,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1622,"clientId":6,"number":"001573","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1625,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":6,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEJANDRO","clientLastName":"MOCTEZUMA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:50.641201] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-28 16:00:50.641238] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":27,"clientId":6,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-02-01T12:57:53-0600","amount":2000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":30,"invoiceId":7,"paymentId":27,"creditNoteId":null,"refundId":null,"amount":1700},{"id":31,"invoiceId":5,"paymentId":27,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1000,"attributes":[]}] + +Nombre del cliente que se va a actualizar: ALEJANDRO MOCTEZUMA + +UUID: 71a76e57f89441ff978a5ece070f21d7 + +JSON con los datos a actualizar: {"name":"ALEJANDRO MOCTEZUMA","custom_fields":{"Cliente":6,"Domicilio":"\ud83d\udccd DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","Nombre":"\ud83d\udc64 ALEJANDRO MOCTEZUMA","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/6","Saldo Actual":"\ud83d\udcb23880 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 2000","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"6\",\"Domicilio\": \"\ud83d\udccd DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800\",\"Nombre\": \"\ud83d\udc64 ALEJANDRO MOCTEZUMA\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/6\",\"Saldo Actual\": \"\ud83d\udcb23880 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 2000\",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 01\/02\/2024 12:57 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/02\/2025 10:00\",\"Clabe Interbancaria\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 01\/02\/2024 12:57 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/02\/2025 10:00","Clabe Interbancaria":null}} + +Response Patch CallBell: {"contact":{"uuid":"71a76e57f89441ff978a5ece070f21d7","name":"ALEJANDRO MOCTEZUMA","phoneNumber":"5214181811375","avatarUrl":null,"createdAt":"2021-06-25T15:57:32Z","closedAt":"2024-03-08T18:53:35Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/71a76e57f89441ff978a5ece070f21d7","conversationHref":"https://dash.callbell.eu/chat/6c83978a945141db820592787b7184d5","tags":[],"assignedUser":null,"customFields":{"Antena/Sectorial":"6","Nombre":"👤 ALEJANDRO MOCTEZUMA","Domicilio":"📍 DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","Fecha Ultimo Pago":"📆💸 01/02/2024 12:57 con Efectivo 💵","Monto Ultimo Pago":"💲 2000","Estado":"🔴 Suspendido","Fecha Ultima Actualizacion":"📆🔄️ 28/02/2025 10:00","Cliente":"6","Resumen":"{\"Cliente\": \"6\",\"Domicilio\": \"📍 DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800\",\"Nombre\": \"👤 ALEJANDRO MOCTEZUMA\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/6\",\"Saldo Actual\": \"💲3880 pendientes\",\"Monto Ultimo Pago\": \"💲 2000\",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 01/02/2024 12:57 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 28/02/2025 10:00\",\"Clabe Interbancaria\": \"\"}","Saldo Actual":"💲3880 pendientes","URL":"🌐 https://sistema.siip.mx/crm/client/6"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-28 16:00:52.592902] [notice] Logging level set to:debug +[2025-02-28 16:00:52.723860] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:52.723920] [debug] Valor de JSON: {"uuid":"aa17da83-54ab-4c16-9f22-551a5372a36e","changeType":"draft_approved","entity":"invoice","entityId":"1622","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1622,"clientId":6,"number":"001573","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1625,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":6,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEJANDRO","clientLastName":"MOCTEZUMA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:52.724040] [debug] Aprobación de Factura + +[2025-02-28 16:00:52.724090] [debug] {"uuid":"aa17da83-54ab-4c16-9f22-551a5372a36e","changeType":"draft_approved","entity":"invoice","entityId":1622,"message":null,"clientId":6,"eventName":"invoice.draft_approved","clientData":{"id":6,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"ALEJANDRO","lastName":"MOCTEZUMA","username":"amoctezuma06","contacts":[{"id":7,"clientId":6,"email":null,"phone":"5214181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-3880,"accountCredit":0,"accountOutstanding":3880,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574,"addressGpsLon":-100.934617,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1622,"clientId":6,"number":"001573","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1625,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":6,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEJANDRO","clientLastName":"MOCTEZUMA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:52.724138] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-28 16:00:52.724153] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":27,"clientId":6,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-02-01T12:57:53-0600","amount":2000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":30,"invoiceId":7,"paymentId":27,"creditNoteId":null,"refundId":null,"amount":1700},{"id":31,"invoiceId":5,"paymentId":27,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1000,"attributes":[]}] + +Nombre del cliente que se va a actualizar: ALEJANDRO MOCTEZUMA + +UUID: 71a76e57f89441ff978a5ece070f21d7 + +JSON con los datos a actualizar: {"name":"ALEJANDRO MOCTEZUMA","custom_fields":{"Cliente":6,"Domicilio":"\ud83d\udccd DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","Nombre":"\ud83d\udc64 ALEJANDRO MOCTEZUMA","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/6","Saldo Actual":"\ud83d\udcb23880 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 2000","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"6\",\"Domicilio\": \"\ud83d\udccd DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800\",\"Nombre\": \"\ud83d\udc64 ALEJANDRO MOCTEZUMA\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/6\",\"Saldo Actual\": \"\ud83d\udcb23880 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 2000\",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 01\/02\/2024 12:57 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/02\/2025 10:00\",\"Clabe Interbancaria\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 01\/02\/2024 12:57 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/02\/2025 10:00","Clabe Interbancaria":null}} + +Response Patch CallBell: {"contact":{"uuid":"71a76e57f89441ff978a5ece070f21d7","name":"ALEJANDRO MOCTEZUMA","phoneNumber":"5214181811375","avatarUrl":null,"createdAt":"2021-06-25T15:57:32Z","closedAt":"2024-03-08T18:53:35Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/71a76e57f89441ff978a5ece070f21d7","conversationHref":"https://dash.callbell.eu/chat/6c83978a945141db820592787b7184d5","tags":[],"assignedUser":null,"customFields":{"Antena/Sectorial":"6","Nombre":"👤 ALEJANDRO MOCTEZUMA","Domicilio":"📍 DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","Fecha Ultimo Pago":"📆💸 01/02/2024 12:57 con Efectivo 💵","Monto Ultimo Pago":"💲 2000","Estado":"🔴 Suspendido","Fecha Ultima Actualizacion":"📆🔄️ 28/02/2025 10:00","Cliente":"6","Resumen":"{\"Cliente\": \"6\",\"Domicilio\": \"📍 DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800\",\"Nombre\": \"👤 ALEJANDRO MOCTEZUMA\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/6\",\"Saldo Actual\": \"💲3880 pendientes\",\"Monto Ultimo Pago\": \"💲 2000\",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 01/02/2024 12:57 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 28/02/2025 10:00\",\"Clabe Interbancaria\": \"\"}","Saldo Actual":"💲3880 pendientes","URL":"🌐 https://sistema.siip.mx/crm/client/6"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-28 16:00:54.545228] [notice] Logging level set to:debug +[2025-02-28 16:00:54.692060] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:54.692209] [debug] Valor de JSON: {"uuid":"1147f6fb-144f-4f6e-8614-39e08c23eaaa","changeType":"insert","entity":"invoice","entityId":"1623","eventName":"invoice.add_draft","extraData":{"entity":{"id":1623,"clientId":12,"number":"001574","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1626,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":12,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MIRIAM","clientLastName":"ZURITA RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:54.692337] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:54.692420] [debug] {"uuid":"1147f6fb-144f-4f6e-8614-39e08c23eaaa","changeType":"insert","entity":"invoice","entityId":1623,"message":null,"clientId":12,"eventName":"invoice.add_draft","clientData":{"id":12,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"DOLORES HIDALGO","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MIRIAM","lastName":"ZURITA RAMIREZ","username":"mzurita12","contacts":[{"id":13,"clientId":12,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-8433.33,"accountCredit":0,"accountOutstanding":8433.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":1623,"clientId":12,"number":"001574","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1626,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":12,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MIRIAM","clientLastName":"ZURITA RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:54.692508] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-28 16:00:54.692548] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":11,"clientId":12,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-01-29T11:46:50-0600","amount":3500,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":13,"invoiceId":20,"paymentId":11,"creditNoteId":null,"refundId":null,"amount":3500}],"creditAmount":0,"userId":1000,"attributes":[]}] + +Nombre del cliente que se va a actualizar: MIRIAM ZURITA RAMIREZ + +UUID: 7ec1948ad8af4bcd8eff0d7c2a995d09 + +JSON con los datos a actualizar: {"name":"MIRIAM ZURITA RAMIREZ","custom_fields":{"Cliente":12,"Domicilio":"\ud83d\udccd DOLORES HIDALGO","Nombre":"\ud83d\udc64 MIRIAM ZURITA RAMIREZ","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/12","Saldo Actual":"\ud83d\udcb28433.33 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 3500","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"12\",\"Domicilio\": \"\ud83d\udccd DOLORES HIDALGO\",\"Nombre\": \"\ud83d\udc64 MIRIAM ZURITA RAMIREZ\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/12\",\"Saldo Actual\": \"\ud83d\udcb28433.33 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 3500\",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 29\/01\/2024 11:46 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/02\/2025 10:00\",\"Clabe Interbancaria\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 29\/01\/2024 11:46 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/02\/2025 10:00","Clabe Interbancaria":null}} + +Response Patch CallBell: {"contact":{"uuid":"7ec1948ad8af4bcd8eff0d7c2a995d09","name":"MIRIAM ZURITA RAMIREZ","phoneNumber":"5214181577623","avatarUrl":null,"createdAt":"2023-12-22T16:52:57Z","closedAt":"2025-01-07T23:12:30Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7ec1948ad8af4bcd8eff0d7c2a995d09","conversationHref":"https://dash.callbell.eu/chat/d06f5a96768c4945b7a659a6930e5fa0","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clabe Interbancaria":"124180650725363841","Fecha Ultimo Pago":"📆💸 29/01/2024 11:46 con Efectivo 💵","Saldo Actual":"💲8433.33 pendientes","user name":"Míriam Moctezuma","Estado":"🔴 Suspendido","Monto Ultimo Pago":"💲 3500","URL":"🌐 https://sistema.siip.mx/crm/client/12","Domicilio":"📍 DOLORES HIDALGO","Resumen":"{\"Cliente\": \"12\",\"Domicilio\": \"📍 DOLORES HIDALGO\",\"Nombre\": \"👤 MIRIAM ZURITA RAMIREZ\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/12\",\"Saldo Actual\": \"💲8433.33 pendientes\",\"Monto Ultimo Pago\": \"💲 3500\",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 29/01/2024 11:46 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 28/02/2025 10:00\",\"Clabe Interbancaria\": \"\"}","Antena/Sectorial":"Rocket Prism 5AC >> 172.16.12.12/24","Site":"GPE1","Cliente":"12","Fecha Ultima Actualizacion":"📆🔄️ 28/02/2025 10:00","Nombre":"👤 MIRIAM ZURITA RAMIREZ"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-28 16:00:56.630234] [notice] Logging level set to:debug +[2025-02-28 16:00:56.776166] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:56.776228] [debug] Valor de JSON: {"uuid":"2830daaf-d331-42b3-b91c-2329ccfc3f48","changeType":"draft_approved","entity":"invoice","entityId":"1623","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1623,"clientId":12,"number":"001574","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1626,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":12,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MIRIAM","clientLastName":"ZURITA RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:56.776341] [debug] Aprobación de Factura + +[2025-02-28 16:00:56.776388] [debug] {"uuid":"2830daaf-d331-42b3-b91c-2329ccfc3f48","changeType":"draft_approved","entity":"invoice","entityId":1623,"message":null,"clientId":12,"eventName":"invoice.draft_approved","clientData":{"id":12,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"DOLORES HIDALGO","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MIRIAM","lastName":"ZURITA RAMIREZ","username":"mzurita12","contacts":[{"id":13,"clientId":12,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-8433.33,"accountCredit":0,"accountOutstanding":8433.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":1623,"clientId":12,"number":"001574","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1626,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":12,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MIRIAM","clientLastName":"ZURITA RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:56.776439] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-28 16:00:56.776453] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":11,"clientId":12,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-01-29T11:46:50-0600","amount":3500,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":13,"invoiceId":20,"paymentId":11,"creditNoteId":null,"refundId":null,"amount":3500}],"creditAmount":0,"userId":1000,"attributes":[]}] + +Nombre del cliente que se va a actualizar: MIRIAM ZURITA RAMIREZ + +UUID: 7ec1948ad8af4bcd8eff0d7c2a995d09 + +JSON con los datos a actualizar: {"name":"MIRIAM ZURITA RAMIREZ","custom_fields":{"Cliente":12,"Domicilio":"\ud83d\udccd DOLORES HIDALGO","Nombre":"\ud83d\udc64 MIRIAM ZURITA RAMIREZ","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/12","Saldo Actual":"\ud83d\udcb28433.33 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 3500","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"12\",\"Domicilio\": \"\ud83d\udccd DOLORES HIDALGO\",\"Nombre\": \"\ud83d\udc64 MIRIAM ZURITA RAMIREZ\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/12\",\"Saldo Actual\": \"\ud83d\udcb28433.33 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 3500\",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 29\/01\/2024 11:46 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/02\/2025 10:00\",\"Clabe Interbancaria\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 29\/01\/2024 11:46 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/02\/2025 10:00","Clabe Interbancaria":null}} + +Response Patch CallBell: {"contact":{"uuid":"7ec1948ad8af4bcd8eff0d7c2a995d09","name":"MIRIAM ZURITA RAMIREZ","phoneNumber":"5214181577623","avatarUrl":null,"createdAt":"2023-12-22T16:52:57Z","closedAt":"2025-01-07T23:12:30Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7ec1948ad8af4bcd8eff0d7c2a995d09","conversationHref":"https://dash.callbell.eu/chat/d06f5a96768c4945b7a659a6930e5fa0","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Clabe Interbancaria":"124180650725363841","Fecha Ultimo Pago":"📆💸 29/01/2024 11:46 con Efectivo 💵","Saldo Actual":"💲8433.33 pendientes","user name":"Míriam Moctezuma","Estado":"🔴 Suspendido","Monto Ultimo Pago":"💲 3500","URL":"🌐 https://sistema.siip.mx/crm/client/12","Domicilio":"📍 DOLORES HIDALGO","Resumen":"{\"Cliente\": \"12\",\"Domicilio\": \"📍 DOLORES HIDALGO\",\"Nombre\": \"👤 MIRIAM ZURITA RAMIREZ\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/12\",\"Saldo Actual\": \"💲8433.33 pendientes\",\"Monto Ultimo Pago\": \"💲 3500\",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 29/01/2024 11:46 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 28/02/2025 10:00\",\"Clabe Interbancaria\": \"\"}","Antena/Sectorial":"Rocket Prism 5AC >> 172.16.12.12/24","Site":"GPE1","Cliente":"12","Fecha Ultima Actualizacion":"📆🔄️ 28/02/2025 10:00","Nombre":"👤 MIRIAM ZURITA RAMIREZ"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-28 16:00:58.790355] [notice] Logging level set to:debug +[2025-02-28 16:00:58.931056] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:58.931231] [debug] Valor de JSON: {"uuid":"32dc1499-97f4-4a75-8ede-59e9892474dd","changeType":"insert","entity":"invoice","entityId":"1624","eventName":"invoice.add_draft","extraData":{"entity":{"id":1624,"clientId":27,"number":"001575","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1627,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":26,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXIS","clientLastName":"DIAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA RITA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:58.931375] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:58.931452] [debug] {"uuid":"32dc1499-97f4-4a75-8ede-59e9892474dd","changeType":"insert","entity":"invoice","entityId":1624,"message":null,"clientId":27,"eventName":"invoice.add_draft","clientData":{"id":27,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA RITA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA RITA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALEXIS","lastName":"DIAZ","username":"adiaz27","contacts":[{"id":28,"clientId":27,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3910,"accountCredit":0,"accountOutstanding":3910,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ad1457","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1624,"clientId":27,"number":"001575","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1627,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":26,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXIS","clientLastName":"DIAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA RITA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:59.049834] [notice] Logging level set to:debug +[2025-02-28 16:00:59.196576] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:59.196760] [debug] Valor de JSON: {"uuid":"324aa44f-c4ca-4aa6-bf54-6156bed169db","changeType":"draft_approved","entity":"invoice","entityId":"1624","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1624,"clientId":27,"number":"001575","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1627,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":26,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXIS","clientLastName":"DIAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA RITA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:59.196918] [debug] Aprobación de Factura + +[2025-02-28 16:00:59.197002] [debug] {"uuid":"324aa44f-c4ca-4aa6-bf54-6156bed169db","changeType":"draft_approved","entity":"invoice","entityId":1624,"message":null,"clientId":27,"eventName":"invoice.draft_approved","clientData":{"id":27,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA RITA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA RITA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALEXIS","lastName":"DIAZ","username":"adiaz27","contacts":[{"id":28,"clientId":27,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3910,"accountCredit":0,"accountOutstanding":3910,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ad1457","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1624,"clientId":27,"number":"001575","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1627,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":26,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXIS","clientLastName":"DIAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA RITA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:59.310192] [notice] Logging level set to:debug +[2025-02-28 16:00:59.447771] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:00:59.447949] [debug] Valor de JSON: {"uuid":"f996169e-bf3f-41f1-9033-0faa4630844e","changeType":"insert","entity":"invoice","entityId":"1625","eventName":"invoice.add_draft","extraData":{"entity":{"id":1625,"clientId":25,"number":"001576","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1628,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":24,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ARIEL","clientLastName":"CORTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL DURAZNO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:59.448098] [debug] Adición de borrador de Factura + +[2025-02-28 16:00:59.448177] [debug] {"uuid":"f996169e-bf3f-41f1-9033-0faa4630844e","changeType":"insert","entity":"invoice","entityId":1625,"message":null,"clientId":25,"eventName":"invoice.add_draft","clientData":{"id":25,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL DURAZNO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL DURAZNO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ARIEL","lastName":"CORTES","username":"acortes25","contacts":[{"id":26,"clientId":25,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-11900,"accountCredit":0,"accountOutstanding":11900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#607d8b","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1625,"clientId":25,"number":"001576","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1628,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":24,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ARIEL","clientLastName":"CORTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL DURAZNO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:59.563090] [notice] Logging level set to:debug +[2025-02-28 16:00:59.749584] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:00:59.749790] [debug] Valor de JSON: {"uuid":"b2b7b9fa-2abd-4c15-a144-10fe823edea7","changeType":"draft_approved","entity":"invoice","entityId":"1625","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1625,"clientId":25,"number":"001576","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1628,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":24,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ARIEL","clientLastName":"CORTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL DURAZNO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:00:59.749948] [debug] Aprobación de Factura + +[2025-02-28 16:00:59.750039] [debug] {"uuid":"b2b7b9fa-2abd-4c15-a144-10fe823edea7","changeType":"draft_approved","entity":"invoice","entityId":1625,"message":null,"clientId":25,"eventName":"invoice.draft_approved","clientData":{"id":25,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL DURAZNO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL DURAZNO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ARIEL","lastName":"CORTES","username":"acortes25","contacts":[{"id":26,"clientId":25,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-11900,"accountCredit":0,"accountOutstanding":11900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#607d8b","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1625,"clientId":25,"number":"001576","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1628,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":24,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ARIEL","clientLastName":"CORTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL DURAZNO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:00:59.887293] [notice] Logging level set to:debug +[2025-02-28 16:01:00.080408] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:00.080586] [debug] Valor de JSON: {"uuid":"f9ab7707-a137-4e47-9c0b-0b8d1f3591be","changeType":"insert","entity":"invoice","entityId":"1626","eventName":"invoice.add_draft","extraData":{"entity":{"id":1626,"clientId":71,"number":"001577","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1629,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":70,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":300,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":670,"invoiceId":1626,"paymentId":581,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MNARIA","clientLastName":"ALVAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:00.080725] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:00.080801] [debug] {"uuid":"f9ab7707-a137-4e47-9c0b-0b8d1f3591be","changeType":"insert","entity":"invoice","entityId":1626,"message":null,"clientId":71,"eventName":"invoice.add_draft","clientData":{"id":71,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MNARIA","lastName":"ALVAREZ","username":"malvarez71","contacts":[{"id":72,"clientId":71,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#4caf50","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1626,"clientId":71,"number":"001577","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1629,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":70,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":300,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":670,"invoiceId":1626,"paymentId":581,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MNARIA","clientLastName":"ALVAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:00.192270] [notice] Logging level set to:debug +[2025-02-28 16:01:00.355596] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:00.355781] [debug] Valor de JSON: {"uuid":"c5277f20-8706-4238-b617-30defa68fa23","changeType":"draft_approved","entity":"invoice","entityId":"1626","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1626,"clientId":71,"number":"001577","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1629,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":70,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":300,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":670,"invoiceId":1626,"paymentId":581,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MNARIA","clientLastName":"ALVAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:00.355942] [debug] Aprobación de Factura + +[2025-02-28 16:01:00.356024] [debug] {"uuid":"c5277f20-8706-4238-b617-30defa68fa23","changeType":"draft_approved","entity":"invoice","entityId":1626,"message":null,"clientId":71,"eventName":"invoice.draft_approved","clientData":{"id":71,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MNARIA","lastName":"ALVAREZ","username":"malvarez71","contacts":[{"id":72,"clientId":71,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#4caf50","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1626,"clientId":71,"number":"001577","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1629,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":70,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":300,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":670,"invoiceId":1626,"paymentId":581,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MNARIA","clientLastName":"ALVAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:00.465125] [notice] Logging level set to:debug +[2025-02-28 16:01:00.693185] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:00.693381] [debug] Valor de JSON: {"uuid":"cc00785e-7d06-4220-9563-5120ed68a271","changeType":"insert","entity":"invoice","entityId":"1627","eventName":"invoice.add_draft","extraData":{"entity":{"id":1627,"clientId":56,"number":"001578","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1630,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":55,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NOE","clientLastName":"SANDOVAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTIAGUILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:00.693526] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:00.693608] [debug] {"uuid":"cc00785e-7d06-4220-9563-5120ed68a271","changeType":"insert","entity":"invoice","entityId":1627,"message":null,"clientId":56,"eventName":"invoice.add_draft","clientData":{"id":56,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTIAGUILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":null,"fullAddress":"SANTIAGUILLO, Dolores Hidalgo Cuna de la Independencia Nacional","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"NOE","lastName":"SANDOVAL","username":"nsandoval56","contacts":[{"id":57,"clientId":56,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#039be5","addressGpsLat":21.0165209,"addressGpsLon":-100.9831731,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1627,"clientId":56,"number":"001578","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1630,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":55,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NOE","clientLastName":"SANDOVAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTIAGUILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:00.801886] [notice] Logging level set to:debug +[2025-02-28 16:01:01.054538] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:01.057812] [debug] Valor de JSON: {"uuid":"21a203ba-0007-4ede-b3cb-6984221daa50","changeType":"draft_approved","entity":"invoice","entityId":"1627","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1627,"clientId":56,"number":"001578","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1630,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":55,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NOE","clientLastName":"SANDOVAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTIAGUILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:01.058043] [debug] Aprobación de Factura + +[2025-02-28 16:01:01.058129] [debug] {"uuid":"21a203ba-0007-4ede-b3cb-6984221daa50","changeType":"draft_approved","entity":"invoice","entityId":1627,"message":null,"clientId":56,"eventName":"invoice.draft_approved","clientData":{"id":56,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTIAGUILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":null,"fullAddress":"SANTIAGUILLO, Dolores Hidalgo Cuna de la Independencia Nacional","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"NOE","lastName":"SANDOVAL","username":"nsandoval56","contacts":[{"id":57,"clientId":56,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#039be5","addressGpsLat":21.0165209,"addressGpsLon":-100.9831731,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1627,"clientId":56,"number":"001578","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1630,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":55,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NOE","clientLastName":"SANDOVAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTIAGUILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:01.166112] [notice] Logging level set to:debug +[2025-02-28 16:01:01.344707] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:01.344892] [debug] Valor de JSON: {"uuid":"ea0bf663-6345-4d87-bf23-94a8b2afccc1","changeType":"insert","entity":"invoice","entityId":"1628","eventName":"invoice.add_draft","extraData":{"entity":{"id":1628,"clientId":32,"number":"001579","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1631,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":31,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EMILIO","clientLastName":"PEREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ANTON DE LAS MINAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:01.345026] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:01.345182] [debug] {"uuid":"ea0bf663-6345-4d87-bf23-94a8b2afccc1","changeType":"insert","entity":"invoice","entityId":1628,"message":null,"clientId":32,"eventName":"invoice.add_draft","clientData":{"id":32,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ANTON DE LAS MINAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ANTON DE LAS MINAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"EMILIO","lastName":"PEREZ","username":"eperez32","contacts":[{"id":33,"clientId":32,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5140,"accountCredit":0,"accountOutstanding":5140,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#d81b60","addressGpsLat":21.0705003,"addressGpsLon":-101.0487257,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1628,"clientId":32,"number":"001579","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1631,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":31,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EMILIO","clientLastName":"PEREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ANTON DE LAS MINAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:01.459469] [notice] Logging level set to:debug +[2025-02-28 16:01:01.645068] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:01.648185] [debug] Valor de JSON: {"uuid":"454a87a6-07f0-4b9a-996a-b440530eef4f","changeType":"draft_approved","entity":"invoice","entityId":"1628","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1628,"clientId":32,"number":"001579","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1631,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":31,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EMILIO","clientLastName":"PEREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ANTON DE LAS MINAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:01.648384] [debug] Aprobación de Factura + +[2025-02-28 16:01:01.648469] [debug] {"uuid":"454a87a6-07f0-4b9a-996a-b440530eef4f","changeType":"draft_approved","entity":"invoice","entityId":1628,"message":null,"clientId":32,"eventName":"invoice.draft_approved","clientData":{"id":32,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ANTON DE LAS MINAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ANTON DE LAS MINAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"EMILIO","lastName":"PEREZ","username":"eperez32","contacts":[{"id":33,"clientId":32,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5140,"accountCredit":0,"accountOutstanding":5140,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#d81b60","addressGpsLat":21.0705003,"addressGpsLon":-101.0487257,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1628,"clientId":32,"number":"001579","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1631,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":31,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EMILIO","clientLastName":"PEREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ANTON DE LAS MINAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:02.439743] [notice] Logging level set to:debug +[2025-02-28 16:01:02.595033] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:02.595215] [debug] Valor de JSON: {"uuid":"e33d115b-bdb5-4a2e-b383-6d6560211f19","changeType":"insert","entity":"invoice","entityId":"1629","eventName":"invoice.add_draft","extraData":{"entity":{"id":1629,"clientId":42,"number":"001580","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1632,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":41,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORENA","clientLastName":"MARTINEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:02.595382] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:02.595462] [debug] {"uuid":"e33d115b-bdb5-4a2e-b383-6d6560211f19","changeType":"insert","entity":"invoice","entityId":1629,"message":null,"clientId":42,"eventName":"invoice.add_draft","clientData":{"id":42,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"LORENA","lastName":"MARTINEZ","username":"lmartinez42","contacts":[{"id":43,"clientId":42,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4210,"accountCredit":0,"accountOutstanding":4210,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#4527a0","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1629,"clientId":42,"number":"001580","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1632,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":41,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORENA","clientLastName":"MARTINEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:02.710315] [notice] Logging level set to:debug +[2025-02-28 16:01:02.854434] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:02.854628] [debug] Valor de JSON: {"uuid":"717d4084-538a-49b9-8b8b-5b5f327c712e","changeType":"draft_approved","entity":"invoice","entityId":"1629","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1629,"clientId":42,"number":"001580","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1632,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":41,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORENA","clientLastName":"MARTINEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:02.854875] [debug] Aprobación de Factura + +[2025-02-28 16:01:02.854959] [debug] {"uuid":"717d4084-538a-49b9-8b8b-5b5f327c712e","changeType":"draft_approved","entity":"invoice","entityId":1629,"message":null,"clientId":42,"eventName":"invoice.draft_approved","clientData":{"id":42,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"LORENA","lastName":"MARTINEZ","username":"lmartinez42","contacts":[{"id":43,"clientId":42,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4210,"accountCredit":0,"accountOutstanding":4210,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#4527a0","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1629,"clientId":42,"number":"001580","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1632,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":41,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORENA","clientLastName":"MARTINEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:03.821935] [notice] Logging level set to:debug +[2025-02-28 16:01:03.967710] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:03.967773] [debug] Valor de JSON: {"uuid":"67d90a52-5c00-4f70-b998-d8b1fa4721ff","changeType":"insert","entity":"invoice","entityId":"1630","eventName":"invoice.add_draft","extraData":{"entity":{"id":1630,"clientId":15,"number":"001581","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1633,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":15,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"VILLEGAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:03.967878] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:03.967941] [debug] {"uuid":"67d90a52-5c00-4f70-b998-d8b1fa4721ff","changeType":"insert","entity":"invoice","entityId":1630,"message":null,"clientId":15,"eventName":"invoice.add_draft","clientData":{"id":15,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"EDUARDO","lastName":"VILLEGAZ","username":"evillegaz15","contacts":[{"id":16,"clientId":15,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-10500,"accountCredit":0,"accountOutstanding":10500,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#c0ca33","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1630,"clientId":15,"number":"001581","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1633,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":15,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"VILLEGAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:03.968009] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-28 16:01:03.968028] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":16,"clientId":15,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-01-29T16:50:24-0600","amount":3500,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":18,"invoiceId":25,"paymentId":16,"creditNoteId":null,"refundId":null,"amount":3500}],"creditAmount":0,"userId":1000,"attributes":[]}] + +Nombre del cliente que se va a actualizar: EDUARDO VILLEGAZ + +UUID: 92dd9fb15b8f4ff6860f8a32ea9bd7e4 + +JSON con los datos a actualizar: {"name":"EDUARDO VILLEGAZ","custom_fields":{"Cliente":15,"Domicilio":"\ud83d\udccd SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Nombre":"\ud83d\udc64 EDUARDO VILLEGAZ","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/15","Saldo Actual":"\ud83d\udcb210500 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 3500","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"15\",\"Domicilio\": \"\ud83d\udccd SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800\",\"Nombre\": \"\ud83d\udc64 EDUARDO VILLEGAZ\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/15\",\"Saldo Actual\": \"\ud83d\udcb210500 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 3500\",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 29\/01\/2024 16:50 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/02\/2025 10:01\",\"Clabe Interbancaria\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 29\/01\/2024 16:50 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/02\/2025 10:01","Clabe Interbancaria":null}} + +Response Patch CallBell: {"contact":{"uuid":"92dd9fb15b8f4ff6860f8a32ea9bd7e4","name":"EDUARDO VILLEGAZ","phoneNumber":"5214181091933","avatarUrl":null,"createdAt":"2023-12-22T16:55:50Z","closedAt":"2024-07-11T22:49:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/92dd9fb15b8f4ff6860f8a32ea9bd7e4","conversationHref":"https://dash.callbell.eu/chat/04a3e26142e0431789260acb0b60a3ac","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"124180650659256341","Resumen":"{\"Cliente\": \"15\",\"Domicilio\": \"📍 SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800\",\"Nombre\": \"👤 EDUARDO VILLEGAZ\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/15\",\"Saldo Actual\": \"💲10500 pendientes\",\"Monto Ultimo Pago\": \"💲 3500\",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 29/01/2024 16:50 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 28/02/2025 10:01\",\"Clabe Interbancaria\": \"\"}","Estado":"🔴 Suspendido","Fecha Ultima Actualizacion":"📆🔄️ 28/02/2025 10:01","Fecha Ultimo Pago":"📆💸 29/01/2024 16:50 con Efectivo 💵","Saldo Actual":"💲10500 pendientes","Nombre":"👤 EDUARDO VILLEGAZ","URL":"🌐 https://sistema.siip.mx/crm/client/15","Antena/Sectorial":"Sec3-Sb >> 172.16.55.13/24","Site":"SBARB","Cliente":"15","Domicilio":"📍 SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Monto Ultimo Pago":"💲 3500"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-28 16:01:06.016880] [notice] Logging level set to:debug +[2025-02-28 16:01:06.189429] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:06.189718] [debug] Valor de JSON: {"uuid":"228779eb-68ce-44df-971e-d533fd9ac3ab","changeType":"draft_approved","entity":"invoice","entityId":"1630","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1630,"clientId":15,"number":"001581","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1633,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":15,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"VILLEGAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:06.189882] [debug] Aprobación de Factura + +[2025-02-28 16:01:06.189963] [debug] {"uuid":"228779eb-68ce-44df-971e-d533fd9ac3ab","changeType":"draft_approved","entity":"invoice","entityId":1630,"message":null,"clientId":15,"eventName":"invoice.draft_approved","clientData":{"id":15,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"EDUARDO","lastName":"VILLEGAZ","username":"evillegaz15","contacts":[{"id":16,"clientId":15,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-10500,"accountCredit":0,"accountOutstanding":10500,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#c0ca33","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1630,"clientId":15,"number":"001581","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1633,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":15,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"VILLEGAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:06.190046] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-28 16:01:06.190084] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":16,"clientId":15,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-01-29T16:50:24-0600","amount":3500,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":18,"invoiceId":25,"paymentId":16,"creditNoteId":null,"refundId":null,"amount":3500}],"creditAmount":0,"userId":1000,"attributes":[]}] + +Nombre del cliente que se va a actualizar: EDUARDO VILLEGAZ + +UUID: 92dd9fb15b8f4ff6860f8a32ea9bd7e4 + +JSON con los datos a actualizar: {"name":"EDUARDO VILLEGAZ","custom_fields":{"Cliente":15,"Domicilio":"\ud83d\udccd SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Nombre":"\ud83d\udc64 EDUARDO VILLEGAZ","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/15","Saldo Actual":"\ud83d\udcb210500 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 3500","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"15\",\"Domicilio\": \"\ud83d\udccd SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800\",\"Nombre\": \"\ud83d\udc64 EDUARDO VILLEGAZ\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/15\",\"Saldo Actual\": \"\ud83d\udcb210500 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 3500\",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 29\/01\/2024 16:50 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/02\/2025 10:01\",\"Clabe Interbancaria\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 29\/01\/2024 16:50 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/02\/2025 10:01","Clabe Interbancaria":null}} + +Response Patch CallBell: {"contact":{"uuid":"92dd9fb15b8f4ff6860f8a32ea9bd7e4","name":"EDUARDO VILLEGAZ","phoneNumber":"5214181091933","avatarUrl":null,"createdAt":"2023-12-22T16:55:50Z","closedAt":"2024-07-11T22:49:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/92dd9fb15b8f4ff6860f8a32ea9bd7e4","conversationHref":"https://dash.callbell.eu/chat/04a3e26142e0431789260acb0b60a3ac","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"124180650659256341","Resumen":"{\"Cliente\": \"15\",\"Domicilio\": \"📍 SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800\",\"Nombre\": \"👤 EDUARDO VILLEGAZ\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/15\",\"Saldo Actual\": \"💲10500 pendientes\",\"Monto Ultimo Pago\": \"💲 3500\",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 29/01/2024 16:50 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 28/02/2025 10:01\",\"Clabe Interbancaria\": \"\"}","Estado":"🔴 Suspendido","Fecha Ultima Actualizacion":"📆🔄️ 28/02/2025 10:01","Fecha Ultimo Pago":"📆💸 29/01/2024 16:50 con Efectivo 💵","Saldo Actual":"💲10500 pendientes","Nombre":"👤 EDUARDO VILLEGAZ","URL":"🌐 https://sistema.siip.mx/crm/client/15","Antena/Sectorial":"Sec3-Sb >> 172.16.55.13/24","Site":"SBARB","Cliente":"15","Domicilio":"📍 SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Monto Ultimo Pago":"💲 3500"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-28 16:01:07.642519] [notice] Logging level set to:debug +[2025-02-28 16:01:07.774240] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:07.774301] [debug] Valor de JSON: {"uuid":"b20733b8-0661-4855-aac8-eabe58437dab","changeType":"insert","entity":"invoice","entityId":"1631","eventName":"invoice.add_draft","extraData":{"entity":{"id":1631,"clientId":59,"number":"001582","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1634,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":58,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAMSES","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GUSANO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:07.774395] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:07.774441] [debug] {"uuid":"b20733b8-0661-4855-aac8-eabe58437dab","changeType":"insert","entity":"invoice","entityId":1631,"message":null,"clientId":59,"eventName":"invoice.add_draft","clientData":{"id":59,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"GUSANO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"GUSANO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"RAMSES","lastName":"HERRERA","username":"rherrera59","contacts":[{"id":60,"clientId":59,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00acc1","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1631,"clientId":59,"number":"001582","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1634,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":58,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAMSES","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GUSANO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:07.886560] [notice] Logging level set to:debug +[2025-02-28 16:01:08.035836] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:08.035906] [debug] Valor de JSON: {"uuid":"639d8b93-01ee-4bd8-90b7-7b12a165e00a","changeType":"draft_approved","entity":"invoice","entityId":"1631","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1631,"clientId":59,"number":"001582","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1634,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":58,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAMSES","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GUSANO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:08.036019] [debug] Aprobación de Factura + +[2025-02-28 16:01:08.036138] [debug] {"uuid":"639d8b93-01ee-4bd8-90b7-7b12a165e00a","changeType":"draft_approved","entity":"invoice","entityId":1631,"message":null,"clientId":59,"eventName":"invoice.draft_approved","clientData":{"id":59,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"GUSANO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"GUSANO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"RAMSES","lastName":"HERRERA","username":"rherrera59","contacts":[{"id":60,"clientId":59,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00acc1","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1631,"clientId":59,"number":"001582","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1634,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":58,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAMSES","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GUSANO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:08.150638] [notice] Logging level set to:debug +[2025-02-28 16:01:08.309864] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:08.310035] [debug] Valor de JSON: {"uuid":"b3d959c5-d453-4ff1-bef3-2a2fd99d043e","changeType":"insert","entity":"invoice","entityId":"1632","eventName":"invoice.add_draft","extraData":{"entity":{"id":1632,"clientId":58,"number":"001583","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1635,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":57,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"DOMINGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MOLINO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:08.310183] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:08.310262] [debug] {"uuid":"b3d959c5-d453-4ff1-bef3-2a2fd99d043e","changeType":"insert","entity":"invoice","entityId":1632,"message":null,"clientId":58,"eventName":"invoice.add_draft","clientData":{"id":58,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL MOLINO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL MOLINO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"EDGAR","lastName":"DOMINGUEZ","username":"edominguez58","contacts":[{"id":59,"clientId":58,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#6a1b9a","addressGpsLat":21.1326682,"addressGpsLon":-101.0194414,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1632,"clientId":58,"number":"001583","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1635,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":57,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"DOMINGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MOLINO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:08.424983] [notice] Logging level set to:debug +[2025-02-28 16:01:08.559089] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:08.559262] [debug] Valor de JSON: {"uuid":"f4007a06-2708-4513-bfa0-1d41d9f90d70","changeType":"draft_approved","entity":"invoice","entityId":"1632","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1632,"clientId":58,"number":"001583","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1635,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":57,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"DOMINGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MOLINO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:08.559403] [debug] Aprobación de Factura + +[2025-02-28 16:01:08.559482] [debug] {"uuid":"f4007a06-2708-4513-bfa0-1d41d9f90d70","changeType":"draft_approved","entity":"invoice","entityId":1632,"message":null,"clientId":58,"eventName":"invoice.draft_approved","clientData":{"id":58,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL MOLINO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL MOLINO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"EDGAR","lastName":"DOMINGUEZ","username":"edominguez58","contacts":[{"id":59,"clientId":58,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#6a1b9a","addressGpsLat":21.1326682,"addressGpsLon":-101.0194414,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1632,"clientId":58,"number":"001583","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1635,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":57,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"DOMINGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MOLINO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:08.870826] [notice] Logging level set to:debug +[2025-02-28 16:01:09.013082] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:09.013268] [debug] Valor de JSON: {"uuid":"4923d19a-113d-4ede-8608-05281be3f615","changeType":"insert","entity":"invoice","entityId":"1633","eventName":"invoice.add_draft","extraData":{"entity":{"id":1633,"clientId":87,"number":"001584","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1636,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":86,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ANTON","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:09.013403] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:09.013484] [debug] {"uuid":"4923d19a-113d-4ede-8608-05281be3f615","changeType":"insert","entity":"invoice","entityId":1633,"message":null,"clientId":87,"eventName":"invoice.add_draft","clientData":{"id":87,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ANTON","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ANTON, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"TERESA","lastName":"REYES","username":"treyes87","contacts":[{"id":88,"clientId":87,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1565c0","addressGpsLat":21.1473165,"addressGpsLon":-100.9333759,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1633,"clientId":87,"number":"001584","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1636,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":86,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ANTON","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:09.124624] [notice] Logging level set to:debug +[2025-02-28 16:01:09.310211] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:09.310400] [debug] Valor de JSON: {"uuid":"9ee0fb13-704d-4d77-998a-d4c657e3a5b6","changeType":"draft_approved","entity":"invoice","entityId":"1633","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1633,"clientId":87,"number":"001584","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1636,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":86,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ANTON","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:09.310570] [debug] Aprobación de Factura + +[2025-02-28 16:01:09.310652] [debug] {"uuid":"9ee0fb13-704d-4d77-998a-d4c657e3a5b6","changeType":"draft_approved","entity":"invoice","entityId":1633,"message":null,"clientId":87,"eventName":"invoice.draft_approved","clientData":{"id":87,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ANTON","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ANTON, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"TERESA","lastName":"REYES","username":"treyes87","contacts":[{"id":88,"clientId":87,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1565c0","addressGpsLat":21.1473165,"addressGpsLon":-100.9333759,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1633,"clientId":87,"number":"001584","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1636,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":86,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ANTON","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:10.240642] [notice] Logging level set to:debug +[2025-02-28 16:01:10.375119] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:10.375188] [debug] Valor de JSON: {"uuid":"3bfbf423-9de8-4987-b9da-fe139d797c9a","changeType":"insert","entity":"invoice","entityId":"1634","eventName":"invoice.add_draft","extraData":{"entity":{"id":1634,"clientId":83,"number":"001585","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1637,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":82,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"SOLIS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL VERGEL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:10.375298] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:10.375346] [debug] {"uuid":"3bfbf423-9de8-4987-b9da-fe139d797c9a","changeType":"insert","entity":"invoice","entityId":1634,"message":null,"clientId":83,"eventName":"invoice.add_draft","clientData":{"id":83,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL VERGEL","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL VERGEL, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"EDUARDO","lastName":"SOLIS","username":"esolis83","contacts":[{"id":84,"clientId":83,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-8500,"accountCredit":0,"accountOutstanding":8500,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#fdd835","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1634,"clientId":83,"number":"001585","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1637,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":82,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"SOLIS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL VERGEL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:10.489337] [notice] Logging level set to:debug +[2025-02-28 16:01:10.630939] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:10.631002] [debug] Valor de JSON: {"uuid":"5e5bf7b1-6932-42b7-8e58-a4fff07a097d","changeType":"draft_approved","entity":"invoice","entityId":"1634","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1634,"clientId":83,"number":"001585","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1637,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":82,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"SOLIS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL VERGEL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:10.631094] [debug] Aprobación de Factura + +[2025-02-28 16:01:10.631140] [debug] {"uuid":"5e5bf7b1-6932-42b7-8e58-a4fff07a097d","changeType":"draft_approved","entity":"invoice","entityId":1634,"message":null,"clientId":83,"eventName":"invoice.draft_approved","clientData":{"id":83,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL VERGEL","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL VERGEL, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"EDUARDO","lastName":"SOLIS","username":"esolis83","contacts":[{"id":84,"clientId":83,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-8500,"accountCredit":0,"accountOutstanding":8500,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#fdd835","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1634,"clientId":83,"number":"001585","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1637,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":82,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"SOLIS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL VERGEL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:11.637876] [notice] Logging level set to:debug +[2025-02-28 16:01:11.789073] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:11.789141] [debug] Valor de JSON: {"uuid":"39ceddbe-e99a-4f29-910c-eb427b5faeb6","changeType":"insert","entity":"invoice","entityId":"1635","eventName":"invoice.add_draft","extraData":{"entity":{"id":1635,"clientId":36,"number":"001586","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1638,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":35,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURORA","clientLastName":"FLORES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS FLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:11.789252] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:11.789300] [debug] {"uuid":"39ceddbe-e99a-4f29-910c-eb427b5faeb6","changeType":"insert","entity":"invoice","entityId":1635,"message":null,"clientId":36,"eventName":"invoice.add_draft","clientData":{"id":36,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LAS FLORES","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LAS FLORES, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"AURORA","lastName":"FLORES","username":"aflores36","contacts":[{"id":37,"clientId":36,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5690,"accountCredit":0,"accountOutstanding":5690,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00695c","addressGpsLat":21.1511969,"addressGpsLon":-100.9132525,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1635,"clientId":36,"number":"001586","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1638,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":35,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURORA","clientLastName":"FLORES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS FLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:11.903038] [notice] Logging level set to:debug +[2025-02-28 16:01:12.040812] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:12.040879] [debug] Valor de JSON: {"uuid":"bf463831-5014-4aa1-abee-13c2a57cfef1","changeType":"draft_approved","entity":"invoice","entityId":"1635","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1635,"clientId":36,"number":"001586","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1638,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":35,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURORA","clientLastName":"FLORES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS FLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:12.040975] [debug] Aprobación de Factura + +[2025-02-28 16:01:12.041023] [debug] {"uuid":"bf463831-5014-4aa1-abee-13c2a57cfef1","changeType":"draft_approved","entity":"invoice","entityId":1635,"message":null,"clientId":36,"eventName":"invoice.draft_approved","clientData":{"id":36,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LAS FLORES","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LAS FLORES, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"AURORA","lastName":"FLORES","username":"aflores36","contacts":[{"id":37,"clientId":36,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-5690,"accountCredit":0,"accountOutstanding":5690,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00695c","addressGpsLat":21.1511969,"addressGpsLon":-100.9132525,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1635,"clientId":36,"number":"001586","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1638,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":35,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURORA","clientLastName":"FLORES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS FLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:12.979631] [notice] Logging level set to:debug +[2025-02-28 16:01:13.138051] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:13.138202] [debug] Valor de JSON: {"uuid":"7498320e-ccd4-43ab-ac72-a6aef449b80f","changeType":"insert","entity":"invoice","entityId":"1636","eventName":"invoice.add_draft","extraData":{"entity":{"id":1636,"clientId":64,"number":"001587","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1639,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":63,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"LANDEROS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:13.138365] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:13.138448] [debug] {"uuid":"7498320e-ccd4-43ab-ac72-a6aef449b80f","changeType":"insert","entity":"invoice","entityId":1636,"message":null,"clientId":64,"eventName":"invoice.add_draft","clientData":{"id":64,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ELIAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ELIAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"OMAR","lastName":"LANDEROS","username":"olanderos64","contacts":[{"id":65,"clientId":64,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1565c0","addressGpsLat":21.2516667,"addressGpsLon":-101.0924998,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1636,"clientId":64,"number":"001587","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1639,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":63,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"LANDEROS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:13.250823] [notice] Logging level set to:debug +[2025-02-28 16:01:13.421669] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:13.421850] [debug] Valor de JSON: {"uuid":"c50b8558-3060-4a26-9af3-8cddde3b6f03","changeType":"draft_approved","entity":"invoice","entityId":"1636","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1636,"clientId":64,"number":"001587","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1639,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":63,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"LANDEROS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:13.422008] [debug] Aprobación de Factura + +[2025-02-28 16:01:13.422090] [debug] {"uuid":"c50b8558-3060-4a26-9af3-8cddde3b6f03","changeType":"draft_approved","entity":"invoice","entityId":1636,"message":null,"clientId":64,"eventName":"invoice.draft_approved","clientData":{"id":64,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ELIAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ELIAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"OMAR","lastName":"LANDEROS","username":"olanderos64","contacts":[{"id":65,"clientId":64,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1565c0","addressGpsLat":21.2516667,"addressGpsLon":-101.0924998,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1636,"clientId":64,"number":"001587","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1639,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":63,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"LANDEROS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:14.345248] [notice] Logging level set to:debug +[2025-02-28 16:01:14.496793] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:14.496964] [debug] Valor de JSON: {"uuid":"ebbf42bb-b8e9-44d3-b480-b73b4c1b8512","changeType":"insert","entity":"invoice","entityId":"1637","eventName":"invoice.add_draft","extraData":{"entity":{"id":1637,"clientId":30,"number":"001588","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1640,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":29,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUANA","clientLastName":"MONTES DE OCA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:14.497109] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:14.497186] [debug] {"uuid":"ebbf42bb-b8e9-44d3-b480-b73b4c1b8512","changeType":"insert","entity":"invoice","entityId":1637,"message":null,"clientId":30,"eventName":"invoice.add_draft","clientData":{"id":30,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"FRACCIONAMIENTO GUANAJUATO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JUANA","lastName":"MONTES DE OCA","username":"jmontes30","contacts":[{"id":31,"clientId":30,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-10500,"accountCredit":0,"accountOutstanding":10500,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#0277bd","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1637,"clientId":30,"number":"001588","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1640,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":29,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUANA","clientLastName":"MONTES DE OCA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:14.611135] [notice] Logging level set to:debug +[2025-02-28 16:01:14.755577] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:14.755639] [debug] Valor de JSON: {"uuid":"5c2d9b80-5d83-476d-9217-507659adb45b","changeType":"draft_approved","entity":"invoice","entityId":"1637","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1637,"clientId":30,"number":"001588","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1640,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":29,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUANA","clientLastName":"MONTES DE OCA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:14.755743] [debug] Aprobación de Factura + +[2025-02-28 16:01:14.755791] [debug] {"uuid":"5c2d9b80-5d83-476d-9217-507659adb45b","changeType":"draft_approved","entity":"invoice","entityId":1637,"message":null,"clientId":30,"eventName":"invoice.draft_approved","clientData":{"id":30,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"FRACCIONAMIENTO GUANAJUATO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JUANA","lastName":"MONTES DE OCA","username":"jmontes30","contacts":[{"id":31,"clientId":30,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-10500,"accountCredit":0,"accountOutstanding":10500,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#0277bd","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1637,"clientId":30,"number":"001588","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1640,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":29,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUANA","clientLastName":"MONTES DE OCA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:15.684772] [notice] Logging level set to:debug +[2025-02-28 16:01:15.831674] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:15.831736] [debug] Valor de JSON: {"uuid":"34b21424-dbeb-48fe-95f0-9cb59f9dd335","changeType":"insert","entity":"invoice","entityId":"1638","eventName":"invoice.add_draft","extraData":{"entity":{"id":1638,"clientId":88,"number":"001589","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1641,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":87,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CECILIA","clientLastName":"GRANDE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIFORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:15.831851] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:15.831899] [debug] {"uuid":"34b21424-dbeb-48fe-95f0-9cb59f9dd335","changeType":"insert","entity":"invoice","entityId":1638,"message":null,"clientId":88,"eventName":"invoice.add_draft","clientData":{"id":88,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA CALIFORNIA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA CALIFORNIA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"CECILIA","lastName":"GRANDE","username":"cgrande88","contacts":[{"id":89,"clientId":88,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-9600,"accountCredit":0,"accountOutstanding":9600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#4527a0","addressGpsLat":21.2895071,"addressGpsLon":-100.825418,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1638,"clientId":88,"number":"001589","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1641,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":87,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CECILIA","clientLastName":"GRANDE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIFORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:15.942842] [notice] Logging level set to:debug +[2025-02-28 16:01:16.084397] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:16.084592] [debug] Valor de JSON: {"uuid":"ae92e28b-6d3a-423c-95b3-8dae9cd4958c","changeType":"draft_approved","entity":"invoice","entityId":"1638","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1638,"clientId":88,"number":"001589","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1641,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":87,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CECILIA","clientLastName":"GRANDE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIFORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:16.084860] [debug] Aprobación de Factura + +[2025-02-28 16:01:16.084945] [debug] {"uuid":"ae92e28b-6d3a-423c-95b3-8dae9cd4958c","changeType":"draft_approved","entity":"invoice","entityId":1638,"message":null,"clientId":88,"eventName":"invoice.draft_approved","clientData":{"id":88,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA CALIFORNIA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA CALIFORNIA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"CECILIA","lastName":"GRANDE","username":"cgrande88","contacts":[{"id":89,"clientId":88,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-9600,"accountCredit":0,"accountOutstanding":9600,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#4527a0","addressGpsLat":21.2895071,"addressGpsLon":-100.825418,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1638,"clientId":88,"number":"001589","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1641,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":87,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CECILIA","clientLastName":"GRANDE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIFORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:17.028232] [notice] Logging level set to:debug +[2025-02-28 16:01:17.175851] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:17.176037] [debug] Valor de JSON: {"uuid":"023c7fae-d4ae-4c95-bc4e-9dce03bea50c","changeType":"insert","entity":"invoice","entityId":"1639","eventName":"invoice.add_draft","extraData":{"entity":{"id":1639,"clientId":17,"number":"001590","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1642,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":16,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUAN","clientLastName":"LOPEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CIENEGUILLA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:17.176178] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:17.176261] [debug] {"uuid":"023c7fae-d4ae-4c95-bc4e-9dce03bea50c","changeType":"insert","entity":"invoice","entityId":1639,"message":null,"clientId":17,"eventName":"invoice.add_draft","clientData":{"id":17,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"CIENEGUILLA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"CIENEGUILLA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JUAN","lastName":"LOPEZ","username":"jlopez17","contacts":[{"id":18,"clientId":17,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4790,"accountCredit":0,"accountOutstanding":4790,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.0749852,"addressGpsLon":-100.937613,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1639,"clientId":17,"number":"001590","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1642,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":16,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUAN","clientLastName":"LOPEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CIENEGUILLA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:17.290556] [notice] Logging level set to:debug +[2025-02-28 16:01:17.434133] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:17.434307] [debug] Valor de JSON: {"uuid":"26f798dc-6b6d-4bd1-8a21-b28bc53061a8","changeType":"draft_approved","entity":"invoice","entityId":"1639","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1639,"clientId":17,"number":"001590","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1642,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":16,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUAN","clientLastName":"LOPEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CIENEGUILLA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:17.434453] [debug] Aprobación de Factura + +[2025-02-28 16:01:17.434533] [debug] {"uuid":"26f798dc-6b6d-4bd1-8a21-b28bc53061a8","changeType":"draft_approved","entity":"invoice","entityId":1639,"message":null,"clientId":17,"eventName":"invoice.draft_approved","clientData":{"id":17,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"CIENEGUILLA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"CIENEGUILLA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JUAN","lastName":"LOPEZ","username":"jlopez17","contacts":[{"id":18,"clientId":17,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4790,"accountCredit":0,"accountOutstanding":4790,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.0749852,"addressGpsLon":-100.937613,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1639,"clientId":17,"number":"001590","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1642,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":16,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUAN","clientLastName":"LOPEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CIENEGUILLA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:18.327681] [notice] Logging level set to:debug +[2025-02-28 16:01:18.497355] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:18.497421] [debug] Valor de JSON: {"uuid":"4d5a43ec-09ee-4214-b1a9-094e3d76288a","changeType":"insert","entity":"invoice","entityId":"1640","eventName":"invoice.add_draft","extraData":{"entity":{"id":1640,"clientId":63,"number":"001591","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1643,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":62,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONELA","clientLastName":"ROBLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:18.497534] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:18.497581] [debug] {"uuid":"4d5a43ec-09ee-4214-b1a9-094e3d76288a","changeType":"insert","entity":"invoice","entityId":1640,"message":null,"clientId":63,"eventName":"invoice.add_draft","clientData":{"id":63,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ELIAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ELIAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANTONELA","lastName":"ROBLES","username":"arobles63","contacts":[{"id":64,"clientId":63,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ffb300","addressGpsLat":21.2516667,"addressGpsLon":-101.0924998,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1640,"clientId":63,"number":"001591","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1643,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":62,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONELA","clientLastName":"ROBLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:18.608491] [notice] Logging level set to:debug +[2025-02-28 16:01:18.745218] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:18.745388] [debug] Valor de JSON: {"uuid":"934cf44e-ebbc-4f7f-9316-afb7b95cd8b7","changeType":"draft_approved","entity":"invoice","entityId":"1640","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1640,"clientId":63,"number":"001591","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1643,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":62,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONELA","clientLastName":"ROBLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:18.745521] [debug] Aprobación de Factura + +[2025-02-28 16:01:18.745599] [debug] {"uuid":"934cf44e-ebbc-4f7f-9316-afb7b95cd8b7","changeType":"draft_approved","entity":"invoice","entityId":1640,"message":null,"clientId":63,"eventName":"invoice.draft_approved","clientData":{"id":63,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ELIAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ELIAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANTONELA","lastName":"ROBLES","username":"arobles63","contacts":[{"id":64,"clientId":63,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ffb300","addressGpsLat":21.2516667,"addressGpsLon":-101.0924998,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1640,"clientId":63,"number":"001591","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1643,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":62,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONELA","clientLastName":"ROBLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:19.688802] [notice] Logging level set to:debug +[2025-02-28 16:01:19.832346] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:19.832411] [debug] Valor de JSON: {"uuid":"39bfd11d-b588-41f7-b9af-59a3866cbd5f","changeType":"insert","entity":"invoice","entityId":"1641","eventName":"invoice.add_draft","extraData":{"entity":{"id":1641,"clientId":39,"number":"001592","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1644,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":38,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"FRANCISCO","clientLastName":"BALDERAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA PIEDRA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:19.832518] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:19.832567] [debug] {"uuid":"39bfd11d-b588-41f7-b9af-59a3866cbd5f","changeType":"insert","entity":"invoice","entityId":1641,"message":null,"clientId":39,"eventName":"invoice.add_draft","clientData":{"id":39,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA PIEDRA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA PIEDRA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"FRANCISCO","lastName":"BALDERAS","username":"fbalderas39","contacts":[{"id":40,"clientId":39,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4210,"accountCredit":0,"accountOutstanding":4210,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#546e7a","addressGpsLat":21.2708978,"addressGpsLon":-100.7973281,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1641,"clientId":39,"number":"001592","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1644,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":38,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"FRANCISCO","clientLastName":"BALDERAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA PIEDRA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:19.941874] [notice] Logging level set to:debug +[2025-02-28 16:01:20.078717] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:20.078777] [debug] Valor de JSON: {"uuid":"23967a16-8540-4729-9ea8-02eeabe9e61c","changeType":"draft_approved","entity":"invoice","entityId":"1641","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1641,"clientId":39,"number":"001592","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1644,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":38,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"FRANCISCO","clientLastName":"BALDERAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA PIEDRA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:20.078870] [debug] Aprobación de Factura + +[2025-02-28 16:01:20.078917] [debug] {"uuid":"23967a16-8540-4729-9ea8-02eeabe9e61c","changeType":"draft_approved","entity":"invoice","entityId":1641,"message":null,"clientId":39,"eventName":"invoice.draft_approved","clientData":{"id":39,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA PIEDRA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA PIEDRA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"FRANCISCO","lastName":"BALDERAS","username":"fbalderas39","contacts":[{"id":40,"clientId":39,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4210,"accountCredit":0,"accountOutstanding":4210,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#546e7a","addressGpsLat":21.2708978,"addressGpsLon":-100.7973281,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1641,"clientId":39,"number":"001592","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1644,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":38,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"FRANCISCO","clientLastName":"BALDERAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA PIEDRA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:21.086214] [notice] Logging level set to:debug +[2025-02-28 16:01:21.220329] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:21.220402] [debug] Valor de JSON: {"uuid":"40670d1c-726f-4fd5-b6b3-65ff52158cc2","changeType":"insert","entity":"invoice","entityId":"1642","eventName":"invoice.add_draft","extraData":{"entity":{"id":1642,"clientId":18,"number":"001593","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1645,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":17,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"INGRID","clientLastName":"CORONADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:21.220537] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:21.220596] [debug] {"uuid":"40670d1c-726f-4fd5-b6b3-65ff52158cc2","changeType":"insert","entity":"invoice","entityId":1642,"message":null,"clientId":18,"eventName":"invoice.add_draft","clientData":{"id":18,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"INGRID","lastName":"CORONADO","username":"icoronado18","contacts":[{"id":19,"clientId":18,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-9800,"accountCredit":0,"accountOutstanding":9800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#039be5","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1642,"clientId":18,"number":"001593","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1645,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":17,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"INGRID","clientLastName":"CORONADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:21.373378] [notice] Logging level set to:debug +[2025-02-28 16:01:21.509073] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:21.509253] [debug] Valor de JSON: {"uuid":"f132a32e-28e6-4454-867d-bd06189df381","changeType":"draft_approved","entity":"invoice","entityId":"1642","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1642,"clientId":18,"number":"001593","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1645,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":17,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"INGRID","clientLastName":"CORONADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:21.509396] [debug] Aprobación de Factura + +[2025-02-28 16:01:21.509476] [debug] {"uuid":"f132a32e-28e6-4454-867d-bd06189df381","changeType":"draft_approved","entity":"invoice","entityId":1642,"message":null,"clientId":18,"eventName":"invoice.draft_approved","clientData":{"id":18,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"INGRID","lastName":"CORONADO","username":"icoronado18","contacts":[{"id":19,"clientId":18,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-9800,"accountCredit":0,"accountOutstanding":9800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#039be5","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1642,"clientId":18,"number":"001593","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1645,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":17,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"INGRID","clientLastName":"CORONADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:22.435376] [notice] Logging level set to:debug +[2025-02-28 16:01:22.587546] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:22.587697] [debug] Valor de JSON: {"uuid":"8b2f360e-2b51-4eab-a30d-0eb38d948cb9","changeType":"insert","entity":"invoice","entityId":"1643","eventName":"invoice.add_draft","extraData":{"entity":{"id":1643,"clientId":24,"number":"001594","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1646,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":23,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JACIEL","clientLastName":"CERVANTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTO NI\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:22.587836] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:22.587915] [debug] {"uuid":"8b2f360e-2b51-4eab-a30d-0eb38d948cb9","changeType":"insert","entity":"invoice","entityId":1643,"message":null,"clientId":24,"eventName":"invoice.add_draft","clientData":{"id":24,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTO NI\u00d1O","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTO NI\u00d1O, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JACIEL","lastName":"CERVANTES","username":"jcervantes24","contacts":[{"id":25,"clientId":24,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4180,"accountCredit":0,"accountOutstanding":4180,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ff8f00","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1643,"clientId":24,"number":"001594","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1646,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":23,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JACIEL","clientLastName":"CERVANTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTO NI\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:22.701145] [notice] Logging level set to:debug +[2025-02-28 16:01:22.860035] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:22.860193] [debug] Valor de JSON: {"uuid":"e9467e46-28a2-4d9b-bf47-f3d68d1402ea","changeType":"draft_approved","entity":"invoice","entityId":"1643","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1643,"clientId":24,"number":"001594","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1646,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":23,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JACIEL","clientLastName":"CERVANTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTO NI\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:22.860337] [debug] Aprobación de Factura + +[2025-02-28 16:01:22.860421] [debug] {"uuid":"e9467e46-28a2-4d9b-bf47-f3d68d1402ea","changeType":"draft_approved","entity":"invoice","entityId":1643,"message":null,"clientId":24,"eventName":"invoice.draft_approved","clientData":{"id":24,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTO NI\u00d1O","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTO NI\u00d1O, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JACIEL","lastName":"CERVANTES","username":"jcervantes24","contacts":[{"id":25,"clientId":24,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4180,"accountCredit":0,"accountOutstanding":4180,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ff8f00","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1643,"clientId":24,"number":"001594","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1646,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":23,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JACIEL","clientLastName":"CERVANTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTO NI\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:23.776601] [notice] Logging level set to:debug +[2025-02-28 16:01:23.920223] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:23.920375] [debug] Valor de JSON: {"uuid":"2e121284-0c8f-4139-b099-3bd681be52d2","changeType":"insert","entity":"invoice","entityId":"1644","eventName":"invoice.add_draft","extraData":{"entity":{"id":1644,"clientId":40,"number":"001595","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1647,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":39,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"PADRON","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RANCHO GUADALUPE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:23.920506] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:23.920587] [debug] {"uuid":"2e121284-0c8f-4139-b099-3bd681be52d2","changeType":"insert","entity":"invoice","entityId":1644,"message":null,"clientId":40,"eventName":"invoice.add_draft","clientData":{"id":40,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"RANCHO GUADALUPE","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"RANCHO GUADALUPE, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"OMAR","lastName":"PADRON","username":"opadron40","contacts":[{"id":41,"clientId":40,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3910,"accountCredit":0,"accountOutstanding":3910,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#fdd835","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1644,"clientId":40,"number":"001595","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1647,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":39,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"PADRON","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RANCHO GUADALUPE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:24.036698] [notice] Logging level set to:debug +[2025-02-28 16:01:24.178365] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:24.178519] [debug] Valor de JSON: {"uuid":"4f701e1f-31b0-494d-8771-001d30143648","changeType":"draft_approved","entity":"invoice","entityId":"1644","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1644,"clientId":40,"number":"001595","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1647,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":39,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"PADRON","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RANCHO GUADALUPE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:24.178680] [debug] Aprobación de Factura + +[2025-02-28 16:01:24.178761] [debug] {"uuid":"4f701e1f-31b0-494d-8771-001d30143648","changeType":"draft_approved","entity":"invoice","entityId":1644,"message":null,"clientId":40,"eventName":"invoice.draft_approved","clientData":{"id":40,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"RANCHO GUADALUPE","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"RANCHO GUADALUPE, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"OMAR","lastName":"PADRON","username":"opadron40","contacts":[{"id":41,"clientId":40,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3910,"accountCredit":0,"accountOutstanding":3910,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#fdd835","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1644,"clientId":40,"number":"001595","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1647,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":39,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"PADRON","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RANCHO GUADALUPE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:25.080337] [notice] Logging level set to:debug +[2025-02-28 16:01:25.230025] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:25.230165] [debug] Valor de JSON: {"uuid":"929e5cbc-7c7d-4a6a-9f25-f61123af9cd2","changeType":"insert","entity":"invoice","entityId":"1645","eventName":"invoice.add_draft","extraData":{"entity":{"id":1645,"clientId":35,"number":"001596","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1648,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":34,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GABRIELA","clientLastName":"SUASTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CANTERA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:25.230284] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:25.230357] [debug] {"uuid":"929e5cbc-7c7d-4a6a-9f25-f61123af9cd2","changeType":"insert","entity":"invoice","entityId":1645,"message":null,"clientId":35,"eventName":"invoice.add_draft","clientData":{"id":35,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA CANTERA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA CANTERA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"GABRIELA","lastName":"SUASTE","username":"gsuaste35","contacts":[{"id":36,"clientId":35,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#e91e63","addressGpsLat":21.1461112,"addressGpsLon":-101.0019444,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1645,"clientId":35,"number":"001596","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1648,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":34,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GABRIELA","clientLastName":"SUASTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CANTERA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:25.342930] [notice] Logging level set to:debug +[2025-02-28 16:01:25.482150] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:25.482295] [debug] Valor de JSON: {"uuid":"fa6ba1a9-6414-4e03-948c-2ba8624862db","changeType":"draft_approved","entity":"invoice","entityId":"1645","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1645,"clientId":35,"number":"001596","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1648,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":34,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GABRIELA","clientLastName":"SUASTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CANTERA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:25.482443] [debug] Aprobación de Factura + +[2025-02-28 16:01:25.482527] [debug] {"uuid":"fa6ba1a9-6414-4e03-948c-2ba8624862db","changeType":"draft_approved","entity":"invoice","entityId":1645,"message":null,"clientId":35,"eventName":"invoice.draft_approved","clientData":{"id":35,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA CANTERA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA CANTERA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"GABRIELA","lastName":"SUASTE","username":"gsuaste35","contacts":[{"id":36,"clientId":35,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#e91e63","addressGpsLat":21.1461112,"addressGpsLon":-101.0019444,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1645,"clientId":35,"number":"001596","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1648,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":34,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GABRIELA","clientLastName":"SUASTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CANTERA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:26.328176] [notice] Logging level set to:debug +[2025-02-28 16:01:26.470033] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:26.470195] [debug] Valor de JSON: {"uuid":"fc3e4310-4991-47c6-9aaa-90e394207283","changeType":"insert","entity":"invoice","entityId":"1646","eventName":"invoice.add_draft","extraData":{"entity":{"id":1646,"clientId":96,"number":"001597","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1649,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":95,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PAMELA","clientLastName":"RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:26.470362] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:26.470485] [debug] {"uuid":"fc3e4310-4991-47c6-9aaa-90e394207283","changeType":"insert","entity":"invoice","entityId":1646,"message":null,"clientId":96,"eventName":"invoice.add_draft","clientData":{"id":96,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"PAMELA","lastName":"RAMIREZ","username":"pramirez96","contacts":[{"id":97,"clientId":96,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#c0ca33","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1646,"clientId":96,"number":"001597","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1649,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":95,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PAMELA","clientLastName":"RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:26.590504] [notice] Logging level set to:debug +[2025-02-28 16:01:26.725635] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:26.725794] [debug] Valor de JSON: {"uuid":"be8d3299-765e-46f3-8669-4921755f852e","changeType":"draft_approved","entity":"invoice","entityId":"1646","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1646,"clientId":96,"number":"001597","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1649,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":95,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PAMELA","clientLastName":"RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:26.725910] [debug] Aprobación de Factura + +[2025-02-28 16:01:26.725994] [debug] {"uuid":"be8d3299-765e-46f3-8669-4921755f852e","changeType":"draft_approved","entity":"invoice","entityId":1646,"message":null,"clientId":96,"eventName":"invoice.draft_approved","clientData":{"id":96,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"PAMELA","lastName":"RAMIREZ","username":"pramirez96","contacts":[{"id":97,"clientId":96,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#c0ca33","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1646,"clientId":96,"number":"001597","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1649,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":95,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PAMELA","clientLastName":"RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:27.632275] [notice] Logging level set to:debug +[2025-02-28 16:01:27.782119] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:27.782279] [debug] Valor de JSON: {"uuid":"488c7007-108d-4796-9349-0936ea3fcf09","changeType":"insert","entity":"invoice","entityId":"1647","eventName":"invoice.add_draft","extraData":{"entity":{"id":1647,"clientId":26,"number":"001598","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1650,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":25,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SAMANTA","clientLastName":"FUENTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GUSANO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:27.782449] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:27.782536] [debug] {"uuid":"488c7007-108d-4796-9349-0936ea3fcf09","changeType":"insert","entity":"invoice","entityId":1647,"message":null,"clientId":26,"eventName":"invoice.add_draft","clientData":{"id":26,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"GUSANO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"GUSANO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"SAMANTA","lastName":"FUENTES","username":"sfuentes26","contacts":[{"id":27,"clientId":26,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4780,"accountCredit":0,"accountOutstanding":4780,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#4caf50","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1647,"clientId":26,"number":"001598","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1650,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":25,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SAMANTA","clientLastName":"FUENTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GUSANO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:27.895328] [notice] Logging level set to:debug +[2025-02-28 16:01:28.032305] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:28.032488] [debug] Valor de JSON: {"uuid":"0dacef8f-81ca-45fd-9089-e3d5ab8040f3","changeType":"draft_approved","entity":"invoice","entityId":"1647","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1647,"clientId":26,"number":"001598","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1650,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":25,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SAMANTA","clientLastName":"FUENTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GUSANO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:28.032624] [debug] Aprobación de Factura + +[2025-02-28 16:01:28.032702] [debug] {"uuid":"0dacef8f-81ca-45fd-9089-e3d5ab8040f3","changeType":"draft_approved","entity":"invoice","entityId":1647,"message":null,"clientId":26,"eventName":"invoice.draft_approved","clientData":{"id":26,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"GUSANO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"GUSANO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"SAMANTA","lastName":"FUENTES","username":"sfuentes26","contacts":[{"id":27,"clientId":26,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4780,"accountCredit":0,"accountOutstanding":4780,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#4caf50","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1647,"clientId":26,"number":"001598","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1650,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":25,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SAMANTA","clientLastName":"FUENTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GUSANO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:28.982394] [notice] Logging level set to:debug +[2025-02-28 16:01:29.125830] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:29.125897] [debug] Valor de JSON: {"uuid":"1c6aa8bd-eb3c-4692-a964-7d6fe699fd26","changeType":"insert","entity":"invoice","entityId":"1648","eventName":"invoice.add_draft","extraData":{"entity":{"id":1648,"clientId":28,"number":"001599","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1651,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":27,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OSVALDO","clientLastName":"GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN GABRIEL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:29.126012] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:29.126060] [debug] {"uuid":"1c6aa8bd-eb3c-4692-a964-7d6fe699fd26","changeType":"insert","entity":"invoice","entityId":1648,"message":null,"clientId":28,"eventName":"invoice.add_draft","clientData":{"id":28,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN GABRIEL","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN GABRIEL, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"OSVALDO","lastName":"GONZALEZ","username":"ogonzalez28","contacts":[{"id":29,"clientId":28,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-6983.33,"accountCredit":0,"accountOutstanding":6983.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#03a9f4","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1648,"clientId":28,"number":"001599","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1651,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":27,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OSVALDO","clientLastName":"GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN GABRIEL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:29.242084] [notice] Logging level set to:debug +[2025-02-28 16:01:29.391413] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:29.391593] [debug] Valor de JSON: {"uuid":"5ea1d31f-8d94-4b28-8572-3e3482ce6870","changeType":"draft_approved","entity":"invoice","entityId":"1648","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1648,"clientId":28,"number":"001599","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1651,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":27,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OSVALDO","clientLastName":"GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN GABRIEL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:29.391726] [debug] Aprobación de Factura + +[2025-02-28 16:01:29.391807] [debug] {"uuid":"5ea1d31f-8d94-4b28-8572-3e3482ce6870","changeType":"draft_approved","entity":"invoice","entityId":1648,"message":null,"clientId":28,"eventName":"invoice.draft_approved","clientData":{"id":28,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN GABRIEL","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN GABRIEL, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"OSVALDO","lastName":"GONZALEZ","username":"ogonzalez28","contacts":[{"id":29,"clientId":28,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-6983.33,"accountCredit":0,"accountOutstanding":6983.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#03a9f4","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1648,"clientId":28,"number":"001599","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1651,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":27,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OSVALDO","clientLastName":"GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN GABRIEL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:30.281114] [notice] Logging level set to:debug +[2025-02-28 16:01:30.414465] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:30.414660] [debug] Valor de JSON: {"uuid":"70d4dc1c-6922-4ae7-9378-583ff60a08c0","changeType":"insert","entity":"invoice","entityId":"1649","eventName":"invoice.add_draft","extraData":{"entity":{"id":1649,"clientId":78,"number":"001600","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1652,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":77,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDER","clientLastName":"ROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:30.414834] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:30.414917] [debug] {"uuid":"70d4dc1c-6922-4ae7-9378-583ff60a08c0","changeType":"insert","entity":"invoice","entityId":1649,"message":null,"clientId":78,"eventName":"invoice.add_draft","clientData":{"id":78,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL BOBO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL BOBO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALEXANDER","lastName":"ROSTRO","username":"arostro78","contacts":[{"id":79,"clientId":78,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#9c27b0","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1649,"clientId":78,"number":"001600","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1652,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":77,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDER","clientLastName":"ROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:30.529561] [notice] Logging level set to:debug +[2025-02-28 16:01:30.675733] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:30.675914] [debug] Valor de JSON: {"uuid":"3f11aea5-2775-4f17-ac97-f007a780cb27","changeType":"draft_approved","entity":"invoice","entityId":"1649","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1649,"clientId":78,"number":"001600","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1652,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":77,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDER","clientLastName":"ROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:30.676143] [debug] Aprobación de Factura + +[2025-02-28 16:01:30.676229] [debug] {"uuid":"3f11aea5-2775-4f17-ac97-f007a780cb27","changeType":"draft_approved","entity":"invoice","entityId":1649,"message":null,"clientId":78,"eventName":"invoice.draft_approved","clientData":{"id":78,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL BOBO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL BOBO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALEXANDER","lastName":"ROSTRO","username":"arostro78","contacts":[{"id":79,"clientId":78,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#9c27b0","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1649,"clientId":78,"number":"001600","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1652,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":77,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDER","clientLastName":"ROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:31.571144] [notice] Logging level set to:debug +[2025-02-28 16:01:31.720664] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:31.720730] [debug] Valor de JSON: {"uuid":"5d180e05-7629-4306-b726-141b9ed6d073","changeType":"insert","entity":"invoice","entityId":"1650","eventName":"invoice.add_draft","extraData":{"entity":{"id":1650,"clientId":57,"number":"001601","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1653,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":56,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SANDRO","clientLastName":"MARQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:31.720830] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:31.720880] [debug] {"uuid":"5d180e05-7629-4306-b726-141b9ed6d073","changeType":"insert","entity":"invoice","entityId":1650,"message":null,"clientId":57,"eventName":"invoice.add_draft","clientData":{"id":57,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"SANDRO","lastName":"MARQUEZ","username":"smarquez57","contacts":[{"id":58,"clientId":57,"email":null,"phone":"181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f9a825","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1650,"clientId":57,"number":"001601","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1653,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":56,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SANDRO","clientLastName":"MARQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:31.833725] [notice] Logging level set to:debug +[2025-02-28 16:01:31.971740] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:31.971884] [debug] Valor de JSON: {"uuid":"3bab794b-bf5f-47ff-9473-de552be08482","changeType":"draft_approved","entity":"invoice","entityId":"1650","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1650,"clientId":57,"number":"001601","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1653,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":56,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SANDRO","clientLastName":"MARQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:31.972017] [debug] Aprobación de Factura + +[2025-02-28 16:01:31.972095] [debug] {"uuid":"3bab794b-bf5f-47ff-9473-de552be08482","changeType":"draft_approved","entity":"invoice","entityId":1650,"message":null,"clientId":57,"eventName":"invoice.draft_approved","clientData":{"id":57,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SANTA BARBARA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SANTA BARBARA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"SANDRO","lastName":"MARQUEZ","username":"smarquez57","contacts":[{"id":58,"clientId":57,"email":null,"phone":"181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f9a825","addressGpsLat":21.0502031,"addressGpsLon":-101.0096832,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1650,"clientId":57,"number":"001601","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1653,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":56,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SANDRO","clientLastName":"MARQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:32.863745] [notice] Logging level set to:debug +[2025-02-28 16:01:33.012974] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:33.013134] [debug] Valor de JSON: {"uuid":"4b242080-5a38-492c-bb13-84aae10cb81f","changeType":"insert","entity":"invoice","entityId":"1651","eventName":"invoice.add_draft","extraData":{"entity":{"id":1651,"clientId":46,"number":"001602","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1654,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":45,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ISMAEL","clientLastName":"PUGA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ROSILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:33.013274] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:33.013412] [debug] {"uuid":"4b242080-5a38-492c-bb13-84aae10cb81f","changeType":"insert","entity":"invoice","entityId":1651,"message":null,"clientId":46,"eventName":"invoice.add_draft","clientData":{"id":46,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL ROSILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL ROSILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ISMAEL","lastName":"PUGA","username":"ipuga46","contacts":[{"id":47,"clientId":46,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":100,"clientId":46,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtMzv6GBcULCcTh","clientZoneVisible":true},{"id":101,"clientId":46,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"6881305189499928","clientZoneVisible":true}],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2e7d32","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1651,"clientId":46,"number":"001602","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1654,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":45,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ISMAEL","clientLastName":"PUGA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ROSILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:33.140341] [notice] Logging level set to:debug +[2025-02-28 16:01:33.289756] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:33.289933] [debug] Valor de JSON: {"uuid":"bd50e8ea-bf3e-4e23-9d2b-690a8b8a5e6f","changeType":"draft_approved","entity":"invoice","entityId":"1651","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1651,"clientId":46,"number":"001602","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1654,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":45,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ISMAEL","clientLastName":"PUGA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ROSILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:33.290098] [debug] Aprobación de Factura + +[2025-02-28 16:01:33.290182] [debug] {"uuid":"bd50e8ea-bf3e-4e23-9d2b-690a8b8a5e6f","changeType":"draft_approved","entity":"invoice","entityId":1651,"message":null,"clientId":46,"eventName":"invoice.draft_approved","clientData":{"id":46,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL ROSILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL ROSILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ISMAEL","lastName":"PUGA","username":"ipuga46","contacts":[{"id":47,"clientId":46,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":100,"clientId":46,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtMzv6GBcULCcTh","clientZoneVisible":true},{"id":101,"clientId":46,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"6881305189499928","clientZoneVisible":true}],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2e7d32","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1651,"clientId":46,"number":"001602","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1654,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":45,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ISMAEL","clientLastName":"PUGA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ROSILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:34.199158] [notice] Logging level set to:debug +[2025-02-28 16:01:34.357593] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:34.357768] [debug] Valor de JSON: {"uuid":"7676d0b2-7d1b-419e-bc97-dc1591663ae7","changeType":"insert","entity":"invoice","entityId":"1652","eventName":"invoice.add_draft","extraData":{"entity":{"id":1652,"clientId":50,"number":"001603","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1655,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":49,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GLORIA","clientLastName":"DELGADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:34.357901] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:34.357995] [debug] {"uuid":"7676d0b2-7d1b-419e-bc97-dc1591663ae7","changeType":"insert","entity":"invoice","entityId":1652,"message":null,"clientId":50,"eventName":"invoice.add_draft","clientData":{"id":50,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL BOBO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL BOBO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"GLORIA","lastName":"DELGADO","username":"gdelgado50","contacts":[{"id":51,"clientId":50,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":108,"clientId":50,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtN2hegnjiQhR7M","clientZoneVisible":true},{"id":109,"clientId":50,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"1847644339402745","clientZoneVisible":true}],"accountBalance":-3910,"accountCredit":0,"accountOutstanding":3910,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ffc107","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1652,"clientId":50,"number":"001603","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1655,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":49,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GLORIA","clientLastName":"DELGADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:34.473618] [notice] Logging level set to:debug +[2025-02-28 16:01:34.616939] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:34.617085] [debug] Valor de JSON: {"uuid":"01b730d9-fa20-4288-ab93-3c3588f0282a","changeType":"draft_approved","entity":"invoice","entityId":"1652","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1652,"clientId":50,"number":"001603","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1655,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":49,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GLORIA","clientLastName":"DELGADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:34.617221] [debug] Aprobación de Factura + +[2025-02-28 16:01:34.617296] [debug] {"uuid":"01b730d9-fa20-4288-ab93-3c3588f0282a","changeType":"draft_approved","entity":"invoice","entityId":1652,"message":null,"clientId":50,"eventName":"invoice.draft_approved","clientData":{"id":50,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL BOBO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL BOBO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"GLORIA","lastName":"DELGADO","username":"gdelgado50","contacts":[{"id":51,"clientId":50,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":108,"clientId":50,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtN2hegnjiQhR7M","clientZoneVisible":true},{"id":109,"clientId":50,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"1847644339402745","clientZoneVisible":true}],"accountBalance":-3910,"accountCredit":0,"accountOutstanding":3910,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ffc107","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1652,"clientId":50,"number":"001603","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1655,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":49,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GLORIA","clientLastName":"DELGADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:35.529228] [notice] Logging level set to:debug +[2025-02-28 16:01:35.665174] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:35.665383] [debug] Valor de JSON: {"uuid":"e0dcf12b-6c1a-46a5-8912-4ed8c2052a9a","changeType":"insert","entity":"invoice","entityId":"1653","eventName":"invoice.add_draft","extraData":{"entity":{"id":1653,"clientId":23,"number":"001604","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1656,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":22,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OSCAR","clientLastName":"GUERRERO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TABASCO #45, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:35.665555] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:35.665702] [debug] {"uuid":"e0dcf12b-6c1a-46a5-8912-4ed8c2052a9a","changeType":"insert","entity":"invoice","entityId":1653,"message":null,"clientId":23,"eventName":"invoice.add_draft","clientData":{"id":23,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TABASCO #45, ZONA CENTRO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TABASCO #45, ZONA CENTRO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"OSCAR","lastName":"GUERRERO","username":"oguerrero23","contacts":[{"id":24,"clientId":23,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#283593","addressGpsLat":21.1550814,"addressGpsLon":-100.9341575,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1653,"clientId":23,"number":"001604","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1656,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":22,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OSCAR","clientLastName":"GUERRERO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TABASCO #45, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:35.775583] [notice] Logging level set to:debug +[2025-02-28 16:01:35.910603] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:35.910753] [debug] Valor de JSON: {"uuid":"b04369b6-7686-4bd1-8630-6fc505463cde","changeType":"draft_approved","entity":"invoice","entityId":"1653","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1653,"clientId":23,"number":"001604","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1656,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":22,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OSCAR","clientLastName":"GUERRERO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TABASCO #45, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:35.910888] [debug] Aprobación de Factura + +[2025-02-28 16:01:35.910978] [debug] {"uuid":"b04369b6-7686-4bd1-8630-6fc505463cde","changeType":"draft_approved","entity":"invoice","entityId":1653,"message":null,"clientId":23,"eventName":"invoice.draft_approved","clientData":{"id":23,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TABASCO #45, ZONA CENTRO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TABASCO #45, ZONA CENTRO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"OSCAR","lastName":"GUERRERO","username":"oguerrero23","contacts":[{"id":24,"clientId":23,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#283593","addressGpsLat":21.1550814,"addressGpsLon":-100.9341575,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1653,"clientId":23,"number":"001604","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1656,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":22,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OSCAR","clientLastName":"GUERRERO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TABASCO #45, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:36.848412] [notice] Logging level set to:debug +[2025-02-28 16:01:37.000399] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:37.000555] [debug] Valor de JSON: {"uuid":"c0037184-0429-4f18-917c-c57104d6e83a","changeType":"insert","entity":"invoice","entityId":"1654","eventName":"invoice.add_draft","extraData":{"entity":{"id":1654,"clientId":94,"number":"001605","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1657,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":93,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARTIN","clientLastName":"TREJO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:37.000704] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:37.000787] [debug] {"uuid":"c0037184-0429-4f18-917c-c57104d6e83a","changeType":"insert","entity":"invoice","entityId":1654,"message":null,"clientId":94,"eventName":"invoice.add_draft","clientData":{"id":94,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MARTIN","lastName":"TREJO","username":"mtrejo94","contacts":[{"id":95,"clientId":94,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00695c","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1654,"clientId":94,"number":"001605","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1657,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":93,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARTIN","clientLastName":"TREJO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:37.000870] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-28 16:01:37.000911] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":17,"clientId":94,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-01-31T15:59:03-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":22,"invoiceId":87,"paymentId":17,"creditNoteId":null,"refundId":null,"amount":200}],"creditAmount":0,"userId":1000,"attributes":[]}] + +Nombre del cliente que se va a actualizar: MARTIN TREJO + +UUID: 92dd9fb15b8f4ff6860f8a32ea9bd7e4 + +JSON con los datos a actualizar: {"name":"MARTIN TREJO","custom_fields":{"Cliente":94,"Domicilio":"\ud83d\udccd Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Nombre":"\ud83d\udc64 MARTIN TREJO","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/94","Saldo Actual":"\ud83d\udcb24200 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 200","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"94\",\"Domicilio\": \"\ud83d\udccd Dolores Hidalgo Cuna de la Independencia Nacional, 37800\",\"Nombre\": \"\ud83d\udc64 MARTIN TREJO\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/94\",\"Saldo Actual\": \"\ud83d\udcb24200 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 200\",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 31\/01\/2024 15:59 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/02\/2025 10:01\",\"Clabe Interbancaria\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 31\/01\/2024 15:59 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/02\/2025 10:01","Clabe Interbancaria":null}} + +Response Patch CallBell: {"contact":{"uuid":"92dd9fb15b8f4ff6860f8a32ea9bd7e4","name":"MARTIN TREJO","phoneNumber":"5214181091933","avatarUrl":null,"createdAt":"2023-12-22T16:55:50Z","closedAt":"2024-07-11T22:49:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/92dd9fb15b8f4ff6860f8a32ea9bd7e4","conversationHref":"https://dash.callbell.eu/chat/04a3e26142e0431789260acb0b60a3ac","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"124180650659256341","Estado":"🔴 Suspendido","Fecha Ultima Actualizacion":"📆🔄️ 28/02/2025 10:01","Fecha Ultimo Pago":"📆💸 31/01/2024 15:59 con Efectivo 💵","Saldo Actual":"💲4200 pendientes","Nombre":"👤 MARTIN TREJO","URL":"🌐 https://sistema.siip.mx/crm/client/94","Antena/Sectorial":"Sec3-Sb >> 172.16.55.13/24","Site":"SBARB","Cliente":"94","Resumen":"{\"Cliente\": \"94\",\"Domicilio\": \"📍 Dolores Hidalgo Cuna de la Independencia Nacional, 37800\",\"Nombre\": \"👤 MARTIN TREJO\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/94\",\"Saldo Actual\": \"💲4200 pendientes\",\"Monto Ultimo Pago\": \"💲 200\",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 31/01/2024 15:59 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 28/02/2025 10:01\",\"Clabe Interbancaria\": \"\"}","Domicilio":"📍 Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Monto Ultimo Pago":"💲 200"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-28 16:01:38.524105] [notice] Logging level set to:debug +[2025-02-28 16:01:38.685497] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:38.685691] [debug] Valor de JSON: {"uuid":"ee534e99-d5a2-4ffa-a159-fa5e04147b71","changeType":"draft_approved","entity":"invoice","entityId":"1654","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1654,"clientId":94,"number":"001605","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1657,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":93,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARTIN","clientLastName":"TREJO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:38.685827] [debug] Aprobación de Factura + +[2025-02-28 16:01:38.685904] [debug] {"uuid":"ee534e99-d5a2-4ffa-a159-fa5e04147b71","changeType":"draft_approved","entity":"invoice","entityId":1654,"message":null,"clientId":94,"eventName":"invoice.draft_approved","clientData":{"id":94,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MARTIN","lastName":"TREJO","username":"mtrejo94","contacts":[{"id":95,"clientId":94,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00695c","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1654,"clientId":94,"number":"001605","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1657,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":93,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARTIN","clientLastName":"TREJO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:38.685972] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-28 16:01:38.686012] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":17,"clientId":94,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-01-31T15:59:03-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":22,"invoiceId":87,"paymentId":17,"creditNoteId":null,"refundId":null,"amount":200}],"creditAmount":0,"userId":1000,"attributes":[]}] + +Nombre del cliente que se va a actualizar: MARTIN TREJO + +UUID: 92dd9fb15b8f4ff6860f8a32ea9bd7e4 + +JSON con los datos a actualizar: {"name":"MARTIN TREJO","custom_fields":{"Cliente":94,"Domicilio":"\ud83d\udccd Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Nombre":"\ud83d\udc64 MARTIN TREJO","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/94","Saldo Actual":"\ud83d\udcb24200 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 200","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"94\",\"Domicilio\": \"\ud83d\udccd Dolores Hidalgo Cuna de la Independencia Nacional, 37800\",\"Nombre\": \"\ud83d\udc64 MARTIN TREJO\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/94\",\"Saldo Actual\": \"\ud83d\udcb24200 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 200\",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 31\/01\/2024 15:59 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/02\/2025 10:01\",\"Clabe Interbancaria\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 31\/01\/2024 15:59 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/02\/2025 10:01","Clabe Interbancaria":null}} + +Response Patch CallBell: {"contact":{"uuid":"92dd9fb15b8f4ff6860f8a32ea9bd7e4","name":"MARTIN TREJO","phoneNumber":"5214181091933","avatarUrl":null,"createdAt":"2023-12-22T16:55:50Z","closedAt":"2024-07-11T22:49:52Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/92dd9fb15b8f4ff6860f8a32ea9bd7e4","conversationHref":"https://dash.callbell.eu/chat/04a3e26142e0431789260acb0b60a3ac","tags":[],"assignedUser":null,"customFields":{"Clabe Interbancaria":"124180650659256341","Estado":"🔴 Suspendido","Fecha Ultima Actualizacion":"📆🔄️ 28/02/2025 10:01","Fecha Ultimo Pago":"📆💸 31/01/2024 15:59 con Efectivo 💵","Saldo Actual":"💲4200 pendientes","Nombre":"👤 MARTIN TREJO","URL":"🌐 https://sistema.siip.mx/crm/client/94","Antena/Sectorial":"Sec3-Sb >> 172.16.55.13/24","Site":"SBARB","Cliente":"94","Resumen":"{\"Cliente\": \"94\",\"Domicilio\": \"📍 Dolores Hidalgo Cuna de la Independencia Nacional, 37800\",\"Nombre\": \"👤 MARTIN TREJO\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/94\",\"Saldo Actual\": \"💲4200 pendientes\",\"Monto Ultimo Pago\": \"💲 200\",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 31/01/2024 15:59 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 28/02/2025 10:01\",\"Clabe Interbancaria\": \"\"}","Domicilio":"📍 Dolores Hidalgo Cuna de la Independencia Nacional, 37800","Monto Ultimo Pago":"💲 200"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-28 16:01:40.583725] [notice] Logging level set to:debug +[2025-02-28 16:01:40.790199] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:40.790474] [debug] Valor de JSON: {"uuid":"c2001913-3d24-45bc-a80e-ddc616eef27b","changeType":"insert","entity":"invoice","entityId":"1655","eventName":"invoice.add_draft","extraData":{"entity":{"id":1655,"clientId":97,"number":"001606","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1658,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":96,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"YOLANDA","clientLastName":"CANO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AVILES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:40.790647] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:40.790726] [debug] {"uuid":"c2001913-3d24-45bc-a80e-ddc616eef27b","changeType":"insert","entity":"invoice","entityId":1655,"message":null,"clientId":97,"eventName":"invoice.add_draft","clientData":{"id":97,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LOS AVILES","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LOS AVILES, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"YOLANDA","lastName":"CANO","username":"ycano97","contacts":[{"id":98,"clientId":97,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-7000,"accountCredit":0,"accountOutstanding":7000,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#607d8b","addressGpsLat":21.151597,"addressGpsLon":-100.9367183,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1655,"clientId":97,"number":"001606","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1658,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":96,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"YOLANDA","clientLastName":"CANO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AVILES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:40.906126] [notice] Logging level set to:debug +[2025-02-28 16:01:41.050837] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:41.051135] [debug] Valor de JSON: {"uuid":"0cd71e10-8c33-4dd2-8c7f-c80c68e2c2ca","changeType":"draft_approved","entity":"invoice","entityId":"1655","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1655,"clientId":97,"number":"001606","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1658,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":96,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"YOLANDA","clientLastName":"CANO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AVILES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:41.051284] [debug] Aprobación de Factura + +[2025-02-28 16:01:41.051364] [debug] {"uuid":"0cd71e10-8c33-4dd2-8c7f-c80c68e2c2ca","changeType":"draft_approved","entity":"invoice","entityId":1655,"message":null,"clientId":97,"eventName":"invoice.draft_approved","clientData":{"id":97,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LOS AVILES","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LOS AVILES, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"YOLANDA","lastName":"CANO","username":"ycano97","contacts":[{"id":98,"clientId":97,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-7000,"accountCredit":0,"accountOutstanding":7000,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#607d8b","addressGpsLat":21.151597,"addressGpsLon":-100.9367183,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1655,"clientId":97,"number":"001606","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1658,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":96,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"YOLANDA","clientLastName":"CANO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AVILES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:41.159914] [notice] Logging level set to:debug +[2025-02-28 16:01:41.315968] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:41.316152] [debug] Valor de JSON: {"uuid":"83884732-b8e3-4c5d-a1bf-21399c50e7ea","changeType":"insert","entity":"invoice","entityId":"1656","eventName":"invoice.add_draft","extraData":{"entity":{"id":1656,"clientId":79,"number":"001607","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1659,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":78,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"ESPONIZA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:41.316293] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:41.316384] [debug] {"uuid":"83884732-b8e3-4c5d-a1bf-21399c50e7ea","changeType":"insert","entity":"invoice","entityId":1656,"message":null,"clientId":79,"eventName":"invoice.add_draft","clientData":{"id":79,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LAS YERBAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LAS YERBAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"SEBASTIAN","lastName":"ESPONIZA","username":"sesponiza79","contacts":[{"id":80,"clientId":79,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-6500,"accountCredit":0,"accountOutstanding":6500,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2e7d32","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1656,"clientId":79,"number":"001607","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1659,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":78,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"ESPONIZA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:41.429768] [notice] Logging level set to:debug +[2025-02-28 16:01:41.573625] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:41.573813] [debug] Valor de JSON: {"uuid":"2ffe8cc9-9b58-4962-a0eb-28a2a4f2bc49","changeType":"draft_approved","entity":"invoice","entityId":"1656","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1656,"clientId":79,"number":"001607","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1659,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":78,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"ESPONIZA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:41.573957] [debug] Aprobación de Factura + +[2025-02-28 16:01:41.574038] [debug] {"uuid":"2ffe8cc9-9b58-4962-a0eb-28a2a4f2bc49","changeType":"draft_approved","entity":"invoice","entityId":1656,"message":null,"clientId":79,"eventName":"invoice.draft_approved","clientData":{"id":79,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LAS YERBAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LAS YERBAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"SEBASTIAN","lastName":"ESPONIZA","username":"sesponiza79","contacts":[{"id":80,"clientId":79,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-6500,"accountCredit":0,"accountOutstanding":6500,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2e7d32","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1656,"clientId":79,"number":"001607","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1659,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":78,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"ESPONIZA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:42.112936] [notice] Logging level set to:debug +[2025-02-28 16:01:42.258510] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:42.258657] [debug] Valor de JSON: {"uuid":"1a99dce5-250f-4cb1-bb5c-22cde4a068af","changeType":"insert","entity":"invoice","entityId":"1657","eventName":"invoice.add_draft","extraData":{"entity":{"id":1657,"clientId":22,"number":"001608","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1660,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":21,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEBAN","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA PUERTA DE SAN FRANCISCO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:42.258784] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:42.258862] [debug] {"uuid":"1a99dce5-250f-4cb1-bb5c-22cde4a068af","changeType":"insert","entity":"invoice","entityId":1657,"message":null,"clientId":22,"eventName":"invoice.add_draft","clientData":{"id":22,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA PUERTA DE SAN FRANCISCO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA PUERTA DE SAN FRANCISCO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ESTEBAN","lastName":"GARCIA","username":"egarcia22","contacts":[{"id":23,"clientId":22,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4530,"accountCredit":0,"accountOutstanding":4530,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#7cb342","addressGpsLat":21.2091666,"addressGpsLon":-100.76,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1657,"clientId":22,"number":"001608","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1660,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":21,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEBAN","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA PUERTA DE SAN FRANCISCO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:42.375144] [notice] Logging level set to:debug +[2025-02-28 16:01:42.517044] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:42.517182] [debug] Valor de JSON: {"uuid":"a3892e23-0959-4b64-8cb2-fe4534aa17cc","changeType":"draft_approved","entity":"invoice","entityId":"1657","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1657,"clientId":22,"number":"001608","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1660,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":21,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEBAN","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA PUERTA DE SAN FRANCISCO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:42.517312] [debug] Aprobación de Factura + +[2025-02-28 16:01:42.517385] [debug] {"uuid":"a3892e23-0959-4b64-8cb2-fe4534aa17cc","changeType":"draft_approved","entity":"invoice","entityId":1657,"message":null,"clientId":22,"eventName":"invoice.draft_approved","clientData":{"id":22,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA PUERTA DE SAN FRANCISCO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA PUERTA DE SAN FRANCISCO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ESTEBAN","lastName":"GARCIA","username":"egarcia22","contacts":[{"id":23,"clientId":22,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4530,"accountCredit":0,"accountOutstanding":4530,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#7cb342","addressGpsLat":21.2091666,"addressGpsLon":-100.76,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1657,"clientId":22,"number":"001608","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1660,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":21,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEBAN","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA PUERTA DE SAN FRANCISCO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:43.450495] [notice] Logging level set to:debug +[2025-02-28 16:01:43.591128] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:43.591275] [debug] Valor de JSON: {"uuid":"6c78cdbe-193f-40fe-ad9d-31f27dab1f85","changeType":"insert","entity":"invoice","entityId":"1658","eventName":"invoice.add_draft","extraData":{"entity":{"id":1658,"clientId":45,"number":"001609","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1661,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":44,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALBERTO","clientLastName":"GRANADOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:43.591425] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:43.591510] [debug] {"uuid":"6c78cdbe-193f-40fe-ad9d-31f27dab1f85","changeType":"insert","entity":"invoice","entityId":1658,"message":null,"clientId":45,"eventName":"invoice.add_draft","clientData":{"id":45,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALBERTO","lastName":"GRANADOS","username":"agranados45","contacts":[{"id":46,"clientId":45,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":98,"clientId":45,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtN1E1ePcRAA689","clientZoneVisible":true},{"id":99,"clientId":45,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"9271357829475893","clientZoneVisible":true}],"accountBalance":-3910,"accountCredit":0,"accountOutstanding":3910,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ff9800","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1658,"clientId":45,"number":"001609","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1661,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":44,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALBERTO","clientLastName":"GRANADOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:43.699655] [notice] Logging level set to:debug +[2025-02-28 16:01:43.849136] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:43.849204] [debug] Valor de JSON: {"uuid":"11ab13d1-a4a7-4db9-b1bf-ae2e7cccd327","changeType":"draft_approved","entity":"invoice","entityId":"1658","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1658,"clientId":45,"number":"001609","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1661,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":44,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALBERTO","clientLastName":"GRANADOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:43.849313] [debug] Aprobación de Factura + +[2025-02-28 16:01:43.849365] [debug] {"uuid":"11ab13d1-a4a7-4db9-b1bf-ae2e7cccd327","changeType":"draft_approved","entity":"invoice","entityId":1658,"message":null,"clientId":45,"eventName":"invoice.draft_approved","clientData":{"id":45,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALBERTO","lastName":"GRANADOS","username":"agranados45","contacts":[{"id":46,"clientId":45,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":98,"clientId":45,"customAttributeId":8,"name":"conekta","key":"conekta","value":"cus_2vQtN1E1ePcRAA689","clientZoneVisible":true},{"id":99,"clientId":45,"customAttributeId":9,"name":"oxxo","key":"oxxo","value":"9271357829475893","clientZoneVisible":true}],"accountBalance":-3910,"accountCredit":0,"accountOutstanding":3910,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ff9800","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1658,"clientId":45,"number":"001609","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1661,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":44,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALBERTO","clientLastName":"GRANADOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:44.735524] [notice] Logging level set to:debug +[2025-02-28 16:01:44.877269] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:44.877443] [debug] Valor de JSON: {"uuid":"4a20b146-c3ee-4982-99c5-ae71e492d4f9","changeType":"insert","entity":"invoice","entityId":"1659","eventName":"invoice.add_draft","extraData":{"entity":{"id":1659,"clientId":76,"number":"001610","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1662,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":75,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"RANGEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:44.877576] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:44.877676] [debug] {"uuid":"4a20b146-c3ee-4982-99c5-ae71e492d4f9","changeType":"insert","entity":"invoice","entityId":1659,"message":null,"clientId":76,"eventName":"invoice.add_draft","clientData":{"id":76,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TRANCAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TRANCAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"EDGAR","lastName":"RANGEL","username":"erangel76","contacts":[{"id":77,"clientId":76,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00695c","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1659,"clientId":76,"number":"001610","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1662,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":75,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"RANGEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:44.992379] [notice] Logging level set to:debug +[2025-02-28 16:01:45.201045] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:45.201225] [debug] Valor de JSON: {"uuid":"3fffcee9-0528-49fa-a5d9-4ef93cd9648e","changeType":"draft_approved","entity":"invoice","entityId":"1659","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1659,"clientId":76,"number":"001610","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1662,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":75,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"RANGEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:45.201378] [debug] Aprobación de Factura + +[2025-02-28 16:01:45.201453] [debug] {"uuid":"3fffcee9-0528-49fa-a5d9-4ef93cd9648e","changeType":"draft_approved","entity":"invoice","entityId":1659,"message":null,"clientId":76,"eventName":"invoice.draft_approved","clientData":{"id":76,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TRANCAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TRANCAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"EDGAR","lastName":"RANGEL","username":"erangel76","contacts":[{"id":77,"clientId":76,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00695c","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1659,"clientId":76,"number":"001610","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1662,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":75,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"RANGEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:46.079979] [notice] Logging level set to:debug +[2025-02-28 16:01:46.216295] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:46.216491] [debug] Valor de JSON: {"uuid":"0c0e6d49-3d7a-467c-9192-f8020db18be2","changeType":"insert","entity":"invoice","entityId":"1660","eventName":"invoice.add_draft","extraData":{"entity":{"id":1660,"clientId":9,"number":"001611","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1663,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":9,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JHOVANY","clientLastName":"LOPEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GALLINERO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:46.216656] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:46.216757] [debug] {"uuid":"0c0e6d49-3d7a-467c-9192-f8020db18be2","changeType":"insert","entity":"invoice","entityId":1660,"message":null,"clientId":9,"eventName":"invoice.add_draft","clientData":{"id":9,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"GALLINERO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"GALLINERO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JHOVANY","lastName":"LOPEZ","username":"jlopez09","contacts":[{"id":10,"clientId":9,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4000,"accountCredit":0,"accountOutstanding":4000,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#d81b60","addressGpsLat":21.179169675936,"addressGpsLon":-100.95965623856,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1660,"clientId":9,"number":"001611","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1663,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":9,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JHOVANY","clientLastName":"LOPEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GALLINERO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:46.331948] [notice] Logging level set to:debug +[2025-02-28 16:01:46.592953] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:46.593131] [debug] Valor de JSON: {"uuid":"118aa24c-aa8c-48ca-9391-62b626e0a05f","changeType":"draft_approved","entity":"invoice","entityId":"1660","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1660,"clientId":9,"number":"001611","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1663,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":9,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JHOVANY","clientLastName":"LOPEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GALLINERO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:46.593264] [debug] Aprobación de Factura + +[2025-02-28 16:01:46.593718] [debug] {"uuid":"118aa24c-aa8c-48ca-9391-62b626e0a05f","changeType":"draft_approved","entity":"invoice","entityId":1660,"message":null,"clientId":9,"eventName":"invoice.draft_approved","clientData":{"id":9,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"GALLINERO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"GALLINERO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JHOVANY","lastName":"LOPEZ","username":"jlopez09","contacts":[{"id":10,"clientId":9,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4000,"accountCredit":0,"accountOutstanding":4000,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#d81b60","addressGpsLat":21.179169675936,"addressGpsLon":-100.95965623856,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1660,"clientId":9,"number":"001611","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1663,"type":"service","label":"INTERMEDIO 31\/01\/2025 \u2013 27\/02\/2025","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":9,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JHOVANY","clientLastName":"LOPEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GALLINERO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:47.414900] [notice] Logging level set to:debug +[2025-02-28 16:01:47.555411] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:47.555588] [debug] Valor de JSON: {"uuid":"03bb4899-b422-4489-bd31-996d6c056ec5","changeType":"insert","entity":"invoice","entityId":"1661","eventName":"invoice.add_draft","extraData":{"entity":{"id":1661,"clientId":37,"number":"001612","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1664,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":36,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGEL","clientLastName":"ARVIZU","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA SOLEDAD","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:47.555769] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:47.555850] [debug] {"uuid":"03bb4899-b422-4489-bd31-996d6c056ec5","changeType":"insert","entity":"invoice","entityId":1661,"message":null,"clientId":37,"eventName":"invoice.add_draft","clientData":{"id":37,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA SOLEDAD","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA SOLEDAD, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANGEL","lastName":"ARVIZU","username":"aarvizu37","contacts":[{"id":38,"clientId":37,"email":null,"phone":"4181818706","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3910,"accountCredit":0,"accountOutstanding":3910,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#009688","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1661,"clientId":37,"number":"001612","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1664,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":36,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGEL","clientLastName":"ARVIZU","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA SOLEDAD","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:47.674607] [notice] Logging level set to:debug +[2025-02-28 16:01:47.929784] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:47.929981] [debug] Valor de JSON: {"uuid":"31f109ff-833d-4593-ad1c-a5772469e536","changeType":"draft_approved","entity":"invoice","entityId":"1661","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1661,"clientId":37,"number":"001612","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1664,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":36,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGEL","clientLastName":"ARVIZU","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA SOLEDAD","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:47.930141] [debug] Aprobación de Factura + +[2025-02-28 16:01:47.930253] [debug] {"uuid":"31f109ff-833d-4593-ad1c-a5772469e536","changeType":"draft_approved","entity":"invoice","entityId":1661,"message":null,"clientId":37,"eventName":"invoice.draft_approved","clientData":{"id":37,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA SOLEDAD","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA SOLEDAD, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANGEL","lastName":"ARVIZU","username":"aarvizu37","contacts":[{"id":38,"clientId":37,"email":null,"phone":"4181818706","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3910,"accountCredit":0,"accountOutstanding":3910,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#009688","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1661,"clientId":37,"number":"001612","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1664,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":36,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGEL","clientLastName":"ARVIZU","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA SOLEDAD","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:48.759373] [notice] Logging level set to:debug +[2025-02-28 16:01:48.904051] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:48.904225] [debug] Valor de JSON: {"uuid":"1c93f607-a736-4be7-9247-0d1c613d98d4","changeType":"insert","entity":"invoice","entityId":"1662","eventName":"invoice.add_draft","extraData":{"entity":{"id":1662,"clientId":81,"number":"001613","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1665,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":80,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"FERNANDO","clientLastName":"ALCAZAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:48.904366] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:48.904443] [debug] {"uuid":"1c93f607-a736-4be7-9247-0d1c613d98d4","changeType":"insert","entity":"invoice","entityId":1662,"message":null,"clientId":81,"eventName":"invoice.add_draft","clientData":{"id":81,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"FERNANDO","lastName":"ALCAZAR","username":"falcazar81","contacts":[{"id":82,"clientId":81,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-9800,"accountCredit":0,"accountOutstanding":9800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#d81b60","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1662,"clientId":81,"number":"001613","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1665,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":80,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"FERNANDO","clientLastName":"ALCAZAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:49.027324] [notice] Logging level set to:debug +[2025-02-28 16:01:49.277225] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:49.277457] [debug] Valor de JSON: {"uuid":"0dd095e7-df82-42f3-be29-bce7a2c0a380","changeType":"draft_approved","entity":"invoice","entityId":"1662","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1662,"clientId":81,"number":"001613","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1665,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":80,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"FERNANDO","clientLastName":"ALCAZAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:49.277688] [debug] Aprobación de Factura + +[2025-02-28 16:01:49.277779] [debug] {"uuid":"0dd095e7-df82-42f3-be29-bce7a2c0a380","changeType":"draft_approved","entity":"invoice","entityId":1662,"message":null,"clientId":81,"eventName":"invoice.draft_approved","clientData":{"id":81,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"FERNANDO","lastName":"ALCAZAR","username":"falcazar81","contacts":[{"id":82,"clientId":81,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-9800,"accountCredit":0,"accountOutstanding":9800,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#d81b60","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1662,"clientId":81,"number":"001613","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1665,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":80,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"FERNANDO","clientLastName":"ALCAZAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:50.058034] [notice] Logging level set to:debug +[2025-02-28 16:01:50.197479] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:50.197643] [debug] Valor de JSON: {"uuid":"7ca7dd21-4515-4c65-8a6a-15ea244a8c3e","changeType":"insert","entity":"invoice","entityId":"1663","eventName":"invoice.add_draft","extraData":{"entity":{"id":1663,"clientId":11,"number":"001614","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1666,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":11,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"KARIME","clientLastName":"QUINTERO HERNANDEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:50.197786] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:50.197860] [debug] {"uuid":"7ca7dd21-4515-4c65-8a6a-15ea244a8c3e","changeType":"insert","entity":"invoice","entityId":1663,"message":null,"clientId":11,"eventName":"invoice.add_draft","clientData":{"id":11,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TRANCAS","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TRANCAS, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"KARIME","lastName":"QUINTERO HERNANDEZ","username":"kquintero11","contacts":[{"id":12,"clientId":11,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3000,"accountCredit":0,"accountOutstanding":3000,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.2271959,"addressGpsLon":-101.0269744,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1663,"clientId":11,"number":"001614","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1666,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":11,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"KARIME","clientLastName":"QUINTERO HERNANDEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:50.309834] [notice] Logging level set to:debug +[2025-02-28 16:01:50.540961] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:50.541115] [debug] Valor de JSON: {"uuid":"6e4a75b9-3f72-4ad6-af44-498c851030c6","changeType":"draft_approved","entity":"invoice","entityId":"1663","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1663,"clientId":11,"number":"001614","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1666,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":11,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"KARIME","clientLastName":"QUINTERO HERNANDEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:50.541255] [debug] Aprobación de Factura + +[2025-02-28 16:01:50.541336] [debug] {"uuid":"6e4a75b9-3f72-4ad6-af44-498c851030c6","changeType":"draft_approved","entity":"invoice","entityId":1663,"message":null,"clientId":11,"eventName":"invoice.draft_approved","clientData":{"id":11,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TRANCAS","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TRANCAS, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"KARIME","lastName":"QUINTERO HERNANDEZ","username":"kquintero11","contacts":[{"id":12,"clientId":11,"email":null,"phone":"4181577623","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3000,"accountCredit":0,"accountOutstanding":3000,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.2271959,"addressGpsLon":-101.0269744,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1663,"clientId":11,"number":"001614","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1666,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":11,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"KARIME","clientLastName":"QUINTERO HERNANDEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:51.336870] [notice] Logging level set to:debug +[2025-02-28 16:01:51.489048] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:51.489195] [debug] Valor de JSON: {"uuid":"a370d466-3f9c-40e1-9bd1-7137f8fccb8d","changeType":"insert","entity":"invoice","entityId":"1664","eventName":"invoice.add_draft","extraData":{"entity":{"id":1664,"clientId":55,"number":"001615","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1667,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":54,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JOSE","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:51.489315] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:51.489392] [debug] {"uuid":"a370d466-3f9c-40e1-9bd1-7137f8fccb8d","changeType":"insert","entity":"invoice","entityId":1664,"message":null,"clientId":55,"eventName":"invoice.add_draft","clientData":{"id":55,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL MEZQUITAL","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL MEZQUITAL, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JOSE","lastName":"SANCHEZ","username":"jsanchez55","contacts":[{"id":56,"clientId":55,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#8e24aa","addressGpsLat":21.1081412,"addressGpsLon":-100.9422033,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1664,"clientId":55,"number":"001615","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1667,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":54,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JOSE","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:51.599602] [notice] Logging level set to:debug +[2025-02-28 16:01:51.837941] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:51.838088] [debug] Valor de JSON: {"uuid":"c858b0de-c737-400d-b87f-1c8eea1569e2","changeType":"draft_approved","entity":"invoice","entityId":"1664","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1664,"clientId":55,"number":"001615","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1667,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":54,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JOSE","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:51.838218] [debug] Aprobación de Factura + +[2025-02-28 16:01:51.838296] [debug] {"uuid":"c858b0de-c737-400d-b87f-1c8eea1569e2","changeType":"draft_approved","entity":"invoice","entityId":1664,"message":null,"clientId":55,"eventName":"invoice.draft_approved","clientData":{"id":55,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL MEZQUITAL","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"EL MEZQUITAL, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JOSE","lastName":"SANCHEZ","username":"jsanchez55","contacts":[{"id":56,"clientId":55,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#8e24aa","addressGpsLat":21.1081412,"addressGpsLon":-100.9422033,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1664,"clientId":55,"number":"001615","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1667,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":54,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JOSE","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:52.676436] [notice] Logging level set to:debug +[2025-02-28 16:01:52.817189] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:52.817347] [debug] Valor de JSON: {"uuid":"a73863e5-bd66-4360-92a2-6e5799c2e105","changeType":"insert","entity":"invoice","entityId":"1665","eventName":"invoice.add_draft","extraData":{"entity":{"id":1665,"clientId":31,"number":"001616","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1668,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":30,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANA","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SIETE REALES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:52.817503] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:52.817584] [debug] {"uuid":"a73863e5-bd66-4360-92a2-6e5799c2e105","changeType":"insert","entity":"invoice","entityId":1665,"message":null,"clientId":31,"eventName":"invoice.add_draft","clientData":{"id":31,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SIETE REALES","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SIETE REALES, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANA","lastName":"CASTILLO","username":"acastillo31","contacts":[{"id":32,"clientId":31,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3880,"accountCredit":0,"accountOutstanding":3880,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#4caf50","addressGpsLat":21.2302531,"addressGpsLon":-100.7594666,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1665,"clientId":31,"number":"001616","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1668,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":30,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANA","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SIETE REALES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:52.926137] [notice] Logging level set to:debug +[2025-02-28 16:01:53.160564] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:53.160743] [debug] Valor de JSON: {"uuid":"99293ddf-1ae7-4ac0-97b7-e55d23902f8c","changeType":"draft_approved","entity":"invoice","entityId":"1665","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1665,"clientId":31,"number":"001616","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1668,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":30,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANA","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SIETE REALES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:53.160868] [debug] Aprobación de Factura + +[2025-02-28 16:01:53.160943] [debug] {"uuid":"99293ddf-1ae7-4ac0-97b7-e55d23902f8c","changeType":"draft_approved","entity":"invoice","entityId":1665,"message":null,"clientId":31,"eventName":"invoice.draft_approved","clientData":{"id":31,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SIETE REALES","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SIETE REALES, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANA","lastName":"CASTILLO","username":"acastillo31","contacts":[{"id":32,"clientId":31,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3880,"accountCredit":0,"accountOutstanding":3880,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#4caf50","addressGpsLat":21.2302531,"addressGpsLon":-100.7594666,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1665,"clientId":31,"number":"001616","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1668,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":30,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANA","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SIETE REALES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:54.042678] [notice] Logging level set to:debug +[2025-02-28 16:01:54.181453] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:54.181603] [debug] Valor de JSON: {"uuid":"0ab55174-cf0d-4fe7-8cc0-013c1e773ad6","changeType":"insert","entity":"invoice","entityId":"1666","eventName":"invoice.add_draft","extraData":{"entity":{"id":1666,"clientId":20,"number":"001617","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1669,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":19,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEFANIA","clientLastName":"BUENROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN PABLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:54.181768] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:54.181854] [debug] {"uuid":"0ab55174-cf0d-4fe7-8cc0-013c1e773ad6","changeType":"insert","entity":"invoice","entityId":1666,"message":null,"clientId":20,"eventName":"invoice.add_draft","clientData":{"id":20,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN PABLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN PABLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ESTEFANIA","lastName":"BUENROSTRO","username":"ebuenrostro20","contacts":[{"id":21,"clientId":20,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3880,"accountCredit":0,"accountOutstanding":3880,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#0277bd","addressGpsLat":21.1575375,"addressGpsLon":-100.9440518,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1666,"clientId":20,"number":"001617","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1669,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":19,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEFANIA","clientLastName":"BUENROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN PABLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:54.295140] [notice] Logging level set to:debug +[2025-02-28 16:01:54.517925] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:54.518130] [debug] Valor de JSON: {"uuid":"a02002eb-96d9-4da3-ba62-ecf7ca4cee53","changeType":"draft_approved","entity":"invoice","entityId":"1666","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1666,"clientId":20,"number":"001617","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1669,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":19,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEFANIA","clientLastName":"BUENROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN PABLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:54.518274] [debug] Aprobación de Factura + +[2025-02-28 16:01:54.518357] [debug] {"uuid":"a02002eb-96d9-4da3-ba62-ecf7ca4cee53","changeType":"draft_approved","entity":"invoice","entityId":1666,"message":null,"clientId":20,"eventName":"invoice.draft_approved","clientData":{"id":20,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN PABLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN PABLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ESTEFANIA","lastName":"BUENROSTRO","username":"ebuenrostro20","contacts":[{"id":21,"clientId":20,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3880,"accountCredit":0,"accountOutstanding":3880,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#0277bd","addressGpsLat":21.1575375,"addressGpsLon":-100.9440518,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1666,"clientId":20,"number":"001617","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1669,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":19,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEFANIA","clientLastName":"BUENROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN PABLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:55.614032] [notice] Logging level set to:debug +[2025-02-28 16:01:55.743697] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:55.743756] [debug] Valor de JSON: {"uuid":"914f7400-1435-4319-94f4-e6d3e6cde6bc","changeType":"insert","entity":"invoice","entityId":"1667","eventName":"invoice.add_draft","extraData":{"entity":{"id":1667,"clientId":75,"number":"001618","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1670,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":74,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAUL","clientLastName":"AYALA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:55.743877] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:55.743925] [debug] {"uuid":"914f7400-1435-4319-94f4-e6d3e6cde6bc","changeType":"insert","entity":"invoice","entityId":1667,"message":null,"clientId":75,"eventName":"invoice.add_draft","clientData":{"id":75,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ELIAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ELIAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"RAUL","lastName":"AYALA","username":"rayala75","contacts":[{"id":76,"clientId":75,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#6a1b9a","addressGpsLat":21.2516667,"addressGpsLon":-101.0924998,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1667,"clientId":75,"number":"001618","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1670,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":74,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAUL","clientLastName":"AYALA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:55.902695] [notice] Logging level set to:debug +[2025-02-28 16:01:56.271771] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:56.271845] [debug] Valor de JSON: {"uuid":"5ae4ce6d-65c1-4bc4-b761-924db5a0078a","changeType":"draft_approved","entity":"invoice","entityId":"1667","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1667,"clientId":75,"number":"001618","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1670,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":74,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAUL","clientLastName":"AYALA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:56.271960] [debug] Aprobación de Factura + +[2025-02-28 16:01:56.272017] [debug] {"uuid":"5ae4ce6d-65c1-4bc4-b761-924db5a0078a","changeType":"draft_approved","entity":"invoice","entityId":1667,"message":null,"clientId":75,"eventName":"invoice.draft_approved","clientData":{"id":75,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ELIAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ELIAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"RAUL","lastName":"AYALA","username":"rayala75","contacts":[{"id":76,"clientId":75,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#6a1b9a","addressGpsLat":21.2516667,"addressGpsLon":-101.0924998,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1667,"clientId":75,"number":"001618","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1670,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":74,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAUL","clientLastName":"AYALA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:57.307121] [notice] Logging level set to:debug +[2025-02-28 16:01:57.445709] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:57.445893] [debug] Valor de JSON: {"uuid":"4e6f28ed-f2d0-4f10-8c4d-b817b5c87ed7","changeType":"insert","entity":"invoice","entityId":"1668","eventName":"invoice.add_draft","extraData":{"entity":{"id":1668,"clientId":69,"number":"001619","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1671,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":68,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CIRILA","clientLastName":"AVILES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:57.446037] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:57.446124] [debug] {"uuid":"4e6f28ed-f2d0-4f10-8c4d-b817b5c87ed7","changeType":"insert","entity":"invoice","entityId":1668,"message":null,"clientId":69,"eventName":"invoice.add_draft","clientData":{"id":69,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"CIRILA","lastName":"AVILES","username":"caviles69","contacts":[{"id":70,"clientId":69,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#8bc34a","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1668,"clientId":69,"number":"001619","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1671,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":68,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CIRILA","clientLastName":"AVILES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:57.557543] [notice] Logging level set to:debug +[2025-02-28 16:01:57.697143] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:57.697329] [debug] Valor de JSON: {"uuid":"4c29efa0-33ec-412d-93a3-49b0f23ed6e3","changeType":"draft_approved","entity":"invoice","entityId":"1668","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1668,"clientId":69,"number":"001619","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1671,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":68,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CIRILA","clientLastName":"AVILES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:57.697460] [debug] Aprobación de Factura + +[2025-02-28 16:01:57.697539] [debug] {"uuid":"4c29efa0-33ec-412d-93a3-49b0f23ed6e3","changeType":"draft_approved","entity":"invoice","entityId":1668,"message":null,"clientId":69,"eventName":"invoice.draft_approved","clientData":{"id":69,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"CIRILA","lastName":"AVILES","username":"caviles69","contacts":[{"id":70,"clientId":69,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#8bc34a","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1668,"clientId":69,"number":"001619","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1671,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":68,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CIRILA","clientLastName":"AVILES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:58.585485] [notice] Logging level set to:debug +[2025-02-28 16:01:58.720170] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:01:58.720237] [debug] Valor de JSON: {"uuid":"e616b662-6b3d-4259-9977-36b94762fd6a","changeType":"insert","entity":"invoice","entityId":"1669","eventName":"invoice.add_draft","extraData":{"entity":{"id":1669,"clientId":66,"number":"001620","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1672,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":65,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LAURA","clientLastName":"CRUCES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:58.720357] [debug] Adición de borrador de Factura + +[2025-02-28 16:01:58.720405] [debug] {"uuid":"e616b662-6b3d-4259-9977-36b94762fd6a","changeType":"insert","entity":"invoice","entityId":1669,"message":null,"clientId":66,"eventName":"invoice.add_draft","clientData":{"id":66,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"LAURA","lastName":"CRUCES","username":"lcruces66","contacts":[{"id":67,"clientId":66,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ffb300","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1669,"clientId":66,"number":"001620","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1672,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":65,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LAURA","clientLastName":"CRUCES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:58.830605] [notice] Logging level set to:debug +[2025-02-28 16:01:58.997256] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:01:58.997322] [debug] Valor de JSON: {"uuid":"b83db856-72aa-4350-b112-16754d5c2de7","changeType":"draft_approved","entity":"invoice","entityId":"1669","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1669,"clientId":66,"number":"001620","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1672,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":65,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LAURA","clientLastName":"CRUCES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:01:58.997433] [debug] Aprobación de Factura + +[2025-02-28 16:01:58.997483] [debug] {"uuid":"b83db856-72aa-4350-b112-16754d5c2de7","changeType":"draft_approved","entity":"invoice","entityId":1669,"message":null,"clientId":66,"eventName":"invoice.draft_approved","clientData":{"id":66,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"LAURA","lastName":"CRUCES","username":"lcruces66","contacts":[{"id":67,"clientId":66,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ffb300","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1669,"clientId":66,"number":"001620","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1672,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":65,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LAURA","clientLastName":"CRUCES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:01:59.920779] [notice] Logging level set to:debug +[2025-02-28 16:02:00.069489] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:02:00.069546] [debug] Valor de JSON: {"uuid":"a6fa6e61-bcc1-4be7-939d-eb2437756a22","changeType":"insert","entity":"invoice","entityId":"1670","eventName":"invoice.add_draft","extraData":{"entity":{"id":1670,"clientId":86,"number":"001621","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1673,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":85,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PALMITAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:00.069636] [debug] Adición de borrador de Factura + +[2025-02-28 16:02:00.069808] [debug] {"uuid":"a6fa6e61-bcc1-4be7-939d-eb2437756a22","changeType":"insert","entity":"invoice","entityId":1670,"message":null,"clientId":86,"eventName":"invoice.add_draft","clientData":{"id":86,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"PALMITAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"PALMITAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"HUMBERTO","lastName":"CASTILLO","username":"hcastillo86","contacts":[{"id":87,"clientId":86,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-6100,"accountCredit":0,"accountOutstanding":6100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#c62828","addressGpsLat":21.2394677,"addressGpsLon":-100.9803471,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1670,"clientId":86,"number":"001621","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1673,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":85,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PALMITAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:00.180871] [notice] Logging level set to:debug +[2025-02-28 16:02:00.439063] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:02:00.439126] [debug] Valor de JSON: {"uuid":"94868b21-b2e8-434f-a33b-35edb899ae0a","changeType":"draft_approved","entity":"invoice","entityId":"1670","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1670,"clientId":86,"number":"001621","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1673,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":85,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PALMITAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:00.439229] [debug] Aprobación de Factura + +[2025-02-28 16:02:00.439275] [debug] {"uuid":"94868b21-b2e8-434f-a33b-35edb899ae0a","changeType":"draft_approved","entity":"invoice","entityId":1670,"message":null,"clientId":86,"eventName":"invoice.draft_approved","clientData":{"id":86,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"PALMITAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"PALMITAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"HUMBERTO","lastName":"CASTILLO","username":"hcastillo86","contacts":[{"id":87,"clientId":86,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-6100,"accountCredit":0,"accountOutstanding":6100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#c62828","addressGpsLat":21.2394677,"addressGpsLon":-100.9803471,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1670,"clientId":86,"number":"001621","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1673,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":85,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PALMITAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:01.809165] [notice] Logging level set to:debug +[2025-02-28 16:02:01.964095] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:02:01.964168] [debug] Valor de JSON: {"uuid":"c3698a37-df7c-4302-877e-2f1d7d6bfbd3","changeType":"insert","entity":"invoice","entityId":"1671","eventName":"invoice.add_draft","extraData":{"entity":{"id":1671,"clientId":74,"number":"001622","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1674,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":73,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARCELO","clientLastName":"PALACIOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:01.964292] [debug] Adición de borrador de Factura + +[2025-02-28 16:02:01.964343] [debug] {"uuid":"c3698a37-df7c-4302-877e-2f1d7d6bfbd3","changeType":"insert","entity":"invoice","entityId":1671,"message":null,"clientId":74,"eventName":"invoice.add_draft","clientData":{"id":74,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MARCELO","lastName":"PALACIOS","username":"mpalacios74","contacts":[{"id":75,"clientId":74,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2e7d32","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1671,"clientId":74,"number":"001622","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1674,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":73,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARCELO","clientLastName":"PALACIOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:02.079333] [notice] Logging level set to:debug +[2025-02-28 16:02:02.229819] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:02:02.229908] [debug] Valor de JSON: {"uuid":"0e45a8a7-ab1d-42a0-a2cb-7e2e16959bbe","changeType":"draft_approved","entity":"invoice","entityId":"1671","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1671,"clientId":74,"number":"001622","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1674,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":73,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARCELO","clientLastName":"PALACIOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:02.230014] [debug] Aprobación de Factura + +[2025-02-28 16:02:02.230072] [debug] {"uuid":"0e45a8a7-ab1d-42a0-a2cb-7e2e16959bbe","changeType":"draft_approved","entity":"invoice","entityId":1671,"message":null,"clientId":74,"eventName":"invoice.draft_approved","clientData":{"id":74,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MARCELO","lastName":"PALACIOS","username":"mpalacios74","contacts":[{"id":75,"clientId":74,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2e7d32","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1671,"clientId":74,"number":"001622","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1674,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":73,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARCELO","clientLastName":"PALACIOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:03.118180] [notice] Logging level set to:debug +[2025-02-28 16:02:03.269742] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:02:03.269809] [debug] Valor de JSON: {"uuid":"5f6c0c41-8b06-43b4-b883-81a2cd8e8c6c","changeType":"insert","entity":"invoice","entityId":"1672","eventName":"invoice.add_draft","extraData":{"entity":{"id":1672,"clientId":44,"number":"001623","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1675,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":43,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JAVIER","clientLastName":"BRIONES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ESTANCIA DE ZAMARRIPA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:03.269920] [debug] Adición de borrador de Factura + +[2025-02-28 16:02:03.269972] [debug] {"uuid":"5f6c0c41-8b06-43b4-b883-81a2cd8e8c6c","changeType":"insert","entity":"invoice","entityId":1672,"message":null,"clientId":44,"eventName":"invoice.add_draft","clientData":{"id":44,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"ESTANCIA DE ZAMARRIPA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"ESTANCIA DE ZAMARRIPA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JAVIER","lastName":"BRIONES","username":"jbriones44","contacts":[{"id":45,"clientId":44,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3910,"accountCredit":0,"accountOutstanding":3910,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#c0ca33","addressGpsLat":21.2370877,"addressGpsLon":-101.116799,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1672,"clientId":44,"number":"001623","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1675,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":43,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JAVIER","clientLastName":"BRIONES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ESTANCIA DE ZAMARRIPA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:03.377815] [notice] Logging level set to:debug +[2025-02-28 16:02:03.510648] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:02:03.510704] [debug] Valor de JSON: {"uuid":"b90b4d45-3340-4c21-afd5-b35907ccb3c4","changeType":"draft_approved","entity":"invoice","entityId":"1672","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1672,"clientId":44,"number":"001623","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1675,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":43,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JAVIER","clientLastName":"BRIONES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ESTANCIA DE ZAMARRIPA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:03.510798] [debug] Aprobación de Factura + +[2025-02-28 16:02:03.510845] [debug] {"uuid":"b90b4d45-3340-4c21-afd5-b35907ccb3c4","changeType":"draft_approved","entity":"invoice","entityId":1672,"message":null,"clientId":44,"eventName":"invoice.draft_approved","clientData":{"id":44,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"ESTANCIA DE ZAMARRIPA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"ESTANCIA DE ZAMARRIPA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JAVIER","lastName":"BRIONES","username":"jbriones44","contacts":[{"id":45,"clientId":44,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3910,"accountCredit":0,"accountOutstanding":3910,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#c0ca33","addressGpsLat":21.2370877,"addressGpsLon":-101.116799,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1672,"clientId":44,"number":"001623","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1675,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":43,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JAVIER","clientLastName":"BRIONES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ESTANCIA DE ZAMARRIPA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:04.459530] [notice] Logging level set to:debug +[2025-02-28 16:02:04.596576] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:02:04.596734] [debug] Valor de JSON: {"uuid":"75f99f6e-1468-4d68-af4a-e5bb3ef3b223","changeType":"insert","entity":"invoice","entityId":"1673","eventName":"invoice.add_draft","extraData":{"entity":{"id":1673,"clientId":14,"number":"001624","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1676,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":14,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDRO","clientLastName":"ARIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:04.596879] [debug] Adición de borrador de Factura + +[2025-02-28 16:02:04.596952] [debug] {"uuid":"75f99f6e-1468-4d68-af4a-e5bb3ef3b223","changeType":"insert","entity":"invoice","entityId":1673,"message":null,"clientId":14,"eventName":"invoice.add_draft","clientData":{"id":14,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LINDAVISTA","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LINDAVISTA, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALEXANDRO","lastName":"ARIAS","username":"aarias14","contacts":[{"id":15,"clientId":14,"email":null,"phone":"+1 682-260-4759","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-2700,"accountCredit":0,"accountOutstanding":2700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#546e7a","addressGpsLat":21.1499891,"addressGpsLon":-100.9582493,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1673,"clientId":14,"number":"001624","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1676,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":14,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDRO","clientLastName":"ARIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:04.597024] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-28 16:02:04.597063] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":15,"clientId":14,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-01-29T12:00:41-0600","amount":1800,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":17,"invoiceId":23,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300},{"id":19,"invoiceId":67,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300},{"id":36,"invoiceId":126,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300},{"id":122,"invoiceId":318,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300},{"id":125,"invoiceId":382,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300},{"id":312,"invoiceId":582,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1000,"attributes":[]}] + +Nombre del cliente que se va a actualizar: ALEXANDRO ARIAS + +UUID: be760b254a694e8b94b002789d68d388 + +JSON con los datos a actualizar: {"name":"ALEXANDRO ARIAS","custom_fields":{"Cliente":14,"Domicilio":"\ud83d\udccd LINDAVISTA, Dolores Hidalgo, 37800","Nombre":"\ud83d\udc64 ALEXANDRO ARIAS","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/14","Saldo Actual":"\ud83d\udcb22700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 1800","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"14\",\"Domicilio\": \"\ud83d\udccd LINDAVISTA, Dolores Hidalgo, 37800\",\"Nombre\": \"\ud83d\udc64 ALEXANDRO ARIAS\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/14\",\"Saldo Actual\": \"\ud83d\udcb22700 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 1800\",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 29\/01\/2024 12:00 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/02\/2025 10:02\",\"Clabe Interbancaria\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 29\/01\/2024 12:00 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/02\/2025 10:02","Clabe Interbancaria":null}} + +Response Patch CallBell: {"contact":{"uuid":"be760b254a694e8b94b002789d68d388","name":"ALEXANDRO ARIAS","phoneNumber":"+1 682-260-4759","avatarUrl":null,"createdAt":"2024-01-29T18:03:03Z","closedAt":"2024-01-29T18:32:46Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/be760b254a694e8b94b002789d68d388","conversationHref":"https://dash.callbell.eu/chat/b95896c60a7e4541b9d378d9d9ef938b","tags":[],"assignedUser":null,"customFields":{"Antena/Sectorial":"14","Estado":"🔴 Suspendido","Nombre":"👤 ALEXANDRO ARIAS","Cliente":"14","Domicilio":"📍 LINDAVISTA, Dolores Hidalgo, 37800","Fecha Ultima Actualizacion":"📆🔄️ 28/02/2025 10:02","Fecha Ultimo Pago":"📆💸 29/01/2024 12:00 con Efectivo 💵","Monto Ultimo Pago":"💲 1800","Resumen":"{\"Cliente\": \"14\",\"Domicilio\": \"📍 LINDAVISTA, Dolores Hidalgo, 37800\",\"Nombre\": \"👤 ALEXANDRO ARIAS\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/14\",\"Saldo Actual\": \"💲2700 pendientes\",\"Monto Ultimo Pago\": \"💲 1800\",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 29/01/2024 12:00 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 28/02/2025 10:02\",\"Clabe Interbancaria\": \"\"}","Saldo Actual":"💲2700 pendientes","URL":"🌐 https://sistema.siip.mx/crm/client/14"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-28 16:02:06.558092] [notice] Logging level set to:debug +[2025-02-28 16:02:06.698654] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:02:06.698725] [debug] Valor de JSON: {"uuid":"39c08ced-c3db-42e0-b268-bce249bbce44","changeType":"draft_approved","entity":"invoice","entityId":"1673","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1673,"clientId":14,"number":"001624","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1676,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":14,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDRO","clientLastName":"ARIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:06.698812] [debug] Aprobación de Factura + +[2025-02-28 16:02:06.698859] [debug] {"uuid":"39c08ced-c3db-42e0-b268-bce249bbce44","changeType":"draft_approved","entity":"invoice","entityId":1673,"message":null,"clientId":14,"eventName":"invoice.draft_approved","clientData":{"id":14,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LINDAVISTA","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LINDAVISTA, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALEXANDRO","lastName":"ARIAS","username":"aarias14","contacts":[{"id":15,"clientId":14,"email":null,"phone":"+1 682-260-4759","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-2700,"accountCredit":0,"accountOutstanding":2700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#546e7a","addressGpsLat":21.1499891,"addressGpsLon":-100.9582493,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1673,"clientId":14,"number":"001624","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1676,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":14,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDRO","clientLastName":"ARIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:06.698898] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-02-28 16:02:06.698909] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":15,"clientId":14,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-01-29T12:00:41-0600","amount":1800,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":17,"invoiceId":23,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300},{"id":19,"invoiceId":67,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300},{"id":36,"invoiceId":126,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300},{"id":122,"invoiceId":318,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300},{"id":125,"invoiceId":382,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300},{"id":312,"invoiceId":582,"paymentId":15,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1000,"attributes":[]}] + +Nombre del cliente que se va a actualizar: ALEXANDRO ARIAS + +UUID: be760b254a694e8b94b002789d68d388 + +JSON con los datos a actualizar: {"name":"ALEXANDRO ARIAS","custom_fields":{"Cliente":14,"Domicilio":"\ud83d\udccd LINDAVISTA, Dolores Hidalgo, 37800","Nombre":"\ud83d\udc64 ALEXANDRO ARIAS","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/14","Saldo Actual":"\ud83d\udcb22700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 1800","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"14\",\"Domicilio\": \"\ud83d\udccd LINDAVISTA, Dolores Hidalgo, 37800\",\"Nombre\": \"\ud83d\udc64 ALEXANDRO ARIAS\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/14\",\"Saldo Actual\": \"\ud83d\udcb22700 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 1800\",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 29\/01\/2024 12:00 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/02\/2025 10:02\",\"Clabe Interbancaria\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 29\/01\/2024 12:00 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 28\/02\/2025 10:02","Clabe Interbancaria":null}} + +Response Patch CallBell: {"contact":{"uuid":"be760b254a694e8b94b002789d68d388","name":"ALEXANDRO ARIAS","phoneNumber":"+1 682-260-4759","avatarUrl":null,"createdAt":"2024-01-29T18:03:03Z","closedAt":"2024-01-29T18:32:46Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/be760b254a694e8b94b002789d68d388","conversationHref":"https://dash.callbell.eu/chat/b95896c60a7e4541b9d378d9d9ef938b","tags":[],"assignedUser":null,"customFields":{"Antena/Sectorial":"14","Estado":"🔴 Suspendido","Nombre":"👤 ALEXANDRO ARIAS","Cliente":"14","Domicilio":"📍 LINDAVISTA, Dolores Hidalgo, 37800","Fecha Ultima Actualizacion":"📆🔄️ 28/02/2025 10:02","Fecha Ultimo Pago":"📆💸 29/01/2024 12:00 con Efectivo 💵","Monto Ultimo Pago":"💲 1800","Resumen":"{\"Cliente\": \"14\",\"Domicilio\": \"📍 LINDAVISTA, Dolores Hidalgo, 37800\",\"Nombre\": \"👤 ALEXANDRO ARIAS\",\"URL\": \"🌐 https://sistema.siip.mx/crm/client/14\",\"Saldo Actual\": \"💲2700 pendientes\",\"Monto Ultimo Pago\": \"💲 1800\",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 29/01/2024 12:00 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 28/02/2025 10:02\",\"Clabe Interbancaria\": \"\"}","Saldo Actual":"💲2700 pendientes","URL":"🌐 https://sistema.siip.mx/crm/client/14"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} + +[2025-02-28 16:02:08.512527] [notice] Logging level set to:debug +[2025-02-28 16:02:08.654266] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:02:08.654458] [debug] Valor de JSON: {"uuid":"094e2449-0a8f-4dec-a0c7-bc87792f83f4","changeType":"insert","entity":"invoice","entityId":"1674","eventName":"invoice.add_draft","extraData":{"entity":{"id":1674,"clientId":70,"number":"001625","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1677,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":69,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALBERTO","clientLastName":"TRUJILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:08.654602] [debug] Adición de borrador de Factura + +[2025-02-28 16:02:08.654683] [debug] {"uuid":"094e2449-0a8f-4dec-a0c7-bc87792f83f4","changeType":"insert","entity":"invoice","entityId":1674,"message":null,"clientId":70,"eventName":"invoice.add_draft","clientData":{"id":70,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALBERTO","lastName":"TRUJILLO","username":"atrujillo70","contacts":[{"id":71,"clientId":70,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-9100,"accountCredit":0,"accountOutstanding":9100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef6c00","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1674,"clientId":70,"number":"001625","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1677,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":69,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALBERTO","clientLastName":"TRUJILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:08.770133] [notice] Logging level set to:debug +[2025-02-28 16:02:08.903734] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:02:08.903923] [debug] Valor de JSON: {"uuid":"ab4fe3ff-fde1-4f57-aa31-446c03bb03ae","changeType":"draft_approved","entity":"invoice","entityId":"1674","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1674,"clientId":70,"number":"001625","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1677,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":69,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALBERTO","clientLastName":"TRUJILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:08.904071] [debug] Aprobación de Factura + +[2025-02-28 16:02:08.904150] [debug] {"uuid":"ab4fe3ff-fde1-4f57-aa31-446c03bb03ae","changeType":"draft_approved","entity":"invoice","entityId":1674,"message":null,"clientId":70,"eventName":"invoice.draft_approved","clientData":{"id":70,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ALBERTO","lastName":"TRUJILLO","username":"atrujillo70","contacts":[{"id":71,"clientId":70,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-9100,"accountCredit":0,"accountOutstanding":9100,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef6c00","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1674,"clientId":70,"number":"001625","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1677,"type":"service","label":"PREMIUM 31\/01\/2025 \u2013 27\/02\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":69,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALBERTO","clientLastName":"TRUJILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:09.015853] [notice] Logging level set to:debug +[2025-02-28 16:02:09.177978] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:02:09.178162] [debug] Valor de JSON: {"uuid":"2573dc1c-b130-4838-99b0-cf300206c8a2","changeType":"insert","entity":"invoice","entityId":"1675","eventName":"invoice.add_draft","extraData":{"entity":{"id":1675,"clientId":38,"number":"001626","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1678,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":37,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGELICA","clientLastName":"ROMAN","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:09.178304] [debug] Adición de borrador de Factura + +[2025-02-28 16:02:09.178385] [debug] {"uuid":"2573dc1c-b130-4838-99b0-cf300206c8a2","changeType":"insert","entity":"invoice","entityId":1675,"message":null,"clientId":38,"eventName":"invoice.add_draft","clientData":{"id":38,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TECOLOTE","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TECOLOTE, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANGELICA","lastName":"ROMAN","username":"aroman38","contacts":[{"id":39,"clientId":38,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3910,"accountCredit":0,"accountOutstanding":3910,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#607d8b","addressGpsLat":21.22987,"addressGpsLon":-101.0648115,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1675,"clientId":38,"number":"001626","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1678,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":37,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGELICA","clientLastName":"ROMAN","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:09.290627] [notice] Logging level set to:debug +[2025-02-28 16:02:09.429677] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:02:09.429874] [debug] Valor de JSON: {"uuid":"efcb2a47-b4f8-4f2c-b4a2-5e7ceee8e4b6","changeType":"draft_approved","entity":"invoice","entityId":"1675","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1675,"clientId":38,"number":"001626","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1678,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":37,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGELICA","clientLastName":"ROMAN","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:09.430023] [debug] Aprobación de Factura + +[2025-02-28 16:02:09.430104] [debug] {"uuid":"efcb2a47-b4f8-4f2c-b4a2-5e7ceee8e4b6","changeType":"draft_approved","entity":"invoice","entityId":1675,"message":null,"clientId":38,"eventName":"invoice.draft_approved","clientData":{"id":38,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TECOLOTE","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TECOLOTE, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ANGELICA","lastName":"ROMAN","username":"aroman38","contacts":[{"id":39,"clientId":38,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3910,"accountCredit":0,"accountOutstanding":3910,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#607d8b","addressGpsLat":21.22987,"addressGpsLon":-101.0648115,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1675,"clientId":38,"number":"001626","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1678,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":37,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGELICA","clientLastName":"ROMAN","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:09.969536] [notice] Logging level set to:debug +[2025-02-28 16:02:10.111212] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:02:10.111403] [debug] Valor de JSON: {"uuid":"a48b3f7f-3953-4d6f-8ee1-539c280bd8df","changeType":"insert","entity":"invoice","entityId":"1676","eventName":"invoice.add_draft","extraData":{"entity":{"id":1676,"clientId":21,"number":"001627","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1679,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":20,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NATALIA","clientLastName":"JUAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:10.111546] [debug] Adición de borrador de Factura + +[2025-02-28 16:02:10.111632] [debug] {"uuid":"a48b3f7f-3953-4d6f-8ee1-539c280bd8df","changeType":"insert","entity":"invoice","entityId":1676,"message":null,"clientId":21,"eventName":"invoice.add_draft","clientData":{"id":21,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"MEZQUITAL","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"MEZQUITAL, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"NATALIA","lastName":"JUAREZ","username":"njuarez21","contacts":[{"id":22,"clientId":21,"email":null,"phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4500,"accountCredit":0,"accountOutstanding":4500,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#546e7a","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1676,"clientId":21,"number":"001627","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1679,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":20,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NATALIA","clientLastName":"JUAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:10.223521] [notice] Logging level set to:debug +[2025-02-28 16:02:10.357867] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:02:10.358057] [debug] Valor de JSON: {"uuid":"bb1154b7-268b-4d31-9e01-14a1dec6812d","changeType":"draft_approved","entity":"invoice","entityId":"1676","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1676,"clientId":21,"number":"001627","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1679,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":20,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NATALIA","clientLastName":"JUAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:10.358206] [debug] Aprobación de Factura + +[2025-02-28 16:02:10.358289] [debug] {"uuid":"bb1154b7-268b-4d31-9e01-14a1dec6812d","changeType":"draft_approved","entity":"invoice","entityId":1676,"message":null,"clientId":21,"eventName":"invoice.draft_approved","clientData":{"id":21,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"MEZQUITAL","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"MEZQUITAL, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"NATALIA","lastName":"JUAREZ","username":"njuarez21","contacts":[{"id":22,"clientId":21,"email":null,"phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4500,"accountCredit":0,"accountOutstanding":4500,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#546e7a","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1676,"clientId":21,"number":"001627","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1679,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":20,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NATALIA","clientLastName":"JUAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:11.303092] [notice] Logging level set to:debug +[2025-02-28 16:02:11.454085] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:02:11.454149] [debug] Valor de JSON: {"uuid":"28a2ac17-143a-4810-92f0-f77fe3fa3e20","changeType":"insert","entity":"invoice","entityId":"1677","eventName":"invoice.add_draft","extraData":{"entity":{"id":1677,"clientId":52,"number":"001628","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1680,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":51,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RODRIGO","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL CARMEN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:11.454281] [debug] Adición de borrador de Factura + +[2025-02-28 16:02:11.454328] [debug] {"uuid":"28a2ac17-143a-4810-92f0-f77fe3fa3e20","changeType":"insert","entity":"invoice","entityId":1677,"message":null,"clientId":52,"eventName":"invoice.add_draft","clientData":{"id":52,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL CARMEN","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":null,"fullAddress":"EL CARMEN, Dolores Hidalgo Cuna de la Independencia Nacional","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"RODRIGO","lastName":"PE\u00d1A","username":"rpe\u00d1a52","contacts":[{"id":53,"clientId":52,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#6a1b9a","addressGpsLat":21.1534937,"addressGpsLon":-100.9123301,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1677,"clientId":52,"number":"001628","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1680,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":51,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RODRIGO","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL CARMEN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:11.567955] [notice] Logging level set to:debug +[2025-02-28 16:02:11.723467] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:02:11.723660] [debug] Valor de JSON: {"uuid":"6de14e5e-71da-4b43-9480-99ba9581d0be","changeType":"draft_approved","entity":"invoice","entityId":"1677","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1677,"clientId":52,"number":"001628","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1680,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":51,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RODRIGO","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL CARMEN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:11.723922] [debug] Aprobación de Factura + +[2025-02-28 16:02:11.724011] [debug] {"uuid":"6de14e5e-71da-4b43-9480-99ba9581d0be","changeType":"draft_approved","entity":"invoice","entityId":1677,"message":null,"clientId":52,"eventName":"invoice.draft_approved","clientData":{"id":52,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"EL CARMEN","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":null,"fullAddress":"EL CARMEN, Dolores Hidalgo Cuna de la Independencia Nacional","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"RODRIGO","lastName":"PE\u00d1A","username":"rpe\u00d1a52","contacts":[{"id":53,"clientId":52,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#6a1b9a","addressGpsLat":21.1534937,"addressGpsLon":-100.9123301,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1677,"clientId":52,"number":"001628","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1680,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":51,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RODRIGO","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL CARMEN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:12.667401] [notice] Logging level set to:debug +[2025-02-28 16:02:12.811146] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:02:12.811295] [debug] Valor de JSON: {"uuid":"a69af1b8-5839-4e98-ae4e-f55ec5083f70","changeType":"insert","entity":"invoice","entityId":"1678","eventName":"invoice.add_draft","extraData":{"entity":{"id":1678,"clientId":90,"number":"001629","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1681,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":89,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PEDRO","clientLastName":"HORNEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:12.811439] [debug] Adición de borrador de Factura + +[2025-02-28 16:02:12.811522] [debug] {"uuid":"a69af1b8-5839-4e98-ae4e-f55ec5083f70","changeType":"insert","entity":"invoice","entityId":1678,"message":null,"clientId":90,"eventName":"invoice.add_draft","clientData":{"id":90,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"ADJUNTAS DEL RIO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"ADJUNTAS DEL RIO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"PEDRO","lastName":"HORNEDO","username":"phornedo90","contacts":[{"id":91,"clientId":90,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1678,"clientId":90,"number":"001629","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1681,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":89,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PEDRO","clientLastName":"HORNEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:12.925071] [notice] Logging level set to:debug +[2025-02-28 16:02:13.058734] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:02:13.058882] [debug] Valor de JSON: {"uuid":"9eb1cbc9-c88d-468d-ace0-76be6fb33a08","changeType":"draft_approved","entity":"invoice","entityId":"1678","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1678,"clientId":90,"number":"001629","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1681,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":89,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PEDRO","clientLastName":"HORNEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:13.059006] [debug] Aprobación de Factura + +[2025-02-28 16:02:13.059182] [debug] {"uuid":"9eb1cbc9-c88d-468d-ace0-76be6fb33a08","changeType":"draft_approved","entity":"invoice","entityId":1678,"message":null,"clientId":90,"eventName":"invoice.draft_approved","clientData":{"id":90,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"ADJUNTAS DEL RIO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"ADJUNTAS DEL RIO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"PEDRO","lastName":"HORNEDO","username":"phornedo90","contacts":[{"id":91,"clientId":90,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1678,"clientId":90,"number":"001629","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1681,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":89,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PEDRO","clientLastName":"HORNEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:13.977112] [notice] Logging level set to:debug +[2025-02-28 16:02:14.122994] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:02:14.123148] [debug] Valor de JSON: {"uuid":"3ad70a62-dfcb-456b-a5bd-b47a5c63cf14","changeType":"insert","entity":"invoice","entityId":"1679","eventName":"invoice.add_draft","extraData":{"entity":{"id":1679,"clientId":84,"number":"001630","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1682,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":83,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ROLANDO","clientLastName":"CALVILLLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:14.123302] [debug] Adición de borrador de Factura + +[2025-02-28 16:02:14.123389] [debug] {"uuid":"3ad70a62-dfcb-456b-a5bd-b47a5c63cf14","changeType":"insert","entity":"invoice","entityId":1679,"message":null,"clientId":84,"eventName":"invoice.add_draft","clientData":{"id":84,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ELIAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ELIAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ROLANDO","lastName":"CALVILLLO","username":"rcalvilllo84","contacts":[{"id":85,"clientId":84,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2196f3","addressGpsLat":21.2516667,"addressGpsLon":-101.0924998,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1679,"clientId":84,"number":"001630","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1682,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":83,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ROLANDO","clientLastName":"CALVILLLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:14.237173] [notice] Logging level set to:debug +[2025-02-28 16:02:14.375221] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:02:14.375406] [debug] Valor de JSON: {"uuid":"67663013-6c54-429d-8c89-4eba0cd51661","changeType":"draft_approved","entity":"invoice","entityId":"1679","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1679,"clientId":84,"number":"001630","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1682,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":83,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ROLANDO","clientLastName":"CALVILLLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:14.375565] [debug] Aprobación de Factura + +[2025-02-28 16:02:14.375665] [debug] {"uuid":"67663013-6c54-429d-8c89-4eba0cd51661","changeType":"draft_approved","entity":"invoice","entityId":1679,"message":null,"clientId":84,"eventName":"invoice.draft_approved","clientData":{"id":84,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN ELIAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN ELIAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"ROLANDO","lastName":"CALVILLLO","username":"rcalvilllo84","contacts":[{"id":85,"clientId":84,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2196f3","addressGpsLat":21.2516667,"addressGpsLon":-101.0924998,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1679,"clientId":84,"number":"001630","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1682,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":83,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ROLANDO","clientLastName":"CALVILLLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:15.367278] [notice] Logging level set to:debug +[2025-02-28 16:02:15.532207] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:02:15.532301] [debug] Valor de JSON: {"uuid":"b8225dd2-555e-46d8-9192-e711e487a9df","changeType":"insert","entity":"invoice","entityId":"1680","eventName":"invoice.add_draft","extraData":{"entity":{"id":1680,"clientId":62,"number":"001631","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1683,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":61,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"BERNAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:15.532440] [debug] Adición de borrador de Factura + +[2025-02-28 16:02:15.532682] [debug] {"uuid":"b8225dd2-555e-46d8-9192-e711e487a9df","changeType":"insert","entity":"invoice","entityId":1680,"message":null,"clientId":62,"eventName":"invoice.add_draft","clientData":{"id":62,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TRANCAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TRANCAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"DANIEL","lastName":"BERNAL","username":"dbernal62","contacts":[{"id":63,"clientId":62,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ff5722","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1680,"clientId":62,"number":"001631","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1683,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":61,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"BERNAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:15.649955] [notice] Logging level set to:debug +[2025-02-28 16:02:15.816647] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:02:15.816813] [debug] Valor de JSON: {"uuid":"7eef7813-09c6-45cc-bed3-9aae7c2d9592","changeType":"draft_approved","entity":"invoice","entityId":"1680","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1680,"clientId":62,"number":"001631","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1683,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":61,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"BERNAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:15.816961] [debug] Aprobación de Factura + +[2025-02-28 16:02:15.817043] [debug] {"uuid":"7eef7813-09c6-45cc-bed3-9aae7c2d9592","changeType":"draft_approved","entity":"invoice","entityId":1680,"message":null,"clientId":62,"eventName":"invoice.draft_approved","clientData":{"id":62,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"TRANCAS","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"TRANCAS, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"DANIEL","lastName":"BERNAL","username":"dbernal62","contacts":[{"id":63,"clientId":62,"email":null,"phone":"4181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ff5722","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1680,"clientId":62,"number":"001631","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1683,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":61,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"BERNAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:19.702430] [notice] Logging level set to:debug +[2025-02-28 16:02:19.853863] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:02:19.854012] [debug] Valor de JSON: {"uuid":"91ccc359-0d8e-4b6e-b265-0b7d11594893","changeType":"insert","entity":"invoice","entityId":"1681","eventName":"invoice.add_draft","extraData":{"entity":{"id":1681,"clientId":82,"number":"001632","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1684,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":81,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AGUSTINA","clientLastName":"PERICLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:19.854155] [debug] Adición de borrador de Factura + +[2025-02-28 16:02:19.854231] [debug] {"uuid":"91ccc359-0d8e-4b6e-b265-0b7d11594893","changeType":"insert","entity":"invoice","entityId":1681,"message":null,"clientId":82,"eventName":"invoice.add_draft","clientData":{"id":82,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"AGUSTINA","lastName":"PERICLES","username":"apericles82","contacts":[{"id":83,"clientId":82,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1681,"clientId":82,"number":"001632","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1684,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":81,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AGUSTINA","clientLastName":"PERICLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:19.968259] [notice] Logging level set to:debug +[2025-02-28 16:02:20.112323] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:02:20.112494] [debug] Valor de JSON: {"uuid":"61f4233e-2acc-44b9-925f-365168356f4b","changeType":"draft_approved","entity":"invoice","entityId":"1681","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1681,"clientId":82,"number":"001632","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1684,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":81,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AGUSTINA","clientLastName":"PERICLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:20.112648] [debug] Aprobación de Factura + +[2025-02-28 16:02:20.112729] [debug] {"uuid":"61f4233e-2acc-44b9-925f-365168356f4b","changeType":"draft_approved","entity":"invoice","entityId":1681,"message":null,"clientId":82,"eventName":"invoice.draft_approved","clientData":{"id":82,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"AGUSTINA","lastName":"PERICLES","username":"apericles82","contacts":[{"id":83,"clientId":82,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1681,"clientId":82,"number":"001632","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1684,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":81,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AGUSTINA","clientLastName":"PERICLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:21.042658] [notice] Logging level set to:debug +[2025-02-28 16:02:21.175720] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:02:21.175889] [debug] Valor de JSON: {"uuid":"0345798c-bfdc-4a28-8996-1def4a9a5833","changeType":"insert","entity":"invoice","entityId":"1682","eventName":"invoice.add_draft","extraData":{"entity":{"id":1682,"clientId":61,"number":"001633","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1685,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":60,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LUIS","clientLastName":"AGULAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AGUILAR","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:21.176042] [debug] Adición de borrador de Factura + +[2025-02-28 16:02:21.176141] [debug] {"uuid":"0345798c-bfdc-4a28-8996-1def4a9a5833","changeType":"insert","entity":"invoice","entityId":1682,"message":null,"clientId":61,"eventName":"invoice.add_draft","clientData":{"id":61,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LOS AGUILAR","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LOS AGUILAR, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"LUIS","lastName":"AGULAR","username":"lagular61","contacts":[{"id":62,"clientId":61,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00acc1","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1682,"clientId":61,"number":"001633","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1685,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":60,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LUIS","clientLastName":"AGULAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AGUILAR","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:21.292068] [notice] Logging level set to:debug +[2025-02-28 16:02:21.435693] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:02:21.435875] [debug] Valor de JSON: {"uuid":"9f7140fe-5621-4137-a7a3-3b1ed8f451e0","changeType":"draft_approved","entity":"invoice","entityId":"1682","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1682,"clientId":61,"number":"001633","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1685,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":60,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LUIS","clientLastName":"AGULAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AGUILAR","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:21.436024] [debug] Aprobación de Factura + +[2025-02-28 16:02:21.436104] [debug] {"uuid":"9f7140fe-5621-4137-a7a3-3b1ed8f451e0","changeType":"draft_approved","entity":"invoice","entityId":1682,"message":null,"clientId":61,"eventName":"invoice.draft_approved","clientData":{"id":61,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LOS AGUILAR","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LOS AGUILAR, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"LUIS","lastName":"AGULAR","username":"lagular61","contacts":[{"id":62,"clientId":61,"email":null,"phone":"4181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#00acc1","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1682,"clientId":61,"number":"001633","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1685,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":60,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LUIS","clientLastName":"AGULAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AGUILAR","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:22.370168] [notice] Logging level set to:debug +[2025-02-28 16:02:22.531344] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:02:22.531552] [debug] Valor de JSON: {"uuid":"09ec9f68-13e0-4dab-8f88-88744178d6e0","changeType":"insert","entity":"invoice","entityId":"1683","eventName":"invoice.add_draft","extraData":{"entity":{"id":1683,"clientId":100,"number":"001634","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1686,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":99,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RENE","clientLastName":"BUSTOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:22.531711] [debug] Adición de borrador de Factura + +[2025-02-28 16:02:22.531790] [debug] {"uuid":"09ec9f68-13e0-4dab-8f88-88744178d6e0","changeType":"insert","entity":"invoice","entityId":1683,"message":null,"clientId":100,"eventName":"invoice.add_draft","clientData":{"id":100,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"RENE","lastName":"BUSTOS","username":"rbustos00","contacts":[{"id":101,"clientId":100,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#0277bd","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1683,"clientId":100,"number":"001634","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1686,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":99,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RENE","clientLastName":"BUSTOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:22.645106] [notice] Logging level set to:debug +[2025-02-28 16:02:22.849761] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:02:22.849909] [debug] Valor de JSON: {"uuid":"366cb21a-c3cf-416b-a098-0249e315df6a","changeType":"draft_approved","entity":"invoice","entityId":"1683","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1683,"clientId":100,"number":"001634","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1686,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":99,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RENE","clientLastName":"BUSTOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:22.850038] [debug] Aprobación de Factura + +[2025-02-28 16:02:22.850116] [debug] {"uuid":"366cb21a-c3cf-416b-a098-0249e315df6a","changeType":"draft_approved","entity":"invoice","entityId":1683,"message":null,"clientId":100,"eventName":"invoice.draft_approved","clientData":{"id":100,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAUCILLO","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAUCILLO, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"RENE","lastName":"BUSTOS","username":"rbustos00","contacts":[{"id":101,"clientId":100,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#0277bd","addressGpsLat":21.0170884,"addressGpsLon":-100.9460876,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1683,"clientId":100,"number":"001634","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1686,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":99,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RENE","clientLastName":"BUSTOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:23.739242] [notice] Logging level set to:debug +[2025-02-28 16:02:23.873982] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:02:23.874049] [debug] Valor de JSON: {"uuid":"4cd16c7b-36ac-459b-bf8b-5d8fdfc50625","changeType":"insert","entity":"invoice","entityId":"1684","eventName":"invoice.add_draft","extraData":{"entity":{"id":1684,"clientId":41,"number":"001635","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1687,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":40,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUDITH","clientLastName":"CUELLAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN SEBASTIAN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:23.874157] [debug] Adición de borrador de Factura + +[2025-02-28 16:02:23.874207] [debug] {"uuid":"4cd16c7b-36ac-459b-bf8b-5d8fdfc50625","changeType":"insert","entity":"invoice","entityId":1684,"message":null,"clientId":41,"eventName":"invoice.add_draft","clientData":{"id":41,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN SEBASTIAN","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN SEBASTIAN, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JUDITH","lastName":"CUELLAR","username":"jcuellar41","contacts":[{"id":42,"clientId":41,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3910,"accountCredit":0,"accountOutstanding":3910,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#546e7a","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1684,"clientId":41,"number":"001635","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1687,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":40,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUDITH","clientLastName":"CUELLAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN SEBASTIAN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:23.987911] [notice] Logging level set to:debug +[2025-02-28 16:02:24.123321] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:02:24.123497] [debug] Valor de JSON: {"uuid":"7952ab3c-31c1-4ee7-bd1c-e07afd1b9c13","changeType":"draft_approved","entity":"invoice","entityId":"1684","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1684,"clientId":41,"number":"001635","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1687,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":40,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUDITH","clientLastName":"CUELLAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN SEBASTIAN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:24.123644] [debug] Aprobación de Factura + +[2025-02-28 16:02:24.123728] [debug] {"uuid":"7952ab3c-31c1-4ee7-bd1c-e07afd1b9c13","changeType":"draft_approved","entity":"invoice","entityId":1684,"message":null,"clientId":41,"eventName":"invoice.draft_approved","clientData":{"id":41,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"SAN SEBASTIAN","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"SAN SEBASTIAN, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-30T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JUDITH","lastName":"CUELLAR","username":"jcuellar41","contacts":[{"id":42,"clientId":41,"email":null,"phone":"4181091933","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3910,"accountCredit":0,"accountOutstanding":3910,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#546e7a","addressGpsLat":21.1583917,"addressGpsLon":-100.9326698,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1684,"clientId":41,"number":"001635","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1687,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":40,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUDITH","clientLastName":"CUELLAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN SEBASTIAN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:25.032246] [notice] Logging level set to:debug +[2025-02-28 16:02:25.176495] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-02-28 16:02:25.176668] [debug] Valor de JSON: {"uuid":"2d6c761b-e3ad-4fd3-981c-7491ae974b4f","changeType":"insert","entity":"invoice","entityId":"1685","eventName":"invoice.add_draft","extraData":{"entity":{"id":1685,"clientId":77,"number":"001636","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1688,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":76,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARGARITO","clientLastName":"ESTRADA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTILLA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:25.176840] [debug] Adición de borrador de Factura + +[2025-02-28 16:02:25.176939] [debug] {"uuid":"2d6c761b-e3ad-4fd3-981c-7491ae974b4f","changeType":"insert","entity":"invoice","entityId":1685,"message":null,"clientId":77,"eventName":"invoice.add_draft","clientData":{"id":77,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA VENTILLA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA VENTILLA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MARGARITO","lastName":"ESTRADA","username":"mestrada77","contacts":[{"id":78,"clientId":77,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#039be5","addressGpsLat":21.1145736,"addressGpsLon":-100.933729,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1685,"clientId":77,"number":"001636","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1688,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":76,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARGARITO","clientLastName":"ESTRADA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTILLA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-02-28 16:02:25.286412] [notice] Logging level set to:debug +[2025-02-28 16:02:25.434108] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-02-28 16:02:25.437417] [debug] Valor de JSON: {"uuid":"20b7da83-9449-40ad-a65c-ce05327b1a71","changeType":"draft_approved","entity":"invoice","entityId":"1685","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1685,"clientId":77,"number":"001636","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1688,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":76,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARGARITO","clientLastName":"ESTRADA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTILLA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-02-28 16:02:25.437607] [debug] Aprobación de Factura + +[2025-02-28 16:02:25.437705] [debug] {"uuid":"20b7da83-9449-40ad-a65c-ce05327b1a71","changeType":"draft_approved","entity":"invoice","entityId":1685,"message":null,"clientId":77,"eventName":"invoice.draft_approved","clientData":{"id":77,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"LA VENTILLA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"LA VENTILLA, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-31T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"MARGARITO","lastName":"ESTRADA","username":"mestrada77","contacts":[{"id":78,"clientId":77,"email":null,"phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-3900,"accountCredit":0,"accountOutstanding":3900,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#039be5","addressGpsLat":21.1145736,"addressGpsLon":-100.933729,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1685,"clientId":77,"number":"001636","createdDate":"2025-02-28T10:00:01-0600","dueDate":"2025-03-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-26T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1688,"type":"service","label":"plan300 31\/01\/2025 \u2013 27\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":76,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARGARITO","clientLastName":"ESTRADA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTILLA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-03-01 16:00:04.311172] [notice] Logging level set to:debug +[2025-03-01 16:00:04.456968] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-03-01 16:00:04.457032] [debug] Valor de JSON: {"uuid":"a5329bbc-8c04-4496-af09-8cf36b67e552","changeType":"insert","entity":"invoice","entityId":"1686","eventName":"invoice.add_draft","extraData":{"entity":{"id":1686,"clientId":132,"number":"001637","createdDate":"2025-03-01T10:00:01-0600","dueDate":"2025-03-15T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-28T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1689,"type":"service","label":"plan300 01\/02\/2025 \u2013 28\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":115,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Marto","clientLastName":"Vago Payaso","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"20 Avenida Norte","clientStreet2":null,"clientCity":"Guanajuato","clientCountryId":173,"clientStateId":null,"clientZipCode":"37807","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-03-01 16:00:04.457235] [debug] Adición de borrador de Factura + +[2025-03-01 16:00:04.457294] [debug] {"uuid":"a5329bbc-8c04-4496-af09-8cf36b67e552","changeType":"insert","entity":"invoice","entityId":1686,"message":null,"clientId":132,"eventName":"invoice.add_draft","clientData":{"id":132,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"20 Avenida Norte","street2":null,"city":"Guanajuato","countryId":173,"stateId":null,"zipCode":"37807","fullAddress":"Avenida Norte 20, Dolores, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-18T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Marto","lastName":"Vago Payaso","username":null,"contacts":[{"id":136,"clientId":132,"email":"vagopayaso@gmail.com","phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-2400,"accountCredit":0,"accountOutstanding":2400,"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":1686,"clientId":132,"number":"001637","createdDate":"2025-03-01T10:00:01-0600","dueDate":"2025-03-15T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1689,"type":"service","label":"plan300 01\/02\/2025 \u2013 28\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":115,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Marto","clientLastName":"Vago Payaso","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"20 Avenida Norte","clientStreet2":null,"clientCity":"Guanajuato","clientCountryId":173,"clientStateId":null,"clientZipCode":"37807","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-03-01 16:00:04.610841] [notice] Logging level set to:debug +[2025-03-01 16:00:04.761128] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-03-01 16:00:04.761281] [debug] Valor de JSON: {"uuid":"b87368e9-2935-472e-aa72-7b1c8f585589","changeType":"draft_approved","entity":"invoice","entityId":"1686","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1686,"clientId":132,"number":"001637","createdDate":"2025-03-01T10:00:01-0600","dueDate":"2025-03-15T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-28T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1689,"type":"service","label":"plan300 01\/02\/2025 \u2013 28\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":115,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Marto","clientLastName":"Vago Payaso","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"20 Avenida Norte","clientStreet2":null,"clientCity":"Guanajuato","clientCountryId":173,"clientStateId":null,"clientZipCode":"37807","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-03-01 16:00:04.761424] [debug] Aprobación de Factura + +[2025-03-01 16:00:04.761504] [debug] {"uuid":"b87368e9-2935-472e-aa72-7b1c8f585589","changeType":"draft_approved","entity":"invoice","entityId":1686,"message":null,"clientId":132,"eventName":"invoice.draft_approved","clientData":{"id":132,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"20 Avenida Norte","street2":null,"city":"Guanajuato","countryId":173,"stateId":null,"zipCode":"37807","fullAddress":"Avenida Norte 20, Dolores, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-18T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Marto","lastName":"Vago Payaso","username":null,"contacts":[{"id":136,"clientId":132,"email":"vagopayaso@gmail.com","phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-2400,"accountCredit":0,"accountOutstanding":2400,"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":1686,"clientId":132,"number":"001637","createdDate":"2025-03-01T10:00:01-0600","dueDate":"2025-03-15T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-27T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1689,"type":"service","label":"plan300 01\/02\/2025 \u2013 28\/02\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":115,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Marto","clientLastName":"Vago Payaso","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"20 Avenida Norte","clientStreet2":null,"clientCity":"Guanajuato","clientCountryId":173,"clientStateId":null,"clientZipCode":"37807","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-03-04 8:40:20.120336] [notice] Logging level set to:debug +[2025-03-04 8:40:20.120759] [info] No UUID found in the webhook data +[2025-03-04 8:40:20.120867] [info] Evento de referencia de oxxo recibido + +[2025-03-04 8:40:20.120939] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 8:40:20.259350] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 8:40:20.380693] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 8:40:20.480442] [error] Error al crear la referencia de OXXO: errorUnexpectedPath +[2025-03-04 8:41:24.023823] [notice] Logging level set to:debug +[2025-03-04 8:41:24.023964] [info] No UUID found in the webhook data +[2025-03-04 8:41:24.023987] [info] Evento de referencia de oxxo recibido + +[2025-03-04 8:41:24.023999] [info] Referencia persnoalizada, Valor del monto: 300 + +[2025-03-04 8:41:24.024013] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 8:41:24.176865] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 8:41:24.276897] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 8:41:24.373060] [error] Error al crear la referencia de OXXO: errorUnexpectedPath +[2025-03-04 8:54:15.277009] [notice] Logging level set to:debug +[2025-03-04 8:54:15.277174] [info] No UUID found in the webhook data +[2025-03-04 8:54:15.277210] [info] Evento de referencia de oxxo recibido + +[2025-03-04 8:54:15.277229] [info] Referencia persnoalizada, Valor del monto: 300 + +[2025-03-04 8:54:15.277245] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 8:54:15.399393] [info] Monto proporcionado directamente: 300 + +[2025-03-04 8:54:15.399445] [info] Creando referencia en Stripe por: 30000 para el cliente cus_PetN1dhr4rx0kX + +[2025-03-04 8:54:16.011287] [info] El nombre del cliente es: Daniel Humberto Soto Villegas el boy + +[2025-03-04 8:54:16.011358] [info] Creando payment methods del voucher + +[2025-03-04 8:54:16.263993] [info] Confirmando el paymentIntent con un timeout de 5 segundos + +[2025-03-04 8:54:16.265743] [error] Got unexpected keys in options array: timeout +[2025-03-04 8:54:22.788398] [notice] Logging level set to:debug +[2025-03-04 8:54:22.788486] [info] No UUID found in the webhook data +[2025-03-04 8:54:22.788501] [info] Evento de referencia de oxxo recibido + +[2025-03-04 8:54:22.788511] [info] Referencia persnoalizada, Valor del monto: 300 + +[2025-03-04 8:54:22.788522] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 8:54:22.908890] [info] Monto proporcionado directamente: 300 + +[2025-03-04 8:54:22.908936] [info] Creando referencia en Stripe por: 30000 para el cliente cus_PetN1dhr4rx0kX + +[2025-03-04 8:54:23.437712] [info] El nombre del cliente es: Daniel Humberto Soto Villegas el boy + +[2025-03-04 8:54:23.437787] [info] Creando payment methods del voucher + +[2025-03-04 8:54:23.696660] [info] Confirmando el paymentIntent con un timeout de 5 segundos + +[2025-03-04 8:54:23.697617] [error] Got unexpected keys in options array: timeout +[2025-03-04 8:56:47.327553] [notice] Logging level set to:debug +[2025-03-04 8:56:47.327692] [info] No UUID found in the webhook data +[2025-03-04 8:56:47.327718] [info] Evento de referencia de oxxo recibido + +[2025-03-04 8:56:47.327730] [info] Referencia persnoalizada, Valor del monto: 300 + +[2025-03-04 8:56:47.327744] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 8:56:47.442419] [info] Monto proporcionado directamente: 300 + +[2025-03-04 8:56:47.442466] [info] Creando referencia en Stripe por: 30000 para el cliente cus_PetN1dhr4rx0kX + +[2025-03-04 8:56:48.076184] [info] El nombre del cliente es: Daniel Humberto Soto Villegas el boy + +[2025-03-04 8:56:48.076272] [info] Creando payment methods del voucher + +[2025-03-04 8:56:48.330116] [info] Confirmando el paymentIntent con un timeout de 5 segundos + +[2025-03-04 8:56:48.331545] [error] Got unexpected keys in options array: timeout +[2025-03-04 8:58:39.468239] [notice] Logging level set to:debug +[2025-03-04 8:58:39.468807] [info] No UUID found in the webhook data +[2025-03-04 8:58:39.468949] [info] Evento de referencia de oxxo recibido + +[2025-03-04 8:58:39.469042] [info] Referencia persnoalizada, Valor del monto: 300 + +[2025-03-04 8:58:39.469127] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 8:58:39.637296] [info] Monto proporcionado directamente: 300 + +[2025-03-04 8:58:39.637430] [info] Creando referencia en Stripe por: 30000 para el cliente cus_PetN1dhr4rx0kX + +[2025-03-04 8:58:40.224210] [info] El nombre del cliente es: Daniel Humberto Soto Villegas el boy + +[2025-03-04 8:58:40.224667] [info] Creando payment methods del voucher + +[2025-03-04 8:58:40.470752] [info] Confirmando el paymentIntent + +[2025-03-04 8:58:41.138988] [info] Se terminó de confirmar el paymentIntent + +[2025-03-04 8:58:41.139486] [info] Referencia OXXO: 12345678901234657890123456789012 + +[2025-03-04 8:58:41.139641] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9Sc2NZTVpldkFXcFFqaWx5QTBySndLUHdJN2NabVpq0100xxzlBnpv + +[2025-03-04 8:58:41.140853] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9Sc2NZTVpldkFXcFFqaWx5QTBySndLUHdJN2NabVpq0100xxzlBnpv"} +[2025-03-04 8:58:57.541385] [notice] Logging level set to:debug +[2025-03-04 8:58:57.541853] [info] No UUID found in the webhook data +[2025-03-04 8:58:57.541976] [info] Evento de referencia de oxxo recibido + +[2025-03-04 8:58:57.542045] [info] Referencia persnoalizada, Valor del monto: 310 + +[2025-03-04 8:58:57.542107] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 8:58:57.671545] [info] Monto proporcionado directamente: 310 + +[2025-03-04 8:58:57.671725] [info] Creando referencia en Stripe por: 31000 para el cliente cus_PetN1dhr4rx0kX + +[2025-03-04 8:58:58.236042] [info] El nombre del cliente es: Daniel Humberto Soto Villegas el boy + +[2025-03-04 8:58:58.236296] [info] Creando payment methods del voucher + +[2025-03-04 8:58:58.483521] [info] Confirmando el paymentIntent + +[2025-03-04 8:58:59.151947] [info] Se terminó de confirmar el paymentIntent + +[2025-03-04 8:58:59.152267] [info] Referencia OXXO: 12345678901234657890123456789012 + +[2025-03-04 8:58:59.152568] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9Sc2NZOWczVVBuNFVQR1NQWHJ6Rng0T2RtWm9HVXgx0100UHp99AUX + +[2025-03-04 8:58:59.153281] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9Sc2NZOWczVVBuNFVQR1NQWHJ6Rng0T2RtWm9HVXgx0100UHp99AUX"} +[2025-03-04 8:59:05.653954] [notice] Logging level set to:debug +[2025-03-04 8:59:05.654130] [info] No UUID found in the webhook data +[2025-03-04 8:59:05.654181] [info] Evento de referencia de oxxo recibido + +[2025-03-04 8:59:05.654221] [info] Referencia persnoalizada, Valor del monto: 320 + +[2025-03-04 8:59:05.654258] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 8:59:05.771138] [info] Monto proporcionado directamente: 320 + +[2025-03-04 8:59:05.771267] [info] Creando referencia en Stripe por: 32000 para el cliente cus_PetN1dhr4rx0kX + +[2025-03-04 8:59:06.341250] [info] El nombre del cliente es: Daniel Humberto Soto Villegas el boy + +[2025-03-04 8:59:06.341775] [info] Creando payment methods del voucher + +[2025-03-04 8:59:06.593487] [info] Confirmando el paymentIntent + +[2025-03-04 8:59:07.314057] [info] Se terminó de confirmar el paymentIntent + +[2025-03-04 8:59:07.314548] [info] Referencia OXXO: 12345678901234657890123456789012 + +[2025-03-04 8:59:07.314702] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9Sc2NZdVFPSGxNeWpsa3pueURyUnBlNnlIOWhDb0x30100BMNDztsJ + +[2025-03-04 8:59:07.315396] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9Sc2NZdVFPSGxNeWpsa3pueURyUnBlNnlIOWhDb0x30100BMNDztsJ"} +[2025-03-04 8:59:42.888441] [notice] Logging level set to:debug +[2025-03-04 8:59:42.888575] [info] No UUID found in the webhook data +[2025-03-04 8:59:42.888596] [info] Evento de referencia de oxxo recibido + +[2025-03-04 8:59:42.888608] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 8:59:43.018325] [error] Client error: `GET https://172.16.5.134/crm/api/v1.0/clients/2000` resulted in a `404 Not Found` response: +{"code":404,"message":"Not Found"} + +[2025-03-04 9:00:38.074525] [notice] Logging level set to:debug +[2025-03-04 9:00:38.074903] [info] No UUID found in the webhook data +[2025-03-04 9:00:38.075004] [info] Evento de referencia de oxxo recibido + +[2025-03-04 9:00:38.075071] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 9:00:38.183342] [error] Client error: `GET https://172.16.5.134/crm/api/v1.0/clients/2000` resulted in a `404 Not Found` response: +{"code":404,"message":"Not Found"} + +[2025-03-04 9:00:40.678559] [notice] Logging level set to:debug +[2025-03-04 9:00:40.679053] [info] No UUID found in the webhook data +[2025-03-04 9:00:40.679215] [info] Evento de referencia de oxxo recibido + +[2025-03-04 9:00:40.679335] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 9:00:40.771532] [error] Client error: `GET https://172.16.5.134/crm/api/v1.0/clients/2000` resulted in a `404 Not Found` response: +{"code":404,"message":"Not Found"} + +[2025-03-04 9:01:34.131367] [notice] Logging level set to:debug +[2025-03-04 9:01:34.131498] [info] No UUID found in the webhook data +[2025-03-04 9:01:34.131521] [info] Evento de referencia de oxxo recibido + +[2025-03-04 9:01:34.131545] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 9:01:34.236387] [error] Client error: `GET https://172.16.5.134/crm/api/v1.0/clients/2000` resulted in a `404 Not Found` response: +{"code":404,"message":"Not Found"} + +[2025-03-04 9:01:36.340436] [notice] Logging level set to:debug +[2025-03-04 9:01:36.340570] [info] No UUID found in the webhook data +[2025-03-04 9:01:36.340605] [info] Evento de referencia de oxxo recibido + +[2025-03-04 9:01:36.340630] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 9:01:36.438328] [error] Client error: `GET https://172.16.5.134/crm/api/v1.0/clients/2000` resulted in a `404 Not Found` response: +{"code":404,"message":"Not Found"} + +[2025-03-04 9:01:46.668689] [notice] Logging level set to:debug +[2025-03-04 9:01:46.819555] [debug] valor el evento recibido por webhook: invoice.edit + +[2025-03-04 9:01:46.819765] [debug] Valor de JSON: {"uuid":"1091773e-14d1-42cc-bd78-4623f0a99c59","changeType":"edit","entity":"invoice","entityId":"1587","eventName":"invoice.edit","extraData":{"entity":{"id":1587,"clientId":2,"number":"001538","createdDate":"2025-02-24T15:27:03-0600","dueDate":"2025-03-10T15:27:03-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1590,"type":"service","label":"PREMIUM 24\/02\/2025 \u2013 31\/03\/2025","price":700,"quantity":1.1666666666667,"total":816.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":144,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":816.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":816.67,"amountPaid":300,"totalUntaxed":816.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":516.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":671,"invoiceId":1587,"paymentId":589,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":{"id":1587,"clientId":2,"number":"001538","createdDate":"2025-02-24T15:27:03-0600","dueDate":"2025-03-10T15:27:03-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1590,"type":"service","label":"PREMIUM 24\/02\/2025 \u2013 31\/03\/2025","price":700,"quantity":1.1666666666667,"total":816.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":144,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":816.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":816.67,"amountPaid":0,"totalUntaxed":816.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":816.67,"currencyCode":"MXN","status":1,"paymentCovers":[{"id":671,"invoiceId":1587,"paymentId":589,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false}}} + +[2025-03-04 9:01:46.819933] [debug] Edición de Factura + +[2025-03-04 9:01:46.820025] [debug] {"uuid":"1091773e-14d1-42cc-bd78-4623f0a99c59","changeType":"edit","entity":"invoice","entityId":1587,"message":null,"clientId":2,"eventName":"invoice.edit","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-516.67,"accountCredit":0,"accountOutstanding":516.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1587,"clientId":2,"number":"001538","createdDate":"2025-02-24T15:27:03-0600","dueDate":"2025-03-10T15:27:03-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1590,"type":"service","label":"PREMIUM 24\/02\/2025 \u2013 31\/03\/2025","price":700,"quantity":1.1666666666667,"total":816.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":144,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":816.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":816.67,"amountPaid":300,"totalUntaxed":816.67,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":516.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":671,"invoiceId":1587,"paymentId":589,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-03-04 9:01:46.820126] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-03-04 9:01:46.820166] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":589,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:01:46-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":671,"invoiceId":1587,"paymentId":589,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2516.67 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2516.67 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 300\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 04\/03\/2025 03:01 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/03\/2025 03:01\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ulti-mo Pago":"\ud83d\udcc6\ud83d\udcb8 04\/03\/2025 03:01 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/03\/2025 03:01","Clabe Interbancaria":"0021804341999569810"}} + +Response Patch CallBell: {"error":{"custom_fields":["Fecha Ulti-mo Pago do not exist or are misspelled, please check before retrying"]}} + +[2025-03-04 9:01:48.589821] [notice] Logging level set to:debug +[2025-03-04 9:01:48.726255] [debug] valor el evento recibido por webhook: payment.add + +[2025-03-04 9:01:48.726429] [debug] Valor de JSON: {"uuid":"bb7b2b03-061e-489d-880a-0e96fd221f04","changeType":"insert","entity":"payment","entityId":"589","eventName":"payment.add","extraData":{"entity":{"id":589,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:01:46-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":671,"invoiceId":1587,"paymentId":589,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":null}} + +[2025-03-04 9:01:48.726584] [debug] Notification encodificado en JSON:{"uuid":"bb7b2b03-061e-489d-880a-0e96fd221f04","changeType":"insert","entity":"payment","entityId":589,"message":null,"clientId":2,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-516.67,"accountCredit":0,"accountOutstanding":516.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":589,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:01:46-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":671,"invoiceId":1587,"paymentId":589,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":null,"attributes":[]}} + +[2025-03-04 9:01:48.726649] [debug] valor del payment data: {"id":589,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:01:46-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":671,"invoiceId":1587,"paymentId":589,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":null,"attributes":[]} + +[2025-03-04 9:01:48.726707] [info] {"WhatsApp":["5214181878106"]} +[2025-03-04 9:01:48.726746] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-03-04 9:01:48.726782] [info] Tipo de contacto normalizado: 'whatsapp' +[2025-03-04 9:01:48.726819] [debug] ***Se notifica y actualiza al cliente sobre su pago*** + +Eviando comprobante de pago al cliente: 2 con número: 5214181878106 + +El archivo PDF se ha descargado y guardado correctamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.pdf + +El archivo PDF es válido y tiene contenido: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.pdf + +El archivo PNG se ha generado correctamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png + +Subiendo comprobante a worpdpress + +file_to_upload: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png + +Conexión FTP exitosa + +El archivo ha sido cargado exitosamente. + +La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png + +No se pudo obtener la lista de archivos de la carpeta FTP + +Se terminó de subir comprobante a wordpress + +La cadena CURL que se envia es: { + "to": "5214181878106", + "from": "whatsapp", + "type": "document", + "content": { + "text": "S/M", + "url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png" + }, + "template_values": ["Daniel Humberto Soto Villegas el boy", "$300", "$516.67 pendientes"], + "template_uuid": "57ead79cebd14902921477922403093b", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"604927c5a9854444b4ea214af075f82d","status":"enqueued"}} +Hay menos de 100 archivos en el directorio. No se eliminarán archivos. + +La notificación fue enviada correctamente con estado: enqueued + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":589,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:01:46-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":671,"invoiceId":1587,"paymentId":589,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2516.67 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2516.67 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 300\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 04\/03\/2025 03:01 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/03\/2025 03:01\",\"Clabe Interbancaria\": \"\"}","Fecha Ulti-mo Pago":"\ud83d\udcc6\ud83d\udcb8 04\/03\/2025 03:01 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/03\/2025 03:01","Clabe Interbancaria":null}} + +Response Patch CallBell: {"error":{"custom_fields":["Fecha Ulti-mo Pago do not exist or are misspelled, please check before retrying"]}} + +[2025-03-04 9:01:54.187164] [notice] Logging level set to:debug +[2025-03-04 9:01:54.303822] [debug] valor el evento recibido por webhook: payment.edit + +[2025-03-04 9:01:54.303881] [debug] Valor de JSON: {"uuid":"ae0eb0f9-1236-4597-8f9c-9e38845b23e3","changeType":"edit","entity":"payment","entityId":"589","eventName":"payment.edit","extraData":{"entity":{"id":589,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:01:46-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":671,"invoiceId":1587,"paymentId":589,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":589,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:01:46-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":671,"invoiceId":1587,"paymentId":589,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":null,"attributes":[]}}} + +[2025-03-04 9:02:05.715626] [notice] Logging level set to:debug +[2025-03-04 9:02:05.879759] [debug] valor el evento recibido por webhook: invoice.edit + +[2025-03-04 9:02:05.879934] [debug] Valor de JSON: {"uuid":"ccb112e6-23b0-4490-92d4-658b96a25d51","changeType":"edit","entity":"invoice","entityId":"1587","eventName":"invoice.edit","extraData":{"entity":{"id":1587,"clientId":2,"number":"001538","createdDate":"2025-02-24T15:27:03-0600","dueDate":"2025-03-10T15:27:03-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1590,"type":"service","label":"PREMIUM 24\/02\/2025 \u2013 31\/03\/2025","price":700,"quantity":1.1666666666667,"total":816.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":144,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":816.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":816.67,"amountPaid":610,"totalUntaxed":816.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":206.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":671,"invoiceId":1587,"paymentId":589,"creditNoteId":null,"refundId":null,"amount":300},{"id":672,"invoiceId":1587,"paymentId":590,"creditNoteId":null,"refundId":null,"amount":310}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":{"id":1587,"clientId":2,"number":"001538","createdDate":"2025-02-24T15:27:03-0600","dueDate":"2025-03-10T15:27:03-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1590,"type":"service","label":"PREMIUM 24\/02\/2025 \u2013 31\/03\/2025","price":700,"quantity":1.1666666666667,"total":816.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":144,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":816.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":816.67,"amountPaid":300,"totalUntaxed":816.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":516.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":671,"invoiceId":1587,"paymentId":589,"creditNoteId":null,"refundId":null,"amount":300},{"id":672,"invoiceId":1587,"paymentId":590,"creditNoteId":null,"refundId":null,"amount":310}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false}}} + +[2025-03-04 9:02:05.880280] [debug] Edición de Factura + +[2025-03-04 9:02:05.880393] [debug] {"uuid":"ccb112e6-23b0-4490-92d4-658b96a25d51","changeType":"edit","entity":"invoice","entityId":1587,"message":null,"clientId":2,"eventName":"invoice.edit","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-206.67,"accountCredit":0,"accountOutstanding":206.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1587,"clientId":2,"number":"001538","createdDate":"2025-02-24T15:27:03-0600","dueDate":"2025-03-10T15:27:03-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1590,"type":"service","label":"PREMIUM 24\/02\/2025 \u2013 31\/03\/2025","price":700,"quantity":1.1666666666667,"total":816.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":144,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":816.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":816.67,"amountPaid":610,"totalUntaxed":816.67,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":206.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":671,"invoiceId":1587,"paymentId":589,"creditNoteId":null,"refundId":null,"amount":300},{"id":672,"invoiceId":1587,"paymentId":590,"creditNoteId":null,"refundId":null,"amount":310}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-03-04 9:02:05.880501] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-03-04 9:02:05.880543] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":590,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:02:05-0600","amount":310,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":672,"invoiceId":1587,"paymentId":590,"creditNoteId":null,"refundId":null,"amount":310}],"creditAmount":0,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2206.67 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 310","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2206.67 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 310\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 04\/03\/2025 03:02 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/03\/2025 03:02\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ulti-mo Pago":"\ud83d\udcc6\ud83d\udcb8 04\/03\/2025 03:02 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/03\/2025 03:02","Clabe Interbancaria":"0021804341999569810"}} + +Response Patch CallBell: {"error":{"custom_fields":["Fecha Ulti-mo Pago do not exist or are misspelled, please check before retrying"]}} + +[2025-03-04 9:02:07.602335] [notice] Logging level set to:debug +[2025-03-04 9:02:07.744863] [debug] valor el evento recibido por webhook: payment.add + +[2025-03-04 9:02:07.745007] [debug] Valor de JSON: {"uuid":"3109ea5a-dc88-4d86-802d-9cf2d8fe1282","changeType":"insert","entity":"payment","entityId":"590","eventName":"payment.add","extraData":{"entity":{"id":590,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:02:05-0600","amount":310,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":672,"invoiceId":1587,"paymentId":590,"creditNoteId":null,"refundId":null,"amount":310}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":null}} + +[2025-03-04 9:02:07.745157] [debug] Notification encodificado en JSON:{"uuid":"3109ea5a-dc88-4d86-802d-9cf2d8fe1282","changeType":"insert","entity":"payment","entityId":590,"message":null,"clientId":2,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-206.67,"accountCredit":0,"accountOutstanding":206.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":590,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:02:05-0600","amount":310,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":672,"invoiceId":1587,"paymentId":590,"creditNoteId":null,"refundId":null,"amount":310}],"creditAmount":0,"userId":null,"attributes":[]}} + +[2025-03-04 9:02:07.745223] [debug] valor del payment data: {"id":590,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:02:05-0600","amount":310,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":672,"invoiceId":1587,"paymentId":590,"creditNoteId":null,"refundId":null,"amount":310}],"creditAmount":0,"userId":null,"attributes":[]} + +[2025-03-04 9:02:07.745281] [info] {"WhatsApp":["5214181878106"]} +[2025-03-04 9:02:07.745320] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-03-04 9:02:07.745354] [info] Tipo de contacto normalizado: 'whatsapp' +[2025-03-04 9:02:07.745390] [debug] ***Se notifica y actualiza al cliente sobre su pago*** + +Eviando comprobante de pago al cliente: 2 con número: 5214181878106 + +El archivo PDF se ha descargado y guardado correctamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.pdf + +El archivo PDF es válido y tiene contenido: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.pdf + +El archivo PNG se ha generado correctamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png + +Subiendo comprobante a worpdpress + +file_to_upload: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png + +Conexión FTP exitosa + +El archivo ha sido cargado exitosamente. + +La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png + +No se pudo obtener la lista de archivos de la carpeta FTP + +Se terminó de subir comprobante a wordpress + +La cadena CURL que se envia es: { + "to": "5214181878106", + "from": "whatsapp", + "type": "document", + "content": { + "text": "S/M", + "url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png" + }, + "template_values": ["Daniel Humberto Soto Villegas el boy", "$310", "$206.67 pendientes"], + "template_uuid": "57ead79cebd14902921477922403093b", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"357f978dec29445c99eca9e5f9eab8bf","status":"enqueued"}} +Hay menos de 100 archivos en el directorio. No se eliminarán archivos. + +La notificación fue enviada correctamente con estado: enqueued + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":591,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:02:11-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":673,"invoiceId":1587,"paymentId":591,"creditNoteId":null,"refundId":null,"amount":206.67}],"creditAmount":113.33,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2206.67 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 320","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2206.67 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 320\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 04\/03\/2025 03:02 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/03\/2025 03:02\",\"Clabe Interbancaria\": \"\"}","Fecha Ulti-mo Pago":"\ud83d\udcc6\ud83d\udcb8 04\/03\/2025 03:02 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/03\/2025 03:02","Clabe Interbancaria":null}} + +Response Patch CallBell: {"error":{"custom_fields":["Fecha Ulti-mo Pago do not exist or are misspelled, please check before retrying"]}} + +[2025-03-04 9:02:12.466300] [notice] Logging level set to:debug +[2025-03-04 9:02:12.645975] [debug] valor el evento recibido por webhook: payment.edit + +[2025-03-04 9:02:12.646147] [debug] Valor de JSON: {"uuid":"586e25fe-9c77-4578-9c25-5ba565b0dd7a","changeType":"edit","entity":"payment","entityId":"590","eventName":"payment.edit","extraData":{"entity":{"id":590,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:02:05-0600","amount":310,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":672,"invoiceId":1587,"paymentId":590,"creditNoteId":null,"refundId":null,"amount":310}],"creditAmount":0,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":590,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:02:05-0600","amount":310,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":672,"invoiceId":1587,"paymentId":590,"creditNoteId":null,"refundId":null,"amount":310}],"creditAmount":0,"userId":null,"attributes":[]}}} + +[2025-03-04 9:02:12.758333] [notice] Logging level set to:debug +[2025-03-04 9:02:12.983217] [debug] valor el evento recibido por webhook: invoice.edit + +[2025-03-04 9:02:12.983408] [debug] Valor de JSON: {"uuid":"ccee943b-d82d-4c76-99aa-6c4526bb6750","changeType":"edit","entity":"invoice","entityId":"1587","eventName":"invoice.edit","extraData":{"entity":{"id":1587,"clientId":2,"number":"001538","createdDate":"2025-02-24T15:27:03-0600","dueDate":"2025-03-10T15:27:03-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1590,"type":"service","label":"PREMIUM 24\/02\/2025 \u2013 31\/03\/2025","price":700,"quantity":1.1666666666667,"total":816.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":144,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":816.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":816.67,"amountPaid":816.67,"totalUntaxed":816.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":671,"invoiceId":1587,"paymentId":589,"creditNoteId":null,"refundId":null,"amount":300},{"id":672,"invoiceId":1587,"paymentId":590,"creditNoteId":null,"refundId":null,"amount":310},{"id":673,"invoiceId":1587,"paymentId":591,"creditNoteId":null,"refundId":null,"amount":206.67}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":{"id":1587,"clientId":2,"number":"001538","createdDate":"2025-02-24T15:27:03-0600","dueDate":"2025-03-10T15:27:03-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1590,"type":"service","label":"PREMIUM 24\/02\/2025 \u2013 31\/03\/2025","price":700,"quantity":1.1666666666667,"total":816.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":144,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":816.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":816.67,"amountPaid":610,"totalUntaxed":816.67,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":206.67,"currencyCode":"MXN","status":2,"paymentCovers":[{"id":671,"invoiceId":1587,"paymentId":589,"creditNoteId":null,"refundId":null,"amount":300},{"id":672,"invoiceId":1587,"paymentId":590,"creditNoteId":null,"refundId":null,"amount":310},{"id":673,"invoiceId":1587,"paymentId":591,"creditNoteId":null,"refundId":null,"amount":206.67}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false}}} + +[2025-03-04 9:02:12.983557] [debug] Edición de Factura + +[2025-03-04 9:02:12.983649] [debug] {"uuid":"ccee943b-d82d-4c76-99aa-6c4526bb6750","changeType":"edit","entity":"invoice","entityId":1587,"message":null,"clientId":2,"eventName":"invoice.edit","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":113.33,"accountCredit":113.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1587,"clientId":2,"number":"001538","createdDate":"2025-02-24T15:27:03-0600","dueDate":"2025-03-10T15:27:03-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-02-24T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1590,"type":"service","label":"PREMIUM 24\/02\/2025 \u2013 31\/03\/2025","price":700,"quantity":1.1666666666667,"total":816.66666666667,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":144,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":816.67,"discount":null,"discountLabel":"Descuento","taxes":[],"total":816.67,"amountPaid":816.67,"totalUntaxed":816.67,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":671,"invoiceId":1587,"paymentId":589,"creditNoteId":null,"refundId":null,"amount":300},{"id":672,"invoiceId":1587,"paymentId":590,"creditNoteId":null,"refundId":null,"amount":310},{"id":673,"invoiceId":1587,"paymentId":591,"creditNoteId":null,"refundId":null,"amount":206.67}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas el boy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} + +[2025-03-04 9:02:12.983721] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-03-04 9:02:12.983758] [info] Tipo de contacto normalizado: 'whatsapp' +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":591,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:02:11-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":673,"invoiceId":1587,"paymentId":591,"creditNoteId":null,"refundId":null,"amount":206.67}],"creditAmount":113.33,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2113.33 a favor","Monto Ultimo Pago":"\ud83d\udcb2 320","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2113.33 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 320\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 04\/03\/2025 03:02 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/03\/2025 03:02\",\"Clabe Interbancaria\": \"0021804341999569810\"}","Fecha Ulti-mo Pago":"\ud83d\udcc6\ud83d\udcb8 04\/03\/2025 03:02 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/03\/2025 03:02","Clabe Interbancaria":"0021804341999569810"}} + +Response Patch CallBell: {"error":{"custom_fields":["Fecha Ulti-mo Pago do not exist or are misspelled, please check before retrying"]}} + +[2025-03-04 9:02:14.725914] [notice] Logging level set to:debug +[2025-03-04 9:02:14.848826] [debug] valor el evento recibido por webhook: payment.add + +[2025-03-04 9:02:14.848994] [debug] Valor de JSON: {"uuid":"aa83c560-0437-4b27-bde2-1c027adcef1c","changeType":"insert","entity":"payment","entityId":"591","eventName":"payment.add","extraData":{"entity":{"id":591,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:02:11-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":673,"invoiceId":1587,"paymentId":591,"creditNoteId":null,"refundId":null,"amount":206.67}],"creditAmount":113.33000000000001,"userId":null,"attributes":[]},"entityBeforeEdit":null}} + +[2025-03-04 9:02:14.849139] [debug] Notification encodificado en JSON:{"uuid":"aa83c560-0437-4b27-bde2-1c027adcef1c","changeType":"insert","entity":"payment","entityId":591,"message":null,"clientId":2,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":113.33,"accountCredit":113.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":591,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:02:11-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":673,"invoiceId":1587,"paymentId":591,"creditNoteId":null,"refundId":null,"amount":206.67}],"creditAmount":113.33,"userId":null,"attributes":[]}} + +[2025-03-04 9:02:14.849200] [debug] valor del payment data: {"id":591,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:02:11-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":673,"invoiceId":1587,"paymentId":591,"creditNoteId":null,"refundId":null,"amount":206.67}],"creditAmount":113.33,"userId":null,"attributes":[]} + +[2025-03-04 9:02:14.849271] [info] {"WhatsApp":["5214181878106"]} +[2025-03-04 9:02:14.849308] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-03-04 9:02:14.849343] [info] Tipo de contacto normalizado: 'whatsapp' +[2025-03-04 9:02:14.849380] [debug] ***Se notifica y actualiza al cliente sobre su pago*** + +Eviando comprobante de pago al cliente: 2 con número: 5214181878106 + +El archivo PDF se ha descargado y guardado correctamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.pdf + +El archivo PDF es válido y tiene contenido: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.pdf + +El archivo PNG se ha generado correctamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png + +Subiendo comprobante a worpdpress + +file_to_upload: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png + +Conexión FTP exitosa + +El archivo ha sido cargado exitosamente. + +La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png + +No se pudo obtener la lista de archivos de la carpeta FTP + +Se terminó de subir comprobante a wordpress + +La cadena CURL que se envia es: { + "to": "5214181878106", + "from": "whatsapp", + "type": "document", + "content": { + "text": "S/M", + "url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png" + }, + "template_values": ["Daniel Humberto Soto Villegas el boy", "$320", "$113.33 a favor"], + "template_uuid": "57ead79cebd14902921477922403093b", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"bc2ce0cafa59427fac8fa1f1ec3464cb","status":"enqueued"}} +Hay menos de 100 archivos en el directorio. No se eliminarán archivos. + +La notificación fue enviada correctamente con estado: enqueued + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":591,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:02:11-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":673,"invoiceId":1587,"paymentId":591,"creditNoteId":null,"refundId":null,"amount":206.67}],"creditAmount":113.33,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2113.33 a favor","Monto Ultimo Pago":"\ud83d\udcb2 320","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2113.33 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 320\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 04\/03\/2025 03:02 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/03\/2025 03:02\",\"Clabe Interbancaria\": \"\"}","Fecha Ulti-mo Pago":"\ud83d\udcc6\ud83d\udcb8 04\/03\/2025 03:02 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/03\/2025 03:02","Clabe Interbancaria":null}} + +Response Patch CallBell: {"error":{"custom_fields":["Fecha Ulti-mo Pago do not exist or are misspelled, please check before retrying"]}} + +[2025-03-04 9:02:19.611820] [notice] Logging level set to:debug +[2025-03-04 9:02:19.767040] [debug] valor el evento recibido por webhook: payment.edit + +[2025-03-04 9:02:19.767302] [debug] Valor de JSON: {"uuid":"8dc56426-afb1-4024-ba24-2b1a35b21479","changeType":"edit","entity":"payment","entityId":"591","eventName":"payment.edit","extraData":{"entity":{"id":591,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:02:11-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":673,"invoiceId":1587,"paymentId":591,"creditNoteId":null,"refundId":null,"amount":206.67}],"creditAmount":113.33,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":591,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:02:11-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":673,"invoiceId":1587,"paymentId":591,"creditNoteId":null,"refundId":null,"amount":206.67}],"creditAmount":113.33,"userId":null,"attributes":[]}}} + +[2025-03-04 9:04:49.478704] [notice] Logging level set to:debug +[2025-03-04 9:04:49.478838] [info] No UUID found in the webhook data +[2025-03-04 9:04:49.478861] [info] Evento de referencia de oxxo recibido + +[2025-03-04 9:04:49.478878] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 9:04:49.603017] [error] Client error: `GET https://172.16.5.134/crm/api/v1.0/clients/2000` resulted in a `404 Not Found` response: +{"code":404,"message":"Not Found"} + +[2025-03-04 9:06:49.303426] [notice] Logging level set to:debug +[2025-03-04 9:06:49.303647] [info] No UUID found in the webhook data +[2025-03-04 9:06:49.303675] [info] Evento de referencia de oxxo recibido + +[2025-03-04 9:06:49.303694] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 9:06:49.363835] [info] Obteniendo el cliente de CRM: 2000 + +[2025-03-04 9:06:49.427035] [error] Error al obtener el cliente de CRM: Client error: `GET https://172.16.5.134/crm/api/v1.0/clients/2000` resulted in a `404 Not Found` response: +{"code":404,"message":"Not Found"} + + +[2025-03-04 9:06:49.428024] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 9:06:49.486450] [info] Obteniendo el cliente de CRM: 2000 + +[2025-03-04 9:06:49.537833] [error] Error al obtener el cliente de CRM: Client error: `GET https://172.16.5.134/crm/api/v1.0/clients/2000` resulted in a `404 Not Found` response: +{"code":404,"message":"Not Found"} + + +[2025-03-04 9:06:49.538305] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 9:06:49.583157] [info] Obteniendo el cliente de CRM: 2000 + +[2025-03-04 9:06:49.632427] [error] Error al obtener el cliente de CRM: Client error: `GET https://172.16.5.134/crm/api/v1.0/clients/2000` resulted in a `404 Not Found` response: +{"code":404,"message":"Not Found"} + + +[2025-03-04 9:06:49.632898] [error] Error al crear la referencia de OXXO: errorGetClient +[2025-03-04 9:09:21.832369] [notice] Logging level set to:debug +[2025-03-04 9:09:21.832566] [info] No UUID found in the webhook data +[2025-03-04 9:09:21.832602] [info] Evento de referencia de oxxo recibido + +[2025-03-04 9:09:21.832626] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 9:10:40.492543] [notice] Logging level set to:debug +[2025-03-04 9:10:40.492938] [info] No UUID found in the webhook data +[2025-03-04 9:10:40.493029] [info] Evento de referencia de oxxo recibido + +[2025-03-04 9:10:40.493074] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 9:10:40.619072] [error] Error al obtener el cliente de CRM + +[2025-03-04 9:10:40.619502] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 9:10:40.707407] [error] Error al obtener el cliente de CRM + +[2025-03-04 9:10:40.707782] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 9:10:40.801000] [error] Error al obtener el cliente de CRM + +[2025-03-04 9:10:40.801367] [error] Error al crear la referencia de OXXO: errorGetClientNofFound +[2025-03-04 9:10:49.452183] [notice] Logging level set to:debug +[2025-03-04 9:10:49.452544] [info] No UUID found in the webhook data +[2025-03-04 9:10:49.452629] [info] Evento de referencia de oxxo recibido + +[2025-03-04 9:10:49.452681] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 9:10:49.586477] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_PetN1dhr4rx0kX + +[2025-03-04 9:10:49.586517] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. + +[2025-03-04 9:10:49.586824] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 9:10:49.694775] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_PetN1dhr4rx0kX + +[2025-03-04 9:10:49.694924] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. + +[2025-03-04 9:10:49.695235] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 9:10:49.791410] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_PetN1dhr4rx0kX + +[2025-03-04 9:10:49.791552] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. + +[2025-03-04 9:10:49.791825] [error] Error al crear la referencia de OXXO: errorsinadeudo +[2025-03-04 9:11:09.869155] [notice] Logging level set to:debug +[2025-03-04 9:11:09.869718] [info] No UUID found in the webhook data +[2025-03-04 9:11:09.869879] [info] Evento de referencia de oxxo recibido + +[2025-03-04 9:11:09.869980] [info] Referencia persnoalizada, Valor del monto: 30 + +[2025-03-04 9:11:09.870073] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 9:11:09.998758] [info] Monto proporcionado directamente: 30 + +[2025-03-04 9:11:09.998801] [info] Creando referencia en Stripe por: 3000 para el cliente cus_PetN1dhr4rx0kX + +[2025-03-04 9:11:10.571032] [info] El nombre del cliente es: Daniel Humberto Soto Villegas el boy + +[2025-03-04 9:11:10.571146] [info] Creando payment methods del voucher + +[2025-03-04 9:11:10.817809] [info] Confirmando el paymentIntent + +[2025-03-04 9:11:11.483674] [info] Se terminó de confirmar el paymentIntent + +[2025-03-04 9:11:11.484186] [info] Referencia OXXO: 12345678901234657890123456789012 + +[2025-03-04 9:11:11.484343] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9Sc2NrOUFnN3BzeGNMSFJaNmNFQ1NReUZ1czBnUFBB0100xHP3haAs + +[2025-03-04 9:11:11.485323] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9Sc2NrOUFnN3BzeGNMSFJaNmNFQ1NReUZ1czBnUFBB0100xHP3haAs"} +[2025-03-04 9:14:16.071049] [notice] Logging level set to:debug +[2025-03-04 9:14:16.216854] [debug] valor el evento recibido por webhook: payment.add + +[2025-03-04 9:14:16.217045] [debug] Valor de JSON: {"uuid":"32a10247-c981-481c-8d77-a0661927a9d7","changeType":"insert","entity":"payment","entityId":"592","eventName":"payment.add","extraData":{"entity":{"id":592,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:14:15-0600","amount":30,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":30,"userId":null,"attributes":[]},"entityBeforeEdit":null}} + +[2025-03-04 9:14:16.217319] [debug] Notification encodificado en JSON:{"uuid":"32a10247-c981-481c-8d77-a0661927a9d7","changeType":"insert","entity":"payment","entityId":592,"message":null,"clientId":2,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":143.33,"accountCredit":143.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":592,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:14:15-0600","amount":30,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":30,"userId":null,"attributes":[]}} + +[2025-03-04 9:14:16.217394] [debug] valor del payment data: {"id":592,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:14:15-0600","amount":30,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":30,"userId":null,"attributes":[]} + +[2025-03-04 9:14:16.217514] [info] {"WhatsApp":["5214181878106"]} +[2025-03-04 9:14:16.217555] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-03-04 9:14:16.217591] [info] Tipo de contacto normalizado: 'whatsapp' +[2025-03-04 9:14:16.217628] [debug] ***Se notifica y actualiza al cliente sobre su pago*** + +Eviando comprobante de pago al cliente: 2 con número: 5214181878106 + +El archivo PDF se ha descargado y guardado correctamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.pdf + +El archivo PDF es válido y tiene contenido: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.pdf + +El archivo PNG se ha generado correctamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png + +Subiendo comprobante a worpdpress + +file_to_upload: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png + +Conexión FTP exitosa + +El archivo ha sido cargado exitosamente. + +La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png + +No se pudo obtener la lista de archivos de la carpeta FTP + +Se terminó de subir comprobante a wordpress + +La cadena CURL que se envia es: { + "to": "5214181878106", + "from": "whatsapp", + "type": "document", + "content": { + "text": "S/M", + "url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png" + }, + "template_values": ["Daniel Humberto Soto Villegas el boy", "$30", "$143.33 a favor"], + "template_uuid": "57ead79cebd14902921477922403093b", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"0e327e242d434bc280ff21e5665db080","status":"enqueued"}} +Hay menos de 100 archivos en el directorio. No se eliminarán archivos. + +La notificación fue enviada correctamente con estado: enqueued + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":592,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:14:15-0600","amount":30,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":30,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2143.33 a favor","Monto Ultimo Pago":"\ud83d\udcb2 30","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2143.33 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 30\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 04\/03\/2025 03:14 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/03\/2025 03:14\",\"Clabe Interbancaria\": \"\"}","Fecha Ulti-mo Pago":"\ud83d\udcc6\ud83d\udcb8 04\/03\/2025 03:14 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/03\/2025 03:14","Clabe Interbancaria":null}} + +Response Patch CallBell: {"error":{"custom_fields":["Fecha Ulti-mo Pago do not exist or are misspelled, please check before retrying"]}} + +[2025-03-04 9:14:21.824505] [notice] Logging level set to:debug +[2025-03-04 9:14:21.938635] [debug] valor el evento recibido por webhook: payment.edit + +[2025-03-04 9:14:21.938687] [debug] Valor de JSON: {"uuid":"3c7fb6bc-9b3e-49a2-b65a-b5504642fbb5","changeType":"edit","entity":"payment","entityId":"592","eventName":"payment.edit","extraData":{"entity":{"id":592,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:14:15-0600","amount":30,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":30,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":592,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:14:15-0600","amount":30,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":30,"userId":null,"attributes":[]}}} + +[2025-03-04 9:19:02.523612] [notice] Logging level set to:debug +[2025-03-04 9:19:02.523761] [info] No UUID found in the webhook data +[2025-03-04 9:19:02.523786] [info] Evento de referencia de oxxo recibido + +[2025-03-04 9:19:02.523801] [info] Referencia persnoalizada, Valor del monto: 50 + +[2025-03-04 9:19:02.523813] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 9:19:02.665050] [info] Monto proporcionado directamente: 50 + +[2025-03-04 9:19:02.665096] [info] Creando referencia en Stripe por: 5000 para el cliente cus_PetN1dhr4rx0kX + +[2025-03-04 9:19:03.242722] [info] El nombre del cliente es: Daniel Humberto Soto Villegas el boy + +[2025-03-04 9:19:03.242834] [info] Creando payment methods del voucher + +[2025-03-04 9:19:03.487317] [info] Confirmando el paymentIntent + +[2025-03-04 9:19:04.157818] [info] Se terminó de confirmar el paymentIntent + +[2025-03-04 9:19:04.157949] [info] Referencia OXXO: 12345678901234657890123456789012 + +[2025-03-04 9:19:04.157983] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9Sc2NzZ01HVXVxb3Jlc1d3aUdiTUFEWFhJNml4VjVv0100bSJo8Pf7 + +[2025-03-04 9:19:04.158528] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9Sc2NzZ01HVXVxb3Jlc1d3aUdiTUFEWFhJNml4VjVv0100bSJo8Pf7"} +[2025-03-04 9:19:44.749414] [notice] Logging level set to:debug +[2025-03-04 9:19:44.749634] [info] No UUID found in the webhook data +[2025-03-04 9:19:44.749761] [info] Evento de referencia de oxxo recibido + +[2025-03-04 9:19:44.749794] [info] Referencia persnoalizada, Valor del monto: 100 + +[2025-03-04 9:19:44.749821] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 9:19:44.916356] [info] Monto proporcionado directamente: 100 + +[2025-03-04 9:19:44.916413] [info] Creando referencia en Stripe por: 10000 para el cliente cus_PetN1dhr4rx0kX + +[2025-03-04 9:19:45.462225] [info] El nombre del cliente es: Daniel Humberto Soto Villegas el boy + +[2025-03-04 9:19:45.462328] [info] Creando payment methods del voucher + +[2025-03-04 9:19:45.705751] [info] Confirmando el paymentIntent + +[2025-03-04 9:19:46.345418] [info] Se terminó de confirmar el paymentIntent + +[2025-03-04 9:19:46.345725] [info] Referencia OXXO: 12345678901234657890123456789012 + +[2025-03-04 9:19:46.345808] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9Sc2N0UUJHWkVCT29HanNaTFRIRGlSYkNZbkxLU0000100BG7ddHt1 + +[2025-03-04 9:19:46.346137] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9Sc2N0UUJHWkVCT29HanNaTFRIRGlSYkNZbkxLU0000100BG7ddHt1"} +[2025-03-04 9:20:30.434173] [notice] Logging level set to:debug +[2025-03-04 9:20:30.434319] [info] No UUID found in the webhook data +[2025-03-04 9:20:30.434344] [info] Evento de referencia de oxxo recibido + +[2025-03-04 9:20:30.434360] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 9:20:30.567266] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_PetN1dhr4rx0kX + +[2025-03-04 9:20:30.567312] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. + +[2025-03-04 9:20:30.567711] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 9:20:30.663975] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_PetN1dhr4rx0kX + +[2025-03-04 9:20:30.664098] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. + +[2025-03-04 9:20:30.664479] [info] Creando referencia del cliente para OXXO: + +[2025-03-04 9:20:30.762465] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_PetN1dhr4rx0kX + +[2025-03-04 9:20:30.762613] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. + +[2025-03-04 9:20:30.763029] [error] Error al crear la referencia de OXXO: errorsinadeudo +[2025-03-04 9:22:08.747051] [notice] Logging level set to:debug +[2025-03-04 9:22:08.967946] [debug] valor el evento recibido por webhook: payment.add + +[2025-03-04 9:22:08.967998] [debug] Valor de JSON: {"uuid":"d610e6f4-10e2-4a38-9a1a-a6a563db6e13","changeType":"insert","entity":"payment","entityId":"593","eventName":"payment.add","extraData":{"entity":{"id":593,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:22:08-0600","amount":50,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":50,"userId":null,"attributes":[]},"entityBeforeEdit":null}} + +[2025-03-04 9:22:08.968219] [debug] Notification encodificado en JSON:{"uuid":"d610e6f4-10e2-4a38-9a1a-a6a563db6e13","changeType":"insert","entity":"payment","entityId":593,"message":null,"clientId":2,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":193.33,"accountCredit":193.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":593,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:22:08-0600","amount":50,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":50,"userId":null,"attributes":[]}} + +[2025-03-04 9:22:08.968255] [debug] valor del payment data: {"id":593,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:22:08-0600","amount":50,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":50,"userId":null,"attributes":[]} + +[2025-03-04 9:22:08.968317] [info] {"WhatsApp":["5214181878106"]} +[2025-03-04 9:22:08.968328] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-03-04 9:22:08.968338] [info] Tipo de contacto normalizado: 'whatsapp' +[2025-03-04 9:22:08.968358] [debug] ***Se notifica y actualiza al cliente sobre su pago*** + +Eviando comprobante de pago al cliente: 2 con número: 5214181878106 + +El archivo PDF se ha descargado y guardado correctamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.pdf + +El archivo PDF es válido y tiene contenido: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.pdf + +El archivo PNG se ha generado correctamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png + +Subiendo comprobante a worpdpress + +file_to_upload: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png + +Conexión FTP exitosa + +El archivo ha sido cargado exitosamente. + +La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png + +No se pudo obtener la lista de archivos de la carpeta FTP + +Se terminó de subir comprobante a wordpress + +La cadena CURL que se envia es: { + "to": "5214181878106", + "from": "whatsapp", + "type": "document", + "content": { + "text": "S/M", + "url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png" + }, + "template_values": ["Daniel Humberto Soto Villegas el boy", "$50", "$193.33 a favor"], + "template_uuid": "57ead79cebd14902921477922403093b", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"5dd6c2cd76ed446898a27c53e2d0cc34","status":"enqueued"}} +Hay menos de 100 archivos en el directorio. No se eliminarán archivos. + +La notificación fue enviada correctamente con estado: enqueued + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":593,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:22:08-0600","amount":50,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":50,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2193.33 a favor","Monto Ultimo Pago":"\ud83d\udcb2 50","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2193.33 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 50\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 04\/03\/2025 03:22 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/03\/2025 03:22\",\"Clabe Interbancaria\": \"\"}","Fecha Ulti-mo Pago":"\ud83d\udcc6\ud83d\udcb8 04\/03\/2025 03:22 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/03\/2025 03:22","Clabe Interbancaria":null}} + +Response Patch CallBell: {"error":{"custom_fields":["Fecha Ulti-mo Pago do not exist or are misspelled, please check before retrying"]}} + +[2025-03-04 9:22:14.589492] [notice] Logging level set to:debug +[2025-03-04 9:22:14.721870] [debug] valor el evento recibido por webhook: payment.edit + +[2025-03-04 9:22:14.721926] [debug] Valor de JSON: {"uuid":"03497f30-b0f7-4def-af3f-d9b74946432c","changeType":"edit","entity":"payment","entityId":"593","eventName":"payment.edit","extraData":{"entity":{"id":593,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:22:08-0600","amount":50,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":50,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":593,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:22:08-0600","amount":50,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":50,"userId":null,"attributes":[]}}} + +[2025-03-04 9:22:52.320504] [notice] Logging level set to:debug +[2025-03-04 9:22:52.436197] [debug] valor el evento recibido por webhook: payment.add + +[2025-03-04 9:22:52.436332] [debug] Valor de JSON: {"uuid":"dd107823-fc26-4d27-84a4-420c3fc4d578","changeType":"insert","entity":"payment","entityId":"594","eventName":"payment.add","extraData":{"entity":{"id":594,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:22:52-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":100,"userId":null,"attributes":[]},"entityBeforeEdit":null}} + +[2025-03-04 9:22:52.436605] [debug] Notification encodificado en JSON:{"uuid":"dd107823-fc26-4d27-84a4-420c3fc4d578","changeType":"insert","entity":"payment","entityId":594,"message":null,"clientId":2,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":"Cliente espacial, el m\u00e1s chido","sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas el boy","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"5214181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":170,"clientId":2,"email":null,"phone":"5214181817609","name":"Bussiness","isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Interbancaria","key":"clabeInterbancaria","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":293.33,"accountCredit":293.33,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[{"id":2,"name":"NS EXENTO","colorBackground":"#42a3df","colorText":"#fff"}],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":594,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:22:52-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":100,"userId":null,"attributes":[]}} + +[2025-03-04 9:22:52.436662] [debug] valor del payment data: {"id":594,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:22:52-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":100,"userId":null,"attributes":[]} + +[2025-03-04 9:22:52.436757] [info] {"WhatsApp":["5214181878106"]} +[2025-03-04 9:22:52.436796] [info] Procesando tipo de contacto original: 'WhatsApp' +[2025-03-04 9:22:52.436831] [info] Tipo de contacto normalizado: 'whatsapp' +[2025-03-04 9:22:52.436868] [debug] ***Se notifica y actualiza al cliente sobre su pago*** + +Eviando comprobante de pago al cliente: 2 con número: 5214181878106 + +El archivo PDF se ha descargado y guardado correctamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.pdf + +El archivo PDF es válido y tiene contenido: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.pdf + +El archivo PNG se ha generado correctamente en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png + +Subiendo comprobante a worpdpress + +file_to_upload: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png + +Conexión FTP exitosa + +El archivo ha sido cargado exitosamente. + +La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png + +No se pudo obtener la lista de archivos de la carpeta FTP + +Se terminó de subir comprobante a wordpress + +La cadena CURL que se envia es: { + "to": "5214181878106", + "from": "whatsapp", + "type": "document", + "content": { + "text": "S/M", + "url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_el_boy.png" + }, + "template_values": ["Daniel Humberto Soto Villegas el boy", "$100", "$293.33 a favor"], + "template_uuid": "57ead79cebd14902921477922403093b", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"bc5214b57e4040d489b485e8e09d9166","status":"enqueued"}} +Hay menos de 100 archivos en el directorio. No se eliminarán archivos. + +La notificación fue enviada correctamente con estado: enqueued + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":594,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:22:52-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":100,"userId":null,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas el boy + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas el boy","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas el boy","URL":"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2293.33 a favor","Monto Ultimo Pago":"\ud83d\udcb2 100","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas el boy\",\"URL\": \"\ud83c\udf10 https:\/\/sistema.siip.mx\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2293.33 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 100\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 04\/03\/2025 03:22 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/03\/2025 03:22\",\"Clabe Interbancaria\": \"\"}","Fecha Ulti-mo Pago":"\ud83d\udcc6\ud83d\udcb8 04\/03\/2025 03:22 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/03\/2025 03:22","Clabe Interbancaria":null}} + +Response Patch CallBell: {"error":{"custom_fields":["Fecha Ulti-mo Pago do not exist or are misspelled, please check before retrying"]}} + +[2025-03-04 9:22:57.722095] [notice] Logging level set to:debug +[2025-03-04 9:22:57.823576] [debug] valor el evento recibido por webhook: payment.edit + +[2025-03-04 9:22:57.823735] [debug] Valor de JSON: {"uuid":"52f3cd87-3914-459d-9d0b-05220ec8594d","changeType":"edit","entity":"payment","entityId":"594","eventName":"payment.edit","extraData":{"entity":{"id":594,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:22:52-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":100,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":594,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-03-04T03:22:52-0600","amount":100,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":100,"userId":null,"attributes":[]}}} + diff --git a/manifest.json b/manifest.json index 12fd20b5..31886e98 100755 --- a/manifest.json +++ b/manifest.json @@ -3,9 +3,9 @@ "information": { "name": "siip-whatsapp-notifications", "displayName": "SIIP - Procesador de Pagos en línea con Stripe, Oxxo y Transferencia, Sincronizador de CallBell y Envío de Notificaciones y comprobantes vía WhatsApp", - "description": "Este plugin sincroniza los clientes del sitema UISP CRM con los contactos de WhatsApp en CallBell, además procesa pagos de Stripe como las trasferencias bancarias y genera referencias de pago vía OXXO, además envía comprobantes de pago en formato imagen PNG o texto vía Whatsapp a los clientes", + "description": "Este plugin sincroniza los clientes del sistema UISP CRM con los contactos de WhatsApp en CallBell, además procesa pagos de Stripe como las trasferencias bancarias y genera referencias de pago vía OXXO, además envía comprobantes de pago en formato imagen PNG o texto vía Whatsapp a los clientes", "url": "https://siip.mx/", - "version": "2.6.6", + "version": "2.6.7", "unmsVersionCompliancy": { "min": "2.1.0", "max": null diff --git a/src/Facade/AbstractOxxoOperationsFacade.php b/src/Facade/AbstractOxxoOperationsFacade.php index 170f8a25..7db5ec29 100755 --- a/src/Facade/AbstractOxxoOperationsFacade.php +++ b/src/Facade/AbstractOxxoOperationsFacade.php @@ -53,6 +53,10 @@ abstract class AbstractOxxoOperationsFacade /* * Creates a PaymentIntent for OXXO in Stripe for a Customer + * @param array $event_json + * @param int|null $amount + * @return string + * @throws Exception */ public function createOxxoPaymentIntent($event_json, $amount = null): string { @@ -79,29 +83,46 @@ abstract class AbstractOxxoOperationsFacade 'Accept' => 'application/json', ], 'verify' => false, + 'timeout' => 5, // Timeout de 5 segundos ]); - $response = $clientGuzzleHttp->request('GET', "clients/" . $clientID); - $arrayClientCRM = json_decode($response->getBody()->getContents(), true); + try { + //$this->logger->info("Obteniendo el cliente de CRM: " . $clientID . PHP_EOL); + $response = $clientGuzzleHttp->request('GET', "clients/" . $clientID); + $arrayClientCRM = json_decode($response->getBody()->getContents(), true); - // Obtener stripeCustomerId - foreach ($arrayClientCRM['attributes'] as $attribute) { - if ($attribute['key'] === 'stripeCustomerId') { - $stripeCustomerId = $attribute['value']; - break; + // Obtener stripeCustomerId + foreach ($arrayClientCRM['attributes'] as $attribute) { + if ($attribute['key'] === 'stripeCustomerId') { + $stripeCustomerId = $attribute['value']; + break; + } } - } - // Obtener email del cliente - foreach ($arrayClientCRM['contacts'] as $contact) { - if (!empty($contact['email'])) { - $clientEmail = $contact['email']; - break; + // Obtener email del cliente + foreach ($arrayClientCRM['contacts'] as $contact) { + if (!empty($contact['email'])) { + $clientEmail = $contact['email']; + break; + } else { + $clientEmail = 'siip8873@gmail.com'; + } + } + + } catch (RequestException $e) { + if ($e->getCode() === 404) { + $this->logger->error("Error al obtener el cliente de CRM" . PHP_EOL); + return 'errorGetClientNofFound'; } else { - $clientEmail = 'siip8873@gmail.com'; + $this->logger->error("Error al obtener el cliente de CRM" . PHP_EOL); + return 'errorGetClient'; } + } + + + // Verificar si $amount es null para determinar si es necesario consultar la API if ($amount === null) { try { @@ -144,7 +165,14 @@ abstract class AbstractOxxoOperationsFacade ], ]); + + } catch (Exception $e) { + $this->logger->error('Error al crear el payment intent: ' . $e->getMessage() . PHP_EOL); + return 'errorCreatePaymentIntent'; + } + + try{ // Obtener los nombres del cliente $firstName = isset($arrayClientCRM['firstName']) ? trim($arrayClientCRM['firstName']) : ''; $lastName = isset($arrayClientCRM['lastName']) ? trim($arrayClientCRM['lastName']) : ''; @@ -173,22 +201,30 @@ abstract class AbstractOxxoOperationsFacade ['payment_method' => $paymentMethod->id] ); $this->logger->info("Se terminó de confirmar el paymentIntent" . PHP_EOL); - if (!empty($paymentIntent->next_action) && isset($paymentIntent->next_action->oxxo_display_details)) { - $oxxoPayment = $paymentIntent->next_action->oxxo_display_details; - $oxxo_reference = $oxxoPayment->number; - $oxxo_receipt_url = $oxxoPayment->hosted_voucher_url; - - $this->logger->info("Referencia OXXO: " . $oxxo_reference . PHP_EOL); - $this->logger->info("URL del recibo: " . $oxxo_receipt_url . PHP_EOL); - return $oxxo_receipt_url; - } else { - $this->logger->info("El PaymentIntent no tiene detalles de OXXO disponibles aún. " . PHP_EOL); - $this->logger->info("Estado actual del PaymentIntent: " . $paymentIntent->status . PHP_EOL); - return 'errorPyamentIntentWithoutOxxoDetails'; + + }catch (Exception $e) { + if($e->getCode() === 408){ + $this->logger->error('Error de timeout al confirmar el payment intent: ' . $e->getMessage() . PHP_EOL); + return 'errorTimeoutConfirmPaymentIntent'; + }else{ + $this->logger->error('Error al confirmar el payment intent: ' . $e->getMessage() . PHP_EOL); + return 'errorConfirmPaymentIntent'; } - } catch (Exception $e) { - $this->logger->error('Error al crear el payment intent: ' . $e->getMessage() . PHP_EOL); - return 'errorCreatePaymentIntent'; + + } + + if (!empty($paymentIntent->next_action) && isset($paymentIntent->next_action->oxxo_display_details)) { + $oxxoPayment = $paymentIntent->next_action->oxxo_display_details; + $oxxo_reference = $oxxoPayment->number; + $oxxo_receipt_url = $oxxoPayment->hosted_voucher_url; + + $this->logger->info("Referencia OXXO: " . $oxxo_reference . PHP_EOL); + $this->logger->info("URL del recibo: " . $oxxo_receipt_url . PHP_EOL); + return $oxxo_receipt_url; + } else { + $this->logger->info("El PaymentIntent no tiene detalles de OXXO disponibles aún. " . PHP_EOL); + $this->logger->info("Estado actual del PaymentIntent: " . $paymentIntent->status . PHP_EOL); + return 'errorPyamentIntentWithoutOxxoDetails'; } } else { $this->logger->info("Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. " . PHP_EOL); diff --git a/src/Facade/ClientCallBellAPI.php b/src/Facade/ClientCallBellAPI.php index 7d6cfc52..aad9dbdc 100755 --- a/src/Facade/ClientCallBellAPI.php +++ b/src/Facade/ClientCallBellAPI.php @@ -372,7 +372,7 @@ class ClientCallBellAPI - + } catch (\Exception $e) { $log->appendLog("Error al manejar el comprobante de pago: " . $e->getMessage() . PHP_EOL); return false; @@ -390,13 +390,13 @@ class ClientCallBellAPI $rutaImagen = str_replace('.pdf', '.png', $rutaArchivo); $image->writeImage($rutaImagen); $image->destroy(); - + $log->appendLog("El archivo PNG se ha generado correctamente en: $rutaImagen" . PHP_EOL); } catch (ImagickException $e) { $log->appendLog("Error al convertir el PDF a PNG con Imagick: " . $e->getMessage() . PHP_EOL); return false; } - + $fileNameComprobanteImage = str_replace('.pdf', '.png', $fileNameComprobante); $url_file = $this->UploadReceiptToWordpressByImageFileName($fileNameComprobanteImage);//Carga del comprobante PDF a Wordpress para su posterior envío @@ -1005,7 +1005,7 @@ class ClientCallBellAPI '"Domicilio": "' . (($notificationData->clientData['fullAddress'] == null) ? '📍❌ Sin domicilio' : '📍 ' . $notificationData->clientData['fullAddress']) . '",' . '"Nombre": "' . sprintf("👤 %s %s", $notificationData->clientData['firstName'], $notificationData->clientData['lastName']) . '",' . - '"URL": "🌐 https://172.16.5.120/crm/client/' . $notificationData->clientId . '",' . + '"URL": "🌐 https://sistema.siip.mx/crm/client/' . $notificationData->clientId . '",' . '"Saldo Actual": "' . $saldoTexto . '",' . '"Monto Ultimo Pago": "💲 ' . $payments[0]['amount'] . '",' . '"Estado": "' . @@ -1027,12 +1027,12 @@ class ClientCallBellAPI "Cliente" => $notificationData->clientData['id'], "Domicilio" => ($notificationData->clientData['fullAddress'] == null) ? '📍❌ Sin domicilio' : '📍 ' . $notificationData->clientData['fullAddress'], "Nombre" => sprintf("👤 %s %s", $notificationData->clientData['firstName'], $notificationData->clientData['lastName']), - "URL" => '🌐 https://172.16.5.120/crm/client/' . $notificationData->clientId, + "URL" => '🌐 https://sistema.siip.mx/crm/client/' . $notificationData->clientId, "Saldo Actual" => $saldoTexto, "Monto Ultimo Pago" => '💲 ' . $payments[0]['amount'], "Estado" => ($notificationData->clientData['hasSuspendedService']) ? '🔴 Suspendido' : '🟢 Activo ', "Resumen" => $resumenClienteJSON, - "Fecha Ultimo Pago" => '📆💸 ' . $fecha_ultimoPago_ajustada . ' con ' . $payment_method, + "Fecha Ulti-mo Pago" => '📆💸 ' . $fecha_ultimoPago_ajustada . ' con ' . $payment_method, "Fecha Ultima Actualizacion" => '📆🔄️ ' . $fecha_actual_ajustada, "Clabe Interbancaria" => $clabeInterbancaria ) @@ -1156,101 +1156,6 @@ class ClientCallBellAPI } } - - function UploadFileWordpress($fileHandle): string - { - - $log = PluginLogManager::create(); //Initialize Logger - - // Configuración de conexión FTP - $ftp_server = "siip.mx"; - $ftp_username = "siip0001"; - $ftp_password = '$spGiT,[wa)n'; - //$fileName = $fileNameComprobantePDF; - $remote_file = "/public_html/wp/wp-content/uploads/pdf/Comprobante_de_pago.pdf"; - //$file_to_upload = '/home/unms/data/ucrm/ucrm/data/payment_receipts/' . $fileName; - $url = 'http://siip.mx/wp/wp-content/uploads/pdf/Comprobante_de_pago.pdf'; - - - - // Conexión FTP - $ftp_conn = ftp_connect($ftp_server) or die("No se pudo conectar al servidor FTP"); - $login = ftp_login($ftp_conn, $ftp_username, $ftp_password); - ftp_pasv($ftp_conn, true); - // Verificar conexión y login - if ($ftp_conn && $login) { - $log->appendLog("Conexión FTP exitosa" . PHP_EOL); - - // Cargar archivo - if (ftp_fput($ftp_conn, $remote_file, $fileHandle, FTP_BINARY)) { - $log->appendLog("El archivo ha sido cargado exitosamente." . PHP_EOL); - $log->appendLog("La URL es: " . $url . PHP_EOL); - // Cerrar conexión FTP - ftp_close($ftp_conn); - return $url; - - } else { - $log->appendLog("Error al cargar el archivo " . PHP_EOL); - } - - // Cerrar conexión FTP - ftp_close($ftp_conn); - return ''; - } else { - $log->appendLog("No se pudo conectar o iniciar sesión en el servidor FTP." . PHP_EOL); - return ''; - } - - } - - - function UploadReceiptToWordpressByServerFileName($fileNamePaymentReceiptServer, $newCustomFileName): string - { - - $log = PluginLogManager::create(); //Initialize Logger - - - - // Configuración de conexión FTP - $ftp_server = "siip.mx"; - $ftp_username = "siip0001"; - $ftp_password = '$spGiT,[wa)n'; - $remote_file = "/public_html/wp/wp-content/uploads/pdf/" . $newCustomFileName; - $file_to_upload = __DIR__ . '/../../../../payment_receipts/' . $fileNamePaymentReceiptServer; - $url = 'https://siip.mx/wp/wp-content/uploads/pdf/' . $newCustomFileName; - - - - // Conexión FTP - $ftp_conn = ftp_connect($ftp_server) or die("No se pudo conectar al servidor FTP"); - $login = ftp_login($ftp_conn, $ftp_username, $ftp_password); - ftp_pasv($ftp_conn, true); - // Verificar conexión y login - if ($ftp_conn && $login) { - $log->appendLog("Conexión FTP exitosa" . PHP_EOL); - - // Cargar archivo - if (ftp_put($ftp_conn, $remote_file, $file_to_upload, FTP_BINARY)) { - $log->appendLog("El archivo ha sido cargado exitosamente." . PHP_EOL); - $log->appendLog("La URL es: " . $url . PHP_EOL); - // Cerrar conexión FTP - ftp_close($ftp_conn); - return $url; - - } else { - $log->appendLog("Error al cargar el archivo " . PHP_EOL); - } - - // Cerrar conexión FTP - ftp_close($ftp_conn); - return ''; - } else { - $log->appendLog("No se pudo conectar o iniciar sesión en el servidor FTP." . PHP_EOL); - return ''; - } - - } - function UploadReceiptToWordpressByImageFileName($imageFileName): string { @@ -1288,9 +1193,11 @@ class ClientCallBellAPI if (ftp_put($ftp_conn, $remote_file, $file_to_upload, FTP_BINARY)) { $log->appendLog("El archivo ha sido cargado exitosamente." . PHP_EOL); $log->appendLog("La URL es: " . $url . PHP_EOL); + + $this->deleteFilesWordpressExceptLastHundred($log,$ftp_conn,$remote_file); // Cerrar conexión FTP - //ftp_close($ftp_conn); - //return $url; + ftp_close($ftp_conn);//COMENTAR AQUÍ SI SE BORRAN LOS ARCHIVOS DE WORDPRESS DESCOMENTANDO EL CÓDIGO DE MÁS ABAJO + return $url;//COMENTAR AQUÍ SI SE BORRAN LOS ARCHIVOS DE WORDPRESS DESCOMENTANDO EL CÓDIGO DE MÁS ABAJO } else { $log->appendLog("Error al cargar el archivo " . PHP_EOL); @@ -1298,49 +1205,49 @@ class ClientCallBellAPI return ''; } + //SI SE DECIDE VOLVER A ELIMINAR LOS COMPROBANTES ENTONCES DESCOMENTAR ESTA PARTE DE ABAJO Y COMENTAR LA SECCIÓN DE ARRIBA + // Obtener lista de archivos en la carpeta - $files = ftp_nlist($ftp_conn, $remote_folder); - if (is_array($files)) { - // Eliminar la ruta del directorio de los archivos - $files = array_map(function ($file) use ($remote_folder) { - return str_replace($remote_folder, '', $file); - }, $files); + // $files = ftp_nlist($ftp_conn, $remote_folder); + // if (is_array($files)) { + // // Eliminar la ruta del directorio de los archivos + // $files = array_map(function ($file) use ($remote_folder) { + // return str_replace($remote_folder, '', $file); + // }, $files); - // Obtener fechas de modificación - $filesWithTime = []; - foreach ($files as $file) { - $modifiedTime = ftp_mdtm($ftp_conn, $remote_folder . $file); - if ($modifiedTime != -1) { - $filesWithTime[$file] = $modifiedTime; - } - } + // // Obtener fechas de modificación + // $filesWithTime = []; + // foreach ($files as $file) { + // $modifiedTime = ftp_mdtm($ftp_conn, $remote_folder . $file); + // if ($modifiedTime != -1) { + // $filesWithTime[$file] = $modifiedTime; + // } + // } - // Ordenar archivos por fecha de modificación, más recientes primero - arsort($filesWithTime); + // // Ordenar archivos por fecha de modificación, más recientes primero + // arsort($filesWithTime); - // Obtener los archivos a eliminar (todos menos los 50 más recientes) - $filesToDelete = array_slice(array_keys($filesWithTime), 50); + // // Obtener los archivos a eliminar (todos menos los 50 más recientes) + // $filesToDelete = array_slice(array_keys($filesWithTime), 50); + + // // Eliminar archivos antiguos + // foreach ($filesToDelete as $file) { + // if (ftp_delete($ftp_conn, $remote_folder . $file)) { + // $log->appendLog("Comprobante eliminado de Wordpress: " . $file . PHP_EOL); + // } else { + // $log->appendLog('Error al borrar comprobante' . $file . PHP_EOL); + // } + // } + // $log->appendLog("Archivos eliminados" . PHP_EOL); + // ftp_close($ftp_conn); + // return $url; + // } else { + // $log->appendLog("No se pudo obtener la lista de archivos de la carpeta FTP" . PHP_EOL); + // ftp_close($ftp_conn); + // return $url; + // } - // Eliminar archivos antiguos - foreach ($filesToDelete as $file) { - if (ftp_delete($ftp_conn, $remote_folder . $file)) { - $log->appendLog("Comprobante eliminado de Wordpress: " . $file . PHP_EOL); - } else { - $log->appendLog('Error al borrar comprobante' . $file . PHP_EOL); - } - } - $log->appendLog("Archivos eliminados" . PHP_EOL); - ftp_close($ftp_conn); - return $url; - } else { - $log->appendLog("No se pudo obtener la lista de archivos de la carpeta FTP" . PHP_EOL); - ftp_close($ftp_conn); - return $url; - } - // Cerrar conexión FTP - //ftp_close($ftp_conn); - //return ''; } else { $log->appendLog("No se pudo conectar o iniciar sesión en el servidor FTP." . PHP_EOL); return ''; @@ -1349,7 +1256,50 @@ class ClientCallBellAPI } + function deleteFilesWordpressExceptLastHundred($log, $ftp_conn, $remote_folder): bool + { + // Obtener lista de archivos en la carpeta + $files = ftp_nlist($ftp_conn, $remote_folder); + if (is_array($files)) { + // Eliminar la ruta del directorio de los archivos + $files = array_map(function ($file) use ($remote_folder) { + return str_replace($remote_folder, '', $file); + }, $files); + + // Obtener fechas de modificación + $filesWithTime = []; + foreach ($files as $file) { + $modifiedTime = ftp_mdtm($ftp_conn, $remote_folder . $file); + if ($modifiedTime != -1) { + $filesWithTime[$file] = $modifiedTime; + } + } + + // Ordenar archivos por fecha de modificación, más recientes primero + arsort($filesWithTime); + + // Obtener los archivos a eliminar (todos menos los 50 más recientes) + $filesToDelete = array_slice(array_keys($filesWithTime), 50); + + // Eliminar archivos antiguos + foreach ($filesToDelete as $file) { + if (ftp_delete($ftp_conn, $remote_folder . $file)) { + $log->appendLog("Comprobante eliminado de Wordpress: " . $file . PHP_EOL); + } else { + $log->appendLog('Error al borrar comprobante' . $file . PHP_EOL); + } + } + $log->appendLog("Archivos eliminados" . PHP_EOL); + ftp_close($ftp_conn); + return true; + } else { + $log->appendLog("No se pudo obtener la lista de archivos de la carpeta FTP" . PHP_EOL); + ftp_close($ftp_conn); + return false; + } + + } /** diff --git a/src/Plugin.php b/src/Plugin.php index 4f5470b0..72c8d612 100755 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -152,12 +152,12 @@ class Plugin $this->logger->info('Referencia persnoalizada, Valor del monto: ' . $jsonData['amount'] . PHP_EOL); $intentos = 0; do { - if ($intentos > 1) { - sleep(2); - } + // if ($intentos > 1) { + // sleep(2); + // } $url = $this->pluginOxxoNotifierFacade->createOxxoPaymentIntent($jsonData, $jsonData['amount']); $intentos++; - } while (strpos($url, 'https') !== 0 && $intentos < 5); + } while (strpos($url, 'https') !== 0 && $intentos < 3); //Mientras la url no contenga https y el número de intentos sea menor a 3 } else { $intentos = 0; do { @@ -166,37 +166,47 @@ class Plugin // } $url = $this->pluginOxxoNotifierFacade->createOxxoPaymentIntent($jsonData); $intentos++; - } while (strpos($url, 'https') !== 0 && $intentos < 5); + } while (strpos($url, 'https') !== 0 && $intentos < 3); //Mientras la url no contenga https y el número de intentos sea menor a 3 } - // Crear una respuesta en formato JSON - // $response = [ - // 'event' => 'response.siip', - // 'status' => 'success', - // 'url' => $url - // ]; + //Si la respuesta no contiene https + if (strpos($url, 'https') !== 0) { + $this->logger->error('Error al crear la referencia de OXXO: ' . $url); + $response = '{' . + '"error": "' . $url . '"' . + '}'; + header('Content-Type: application/json'); + echo $response; + break; + } else { + $response = '{' . + '"url": "' . $url . '"' . + '}'; + $this->logger->debug('Reponse que se envía a CallBell: ' . $response); + // Enviar el encabezado de respuesta como JSON + header('Content-Type: application/json'); - $response = '{' . - '"url": "' . $url . '"' . - '}'; + // Enviar la respuesta en formato JSON + //echo json_encode($response); + echo $response; - $this->logger->debug('Reponse que se envía a CallBell: ' . $response); - // $json_codificado = json_encode($response); - // if (json_last_error() !== JSON_ERROR_NONE) { - // $this->logger->error('Error en la codificación JSON: ' . json_last_error_msg() . PHP_EOL); + break; - // } + } - //$this->logger->info('Se está enviando esta respuesta: ' . json_encode($json_codificado) . PHP_EOL); - // Enviar el encabezado de respuesta como JSON - header('Content-Type: application/json'); - // Enviar la respuesta en formato JSON - //echo json_encode($response); - echo $response; - break; + + // $json_codificado = json_encode($response); + // if (json_last_error() !== JSON_ERROR_NONE) { + // $this->logger->error('Error en la codificación JSON: ' . json_last_error_msg() . PHP_EOL); + + // } + + //$this->logger->info('Se está enviando esta respuesta: ' . json_encode($json_codificado) . PHP_EOL); + + // Otros eventos relevantes } @@ -409,7 +419,7 @@ class Plugin // Comprobar si la etiqueta 'STRIPE' existe en 'tags' pero no en 'tagsBefore' if ($stripeTagExists && !$stripeTagExistsBefore) { - $this->logger->debug('La etiqueta STRIPE se agregó al cliente'); + $this->logger->debug('La etiqueta STRIPE se agregará al cliente'); $this->pluginNotifierFacade->createStripeClient($notification, true); } else { $this->logger->debug('La etiqueta STRIPE no se agregó al cliente'); @@ -422,7 +432,7 @@ class Plugin $this->logger->warning('Los datos entityBeforeEdit o entity no están presentes en extraData'); } - + $this->notifierFacade->verifyClientActionToDo($notification); @@ -450,7 +460,7 @@ class Plugin } else if ($notification->eventName === 'service.edit') { $this->logger->debug('Se editó el servicio a un cliente' . PHP_EOL); $this->notifierFacade->verifyServiceActionToDo($notification); - }else if ($notification->eventName === 'service.suspend') { + } else if ($notification->eventName === 'service.suspend') { $this->logger->debug('Se suspendió el servicio a un cliente' . PHP_EOL); $this->notifierFacade->verifyServiceActionToDo($notification); } else if ($notification->eventName === 'service.suspend_cancel') { @@ -486,6 +496,9 @@ class Plugin } else if ($notification->eventName === 'invoice.draft_approved') { $this->logger->debug('Aprobación de Factura' . PHP_EOL); $this->notifierFacade->verifyInvoiceActionToDo($notification); + } else if ($notification->eventName === 'invoice.delete') { + $this->logger->debug('Eliminación de Factura' . PHP_EOL); + $this->notifierFacade->verifyInvoiceActionToDo($notification); } else if ($notification->eventName === 'job.add') { $this->logger->debug('Se ha agregado un nuevo trabajo' . PHP_EOL); diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index c4dd4e74..bf14c6dd 100755 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -5,7 +5,7 @@ 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => 'c3824ba827c740086875251761ced485fb46b070', + 'reference' => '398dcc462fec4278f6ce4ece52950adf089e35fe', 'name' => 'ucrm-plugins/sms-twilio', 'dev' => false, ), @@ -307,7 +307,7 @@ 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => 'c3824ba827c740086875251761ced485fb46b070', + 'reference' => '398dcc462fec4278f6ce4ece52950adf089e35fe', 'dev_requirement' => false, ), ),