siip-whatsapp-notifications.../data/plugin.log
2024-12-31 09:48:29 +00:00

1024 lines
320 KiB
Plaintext

Dentro del proceso del patch:
Datos traidos con payment api: [{"id":460,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:03:11-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":531,"invoiceId":1326,"paymentId":460,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}]
Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria
UUID: 74cc2bb45eb8409f92cd5dba99200d26
JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","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 Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 700","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 Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 700\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:03 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:03\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:03 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:03","Clabe Transferencia Banamex":"0021804341999569810"}}
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:03 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 700","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:03","Saldo Actual":"💲0 está al corriente","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"💲 700\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:03 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:03\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/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}}}
[2024-12-26 9:03:21.156227] [debug] HTTP request processing ended.
[2024-12-26 9:03:21.282759] [notice] Logging level set to:debug
[2024-12-26 9:03:21.283030] [debug] El valor del evento recibio en json: {"uuid":"c0177785-13c6-447a-8635-e66ca5fc5eaf","changeType":"insert","entity":"payment","entityId":"460","eventName":"payment.add","extraData":{"entity":{"id":460,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:03:11-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":531,"invoiceId":1326,"paymentId":460,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
[2024-12-26 9:03:21.407744] [debug] valor el evento recibido por webhook: payment.add
[2024-12-26 9:03:21.407994] [debug] datos del notification para el invoice add:{"uuid":"c0177785-13c6-447a-8635-e66ca5fc5eaf","changeType":"insert","entity":"payment","entityId":460,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":460,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:03:11-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":531,"invoiceId":1326,"paymentId":460,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}}
[2024-12-26 9:03:21.408067] [debug] valor del payment data: {"id":460,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:03:11-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":531,"invoiceId":1326,"paymentId":460,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}
[2024-12-26 9:03:21.408140] [debug] ***Se notifica y actualiza al cliente sobre su pago***
[2024-12-26 9:03:21.408335] [debug] Activado el check de mensajes de texto: 1
Eviando comprobante de pago al cliente: 2 con número: 5214181878106
Datos traidos con payment api: [{"id":460,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:03:11-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":531,"invoiceId":1326,"paymentId":460,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}]
Datos client data credit amount: 0
Verificar paymentCovers
payment covers[{"id":531,"invoiceId":1326,"paymentId":460,"creditNoteId":null,"refundId":null,"amount":700}]
Datos del payment covers:
Invoice ID pagado: 1326 de esta cantidad: 700
Todos los Invoice IDs: 1326
Todas las cantidades: 700,00
Numero de factura: 001290
TOTAL de factura: 700
Se terminó de verificar payment covers
Tipo de $total_factura: double
[2024-12-26 9:03:21.675755] [notice] Logging level set to:debug
[2024-12-26 9:03:21.676043] [debug] El valor del evento recibio en json: {"uuid":"2c6608ff-d8c3-4701-9ea8-1007d29144a3","changeType":"edit","entity":"payment","entityId":"460","eventName":"payment.edit","extraData":{"entity":{"id":460,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:03:11-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":531,"invoiceId":1326,"paymentId":460,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":460,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:03:11-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":531,"invoiceId":1326,"paymentId":460,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}}}
[2024-12-26 9:03:21.784559] [debug] valor el evento recibido por webhook: payment.edit
[2024-12-26 9:03:21.784770] [debug] HTTP request processing ended.
[2024-12-26 9:08:52.032123] [notice] Logging level set to:debug
[2024-12-26 9:08:52.032253] [debug] El valor del evento recibio en json: {"uuid":"78705be1-8bd9-4f16-a883-defa9a75b24d","changeType":"insert","entity":"invoice","entityId":"1327","eventName":"invoice.add","extraData":{"entity":{"id":1327,"clientId":2,"number":"001291","createdDate":"2024-12-26T03:08:47-0600","dueDate":"2025-01-09T03:08:47-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1330,"type":"service","label":"PREMIUM 27\/10\/2025 \u2013 26\/11\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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 Polleria","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}}
[2024-12-26 9:08:52.169433] [debug] valor el evento recibido por webhook: invoice.add
[2024-12-26 9:08:52.169661] [debug] Adición de Factura
[2024-12-26 9:08:52.169720] [debug] datos del notification para el invoice add:{"uuid":"78705be1-8bd9-4f16-a883-defa9a75b24d","changeType":"insert","entity":"invoice","entityId":1327,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1327,"clientId":2,"number":"001291","createdDate":"2024-12-26T03:08:47-0600","dueDate":"2025-01-09T03:08:47-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1330,"type":"service","label":"PREMIUM 27\/10\/2025 \u2013 26\/11\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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 Polleria","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}
[2024-12-26 9:08:52.169750] [debug] Account Balance: -700
[2024-12-26 9:08:52.169759] [debug] Pago hecho con la factura: 0
[2024-12-26 9:08:52.169795] [debug] {"uuid":"78705be1-8bd9-4f16-a883-defa9a75b24d","changeType":"insert","entity":"invoice","entityId":1327,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1327,"clientId":2,"number":"001291","createdDate":"2024-12-26T03:08:47-0600","dueDate":"2025-01-09T03:08:47-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1330,"type":"service","label":"PREMIUM 27\/10\/2025 \u2013 26\/11\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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 Polleria","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}
[2024-12-26 9:08:52.169858] [info] Se proceso los contactos
Dentro del proceso del patch:
Datos traidos con payment api: [{"id":460,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:03:11-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":531,"invoiceId":1326,"paymentId":460,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}]
Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria
UUID: 74cc2bb45eb8409f92cd5dba99200d26
JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","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 Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 700","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 Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2700 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 700\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:03 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:08\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:03 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:08","Clabe Transferencia Banamex":"0021804341999569810"}}
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:03 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 700","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:08","Saldo Actual":"💲700 pendientes","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲700 pendientes\",\"Monto Ultimo Pago\": \"💲 700\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:03 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:08\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/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}}}
[2024-12-26 9:08:54.677335] [debug] HTTP request processing ended.
[2024-12-26 9:08:59.405554] [notice] Logging level set to:debug
[2024-12-26 9:08:59.406235] [debug] El valor del evento recibio en json: {"uuid":"7b9e3496-179c-42bc-8425-b509cbc62fe4","changeType":"edit","entity":"invoice","entityId":"1327","eventName":"invoice.edit","extraData":{"entity":{"id":1327,"clientId":2,"number":"001291","createdDate":"2024-12-26T03:08:47-0600","dueDate":"2025-01-09T03:08:47-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1330,"type":"service","label":"PREMIUM 27\/10\/2025 \u2013 26\/11\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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":532,"invoiceId":1327,"paymentId":461,"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":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","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":1327,"clientId":2,"number":"001291","createdDate":"2024-12-26T03:08:47-0600","dueDate":"2025-01-09T03:08:47-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1330,"type":"service","label":"PREMIUM 27\/10\/2025 \u2013 26\/11\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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":532,"invoiceId":1327,"paymentId":461,"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":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","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}}}
[2024-12-26 9:08:59.624665] [debug] valor el evento recibido por webhook: invoice.edit
[2024-12-26 9:08:59.624921] [debug] Edición de Factura
[2024-12-26 9:08:59.625025] [debug] {"uuid":"7b9e3496-179c-42bc-8425-b509cbc62fe4","changeType":"edit","entity":"invoice","entityId":1327,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1327,"clientId":2,"number":"001291","createdDate":"2024-12-26T03:08:47-0600","dueDate":"2025-01-09T03:08:47-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1330,"type":"service","label":"PREMIUM 27\/10\/2025 \u2013 26\/11\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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":532,"invoiceId":1327,"paymentId":461,"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":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","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}
[2024-12-26 9:08:59.625125] [info] Se proceso los contactos
Dentro del proceso del patch:
Datos traidos con payment api: [{"id":461,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:08:56-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":532,"invoiceId":1327,"paymentId":461,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}]
Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria
UUID: 74cc2bb45eb8409f92cd5dba99200d26
JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","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 Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 700","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 Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 700\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:08 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:09\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:08 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:09","Clabe Transferencia Banamex":"0021804341999569810"}}
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:08 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 700","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:09","Saldo Actual":"💲0 está al corriente","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"💲 700\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:08 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:09\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/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}}}
[2024-12-26 9:09:02.274424] [debug] HTTP request processing ended.
[2024-12-26 9:09:02.400058] [notice] Logging level set to:debug
[2024-12-26 9:09:02.400250] [debug] El valor del evento recibio en json: {"uuid":"b35eaaae-9af1-46ca-bf6e-1b2bda88545c","changeType":"insert","entity":"payment","entityId":"461","eventName":"payment.add","extraData":{"entity":{"id":461,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:08:56-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":532,"invoiceId":1327,"paymentId":461,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
[2024-12-26 9:09:02.528273] [debug] valor el evento recibido por webhook: payment.add
[2024-12-26 9:09:02.528435] [debug] datos del notification para el invoice add:{"uuid":"b35eaaae-9af1-46ca-bf6e-1b2bda88545c","changeType":"insert","entity":"payment","entityId":461,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":461,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:08:56-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":532,"invoiceId":1327,"paymentId":461,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}}
[2024-12-26 9:09:02.528472] [debug] valor del payment data: {"id":461,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:08:56-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":532,"invoiceId":1327,"paymentId":461,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}
[2024-12-26 9:09:02.528493] [debug] ***Se notifica y actualiza al cliente sobre su pago***
[2024-12-26 9:09:02.528557] [debug] Activado el check de mensajes de texto: 1
Eviando comprobante de pago al cliente: 2 con número: 5214181878106
Datos traidos con payment api: [{"id":461,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:08:56-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":532,"invoiceId":1327,"paymentId":461,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}]
Datos client data credit amount: 0
Verificar paymentCovers
payment covers[{"id":532,"invoiceId":1327,"paymentId":461,"creditNoteId":null,"refundId":null,"amount":700}]
Datos del payment covers:
Invoice ID pagado: 1327 de esta cantidad: 700
Todos los Invoice IDs: 1327
Todas las cantidades: 700,00
Numero de factura: 001291
TOTAL de factura: 700
Se terminó de verificar payment covers
Tipo de $total_factura: double
Valor formateado: $700,00 MXN
[2024-12-26 9:09:02.793855] [notice] Logging level set to:debug
[2024-12-26 9:09:02.794104] [debug] El valor del evento recibio en json: {"uuid":"3be7b47b-1f73-4cce-9b06-adaa575c917e","changeType":"edit","entity":"payment","entityId":"461","eventName":"payment.edit","extraData":{"entity":{"id":461,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:08:56-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":532,"invoiceId":1327,"paymentId":461,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":461,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:08:56-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":532,"invoiceId":1327,"paymentId":461,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}}}
[2024-12-26 9:09:02.913233] [debug] valor el evento recibido por webhook: payment.edit
[2024-12-26 9:09:02.913466] [debug] HTTP request processing ended.
[2024-12-26 9:12:18.774434] [notice] Logging level set to:debug
[2024-12-26 9:12:18.774561] [debug] El valor del evento recibio en json: {"uuid":"b5bef91b-57aa-445a-b795-54b5f541ce08","changeType":"insert","entity":"invoice","entityId":"1328","eventName":"invoice.add","extraData":{"entity":{"id":1328,"clientId":2,"number":"001292","createdDate":"2024-12-26T03:12:10-0600","dueDate":"2025-01-09T03:12:10-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1331,"type":"service","label":"PREMIUM 27\/11\/2025 \u2013 26\/12\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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 Polleria","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}}
[2024-12-26 9:12:18.915384] [debug] valor el evento recibido por webhook: invoice.add
[2024-12-26 9:12:18.915739] [debug] Adición de Factura
[2024-12-26 9:12:18.915842] [debug] datos del notification para el invoice add:{"uuid":"b5bef91b-57aa-445a-b795-54b5f541ce08","changeType":"insert","entity":"invoice","entityId":1328,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1328,"clientId":2,"number":"001292","createdDate":"2024-12-26T03:12:10-0600","dueDate":"2025-01-09T03:12:10-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1331,"type":"service","label":"PREMIUM 27\/11\/2025 \u2013 26\/12\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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 Polleria","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}
[2024-12-26 9:12:18.915905] [debug] Account Balance: -700
[2024-12-26 9:12:18.915951] [debug] Pago hecho con la factura: 0
[2024-12-26 9:12:18.916023] [debug] {"uuid":"b5bef91b-57aa-445a-b795-54b5f541ce08","changeType":"insert","entity":"invoice","entityId":1328,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1328,"clientId":2,"number":"001292","createdDate":"2024-12-26T03:12:10-0600","dueDate":"2025-01-09T03:12:10-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1331,"type":"service","label":"PREMIUM 27\/11\/2025 \u2013 26\/12\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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 Polleria","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}
[2024-12-26 9:12:18.916117] [info] Se proceso los contactos
Dentro del proceso del patch:
Datos traidos con payment api: [{"id":461,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:08:56-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":532,"invoiceId":1327,"paymentId":461,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}]
Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria
UUID: 74cc2bb45eb8409f92cd5dba99200d26
JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","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 Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 700","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 Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2700 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 700\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:08 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:12\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:08 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:12","Clabe Transferencia Banamex":"0021804341999569810"}}
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:08 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 700","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:12","Saldo Actual":"💲700 pendientes","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲700 pendientes\",\"Monto Ultimo Pago\": \"💲 700\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:08 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:12\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/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}}}
[2024-12-26 9:12:21.400450] [debug] HTTP request processing ended.
[2024-12-26 9:12:25.214596] [notice] Logging level set to:debug
[2024-12-26 9:12:25.214936] [debug] El valor del evento recibio en json: {"uuid":"3fdc6351-393d-489c-b995-829fd69e1350","changeType":"edit","entity":"invoice","entityId":"1328","eventName":"invoice.edit","extraData":{"entity":{"id":1328,"clientId":2,"number":"001292","createdDate":"2024-12-26T03:12:10-0600","dueDate":"2025-01-09T03:12:10-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1331,"type":"service","label":"PREMIUM 27\/11\/2025 \u2013 26\/12\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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":533,"invoiceId":1328,"paymentId":462,"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":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","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":1328,"clientId":2,"number":"001292","createdDate":"2024-12-26T03:12:10-0600","dueDate":"2025-01-09T03:12:10-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1331,"type":"service","label":"PREMIUM 27\/11\/2025 \u2013 26\/12\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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":533,"invoiceId":1328,"paymentId":462,"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":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","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}}}
[2024-12-26 9:12:25.486272] [debug] valor el evento recibido por webhook: invoice.edit
[2024-12-26 9:12:25.486459] [debug] Edición de Factura
[2024-12-26 9:12:25.486517] [debug] {"uuid":"3fdc6351-393d-489c-b995-829fd69e1350","changeType":"edit","entity":"invoice","entityId":1328,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1328,"clientId":2,"number":"001292","createdDate":"2024-12-26T03:12:10-0600","dueDate":"2025-01-09T03:12:10-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1331,"type":"service","label":"PREMIUM 27\/11\/2025 \u2013 26\/12\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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":533,"invoiceId":1328,"paymentId":462,"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":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","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}
[2024-12-26 9:12:25.486578] [info] Se proceso los contactos
Dentro del proceso del patch:
Datos traidos con payment api: [{"id":462,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:12:22-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":533,"invoiceId":1328,"paymentId":462,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}]
Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria
UUID: 74cc2bb45eb8409f92cd5dba99200d26
JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","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 Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 700","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 Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 700\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:12 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:12\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:12 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:12","Clabe Transferencia Banamex":"0021804341999569810"}}
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:12 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 700","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:12","Saldo Actual":"💲0 está al corriente","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"💲 700\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:12 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:12\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/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}}}
[2024-12-26 9:12:27.810949] [debug] HTTP request processing ended.
[2024-12-26 9:12:27.931853] [notice] Logging level set to:debug
[2024-12-26 9:12:27.932009] [debug] El valor del evento recibio en json: {"uuid":"993aaeb4-5fd7-4937-bb73-c7aeade1970b","changeType":"insert","entity":"payment","entityId":"462","eventName":"payment.add","extraData":{"entity":{"id":462,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:12:22-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":533,"invoiceId":1328,"paymentId":462,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
[2024-12-26 9:12:28.113540] [debug] valor el evento recibido por webhook: payment.add
[2024-12-26 9:12:28.113817] [debug] datos del notification para el invoice add:{"uuid":"993aaeb4-5fd7-4937-bb73-c7aeade1970b","changeType":"insert","entity":"payment","entityId":462,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":462,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:12:22-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":533,"invoiceId":1328,"paymentId":462,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}}
[2024-12-26 9:12:28.113898] [debug] valor del payment data: {"id":462,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:12:22-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":533,"invoiceId":1328,"paymentId":462,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}
[2024-12-26 9:12:28.113960] [debug] ***Se notifica y actualiza al cliente sobre su pago***
[2024-12-26 9:12:28.114099] [debug] Activado el check de mensajes de texto: 1
Eviando comprobante de pago al cliente: 2 con número: 5214181878106
Datos traidos con payment api: [{"id":462,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:12:22-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":533,"invoiceId":1328,"paymentId":462,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}]
Datos client data credit amount: 0
Verificar paymentCovers
payment covers[{"id":533,"invoiceId":1328,"paymentId":462,"creditNoteId":null,"refundId":null,"amount":700}]
Datos del payment covers:
Invoice ID pagado: 1328 de esta cantidad: 700
Todos los Invoice IDs: 1328
Todas las cantidades: 700,00
Numero de factura: 001292
TOTAL de factura: 700
Se terminó de verificar payment covers
La cadena CURL que se envia es: {
"to": "5214181878106",
"from": "whatsapp",
"type": "text",
"content": {
"text": "John Doe"
},
"template_values": ["Daniel Humberto Soto Villegas Polleria", "462", "2", "26/12/2024 3:12am", "700", "Transferencia bancaria 📱🏦", "1328", "$700,00 MXN", "$700,00 MXN", "$0 está al corriente", ""],
"template_uuid": "c1396a6ad3cb4192916d4ac2bfb782a5",
"optin_contact": true
}
Response del CallBell: {"message":{"uuid":"cca442b0f20c4348ba2fe7b8deb749c2","status":"enqueued"}}
Dentro del proceso del patch:
Datos traidos con payment api: [{"id":462,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:12:22-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":533,"invoiceId":1328,"paymentId":462,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}]
Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria
UUID: 74cc2bb45eb8409f92cd5dba99200d26
JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","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 Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 700","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 Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 700\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:12 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:12\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:12 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:12","Clabe Transferencia Banamex":null}}
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:12 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 700","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:12","Saldo Actual":"💲0 está al corriente","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"💲 700\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:12 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:12\",\"Clabe Transferencia Banamex\": \"\"}","URL":"🌐 https://172.16.5.120/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}}}
[2024-12-26 9:12:30.562055] [debug] HTTP request processing ended.
[2024-12-26 9:12:30.685121] [notice] Logging level set to:debug
[2024-12-26 9:12:30.685329] [debug] El valor del evento recibio en json: {"uuid":"fab2aa46-71a0-4208-9f05-d938af6e47b5","changeType":"edit","entity":"payment","entityId":"462","eventName":"payment.edit","extraData":{"entity":{"id":462,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:12:22-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":533,"invoiceId":1328,"paymentId":462,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":462,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:12:22-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":533,"invoiceId":1328,"paymentId":462,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}}}
[2024-12-26 9:12:30.807316] [debug] valor el evento recibido por webhook: payment.edit
[2024-12-26 9:12:30.807583] [debug] HTTP request processing ended.
[2024-12-26 9:18:54.174266] [notice] Logging level set to:debug
[2024-12-26 9:18:54.174402] [debug] El valor del evento recibio en json: {"uuid":"74d1842c-26d4-4590-b487-2a0a21d2c88f","changeType":"insert","entity":"invoice","entityId":"1329","eventName":"invoice.add","extraData":{"entity":{"id":1329,"clientId":2,"number":"001293","createdDate":"2024-12-26T03:18:44-0600","dueDate":"2025-01-09T03:18:44-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1332,"type":"service","label":"PREMIUM 27\/12\/2025 \u2013 26\/01\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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 Polleria","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}}
[2024-12-26 9:18:54.333064] [debug] valor el evento recibido por webhook: invoice.add
[2024-12-26 9:18:54.333319] [debug] Adición de Factura
[2024-12-26 9:18:54.333379] [debug] datos del notification para el invoice add:{"uuid":"74d1842c-26d4-4590-b487-2a0a21d2c88f","changeType":"insert","entity":"invoice","entityId":1329,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1329,"clientId":2,"number":"001293","createdDate":"2024-12-26T03:18:44-0600","dueDate":"2025-01-09T03:18:44-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1332,"type":"service","label":"PREMIUM 27\/12\/2025 \u2013 26\/01\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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 Polleria","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}
[2024-12-26 9:18:54.333411] [debug] Account Balance: -700
[2024-12-26 9:18:54.333420] [debug] Pago hecho con la factura: 0
[2024-12-26 9:18:54.333461] [debug] {"uuid":"74d1842c-26d4-4590-b487-2a0a21d2c88f","changeType":"insert","entity":"invoice","entityId":1329,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1329,"clientId":2,"number":"001293","createdDate":"2024-12-26T03:18:44-0600","dueDate":"2025-01-09T03:18:44-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1332,"type":"service","label":"PREMIUM 27\/12\/2025 \u2013 26\/01\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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 Polleria","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}
[2024-12-26 9:18:54.333528] [info] Se proceso los contactos
Dentro del proceso del patch:
Datos traidos con payment api: [{"id":462,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:12:22-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":533,"invoiceId":1328,"paymentId":462,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}]
Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria
UUID: 74cc2bb45eb8409f92cd5dba99200d26
JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","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 Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 700","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 Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2700 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 700\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:12 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:18\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:12 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:18","Clabe Transferencia Banamex":"0021804341999569810"}}
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:12 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 700","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:18","Saldo Actual":"💲700 pendientes","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲700 pendientes\",\"Monto Ultimo Pago\": \"💲 700\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:12 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:18\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/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}}}
[2024-12-26 9:18:57.216907] [debug] HTTP request processing ended.
[2024-12-26 9:19:06.828685] [notice] Logging level set to:debug
[2024-12-26 9:19:06.829054] [debug] El valor del evento recibio en json: {"uuid":"3d7168ef-2944-4c18-886b-38f1cefc365a","changeType":"edit","entity":"invoice","entityId":"1329","eventName":"invoice.edit","extraData":{"entity":{"id":1329,"clientId":2,"number":"001293","createdDate":"2024-12-26T03:18:44-0600","dueDate":"2025-01-09T03:18:44-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1332,"type":"service","label":"PREMIUM 27\/12\/2025 \u2013 26\/01\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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":534,"invoiceId":1329,"paymentId":463,"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":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","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":1329,"clientId":2,"number":"001293","createdDate":"2024-12-26T03:18:44-0600","dueDate":"2025-01-09T03:18:44-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1332,"type":"service","label":"PREMIUM 27\/12\/2025 \u2013 26\/01\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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":534,"invoiceId":1329,"paymentId":463,"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":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","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}}}
[2024-12-26 9:19:07.076461] [debug] valor el evento recibido por webhook: invoice.edit
[2024-12-26 9:19:07.076729] [debug] Edición de Factura
[2024-12-26 9:19:07.076828] [debug] {"uuid":"3d7168ef-2944-4c18-886b-38f1cefc365a","changeType":"edit","entity":"invoice","entityId":1329,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1329,"clientId":2,"number":"001293","createdDate":"2024-12-26T03:18:44-0600","dueDate":"2025-01-09T03:18:44-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1332,"type":"service","label":"PREMIUM 27\/12\/2025 \u2013 26\/01\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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":534,"invoiceId":1329,"paymentId":463,"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":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","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}
[2024-12-26 9:19:07.076932] [info] Se proceso los contactos
Dentro del proceso del patch:
Datos traidos con payment api: [{"id":463,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:19:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":534,"invoiceId":1329,"paymentId":463,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}]
Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria
UUID: 74cc2bb45eb8409f92cd5dba99200d26
JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","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 Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 700","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 Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 700\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:19 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:19\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:19 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:19","Clabe Transferencia Banamex":"0021804341999569810"}}
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:19 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 700","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:19","Saldo Actual":"💲0 está al corriente","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"💲 700\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:19 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:19\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/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}}}
[2024-12-26 9:19:09.410880] [debug] HTTP request processing ended.
[2024-12-26 9:19:09.532331] [notice] Logging level set to:debug
[2024-12-26 9:19:09.532491] [debug] El valor del evento recibio en json: {"uuid":"26b62302-3e6f-4f5e-86e9-0381b8b382c2","changeType":"insert","entity":"payment","entityId":"463","eventName":"payment.add","extraData":{"entity":{"id":463,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:19:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":534,"invoiceId":1329,"paymentId":463,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
[2024-12-26 9:19:09.814265] [debug] valor el evento recibido por webhook: payment.add
[2024-12-26 9:19:09.814585] [debug] datos del notification para el invoice add:{"uuid":"26b62302-3e6f-4f5e-86e9-0381b8b382c2","changeType":"insert","entity":"payment","entityId":463,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":463,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:19:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":534,"invoiceId":1329,"paymentId":463,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}}
[2024-12-26 9:19:09.814668] [debug] valor del payment data: {"id":463,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:19:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":534,"invoiceId":1329,"paymentId":463,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}
[2024-12-26 9:19:09.814737] [debug] ***Se notifica y actualiza al cliente sobre su pago***
[2024-12-26 9:19:09.814840] [debug] Activado el check de mensajes de texto: 1
Eviando comprobante de pago al cliente: 2 con número: 5214181878106
Datos traidos con payment api: [{"id":463,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:19:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":534,"invoiceId":1329,"paymentId":463,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}]
Datos client data credit amount: 0
Verificar paymentCovers
payment covers[{"id":534,"invoiceId":1329,"paymentId":463,"creditNoteId":null,"refundId":null,"amount":700}]
Datos del payment covers:
Invoice ID pagado: 1329 de esta cantidad: 700
Todos los Invoice IDs: 1329
Todas las cantidades: 700,00
Numero de factura: 001293
TOTAL de factura: 700
Se terminó de verificar payment covers
La cadena CURL que se envia es: {
"to": "5214181878106",
"from": "whatsapp",
"type": "text",
"content": {
"text": "John Doe"
},
"template_values": ["Daniel Humberto Soto Villegas Polleria", "463", "2", "26/12/2024 3:19am", "700", "Transferencia bancaria 📱🏦", "1329", "$700,00 MXN", "$700,00 MXN", "$0 está al corriente", "_________________________"],
"template_uuid": "c1396a6ad3cb4192916d4ac2bfb782a5",
"optin_contact": true
}
Response del CallBell: {"message":{"uuid":"1ff04f3156d94f0b8c55e9c3a8c54191","status":"enqueued"}}
Dentro del proceso del patch:
Datos traidos con payment api: [{"id":463,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:19:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":534,"invoiceId":1329,"paymentId":463,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}]
Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria
UUID: 74cc2bb45eb8409f92cd5dba99200d26
JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","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 Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 700","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 Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 700\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:19 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:19\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:19 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:19","Clabe Transferencia Banamex":null}}
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:19 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 700","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:19","Saldo Actual":"💲0 está al corriente","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"💲 700\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:19 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:19\",\"Clabe Transferencia Banamex\": \"\"}","URL":"🌐 https://172.16.5.120/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}}}
[2024-12-26 9:19:12.570210] [debug] HTTP request processing ended.
[2024-12-26 9:19:12.698903] [notice] Logging level set to:debug
[2024-12-26 9:19:12.699117] [debug] El valor del evento recibio en json: {"uuid":"6b06be62-8569-4b86-9faf-145807586b18","changeType":"edit","entity":"payment","entityId":"463","eventName":"payment.edit","extraData":{"entity":{"id":463,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:19:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":534,"invoiceId":1329,"paymentId":463,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":463,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:19:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":534,"invoiceId":1329,"paymentId":463,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}}}
[2024-12-26 9:19:12.815179] [debug] valor el evento recibido por webhook: payment.edit
[2024-12-26 9:19:12.815363] [debug] HTTP request processing ended.
[2024-12-26 9:24:57.725142] [notice] Logging level set to:debug
[2024-12-26 9:24:57.725330] [debug] El valor del evento recibio en json: {"uuid":"eecdef6a-fa4b-47f6-90c9-4ca087901a24","changeType":"insert","entity":"invoice","entityId":"1330","eventName":"invoice.add","extraData":{"entity":{"id":1330,"clientId":2,"number":"001294","createdDate":"2024-12-26T03:24:47-0600","dueDate":"2025-01-09T03:24:47-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1333,"type":"service","label":"PREMIUM 27\/01\/2026 \u2013 26\/02\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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 Polleria","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}}
[2024-12-26 9:24:57.845472] [debug] valor el evento recibido por webhook: invoice.add
[2024-12-26 9:24:57.845805] [debug] Adición de Factura
[2024-12-26 9:24:57.845906] [debug] datos del notification para el invoice add:{"uuid":"eecdef6a-fa4b-47f6-90c9-4ca087901a24","changeType":"insert","entity":"invoice","entityId":1330,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1330,"clientId":2,"number":"001294","createdDate":"2024-12-26T03:24:47-0600","dueDate":"2025-01-09T03:24:47-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1333,"type":"service","label":"PREMIUM 27\/01\/2026 \u2013 26\/02\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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 Polleria","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}
[2024-12-26 9:24:57.845969] [debug] Account Balance: -700
[2024-12-26 9:24:57.846038] [debug] Pago hecho con la factura: 0
[2024-12-26 9:24:57.846148] [debug] {"uuid":"eecdef6a-fa4b-47f6-90c9-4ca087901a24","changeType":"insert","entity":"invoice","entityId":1330,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1330,"clientId":2,"number":"001294","createdDate":"2024-12-26T03:24:47-0600","dueDate":"2025-01-09T03:24:47-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1333,"type":"service","label":"PREMIUM 27\/01\/2026 \u2013 26\/02\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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 Polleria","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}
[2024-12-26 9:24:57.846252] [info] Se proceso los contactos
Dentro del proceso del patch:
Datos traidos con payment api: [{"id":463,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:19:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":534,"invoiceId":1329,"paymentId":463,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}]
Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria
UUID: 74cc2bb45eb8409f92cd5dba99200d26
JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","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 Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 700","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 Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2700 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 700\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:19 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:24\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:19 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:24","Clabe Transferencia Banamex":"0021804341999569810"}}
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:19 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 700","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:24","Saldo Actual":"💲700 pendientes","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲700 pendientes\",\"Monto Ultimo Pago\": \"💲 700\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:19 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:24\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/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}}}
[2024-12-26 9:25:00.357511] [debug] HTTP request processing ended.
[2024-12-26 9:25:08.293163] [notice] Logging level set to:debug
[2024-12-26 9:25:08.293303] [debug] El valor del evento recibio en json: {"uuid":"4478a855-7bef-4b70-b1ee-36c50a3c8189","changeType":"edit","entity":"invoice","entityId":"1330","eventName":"invoice.edit","extraData":{"entity":{"id":1330,"clientId":2,"number":"001294","createdDate":"2024-12-26T03:24:47-0600","dueDate":"2025-01-09T03:24:47-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1333,"type":"service","label":"PREMIUM 27\/01\/2026 \u2013 26\/02\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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":535,"invoiceId":1330,"paymentId":464,"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":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","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":1330,"clientId":2,"number":"001294","createdDate":"2024-12-26T03:24:47-0600","dueDate":"2025-01-09T03:24:47-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1333,"type":"service","label":"PREMIUM 27\/01\/2026 \u2013 26\/02\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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":535,"invoiceId":1330,"paymentId":464,"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":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","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}}}
[2024-12-26 9:25:08.457889] [debug] valor el evento recibido por webhook: invoice.edit
[2024-12-26 9:25:08.458089] [debug] Edición de Factura
[2024-12-26 9:25:08.458148] [debug] {"uuid":"4478a855-7bef-4b70-b1ee-36c50a3c8189","changeType":"edit","entity":"invoice","entityId":1330,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1330,"clientId":2,"number":"001294","createdDate":"2024-12-26T03:24:47-0600","dueDate":"2025-01-09T03:24:47-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1333,"type":"service","label":"PREMIUM 27\/01\/2026 \u2013 26\/02\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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":535,"invoiceId":1330,"paymentId":464,"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":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","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}
[2024-12-26 9:25:08.458209] [info] Se proceso los contactos
Dentro del proceso del patch:
Datos traidos con payment api: [{"id":464,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":535,"invoiceId":1330,"paymentId":464,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}]
Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria
UUID: 74cc2bb45eb8409f92cd5dba99200d26
JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","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 Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 700","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 Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 700\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:25 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:25\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:25 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:25","Clabe Transferencia Banamex":"0021804341999569810"}}
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:25 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 700","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:25","Saldo Actual":"💲0 está al corriente","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"💲 700\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:25 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:25\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/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}}}
[2024-12-26 9:25:10.756251] [debug] HTTP request processing ended.
[2024-12-26 9:25:10.904570] [notice] Logging level set to:debug
[2024-12-26 9:25:10.906088] [debug] El valor del evento recibio en json: {"uuid":"11597ff2-33bd-459a-8cb6-4bc8dcfa118b","changeType":"insert","entity":"payment","entityId":"464","eventName":"payment.add","extraData":{"entity":{"id":464,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":535,"invoiceId":1330,"paymentId":464,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
[2024-12-26 9:25:11.035006] [debug] valor el evento recibido por webhook: payment.add
[2024-12-26 9:25:11.035160] [debug] datos del notification para el invoice add:{"uuid":"11597ff2-33bd-459a-8cb6-4bc8dcfa118b","changeType":"insert","entity":"payment","entityId":464,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":464,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":535,"invoiceId":1330,"paymentId":464,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}}
[2024-12-26 9:25:11.035192] [debug] valor del payment data: {"id":464,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":535,"invoiceId":1330,"paymentId":464,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}
[2024-12-26 9:25:11.035219] [debug] ***Se notifica y actualiza al cliente sobre su pago***
[2024-12-26 9:25:11.035269] [debug] Activado el check de mensajes de texto: 1
Eviando comprobante de pago al cliente: 2 con número: 5214181878106
Datos traidos con payment api: [{"id":464,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":535,"invoiceId":1330,"paymentId":464,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}]
Datos client data credit amount: 0
Verificar paymentCovers
payment covers[{"id":535,"invoiceId":1330,"paymentId":464,"creditNoteId":null,"refundId":null,"amount":700}]
Datos del payment covers:
Invoice ID pagado: 1330 de esta cantidad: 700
Todos los Invoice IDs: 1330
Todas las cantidades: 700,00
Numero de factura: 001294
TOTAL de factura: 700
Se terminó de verificar payment covers
La cadena CURL que se envia es: {
"to": "5214181878106",
"from": "whatsapp",
"type": "text",
"content": {
"text": "John Doe"
},
"template_values": ["Daniel Humberto Soto Villegas Polleria", "464", "2", "26/12/2024 3:25am", "$700,00 MXN", "Transferencia bancaria 📱🏦", "1330", "$700,00 MXN", "$700,00 MXN", "$0 está al corriente", "_________________________"],
"template_uuid": "c1396a6ad3cb4192916d4ac2bfb782a5",
"optin_contact": true
}
Response del CallBell: {"message":{"uuid":"4192abd70d084dc7a5eed3301f803151","status":"enqueued"}}
Dentro del proceso del patch:
Datos traidos con payment api: [{"id":464,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":535,"invoiceId":1330,"paymentId":464,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}]
Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria
UUID: 74cc2bb45eb8409f92cd5dba99200d26
JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","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 Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 700","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 Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 700\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:25 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:25\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:25 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:25","Clabe Transferencia Banamex":null}}
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:25 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 700","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:25","Saldo Actual":"💲0 está al corriente","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"💲 700\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:25 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:25\",\"Clabe Transferencia Banamex\": \"\"}","URL":"🌐 https://172.16.5.120/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}}}
[2024-12-26 9:25:12.713030] [debug] HTTP request processing ended.
[2024-12-26 9:25:12.834311] [notice] Logging level set to:debug
[2024-12-26 9:25:12.834480] [debug] El valor del evento recibio en json: {"uuid":"51b36569-01b8-48c4-b7dc-0f7443350a48","changeType":"edit","entity":"payment","entityId":"464","eventName":"payment.edit","extraData":{"entity":{"id":464,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":535,"invoiceId":1330,"paymentId":464,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":464,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":535,"invoiceId":1330,"paymentId":464,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}}}
[2024-12-26 9:25:12.948039] [debug] valor el evento recibido por webhook: payment.edit
[2024-12-26 9:25:12.948226] [debug] HTTP request processing ended.
[2024-12-26 9:25:36.516185] [notice] Logging level set to:debug
[2024-12-26 9:25:36.516602] [debug] El valor del evento recibio en json: {"uuid":"9b49a937-e682-41fc-b601-267cf55e3b7b","changeType":"insert","entity":"invoice","entityId":"1331","eventName":"invoice.add","extraData":{"entity":{"id":1331,"clientId":2,"number":"001295","createdDate":"2024-12-26T03:25:30-0600","dueDate":"2025-01-09T03:25:30-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1334,"type":"service","label":"PREMIUM 27\/02\/2026 \u2013 26\/03\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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 Polleria","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}}
[2024-12-26 9:25:36.659631] [debug] valor el evento recibido por webhook: invoice.add
[2024-12-26 9:25:36.659953] [debug] Adición de Factura
[2024-12-26 9:25:36.660056] [debug] datos del notification para el invoice add:{"uuid":"9b49a937-e682-41fc-b601-267cf55e3b7b","changeType":"insert","entity":"invoice","entityId":1331,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1331,"clientId":2,"number":"001295","createdDate":"2024-12-26T03:25:30-0600","dueDate":"2025-01-09T03:25:30-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1334,"type":"service","label":"PREMIUM 27\/02\/2026 \u2013 26\/03\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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 Polleria","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}
[2024-12-26 9:25:36.660124] [debug] Account Balance: -700
[2024-12-26 9:25:36.660171] [debug] Pago hecho con la factura: 0
[2024-12-26 9:25:36.660247] [debug] {"uuid":"9b49a937-e682-41fc-b601-267cf55e3b7b","changeType":"insert","entity":"invoice","entityId":1331,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1331,"clientId":2,"number":"001295","createdDate":"2024-12-26T03:25:30-0600","dueDate":"2025-01-09T03:25:30-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1334,"type":"service","label":"PREMIUM 27\/02\/2026 \u2013 26\/03\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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 Polleria","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}
[2024-12-26 9:25:36.660345] [info] Se proceso los contactos
Dentro del proceso del patch:
Datos traidos con payment api: [{"id":464,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":535,"invoiceId":1330,"paymentId":464,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}]
Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria
UUID: 74cc2bb45eb8409f92cd5dba99200d26
JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","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 Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 700","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 Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2700 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 700\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:25 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:25\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:25 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:25","Clabe Transferencia Banamex":"0021804341999569810"}}
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:25 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 700","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:25","Saldo Actual":"💲700 pendientes","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲700 pendientes\",\"Monto Ultimo Pago\": \"💲 700\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:25 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:25\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/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}}}
[2024-12-26 9:25:39.035387] [debug] HTTP request processing ended.
[2024-12-26 9:25:59.252665] [notice] Logging level set to:debug
[2024-12-26 9:25:59.253062] [debug] El valor del evento recibio en json: {"uuid":"e30da04d-29eb-40c7-b663-463366fcf933","changeType":"edit","entity":"invoice","entityId":"1331","eventName":"invoice.edit","extraData":{"entity":{"id":1331,"clientId":2,"number":"001295","createdDate":"2024-12-26T03:25:30-0600","dueDate":"2025-01-09T03:25:30-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1334,"type":"service","label":"PREMIUM 27\/02\/2026 \u2013 26\/03\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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":536,"invoiceId":1331,"paymentId":465,"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":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","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":1331,"clientId":2,"number":"001295","createdDate":"2024-12-26T03:25:30-0600","dueDate":"2025-01-09T03:25:30-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1334,"type":"service","label":"PREMIUM 27\/02\/2026 \u2013 26\/03\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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":536,"invoiceId":1331,"paymentId":465,"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":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","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}}}
[2024-12-26 9:25:59.511033] [debug] valor el evento recibido por webhook: invoice.edit
[2024-12-26 9:25:59.511364] [debug] Edición de Factura
[2024-12-26 9:25:59.511493] [debug] {"uuid":"e30da04d-29eb-40c7-b663-463366fcf933","changeType":"edit","entity":"invoice","entityId":1331,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":200,"accountCredit":200,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1331,"clientId":2,"number":"001295","createdDate":"2024-12-26T03:25:30-0600","dueDate":"2025-01-09T03:25:30-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1334,"type":"service","label":"PREMIUM 27\/02\/2026 \u2013 26\/03\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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":536,"invoiceId":1331,"paymentId":465,"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":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","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}
[2024-12-26 9:25:59.511615] [info] Se proceso los contactos
Dentro del proceso del patch:
Datos traidos con payment api: [{"id":465,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:49-0600","amount":900,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":536,"invoiceId":1331,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":200,"userId":1015,"attributes":[]}]
Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria
UUID: 74cc2bb45eb8409f92cd5dba99200d26
JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","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 Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2200 a favor","Monto Ultimo Pago":"\ud83d\udcb2 900","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 Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2200 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 900\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:25 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:26\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:25 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:26","Clabe Transferencia Banamex":"0021804341999569810"}}
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:25 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 900","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:26","Saldo Actual":"💲200 a favor","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲200 a favor\",\"Monto Ultimo Pago\": \"💲 900\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:25 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:26\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/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}}}
[2024-12-26 9:26:02.393014] [debug] HTTP request processing ended.
[2024-12-26 9:26:02.534684] [notice] Logging level set to:debug
[2024-12-26 9:26:02.534847] [debug] El valor del evento recibio en json: {"uuid":"e7d6cb0f-7448-4f63-a4d2-db34d2653c84","changeType":"insert","entity":"payment","entityId":"465","eventName":"payment.add","extraData":{"entity":{"id":465,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:49-0600","amount":900,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":536,"invoiceId":1331,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":200,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
[2024-12-26 9:26:02.701246] [debug] valor el evento recibido por webhook: payment.add
[2024-12-26 9:26:02.701545] [debug] datos del notification para el invoice add:{"uuid":"e7d6cb0f-7448-4f63-a4d2-db34d2653c84","changeType":"insert","entity":"payment","entityId":465,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":200,"accountCredit":200,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":465,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:49-0600","amount":900,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":536,"invoiceId":1331,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":200,"userId":1015,"attributes":[]}}
[2024-12-26 9:26:02.703102] [debug] valor del payment data: {"id":465,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:49-0600","amount":900,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":536,"invoiceId":1331,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":200,"userId":1015,"attributes":[]}
[2024-12-26 9:26:02.703213] [debug] ***Se notifica y actualiza al cliente sobre su pago***
[2024-12-26 9:26:02.703342] [debug] Activado el check de mensajes de texto: 1
Eviando comprobante de pago al cliente: 2 con número: 5214181878106
Datos traidos con payment api: [{"id":465,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:49-0600","amount":900,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":536,"invoiceId":1331,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":200,"userId":1015,"attributes":[]}]
Datos client data credit amount: 200
La cantidad que sobra de $200,00 MXN se ha convertido a crédito
La cadena CURL que se envia es: {
"to": "5214181878106",
"from": "whatsapp",
"type": "text",
"content": {
"text": "John Doe"
},
"template_values": ["Daniel Humberto Soto Villegas Polleria", "465", "2", "26/12/2024 3:26am", "$900,00 MXN", "Transferencia bancaria 📱🏦", "$200 a favor", "La cantidad que sobra de $200,00 MXN se ha convertido a crédito"],
"template_uuid": "4ac9dc060cf746b6ad7f2e8acad355e0",
"optin_contact": true
}
Response del CallBell: {"message":{"uuid":"c3f0ed5b79854fb190bc9c5f75a03175","status":"enqueued"}}
Dentro del proceso del patch:
Datos traidos con payment api: [{"id":465,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:49-0600","amount":900,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":536,"invoiceId":1331,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":200,"userId":1015,"attributes":[]}]
Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria
UUID: 74cc2bb45eb8409f92cd5dba99200d26
JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","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 Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2200 a favor","Monto Ultimo Pago":"\ud83d\udcb2 900","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 Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2200 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 900\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:25 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:26\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:25 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:26","Clabe Transferencia Banamex":null}}
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:25 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 900","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:26","Saldo Actual":"💲200 a favor","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲200 a favor\",\"Monto Ultimo Pago\": \"💲 900\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:25 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:26\",\"Clabe Transferencia Banamex\": \"\"}","URL":"🌐 https://172.16.5.120/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}}}
[2024-12-26 9:26:05.110667] [debug] HTTP request processing ended.
[2024-12-26 9:26:05.227163] [notice] Logging level set to:debug
[2024-12-26 9:26:05.227344] [debug] El valor del evento recibio en json: {"uuid":"7a0a6980-3206-4881-b915-3f64bcb60a37","changeType":"edit","entity":"payment","entityId":"465","eventName":"payment.edit","extraData":{"entity":{"id":465,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:49-0600","amount":900,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":536,"invoiceId":1331,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":200,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":465,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:49-0600","amount":900,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":536,"invoiceId":1331,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":200,"userId":1015,"attributes":[]}}}
[2024-12-26 9:26:05.357670] [debug] valor el evento recibido por webhook: payment.edit
[2024-12-26 9:26:05.358052] [debug] HTTP request processing ended.
[2024-12-26 9:37:04.269673] [notice] Logging level set to:debug
[2024-12-26 9:37:04.270333] [debug] El valor del evento recibio en json: {"uuid":"78236e9a-8859-45c9-8c04-a07708c13f18","changeType":"insert","entity":"invoice","entityId":"1332","eventName":"invoice.add","extraData":{"entity":{"id":1332,"clientId":2,"number":"001296","createdDate":"2024-12-26T03:36:32-0600","dueDate":"2025-01-09T03:36:32-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1335,"type":"other","label":"assas","price":200,"quantity":1,"total":200,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":null,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":200,"discount":null,"discountLabel":"Descuento","taxes":[],"total":200,"amountPaid":200,"totalUntaxed":200,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":537,"invoiceId":1332,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":200}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","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}}
[2024-12-26 9:37:04.406888] [debug] valor el evento recibido por webhook: invoice.add
[2024-12-26 9:37:04.407207] [debug] Adición de Factura
[2024-12-26 9:37:04.407316] [debug] datos del notification para el invoice add:{"uuid":"78236e9a-8859-45c9-8c04-a07708c13f18","changeType":"insert","entity":"invoice","entityId":1332,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1332,"clientId":2,"number":"001296","createdDate":"2024-12-26T03:36:32-0600","dueDate":"2025-01-09T03:36:32-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1335,"type":"other","label":"assas","price":200,"quantity":1,"total":200,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":null,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":200,"discount":null,"discountLabel":"Descuento","taxes":[],"total":200,"amountPaid":200,"totalUntaxed":200,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":537,"invoiceId":1332,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":200}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","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}
[2024-12-26 9:37:04.407387] [debug] Account Balance: 0
[2024-12-26 9:37:04.407438] [debug] Pago hecho con la factura: 200
[2024-12-26 9:37:04.407519] [debug] {"uuid":"78236e9a-8859-45c9-8c04-a07708c13f18","changeType":"insert","entity":"invoice","entityId":1332,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1332,"clientId":2,"number":"001296","createdDate":"2024-12-26T03:36:32-0600","dueDate":"2025-01-09T03:36:32-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1335,"type":"other","label":"assas","price":200,"quantity":1,"total":200,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":null,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":200,"discount":null,"discountLabel":"Descuento","taxes":[],"total":200,"amountPaid":200,"totalUntaxed":200,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":537,"invoiceId":1332,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":200}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","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}
[2024-12-26 9:37:04.407618] [info] Se proceso los contactos
Dentro del proceso del patch:
Datos traidos con payment api: [{"id":465,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:49-0600","amount":900,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":536,"invoiceId":1331,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":700},{"id":537,"invoiceId":1332,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":200}],"creditAmount":0,"userId":1015,"attributes":[]}]
Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria
UUID: 74cc2bb45eb8409f92cd5dba99200d26
JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","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 Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 900","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 Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 900\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:25 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:37\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:25 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:37","Clabe Transferencia Banamex":"0021804341999569810"}}
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:25 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 900","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:37","Saldo Actual":"💲0 está al corriente","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"💲 900\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:25 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:37\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/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}}}
[2024-12-26 9:37:07.008533] [debug] HTTP request processing ended.
[2024-12-26 9:37:42.223177] [notice] Logging level set to:debug
[2024-12-26 9:37:42.223587] [debug] El valor del evento recibio en json: {"uuid":"d672231f-0661-4995-8c01-98ad1e4599e8","changeType":"insert","entity":"invoice","entityId":"1333","eventName":"invoice.add","extraData":{"entity":{"id":1333,"clientId":2,"number":"001297","createdDate":"2024-12-26T03:37:08-0600","dueDate":"2025-01-09T03:37:08-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1336,"type":"service","label":"PREMIUM 27\/03\/2026 \u2013 26\/04\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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 Polleria","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}}
[2024-12-26 9:37:42.373249] [debug] valor el evento recibido por webhook: invoice.add
[2024-12-26 9:37:42.373658] [debug] Adición de Factura
[2024-12-26 9:37:42.373802] [debug] datos del notification para el invoice add:{"uuid":"d672231f-0661-4995-8c01-98ad1e4599e8","changeType":"insert","entity":"invoice","entityId":1333,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1333,"clientId":2,"number":"001297","createdDate":"2024-12-26T03:37:08-0600","dueDate":"2025-01-09T03:37:08-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1336,"type":"service","label":"PREMIUM 27\/03\/2026 \u2013 26\/04\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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 Polleria","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}
[2024-12-26 9:37:42.373902] [debug] Account Balance: -700
[2024-12-26 9:37:42.373999] [debug] Pago hecho con la factura: 0
[2024-12-26 9:37:42.374111] [debug] {"uuid":"d672231f-0661-4995-8c01-98ad1e4599e8","changeType":"insert","entity":"invoice","entityId":1333,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1333,"clientId":2,"number":"001297","createdDate":"2024-12-26T03:37:08-0600","dueDate":"2025-01-09T03:37:08-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1336,"type":"service","label":"PREMIUM 27\/03\/2026 \u2013 26\/04\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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 Polleria","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}
[2024-12-26 9:37:42.374243] [info] Se proceso los contactos
Dentro del proceso del patch:
Datos traidos con payment api: [{"id":465,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:49-0600","amount":900,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":536,"invoiceId":1331,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":700},{"id":537,"invoiceId":1332,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":200}],"creditAmount":0,"userId":1015,"attributes":[]}]
Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria
UUID: 74cc2bb45eb8409f92cd5dba99200d26
JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","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 Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 900","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 Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2700 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 900\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:25 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:37\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:25 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:37","Clabe Transferencia Banamex":"0021804341999569810"}}
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:25 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 900","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:37","Saldo Actual":"💲700 pendientes","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲700 pendientes\",\"Monto Ultimo Pago\": \"💲 900\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:25 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:37\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/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}}}
[2024-12-26 9:37:44.685573] [debug] HTTP request processing ended.
[2024-12-26 9:38:10.291383] [notice] Logging level set to:debug
[2024-12-26 9:38:10.291630] [debug] El valor del evento recibio en json: {"uuid":"af9a1abe-c98e-40c4-86d9-fd4766de1694","changeType":"edit","entity":"invoice","entityId":"1333","eventName":"invoice.edit","extraData":{"entity":{"id":1333,"clientId":2,"number":"001297","createdDate":"2024-12-26T03:37:08-0600","dueDate":"2025-01-09T03:37:08-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1336,"type":"service","label":"PREMIUM 27\/03\/2026 \u2013 26\/04\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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":538,"invoiceId":1333,"paymentId":466,"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":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","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":1333,"clientId":2,"number":"001297","createdDate":"2024-12-26T03:37:08-0600","dueDate":"2025-01-09T03:37:08-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1336,"type":"service","label":"PREMIUM 27\/03\/2026 \u2013 26\/04\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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":538,"invoiceId":1333,"paymentId":466,"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":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","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}}}
[2024-12-26 9:38:10.476751] [debug] valor el evento recibido por webhook: invoice.edit
[2024-12-26 9:38:10.477164] [debug] Edición de Factura
[2024-12-26 9:38:10.477314] [debug] {"uuid":"af9a1abe-c98e-40c4-86d9-fd4766de1694","changeType":"edit","entity":"invoice","entityId":1333,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":300,"accountCredit":300,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1333,"clientId":2,"number":"001297","createdDate":"2024-12-26T03:37:08-0600","dueDate":"2025-01-09T03:37:08-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1336,"type":"service","label":"PREMIUM 27\/03\/2026 \u2013 26\/04\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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":538,"invoiceId":1333,"paymentId":466,"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":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","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}
[2024-12-26 9:38:10.477453] [info] Se proceso los contactos
Dentro del proceso del patch:
Datos traidos con payment api: [{"id":466,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:38:04-0600","amount":1000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":538,"invoiceId":1333,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":300,"userId":1015,"attributes":[]}]
Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria
UUID: 74cc2bb45eb8409f92cd5dba99200d26
JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","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 Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2300 a favor","Monto Ultimo Pago":"\ud83d\udcb2 1000","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 Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2300 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 1000\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:38 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:38\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:38 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:38","Clabe Transferencia Banamex":"0021804341999569810"}}
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:38 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 1000","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:38","Saldo Actual":"💲300 a favor","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲300 a favor\",\"Monto Ultimo Pago\": \"💲 1000\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:38 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:38\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/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}}}
[2024-12-26 9:38:12.814035] [debug] HTTP request processing ended.
[2024-12-26 9:38:12.949309] [notice] Logging level set to:debug
[2024-12-26 9:38:12.949412] [debug] El valor del evento recibio en json: {"uuid":"c0cd3be2-883e-4c58-891c-11f76fef4b4b","changeType":"insert","entity":"payment","entityId":"466","eventName":"payment.add","extraData":{"entity":{"id":466,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:38:04-0600","amount":1000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":538,"invoiceId":1333,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":300,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
[2024-12-26 9:38:13.077162] [debug] valor el evento recibido por webhook: payment.add
[2024-12-26 9:38:13.077308] [debug] datos del notification para el invoice add:{"uuid":"c0cd3be2-883e-4c58-891c-11f76fef4b4b","changeType":"insert","entity":"payment","entityId":466,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":300,"accountCredit":300,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":466,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:38:04-0600","amount":1000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":538,"invoiceId":1333,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":300,"userId":1015,"attributes":[]}}
[2024-12-26 9:38:13.077344] [debug] valor del payment data: {"id":466,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:38:04-0600","amount":1000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":538,"invoiceId":1333,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":300,"userId":1015,"attributes":[]}
[2024-12-26 9:38:13.077368] [debug] ***Se notifica y actualiza al cliente sobre su pago***
[2024-12-26 9:38:13.077418] [debug] Activado el check de mensajes de texto: 1
Eviando comprobante de pago al cliente: 2 con número: 5214181878106
Datos traidos con payment api: [{"id":466,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:38:04-0600","amount":1000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":538,"invoiceId":1333,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":300,"userId":1015,"attributes":[]}]
Datos client data credit amount: 300
La cantidad que sobra de $300,00 MXN se ha convertido a crédito
La cadena CURL que se envia es: {
"to": "5214181878106",
"from": "whatsapp",
"type": "text",
"content": {
"text": "John Doe"
},
"template_values": ["Daniel Humberto Soto Villegas Polleria", "466", "2", "26/12/2024 3:38am", "$1.000,00 MXN", "Transferencia bancaria 📱🏦", "$300 a favor", "La cantidad que sobra de $300,00 MXN se ha convertido a crédito"],
"template_uuid": "4ac9dc060cf746b6ad7f2e8acad355e0",
"optin_contact": true
}
Response del CallBell: {"message":{"uuid":"1ff9fef3afb1414290cadd96b16a9479","status":"enqueued"}}
Dentro del proceso del patch:
Datos traidos con payment api: [{"id":466,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:38:04-0600","amount":1000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":538,"invoiceId":1333,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":300,"userId":1015,"attributes":[]}]
Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria
UUID: 74cc2bb45eb8409f92cd5dba99200d26
JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","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 Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2300 a favor","Monto Ultimo Pago":"\ud83d\udcb2 1000","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 Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2300 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 1000\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:38 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:38\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:38 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:38","Clabe Transferencia Banamex":null}}
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:38 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 1000","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:38","Saldo Actual":"💲300 a favor","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲300 a favor\",\"Monto Ultimo Pago\": \"💲 1000\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:38 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:38\",\"Clabe Transferencia Banamex\": \"\"}","URL":"🌐 https://172.16.5.120/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}}}
[2024-12-26 9:38:15.795315] [debug] HTTP request processing ended.
[2024-12-26 9:38:15.922100] [notice] Logging level set to:debug
[2024-12-26 9:38:15.922465] [debug] El valor del evento recibio en json: {"uuid":"331ed5aa-6606-4aa7-8f07-14b1c2961aa4","changeType":"edit","entity":"payment","entityId":"466","eventName":"payment.edit","extraData":{"entity":{"id":466,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:38:04-0600","amount":1000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":538,"invoiceId":1333,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":300,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":466,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:38:04-0600","amount":1000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":538,"invoiceId":1333,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":300,"userId":1015,"attributes":[]}}}
[2024-12-26 9:38:16.045244] [debug] valor el evento recibido por webhook: payment.edit
[2024-12-26 9:38:16.045556] [debug] HTTP request processing ended.
[2024-12-26 9:48:11.705929] [notice] Logging level set to:debug
[2024-12-26 9:48:11.709290] [debug] El valor del evento recibio en json: {"uuid":"61592535-fbff-4f51-be49-f4b5623a6b54","changeType":"insert","entity":"invoice","entityId":"1334","eventName":"invoice.add","extraData":{"entity":{"id":1334,"clientId":2,"number":"001298","createdDate":"2024-12-26T03:47:54-0600","dueDate":"2025-01-09T03:47:54-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1337,"type":"other","label":"nbbhjbhkjm","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":null,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":300,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":539,"invoiceId":1334,"paymentId":466,"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 Polleria","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}}
[2024-12-26 9:48:11.860687] [debug] valor el evento recibido por webhook: invoice.add
[2024-12-26 9:48:11.861068] [debug] Adición de Factura
[2024-12-26 9:48:11.861205] [debug] datos del notification para el invoice add:{"uuid":"61592535-fbff-4f51-be49-f4b5623a6b54","changeType":"insert","entity":"invoice","entityId":1334,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1334,"clientId":2,"number":"001298","createdDate":"2024-12-26T03:47:54-0600","dueDate":"2025-01-09T03:47:54-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1337,"type":"other","label":"nbbhjbhkjm","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":null,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":300,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":539,"invoiceId":1334,"paymentId":466,"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 Polleria","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}
[2024-12-26 9:48:11.861303] [debug] Account Balance: 0
[2024-12-26 9:48:11.861382] [debug] Pago hecho con la factura: 300
[2024-12-26 9:48:11.861490] [debug] {"uuid":"61592535-fbff-4f51-be49-f4b5623a6b54","changeType":"insert","entity":"invoice","entityId":1334,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1334,"clientId":2,"number":"001298","createdDate":"2024-12-26T03:47:54-0600","dueDate":"2025-01-09T03:47:54-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1337,"type":"other","label":"nbbhjbhkjm","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":null,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":300,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":539,"invoiceId":1334,"paymentId":466,"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 Polleria","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}
[2024-12-26 9:48:11.861619] [info] Se proceso los contactos
Dentro del proceso del patch:
Datos traidos con payment api: [{"id":466,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:38:04-0600","amount":1000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":538,"invoiceId":1333,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":700},{"id":539,"invoiceId":1334,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}]
Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria
UUID: 74cc2bb45eb8409f92cd5dba99200d26
JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","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 Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 1000","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 Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 1000\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:38 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:48\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:38 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:48","Clabe Transferencia Banamex":"0021804341999569810"}}
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:38 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 1000","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:48","Saldo Actual":"💲0 está al corriente","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"💲 1000\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:38 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:48\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/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}}}
[2024-12-26 9:48:14.278933] [debug] HTTP request processing ended.
[2024-12-26 9:48:23.057898] [notice] Logging level set to:debug
[2024-12-26 9:48:23.058698] [debug] El valor del evento recibio en json: {"uuid":"6da4eff3-891b-4d58-b6c5-cfdc7291c4c3","changeType":"insert","entity":"invoice","entityId":"1335","eventName":"invoice.add","extraData":{"entity":{"id":1335,"clientId":2,"number":"001299","createdDate":"2024-12-26T03:48:17-0600","dueDate":"2025-01-09T03:48:17-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1338,"type":"service","label":"PREMIUM 27\/04\/2026 \u2013 26\/05\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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 Polleria","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}}
[2024-12-26 9:48:23.194453] [debug] valor el evento recibido por webhook: invoice.add
[2024-12-26 9:48:23.194778] [debug] Adición de Factura
[2024-12-26 9:48:23.194906] [debug] datos del notification para el invoice add:{"uuid":"6da4eff3-891b-4d58-b6c5-cfdc7291c4c3","changeType":"insert","entity":"invoice","entityId":1335,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1335,"clientId":2,"number":"001299","createdDate":"2024-12-26T03:48:17-0600","dueDate":"2025-01-09T03:48:17-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1338,"type":"service","label":"PREMIUM 27\/04\/2026 \u2013 26\/05\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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 Polleria","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}
[2024-12-26 9:48:23.195019] [debug] Account Balance: -700
[2024-12-26 9:48:23.195115] [debug] Pago hecho con la factura: 0
[2024-12-26 9:48:23.195221] [debug] {"uuid":"6da4eff3-891b-4d58-b6c5-cfdc7291c4c3","changeType":"insert","entity":"invoice","entityId":1335,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1335,"clientId":2,"number":"001299","createdDate":"2024-12-26T03:48:17-0600","dueDate":"2025-01-09T03:48:17-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1338,"type":"service","label":"PREMIUM 27\/04\/2026 \u2013 26\/05\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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 Polleria","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}
[2024-12-26 9:48:23.195349] [info] Se proceso los contactos
Dentro del proceso del patch:
Datos traidos con payment api: [{"id":466,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:38:04-0600","amount":1000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":538,"invoiceId":1333,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":700},{"id":539,"invoiceId":1334,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}]
Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria
UUID: 74cc2bb45eb8409f92cd5dba99200d26
JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","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 Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 1000","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 Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2700 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 1000\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:38 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:48\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:38 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:48","Clabe Transferencia Banamex":"0021804341999569810"}}
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:38 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 1000","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:48","Saldo Actual":"💲700 pendientes","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲700 pendientes\",\"Monto Ultimo Pago\": \"💲 1000\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:38 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:48\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/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}}}
[2024-12-26 9:48:25.321866] [debug] HTTP request processing ended.
[2024-12-26 9:48:38.557406] [notice] Logging level set to:debug
[2024-12-26 9:48:38.557957] [debug] El valor del evento recibio en json: {"uuid":"331c217d-4212-49ae-bebe-0539e0687871","changeType":"edit","entity":"invoice","entityId":"1335","eventName":"invoice.edit","extraData":{"entity":{"id":1335,"clientId":2,"number":"001299","createdDate":"2024-12-26T03:48:17-0600","dueDate":"2025-01-09T03:48:17-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1338,"type":"service","label":"PREMIUM 27\/04\/2026 \u2013 26\/05\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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":540,"invoiceId":1335,"paymentId":467,"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":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","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":1335,"clientId":2,"number":"001299","createdDate":"2024-12-26T03:48:17-0600","dueDate":"2025-01-09T03:48:17-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1338,"type":"service","label":"PREMIUM 27\/04\/2026 \u2013 26\/05\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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":540,"invoiceId":1335,"paymentId":467,"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":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","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}}}
[2024-12-26 9:48:38.733468] [debug] valor el evento recibido por webhook: invoice.edit
[2024-12-26 9:48:38.733875] [debug] Edición de Factura
[2024-12-26 9:48:38.734137] [debug] {"uuid":"331c217d-4212-49ae-bebe-0539e0687871","changeType":"edit","entity":"invoice","entityId":1335,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":150,"accountCredit":150,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1335,"clientId":2,"number":"001299","createdDate":"2024-12-26T03:48:17-0600","dueDate":"2025-01-09T03:48:17-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1338,"type":"service","label":"PREMIUM 27\/04\/2026 \u2013 26\/05\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"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":540,"invoiceId":1335,"paymentId":467,"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":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","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}
[2024-12-26 9:48:38.734287] [info] Se proceso los contactos
Dentro del proceso del patch:
Datos traidos con payment api: [{"id":467,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:48:29-0600","amount":850,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":540,"invoiceId":1335,"paymentId":467,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":150,"userId":1015,"attributes":[]}]
Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria
UUID: 74cc2bb45eb8409f92cd5dba99200d26
JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","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 Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2150 a favor","Monto Ultimo Pago":"\ud83d\udcb2 850","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 Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2150 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 850\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:48 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:48\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:48 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:48","Clabe Transferencia Banamex":"0021804341999569810"}}
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:48 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 850","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:48","Saldo Actual":"💲150 a favor","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲150 a favor\",\"Monto Ultimo Pago\": \"💲 850\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:48 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:48\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/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}}}
[2024-12-26 9:48:41.042042] [debug] HTTP request processing ended.
[2024-12-26 9:48:41.163225] [notice] Logging level set to:debug
[2024-12-26 9:48:41.163444] [debug] El valor del evento recibio en json: {"uuid":"9a658d47-cea2-46bb-8866-0396ba359dcd","changeType":"insert","entity":"payment","entityId":"467","eventName":"payment.add","extraData":{"entity":{"id":467,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:48:29-0600","amount":850,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":540,"invoiceId":1335,"paymentId":467,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":150,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
[2024-12-26 9:48:41.275841] [debug] valor el evento recibido por webhook: payment.add
[2024-12-26 9:48:41.276175] [debug] datos del notification para el invoice add:{"uuid":"9a658d47-cea2-46bb-8866-0396ba359dcd","changeType":"insert","entity":"payment","entityId":467,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":150,"accountCredit":150,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":467,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:48:29-0600","amount":850,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":540,"invoiceId":1335,"paymentId":467,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":150,"userId":1015,"attributes":[]}}
[2024-12-26 9:48:41.276279] [debug] valor del payment data: {"id":467,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:48:29-0600","amount":850,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":540,"invoiceId":1335,"paymentId":467,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":150,"userId":1015,"attributes":[]}
[2024-12-26 9:48:41.276377] [debug] ***Se notifica y actualiza al cliente sobre su pago***
[2024-12-26 9:48:41.276506] [debug] Activado el check de mensajes de texto: 1
Eviando comprobante de pago al cliente: 2 con número: 5214181878106
Datos traidos con payment api: [{"id":467,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:48:29-0600","amount":850,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":540,"invoiceId":1335,"paymentId":467,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":150,"userId":1015,"attributes":[]}]
Datos client data credit amount: 150
La cantidad que sobra de $150,00 MXN se ha convertido a crédito
Verificar paymentCovers
payment covers[{"id":540,"invoiceId":1335,"paymentId":467,"creditNoteId":null,"refundId":null,"amount":700}]
Datos del payment covers:
Invoice ID pagado: 1335 de esta cantidad: 700
Todos los Invoice IDs: 1335
Todas las cantidades: 700,00
Numero de factura: 001299
TOTAL de factura: 700
Se terminó de verificar payment covers
La cadena CURL que se envia es: {
"to": "5214181878106",
"from": "whatsapp",
"type": "text",
"content": {
"text": "John Doe"
},
"template_values": ["Daniel Humberto Soto Villegas Polleria", "467", "2", "26/12/2024 3:48am", "$850,00 MXN", "Transferencia bancaria 📱🏦", "1335", "$700,00 MXN", "$700,00 MXN", "$150 a favor", "La cantidad que sobra de $150,00 MXN se ha convertido a crédito"],
"template_uuid": "c1396a6ad3cb4192916d4ac2bfb782a5",
"optin_contact": true
}
Response del CallBell: {"message":{"uuid":"0256b9403bae48ee93708376873ba8eb","status":"enqueued"}}
Dentro del proceso del patch:
Datos traidos con payment api: [{"id":467,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:48:29-0600","amount":850,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":540,"invoiceId":1335,"paymentId":467,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":150,"userId":1015,"attributes":[]}]
Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria
UUID: 74cc2bb45eb8409f92cd5dba99200d26
JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","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 Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2150 a favor","Monto Ultimo Pago":"\ud83d\udcb2 850","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 Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2150 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 850\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:48 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:48\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:48 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:48","Clabe Transferencia Banamex":null}}
Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:48 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 850","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:48","Saldo Actual":"💲150 a favor","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲150 a favor\",\"Monto Ultimo Pago\": \"💲 850\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:48 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:48\",\"Clabe Transferencia Banamex\": \"\"}","URL":"🌐 https://172.16.5.120/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}}}
[2024-12-26 9:48:43.967506] [debug] HTTP request processing ended.
[2024-12-26 9:48:44.094408] [notice] Logging level set to:debug
[2024-12-26 9:48:44.094533] [debug] El valor del evento recibio en json: {"uuid":"32ec19a2-9732-4d27-bccc-dbe750b225bc","changeType":"edit","entity":"payment","entityId":"467","eventName":"payment.edit","extraData":{"entity":{"id":467,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:48:29-0600","amount":850,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":540,"invoiceId":1335,"paymentId":467,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":150,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":467,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:48:29-0600","amount":850,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":540,"invoiceId":1335,"paymentId":467,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":150,"userId":1015,"attributes":[]}}}
[2024-12-26 9:48:44.211895] [debug] valor el evento recibido por webhook: payment.edit
[2024-12-26 9:48:44.212094] [debug] HTTP request processing ended.
[2024-12-26 16:00:04.468375] [notice] Logging level set to:debug
[2024-12-26 16:00:04.468533] [debug] El valor del evento recibio en json: {"uuid":"facf8c67-9548-44c7-9628-71775a3925d5","changeType":"insert","entity":"invoice","entityId":"1336","eventName":"invoice.add_draft","extraData":{"entity":{"id":1336,"clientId":1,"number":"001300","createdDate":"2024-12-26T10:00:01-0600","dueDate":"2025-01-09T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-24T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1339,"type":"service","label":"plan300 25\/11\/2024 \u2013 24\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":103,"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":541,"invoiceId":1336,"paymentId":386,"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":"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}}
[2024-12-26 16:00:04.694118] [debug] valor el evento recibido por webhook: invoice.add_draft
[2024-12-26 16:00:04.694338] [debug] HTTP request processing ended.
[2024-12-26 16:00:04.850878] [notice] Logging level set to:debug
[2024-12-26 16:00:04.850972] [debug] El valor del evento recibio en json: {"uuid":"d5b4f97e-fd56-4d23-baf3-0e274b2811d7","changeType":"draft_approved","entity":"invoice","entityId":"1336","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1336,"clientId":1,"number":"001300","createdDate":"2024-12-26T10:00:01-0600","dueDate":"2025-01-09T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-24T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1339,"type":"service","label":"plan300 25\/11\/2024 \u2013 24\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":103,"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":541,"invoiceId":1336,"paymentId":386,"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":"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}}
[2024-12-26 16:00:05.055501] [debug] valor el evento recibido por webhook: invoice.draft_approved
[2024-12-26 16:00:05.055640] [debug] HTTP request processing ended.
[2024-12-27 16:00:04.130809] [notice] Logging level set to:debug
[2024-12-27 16:00:04.130933] [debug] El valor del evento recibio en json: {"uuid":"f1ace5a5-1c66-4025-8236-8a466d7a6bc4","changeType":"insert","entity":"invoice","entityId":"1337","eventName":"invoice.add_draft","extraData":{"entity":{"id":1337,"clientId":3,"number":"001301","createdDate":"2024-12-27T10:00:01-0600","dueDate":"2025-01-10T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1340,"type":"service","label":"plan300 27\/11\/2024 \u2013 26\/12\/2024","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":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}}
[2024-12-27 16:00:04.312634] [debug] valor el evento recibido por webhook: invoice.add_draft
[2024-12-27 16:00:04.313072] [debug] HTTP request processing ended.
[2024-12-27 16:00:04.521655] [notice] Logging level set to:debug
[2024-12-27 16:00:04.521752] [debug] El valor del evento recibio en json: {"uuid":"2cf7a22e-3ba9-478d-bc3b-a470e5b11c7f","changeType":"draft_approved","entity":"invoice","entityId":"1337","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1337,"clientId":3,"number":"001301","createdDate":"2024-12-27T10:00:01-0600","dueDate":"2025-01-10T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1340,"type":"service","label":"plan300 27\/11\/2024 \u2013 26\/12\/2024","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":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}}
[2024-12-27 16:00:04.704426] [debug] valor el evento recibido por webhook: invoice.draft_approved
[2024-12-27 16:00:04.704547] [debug] HTTP request processing ended.
[2024-12-27 16:00:05.719724] [notice] Logging level set to:debug
[2024-12-27 16:00:05.719825] [debug] El valor del evento recibio en json: {"uuid":"c8109782-6e9c-4bce-8680-07df6dfeeafc","changeType":"insert","entity":"invoice","entityId":"1338","eventName":"invoice.add_draft","extraData":{"entity":{"id":1338,"clientId":4,"number":"001302","createdDate":"2024-12-27T10:00:01-0600","dueDate":"2025-01-10T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1341,"type":"service","label":"plan300 27\/11\/2024 \u2013 26\/12\/2024","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":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}}
[2024-12-27 16:00:05.872695] [debug] valor el evento recibido por webhook: invoice.add_draft
[2024-12-27 16:00:05.872821] [debug] HTTP request processing ended.
[2024-12-27 16:00:05.982315] [notice] Logging level set to:debug
[2024-12-27 16:00:05.982410] [debug] El valor del evento recibio en json: {"uuid":"df049fbb-86db-4e5d-b4b4-ed12e8753eb7","changeType":"draft_approved","entity":"invoice","entityId":"1338","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1338,"clientId":4,"number":"001302","createdDate":"2024-12-27T10:00:01-0600","dueDate":"2025-01-10T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1341,"type":"service","label":"plan300 27\/11\/2024 \u2013 26\/12\/2024","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":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}}
[2024-12-27 16:00:06.178169] [debug] valor el evento recibido por webhook: invoice.draft_approved
[2024-12-27 16:00:06.178296] [debug] HTTP request processing ended.
[2024-12-27 17:58:47.127851] [notice] Logging level set to:debug
[2024-12-27 17:58:47.127942] [warning] no input
[2024-12-27 17:58:47.127954] [debug] HTTP request processing ended.
[2024-12-27 17:58:49.932408] [notice] Logging level set to:debug
[2024-12-27 17:58:49.932475] [warning] no input
[2024-12-27 17:58:49.932488] [debug] HTTP request processing ended.
[2024-12-27 18:28:25.185002] [notice] Logging level set to:debug
[2024-12-27 18:28:25.185107] [debug] El valor del evento recibio en json: {"uuid":"2810bcf1-3995-466b-b4db-00514bde778a","changeType":"insert","entity":"payment","entityId":"468","eventName":"payment.add","extraData":{"entity":{"id":468,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-27T12:28:11-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":150,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
[2024-12-27 18:28:25.310632] [debug] valor el evento recibido por webhook: payment.add
[2024-12-27 18:28:25.310965] [debug] datos del notification para el invoice add:{"uuid":"2810bcf1-3995-466b-b4db-00514bde778a","changeType":"insert","entity":"payment","entityId":468,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":300,"accountCredit":300,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":468,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-27T12:28:11-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":150,"userId":1015,"attributes":[]}}
[2024-12-27 18:28:25.311039] [debug] valor del payment data: {"id":468,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-27T12:28:11-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":150,"userId":1015,"attributes":[]}
[2024-12-27 18:28:25.311142] [debug] ***Se notifica y actualiza al cliente sobre su pago***
Eviando comprobante de pago al cliente: 2 con número: 5214181878106
El archivo se ha descargado correctamente y se ha guardado en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png
El nombre del archivo PDF es: /home/unms/data/ucrm/ucrm/data/payment_receipts/55586a0e-46c1-47a9-adcd-1e9d61878ab9.pdf
[2024-12-27 18:28:25.875103] [notice] Logging level set to:debug
[2024-12-27 18:28:25.875202] [debug] El valor del evento recibio en json: {"uuid":"fea0782c-64af-4cdd-abd7-aa1462b67a11","changeType":"edit","entity":"payment","entityId":"468","eventName":"payment.edit","extraData":{"entity":{"id":468,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-27T12:28:11-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":150,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":468,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-27T12:28:11-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":150,"userId":1015,"attributes":[]}}}
[2024-12-27 18:28:25.986881] [debug] valor el evento recibido por webhook: payment.edit
[2024-12-27 18:28:25.987111] [debug] HTTP request processing ended.
[2024-12-27 18:37:47.909444] [notice] Logging level set to:debug
[2024-12-27 18:37:47.909854] [debug] El valor del evento recibio en json: {"uuid":"bbef15bb-b78d-4669-9884-ec3404e33e3f","changeType":"insert","entity":"payment","entityId":"469","eventName":"payment.add","extraData":{"entity":{"id":469,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-27T12:37:38-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
[2024-12-27 18:37:48.038662] [debug] valor el evento recibido por webhook: payment.add
[2024-12-27 18:37:48.039064] [debug] datos del notification para el invoice add:{"uuid":"bbef15bb-b78d-4669-9884-ec3404e33e3f","changeType":"insert","entity":"payment","entityId":469,"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":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":470,"accountCredit":470,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":469,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-27T12:37:38-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":1015,"attributes":[]}}
[2024-12-27 18:37:48.039165] [debug] valor del payment data: {"id":469,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-27T12:37:38-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":1015,"attributes":[]}
[2024-12-27 18:37:48.039227] [debug] ***Se notifica y actualiza al cliente sobre su pago***
Eviando comprobante de pago al cliente: 2 con número: 5214181878106
El archivo se ha descargado correctamente y se ha guardado en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png
El nombre del archivo PDF es: /home/unms/data/ucrm/ucrm/data/payment_receipts/ea69fafe-a27c-459a-ad05-ce448b6860ca.pdf
[2024-12-27 18:37:48.581295] [notice] Logging level set to:debug
[2024-12-27 18:37:48.581531] [debug] El valor del evento recibio en json: {"uuid":"3b9bf1be-d452-4683-94f7-c81a0b0a002a","changeType":"edit","entity":"payment","entityId":"469","eventName":"payment.edit","extraData":{"entity":{"id":469,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-27T12:37:38-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":469,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-27T12:37:38-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":1015,"attributes":[]}}}
[2024-12-27 18:37:48.692861] [debug] valor el evento recibido por webhook: payment.edit
[2024-12-27 18:37:48.693108] [debug] HTTP request processing ended.
[2024-12-28 9:58:49.961395] [notice] Logging level set to:debug
[2024-12-28 9:58:49.961540] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":2,"saldo":-300,"message":"Solicitud de referencia de oxxo"}
[2024-12-28 9:58:49.961560] [info] Evento de referencia de oxxo recibido:
[2024-12-28 9:58:49.961572] [info] Creando referencia del cliente para oxxo:
[2024-12-28 9:58:50.122697] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_PetN1dhr4rx0kX
[2024-12-28 9:58:50.122736] [info] Este cliente no tiene adeudos por lo tanto no se puede genear su referencia de oxxo.
[2024-12-28 9:58:50.123092] [debug] Este ese el reponse que se envía a CallBell: {"url": "errorsinadeudo"}
[2024-12-28 9:58:50.123138] [error] JSON error: No error
[2024-12-28 9:58:50.123152] [debug] HTTP request processing ended.