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

490 lines
87 KiB
Plaintext

[2025-01-05 20:15:39.496599] [notice] Logging level set to:debug
[2025-01-05 20:15:39.496748] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":2,"amount":125}
[2025-01-05 20:15:39.496774] [info] Evento de referencia de oxxo recibido
[2025-01-05 20:15:39.496793] [info] Referencia persnoalizada, Valor del monto: 125
[2025-01-05 20:15:39.496809] [info] Creando referencia del cliente para OXXO:
[2025-01-05 20:15:39.621918] [info] Se obtuvo el Stripe Customer ID: cus_PetN1dhr4rx0kX
[2025-01-05 20:15:39.621963] [info] Se analizó el email: dhsv.141089@gmail.com
[2025-01-05 20:16:11.120426] [notice] Logging level set to:debug
[2025-01-05 20:16:11.120856] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":2,"amount":300}
[2025-01-05 20:16:11.120996] [info] Evento de referencia de oxxo recibido
[2025-01-05 20:16:11.121088] [info] Referencia persnoalizada, Valor del monto: 300
[2025-01-05 20:16:11.121164] [info] Creando referencia del cliente para OXXO:
[2025-01-05 20:16:11.266724] [info] Se obtuvo el Stripe Customer ID: cus_PetN1dhr4rx0kX
[2025-01-05 20:16:11.266885] [info] Se analizó el email: dhsv.141089@gmail.com
[2025-01-05 20:21:28.447954] [notice] Logging level set to:debug
[2025-01-05 20:21:28.448175] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":2,"amount":300}
[2025-01-05 20:21:28.448246] [info] Evento de referencia de oxxo recibido
[2025-01-05 20:21:28.448307] [info] Referencia persnoalizada, Valor del monto: 300
[2025-01-05 20:21:28.448367] [info] Creando referencia del cliente para OXXO:
[2025-01-05 20:21:28.566519] [info] Se obtuvo el Stripe Customer ID: cus_PetN1dhr4rx0kX
[2025-01-05 20:21:28.566636] [info] Se analizó el email: dhsv.141089@gmail.com
[2025-01-05 20:21:28.566740] [info] Se extrajeron los digitos
[2025-01-05 20:21:28.566796] [info] Monto proporcionado directamente (procesado): 300
[2025-01-05 20:21:29.204588] [info] Creando payment methods del voucher
[2025-01-05 20:21:30.073240] [info] Referencia OXXO: 12345678901234657890123456789012
[2025-01-05 20:21:30.073765] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SWDRUeURsS3F3emdGTVJFRU9HNXI0dVZnMk5KRnlP0100z7RPcfxr
[2025-01-05 20:21:30.075036] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SWDRUeURsS3F3emdGTVJFRU9HNXI0dVZnMk5KRnlP0100z7RPcfxr"}
[2025-01-05 20:21:30.075304] [error] JSON error: No error
[2025-01-05 20:21:30.075462] [debug] HTTP request processing ended.
[2025-01-05 20:24:32.926237] [notice] Logging level set to:debug
[2025-01-05 20:24:32.926628] [debug] El valor del evento recibio en json: {"uuid":"cf16301b-fa22-4d3e-b29a-ccd604015ac3","changeType":"insert","entity":"payment","entityId":"501","eventName":"payment.add","extraData":{"entity":{"id":501,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-05T14:24:32-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]},"entityBeforeEdit":null}}
[2025-01-05 20:24:33.092381] [debug] valor el evento recibido por webhook: payment.add
[2025-01-05 20:24:33.092773] [debug] datos del notification para el invoice add:{"uuid":"cf16301b-fa22-4d3e-b29a-ccd604015ac3","changeType":"insert","entity":"payment","entityId":501,"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":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":6315,"accountCredit":6315,"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":501,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-05T14:24:32-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}}
[2025-01-05 20:24:33.092864] [debug] valor del payment data: {"id":501,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-05T14:24:32-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}
[2025-01-05 20:24:33.092933] [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/ddbaa4c2-c11e-451e-b13c-b0a2fa541b00.pdf
se creó la instancia de Imagick
Ancho original de la imagen:482 Altura original de la imagen: 1024
Terminó de crear la imagen del comprobante
Subiendo comprobante a worpdpress
Conexión FTP exitosa
[2025-01-05 20:24:43.098896] [notice] Logging level set to:debug
[2025-01-05 20:24:43.099425] [debug] El valor del evento recibio en json: {"uuid":"ffba9b40-c562-4d52-bf42-19c6c79396fa","changeType":"edit","entity":"payment","entityId":"501","eventName":"payment.edit","extraData":{"entity":{"id":501,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-05T14:24:32-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":501,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-05T14:24:32-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}}}
[2025-01-05 20:24:43.221244] [debug] valor el evento recibido por webhook: payment.edit
[2025-01-05 20:24:43.221637] [debug] HTTP request processing ended.
El archivo ha sido cargado exitosamente.
La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png
Archivos eliminados
Se terminó de subir comprobante a wordpress
La cadena CURL que se envia es: {
"to": "5214181878106",
"from": "whatsapp",
"type": "document",
"content": {
"text": "S/M",
"url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png"
},
"template_values": ["Daniel Humberto Soto Villegas Polleria", "$300", "$6315 a favor"],
"template_uuid": "57ead79cebd14902921477922403093b",
"optin_contact": true
}
Response del CallBell: {"message":{"uuid":"8a5eef1332124f6dae7184a439622a5f","status":"enqueued"}}
Hay menos de 50 archivos en el directorio. No se eliminarán archivos.
Dentro del proceso del patch:
Datos traidos con payment api: [{"id":501,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-05T14:24:32-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}]
Nombre del cliente que se va a actualizar: 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\udcb26315 a favor","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb26315 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 300\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 05\/01\/2025 14:24 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 05\/01\/2025 14:24\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 05\/01\/2025 14:24 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 05\/01\/2025 14:24","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":"2025-01-05T20:15:40Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"124180650741039816","Cliente":"2","user entry point":"inbound_message","Fecha Ultimo Pago":"📆💸 05/01/2025 14:24 con Tarjeta de crédito Stripe 💳","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Saldo Actual":"💲6315 a favor","Monto Ultimo Pago":"💲 300","URL":"🌐 https://172.16.5.120/crm/client/2","Fecha Ultima Actualizacion":"📆🔄️ 05/01/2025 14:24","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\": \"💲6315 a favor\",\"Monto Ultimo Pago\": \"💲 300\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 05/01/2025 14:24 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 05/01/2025 14:24\",\"Clabe Transferencia Banamex\": \"\"}","user name":"Daniel Humberto 🐁"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}}
[2025-01-05 20:24:51.561156] [debug] HTTP request processing ended.
[2025-01-06 6:25:04.622886] [notice] Logging level set to:debug
[2025-01-06 6:25:04.623004] [debug] El valor del evento recibio en json: {"uuid":"959d2039-f01c-48ff-8fe5-c98e4f341189","changeType":"overdue","entity":"invoice","entityId":"1310","eventName":"invoice.overdue","extraData":{"entity":{"id":1310,"clientId":148,"number":"001274","createdDate":"2024-12-22T10:00:01-0600","dueDate":"2025-01-05T10:00:01-0600","emailSentDate":"2025-01-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2024-12-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1312,"type":"service","label":"plan300 01\/12\/2024 \u2013 31\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":116,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El AR","clientLastName":"Real 3D","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"24 Campeche","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}}
[2025-01-06 6:25:04.851037] [debug] valor el evento recibido por webhook: invoice.overdue
[2025-01-06 6:25:04.851305] [debug] Factura vencida
[2025-01-06 6:25:04.851361] [debug] datos del notification para el invoice overdue:{"uuid":"959d2039-f01c-48ff-8fe5-c98e4f341189","changeType":"overdue","entity":"invoice","entityId":1310,"message":null,"clientId":148,"eventName":"invoice.overdue","clientData":{"id":148,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"24 Campeche","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Campeche 24, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-08-19T00:00:00-0600","leadConvertedAt":"2024-08-19T15:08:20-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El AR","lastName":"Real 3D","username":null,"contacts":[{"id":152,"clientId":148,"email":"elarquijuve@gmail.com","phone":"41818781806","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":147,"clientId":148,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_Qh0pTQM9a96D8B","clientZoneVisible":true},{"id":148,"clientId":148,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"002180834778043086","clientZoneVisible":true},{"id":151,"clientId":148,"customAttributeId":8,"name":"conekta","key":"conekta","value":"aasdad","clientZoneVisible":true}],"accountBalance":-1330,"accountCredit":0,"accountOutstanding":1330,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#c62828","addressGpsLat":21.1558353,"addressGpsLon":-100.9384629,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1310,"clientId":148,"number":"001274","createdDate":"2024-12-22T10:00:01-0600","dueDate":"2025-01-05T10:00:01-0600","emailSentDate":"2025-01-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2024-12-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1312,"type":"service","label":"plan300 01\/12\/2024 \u2013 31\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":116,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El AR","clientLastName":"Real 3D","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"24 Campeche","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null}
[2025-01-06 6:25:04.851388] [debug] ***Se notifica al cliente que la factura de su servicio está vencida***
[2025-01-06 6:25:04.851525] [debug] Numero de cel obtenido
[2025-01-06 6:25:04.851541] [warning] No se encontró un teléfono celular válido para el cliente: 148
[2025-01-06 6:25:04.851560] [debug] HTTP request processing ended.
[2025-01-06 23:49:43.414761] [notice] Logging level set to:debug
[2025-01-06 23:49:43.414999] [debug] El valor del evento recibio en json: {"uuid":"44198692-54d5-4e50-981a-d6c46ee8d392","changeType":"insert","entity":"client","entityId":"158","eventName":"client.add","extraData":{"entity":{"id":158,"userIdent":null,"previousIsp":null,"isLead":true,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 San Luis","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37804","fullAddress":"San Luis 23, Guadalupe, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-06T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Luis","lastName":"Guti\u00e9rrez","username":null,"contacts":[{"id":162,"clientId":158,"email":null,"phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2196f3","addressGpsLat":21.153272,"addressGpsLon":-100.9134508,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":null}}
[2025-01-06 23:49:43.488938] [debug] valor el evento recibido por webhook: client.add
[2025-01-06 23:49:43.489284] [debug] Se agregó un nuevo cliente
[2025-01-06 23:49:43.543565] [info] ID correspondiente a 'Customer Stripe ID': 10
[2025-01-06 23:49:43.543927] [info] Valor de notification client data export: {"id":158,"userIdent":null,"previousIsp":null,"isLead":true,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 San Luis","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37804","fullAddress":"San Luis 23, Guadalupe, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-06T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Luis","lastName":"Guti\u00e9rrez","username":null,"contacts":[{"id":162,"clientId":158,"email":null,"phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2196f3","addressGpsLat":21.153272,"addressGpsLon":-100.9134508,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}
[2025-01-06 23:49:43.543998] [info] Creando el Customer Stripe
[2025-01-06 23:49:43.544050] [info] El cliente a procesar es : Luis Gutiérrez
[2025-01-06 23:49:43.544111] [info] Datos notificationData: {"uuid":"44198692-54d5-4e50-981a-d6c46ee8d392","changeType":"insert","entity":"client","entityId":158,"message":null,"clientId":158,"eventName":"client.add","clientData":{"id":158,"userIdent":null,"previousIsp":null,"isLead":true,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 San Luis","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37804","fullAddress":"San Luis 23, Guadalupe, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-06T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Luis","lastName":"Guti\u00e9rrez","username":null,"contacts":[{"id":162,"clientId":158,"email":null,"phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2196f3","addressGpsLat":21.153272,"addressGpsLon":-100.9134508,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null}
[2025-01-06 23:49:43.544163] [info] Ya dentro del FOREACH!!!
[2025-01-06 23:49:43.544209] [info] REVISANDO EL PRIMER CONTACTO!!!
[2025-01-06 23:49:43.544255] [info] REVISANDO EL PRIMER CONTACTO!!!
[2025-01-06 23:49:43.544303] [info] SE VALIDA EL EMAIL!!!
[2025-01-06 23:49:43.545142] [info] ahora se procede a validar el teléfono!!!
[2025-01-07 15:47:38.364449] [notice] Logging level set to:debug
[2025-01-07 15:47:38.364938] [debug] El valor del evento recibio en json: {"uuid":"f612ebfe-0ea7-4acd-98e9-ffac1ba68c6b","changeType":"insert","entity":"client","entityId":"159","eventName":"client.add","extraData":{"entity":{"id":159,"userIdent":null,"previousIsp":null,"isLead":true,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Calle Quintana Roo","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Quintana Roo 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Lola","lastName":"La Trailera","username":null,"contacts":[{"id":163,"clientId":159,"email":null,"phone":"4156782356","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":156,"clientId":159,"customAttributeId":3,"name":"zona","key":"zona","value":"Saucillo","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#7cb342","addressGpsLat":21.1575189,"addressGpsLon":-100.9256403,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":null}}
[2025-01-07 15:47:38.436575] [debug] valor el evento recibido por webhook: client.add
[2025-01-07 15:47:38.436919] [debug] Se agregó un nuevo cliente
[2025-01-07 15:47:38.475883] [info] ID correspondiente a 'Customer Stripe ID': 10
[2025-01-07 15:47:38.476226] [info] Valor de notification client data export: {"id":159,"userIdent":null,"previousIsp":null,"isLead":true,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Calle Quintana Roo","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Quintana Roo 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Lola","lastName":"La Trailera","username":null,"contacts":[{"id":163,"clientId":159,"email":null,"phone":"4156782356","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":156,"clientId":159,"customAttributeId":3,"name":"zona","key":"zona","value":"Saucillo","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#7cb342","addressGpsLat":21.1575189,"addressGpsLon":-100.9256403,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}
[2025-01-07 16:00:05.445338] [notice] Logging level set to:debug
[2025-01-07 16:00:05.445574] [debug] El valor del evento recibio en json: {"uuid":"fa6f139c-f94f-4636-8b00-84e2821813ce","changeType":"insert","entity":"invoice","entityId":"1434","eventName":"invoice.add_draft","extraData":{"entity":{"id":1434,"clientId":110,"number":"001398","createdDate":"2025-01-07T10:00:02-0600","dueDate":"2025-01-21T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-01-06T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1437,"type":"service","label":"plan300 07\/12\/2024 \u2013 06\/01\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":109,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Maria la del Barrio","clientLastName":"Soy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"67 Morelos","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37805","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}}
[2025-01-07 16:00:05.626383] [debug] valor el evento recibido por webhook: invoice.add_draft
[2025-01-07 16:00:05.626997] [debug] HTTP request processing ended.
[2025-01-07 16:00:05.830420] [notice] Logging level set to:debug
[2025-01-07 16:00:05.830683] [debug] El valor del evento recibio en json: {"uuid":"d2047196-f5fa-4e17-83b0-99f0a216867a","changeType":"draft_approved","entity":"invoice","entityId":"1434","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1434,"clientId":110,"number":"001398","createdDate":"2025-01-07T10:00:02-0600","dueDate":"2025-01-21T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-01-06T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1437,"type":"service","label":"plan300 07\/12\/2024 \u2013 06\/01\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":109,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Maria la del Barrio","clientLastName":"Soy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"67 Morelos","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37805","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}}
[2025-01-07 16:00:05.997479] [debug] valor el evento recibido por webhook: invoice.draft_approved
[2025-01-07 16:00:05.997615] [debug] HTTP request processing ended.
[2025-01-07 16:00:06.684792] [notice] Logging level set to:debug
[2025-01-07 16:00:06.684894] [debug] El valor del evento recibio en json: {"uuid":"4bca885e-eaca-40aa-a5b7-0aa357f8d2e1","changeType":"insert","entity":"invoice","entityId":"1435","eventName":"invoice.add_draft","extraData":{"entity":{"id":1435,"clientId":116,"number":"001399","createdDate":"2025-01-07T10:00:02-0600","dueDate":"2025-01-21T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-01-06T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1438,"type":"service","label":"PREMIUM 07\/12\/2024 \u2013 06\/01\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":110,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Jos\u00e9 Humberto","clientLastName":"Rodr\u00edguez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"28 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}}
[2025-01-07 16:00:06.840543] [debug] valor el evento recibido por webhook: invoice.add_draft
[2025-01-07 16:00:06.840686] [debug] HTTP request processing ended.
[2025-01-07 16:00:06.954994] [notice] Logging level set to:debug
[2025-01-07 16:00:06.955112] [debug] El valor del evento recibio en json: {"uuid":"1804c279-04f6-4baf-9036-d3f6666b0436","changeType":"draft_approved","entity":"invoice","entityId":"1435","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1435,"clientId":116,"number":"001399","createdDate":"2025-01-07T10:00:02-0600","dueDate":"2025-01-21T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-01-06T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1438,"type":"service","label":"PREMIUM 07\/12\/2024 \u2013 06\/01\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":110,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Jos\u00e9 Humberto","clientLastName":"Rodr\u00edguez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"28 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}}
[2025-01-07 16:00:07.111902] [debug] valor el evento recibido por webhook: invoice.draft_approved
[2025-01-07 16:00:07.112046] [debug] HTTP request processing ended.
[2025-01-07 16:03:05.517096] [notice] Logging level set to:debug
[2025-01-07 16:03:05.517401] [debug] El valor del evento recibio en json: {"uuid":"0dd03023-231f-4ebe-9355-02295f45286a","changeType":"insert","entity":"client","entityId":"160","eventName":"client.add","extraData":{"entity":{"id":160,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Jalisco","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Jalisco 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Jimy","lastName":"Turner","username":"jymy@gmail.com","contacts":[{"id":164,"clientId":160,"email":"jymy@gmail.com","phone":"4186784656","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.1544785,"addressGpsLon":-100.9352517,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":null}}
[2025-01-07 16:03:05.591856] [debug] valor el evento recibido por webhook: client.add
[2025-01-07 16:03:05.592192] [debug] Se agregó un nuevo cliente
[2025-01-07 16:03:05.635044] [info] ID correspondiente a 'Customer Stripe ID': 10
[2025-01-07 16:03:05.636245] [info] Valor de notification client data export: {"id":160,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Jalisco","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Jalisco 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Jimy","lastName":"Turner","username":"jymy@gmail.com","contacts":[{"id":164,"clientId":160,"email":"jymy@gmail.com","phone":"4186784656","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.1544785,"addressGpsLon":-100.9352517,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}
[2025-01-07 16:24:39.528942] [notice] Logging level set to:debug
[2025-01-07 16:24:39.533911] [debug] El valor del evento recibio en json: {"uuid":"0ed22a78-2474-4378-b43a-cdf3bf2dc91d","changeType":"insert","entity":"client","entityId":"161","eventName":"client.add","extraData":{"entity":{"id":161,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"S\/N Carretera a R\u00edo Laja","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Quicktime Pizza Dolores Hidalgo, Carretera a R\u00edo Laja, Ejido San Jos\u00e9 de Badillo, Dolores Hidalgo, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Cesar Antonio","lastName":"Juarez Garcia","username":"gump@gmail.com","contacts":[{"id":165,"clientId":161,"email":"gump@gmail.com","phone":"4236784563","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.184621,"addressGpsLon":-100.9322859,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":null}}
[2025-01-07 16:24:39.665021] [debug] valor el evento recibido por webhook: client.add
[2025-01-07 16:24:39.665344] [debug] Se agregó un nuevo cliente
[2025-01-07 16:24:39.732781] [info] ID correspondiente a 'Customer Stripe ID': 10
[2025-01-07 16:24:39.733156] [info] Valor de notification client data export: {"id":161,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"S\/N Carretera a R\u00edo Laja","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Quicktime Pizza Dolores Hidalgo, Carretera a R\u00edo Laja, Ejido San Jos\u00e9 de Badillo, Dolores Hidalgo, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Cesar Antonio","lastName":"Juarez Garcia","username":"gump@gmail.com","contacts":[{"id":165,"clientId":161,"email":"gump@gmail.com","phone":"4236784563","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.184621,"addressGpsLon":-100.9322859,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}
[2025-01-07 16:30:16.031681] [notice] Logging level set to:debug
[2025-01-07 16:30:16.032058] [debug] El valor del evento recibio en json: {"uuid":"3608b23d-ab3a-4c67-b5b8-7e1407ce306f","changeType":"insert","entity":"client","entityId":"162","eventName":"client.add","extraData":{"entity":{"id":162,"userIdent":null,"previousIsp":null,"isLead":true,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"76 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 76, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Eduard","lastName":"Elric","username":"eduardelric@gmail.com","contacts":[{"id":166,"clientId":162,"email":"eduardelric@gmail.com","phone":"4185673456","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#d84315","addressGpsLat":21.1575488,"addressGpsLon":-100.9409119,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":null}}
[2025-01-07 16:30:16.150923] [debug] valor el evento recibido por webhook: client.add
[2025-01-07 16:30:16.151242] [debug] Se agregó un nuevo cliente
[2025-01-07 16:30:16.195925] [info] ID correspondiente a 'Customer Stripe ID': 10
[2025-01-07 16:30:16.196230] [info] El valor de 'isLead' es: true
[2025-01-07 16:30:16.196255] [info] El cliente es un lead, no se procesará
[2025-01-07 16:30:16.196279] [debug] HTTP request processing ended.
[2025-01-07 16:31:36.912322] [notice] Logging level set to:debug
[2025-01-07 16:31:36.912463] [debug] El valor del evento recibio en json: {"uuid":"a1b8d90f-c2d1-4b60-9ac2-c8971ae4bd0b","changeType":"insert","entity":"client","entityId":"163","eventName":"client.add","extraData":{"entity":{"id":163,"userIdent":null,"previousIsp":null,"isLead":true,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Tamaulipas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Tamaulipas 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":null}}
[2025-01-07 16:31:36.995820] [debug] valor el evento recibido por webhook: client.add
[2025-01-07 16:31:36.996073] [debug] Se agregó un nuevo cliente
[2025-01-07 16:31:37.045953] [info] ID correspondiente a 'Customer Stripe ID': 10
[2025-01-07 16:31:37.046339] [info] El valor de 'isLead' es: true
[2025-01-07 16:31:37.046466] [info] El cliente es un lead, no se procesará
[2025-01-07 16:31:37.046534] [debug] HTTP request processing ended.
[2025-01-07 16:32:44.292279] [notice] Logging level set to:debug
[2025-01-07 16:32:44.292428] [debug] El valor del evento recibio en json: {"uuid":"ca2ec588-b0cf-4192-8079-e00fb9b37234","changeType":"insert","entity":"client","entityId":"164","eventName":"client.add","extraData":{"entity":{"id":164,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Isra","lastName":"Marcial","username":"isramarcial@gmail.com","contacts":[{"id":168,"clientId":164,"email":"isramarcial@gmail.com","phone":"4185903400","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.1616473,"addressGpsLon":-100.9356332,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":null}}
[2025-01-07 16:32:44.408622] [debug] valor el evento recibido por webhook: client.add
[2025-01-07 16:32:44.408853] [debug] Se agregó un nuevo cliente
[2025-01-07 16:32:44.450726] [info] ID correspondiente a 'Customer Stripe ID': 10
[2025-01-07 16:32:44.451013] [info] El valor de 'isLead' es: false
[2025-01-07 16:32:44.451040] [info] El cliente NO es un lead, se procesará
[2025-01-07 16:32:44.451050] [info] Creando el Customer Stripe
[2025-01-07 16:32:44.451061] [info] El cliente a procesar es : Isra Marcial
[2025-01-07 16:32:44.451081] [info] Datos notificationData: {"uuid":"ca2ec588-b0cf-4192-8079-e00fb9b37234","changeType":"insert","entity":"client","entityId":164,"message":null,"clientId":164,"eventName":"client.add","clientData":{"id":164,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Isra","lastName":"Marcial","username":"isramarcial@gmail.com","contacts":[{"id":168,"clientId":164,"email":"isramarcial@gmail.com","phone":"4185903400","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.1616473,"addressGpsLon":-100.9356332,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null}
[2025-01-07 16:32:44.451090] [info] Ya dentro del FOREACH!!!
[2025-01-07 16:32:44.451097] [info] REVISANDO EL PRIMER CONTACTO!!!
[2025-01-07 16:32:44.451105] [info] REVISANDO EL PRIMER CONTACTO!!!
[2025-01-07 16:32:44.451113] [info] SE VALIDA EL EMAIL!!!
[2025-01-07 16:32:44.451889] [info] ahora se procede a validar el teléfono!!!
[2025-01-07 16:32:44.452007] [info] AHORA SE MANDA A CREAR EL CLIENTE A STRIPE!!!
[2025-01-07 16:32:45.108345] [info] {"id":"cus_RXlEErqtrukycS","object":"customer","address":null,"balance":0,"created":1736267564,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 164","discount":null,"email":"isramarcial@gmail.com","invoice_prefix":"845080DA","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":[],"name":"Isra Marcial","next_invoice_sequence":1,"phone":"4185903400","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null}
[2025-01-07 16:32:47.428654] [info] {"id":"cus_RXlEErqtrukycS","object":"customer","address":null,"balance":0,"created":1736267564,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 164","discount":null,"email":"isramarcial@gmail.com","invoice_prefix":"845080DA","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":{"ucrm_client_id":"164"},"name":"Isra Marcial","next_invoice_sequence":1,"phone":"4185903400","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null}
[2025-01-07 16:32:48.135539] [notice] Logging level set to:debug
[2025-01-07 16:32:48.135659] [debug] El valor del evento recibio en json: {"id":"evt_1QefhzEFY1WEUtgRrMMkhO76","object":"event","api_version":"2023-10-16","created":1736267567,"data":{"object":{"id":"cus_RXlEErqtrukycS","object":"customer","address":null,"balance":0,"created":1736267564,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 164","discount":null,"email":"isramarcial@gmail.com","invoice_prefix":"845080DA","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":{"ucrm_client_id":"164"},"name":"Isra Marcial","next_invoice_sequence":1,"phone":"4185903400","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null},"previous_attributes":{"metadata":{"ucrm_client_id":null}}},"livemode":false,"pending_webhooks":2,"request":{"id":"req_135Tdn1O2rvTIU","idempotency_key":"ef6067d2-e159-4f7d-9f3f-bf73145d4477"},"type":"customer.updated"}
[2025-01-07 16:32:48.135703] [error] JSON error: No error
[2025-01-07 16:32:48.135788] [debug] HTTP request processing ended.
[2025-01-07 16:32:49.920465] [info] {"object":"funding_instructions","bank_transfer":{"country":"MX","financial_addresses":[{"spei":{"account_holder_address":{"city":"Ciudad de M\u00e9xico","country":"MX","line1":"Av Paseo de la Reforma 180 piso 29 col Juarez","line2":null,"postal_code":"06600","state":"Ciudad de M\u00e9xico"},"account_holder_name":"SIIP INTERNET","bank_address":{"city":"Naucalpan","country":"MX","line1":"Blvd. Manuel Avila Camacho 1902","line2":"Planta Baja, Cd. Satelite","postal_code":"C.P. 53100","state":"Estado de Mexico"},"bank_code":"124","bank_name":"CITI","clabe":"124180701225308815"},"supported_networks":["spei"],"type":"spei"}],"type":"mx_bank_transfer"},"currency":"mxn","funding_type":"bank_transfer","livemode":false}
[2025-01-07 16:32:50.240696] [info] CLABE guardada en metadata: 124180701225308815
[2025-01-07 16:32:50.425777] [info] {}
[2025-01-07 16:32:50.426755] [debug] HTTP request processing ended.
[2025-01-07 16:32:50.547811] [notice] Logging level set to:debug
[2025-01-07 16:32:50.548101] [debug] El valor del evento recibio en json: {"uuid":"5117eae2-17f4-4feb-b429-9ee071a4264b","changeType":"edit","entity":"client","entityId":"164","eventName":"client.edit","extraData":{"entity":{"id":164,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Isra","lastName":"Marcial","username":"isramarcial@gmail.com","contacts":[{"id":168,"clientId":164,"email":"isramarcial@gmail.com","phone":"4185903400","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":157,"clientId":164,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RXlEErqtrukycS","clientZoneVisible":true},{"id":158,"clientId":164,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"124180701225308815","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.1616473,"addressGpsLon":-100.9356332,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":164,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Isra","lastName":"Marcial","username":"isramarcial@gmail.com","contacts":[{"id":168,"clientId":164,"email":"isramarcial@gmail.com","phone":"4185903400","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.1616473,"addressGpsLon":-100.9356332,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
[2025-01-07 16:32:50.628608] [debug] valor el evento recibido por webhook: client.edit
[2025-01-07 16:32:50.628881] [debug] Se actualiza a un cliente
[2025-01-07 16:32:50.628972] [debug] HTTP request processing ended.
[2025-01-07 16:32:50.638360] [notice] Logging level set to:debug
[2025-01-07 16:32:50.638533] [debug] El valor del evento recibio en json: {"id":"evt_1Qefi2EFY1WEUtgRra5KbxwJ","object":"event","api_version":"2023-10-16","created":1736267570,"data":{"object":{"id":"cus_RXlEErqtrukycS","object":"customer","address":null,"balance":0,"created":1736267564,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 164","discount":null,"email":"isramarcial@gmail.com","invoice_prefix":"845080DA","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":{"ucrm_client_id":"164","clabe":"124180701225308815"},"name":"Isra Marcial","next_invoice_sequence":1,"phone":"4185903400","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null},"previous_attributes":{"metadata":{"clabe":null}}},"livemode":false,"pending_webhooks":2,"request":{"id":"req_ikADrNaQ5DP2xX","idempotency_key":"7b6997a4-9e58-4eb8-922f-86d6394e560f"},"type":"customer.updated"}
[2025-01-07 16:32:50.638633] [error] JSON error: No error
[2025-01-07 16:32:50.638685] [debug] HTTP request processing ended.
[2025-01-07 17:35:20.236944] [notice] Logging level set to:debug
[2025-01-07 17:35:20.237417] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":1406,"amount":3600}
[2025-01-07 17:35:20.237442] [info] Evento de referencia de oxxo recibido
[2025-01-07 17:35:20.237453] [info] Referencia persnoalizada, Valor del monto: 3600
[2025-01-07 17:35:20.237468] [info] Creando referencia del cliente para OXXO:
[2025-01-07 17:35:20.381795] [error] Client error: `GET https://172.16.5.134/crm/api/v1.0/clients/1406` resulted in a `404 Not Found` response:
{"code":404,"message":"Not Found"}
[2025-01-07 17:39:28.066896] [notice] Logging level set to:debug
[2025-01-07 17:39:28.067564] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":1406,"amount":3600}
[2025-01-07 17:39:28.067693] [info] Evento de referencia de oxxo recibido
[2025-01-07 17:39:28.067781] [info] Referencia persnoalizada, Valor del monto: 3600
[2025-01-07 17:39:28.067866] [info] Creando referencia del cliente para OXXO:
[2025-01-07 17:39:28.183438] [error] Client error: `GET https://172.16.5.134/crm/api/v1.0/clients/1406` resulted in a `404 Not Found` response:
{"code":404,"message":"Not Found"}
[2025-01-07 17:40:57.054476] [notice] Logging level set to:debug
[2025-01-07 17:40:57.054835] [debug] El valor del evento recibio en json: {"uuid":"59a9c2c1-59d1-47e9-8758-dada50510081","changeType":"edit","entity":"client","entityId":"156","eventName":"client.edit","extraData":{"entity":{"id":156,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"34 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Maria Gricelda","lastName":"L\u00f3pez Avalos","username":null,"contacts":[{"id":160,"clientId":156,"email":null,"phone":"4181817609","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":152,"clientId":156,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RWj8SZIs9d3z41","clientZoneVisible":true},{"id":153,"clientId":156,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"124180553522369174","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#7cb342","addressGpsLat":21.1562598,"addressGpsLon":-100.9370894,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":156,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"34 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Maria Gricelda","lastName":"L\u00f3pez Avalos","username":null,"contacts":[{"id":160,"clientId":156,"email":null,"phone":"4181817609","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":152,"clientId":156,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RWj8SZIs9d3z41","clientZoneVisible":true},{"id":153,"clientId":156,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"124180553522369174","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#7cb342","addressGpsLat":21.1562598,"addressGpsLon":-100.9370894,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
[2025-01-07 17:40:57.131200] [debug] valor el evento recibido por webhook: client.edit
[2025-01-07 17:40:57.131781] [debug] Se actualiza a un cliente
[2025-01-07 17:40:57.131973] [info] Se proceso los contactos
Dentro del proceso del patch:
Datos traidos con payment api: []
Nombre del cliente que se va a actualizar: Maria Gricelda López Avalos
UUID: 2038d2d99ae543f3b56f1ae54f4cc82b
JSON con los datos a actualizar: {"name":"Maria Gricelda L\u00f3pez Avalos","custom_fields":{"Cliente":156,"Domicilio":"\ud83d\udccd Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Maria Gricelda L\u00f3pez Avalos","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/156","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"156\",\"Domicilio\": \"\ud83d\udccd Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Maria Gricelda L\u00f3pez Avalos\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/156\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 07\/01\/2025 17:40 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 07\/01\/2025 11:40\",\"Clabe Transferencia Banamex\": \"124180553522369174\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 07\/01\/2025 17:40 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 07\/01\/2025 11:40","Clabe Transferencia Banamex":"124180553522369174"}}
Response Patch CallBell: {"contact":{"uuid":"2038d2d99ae543f3b56f1ae54f4cc82b","name":"Maria Gricelda López Avalos","phoneNumber":"5214181817609","avatarUrl":null,"createdAt":"2024-01-26T18:16:09Z","closedAt":"2025-01-07T17:39:28Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/2038d2d99ae543f3b56f1ae54f4cc82b","conversationHref":"https://dash.callbell.eu/chat/90611886ac204c56a75240f951c53874","tags":[],"assignedUser":null,"customFields":{"Estado":"🟢 Activo ","Nombre":"👤 Maria Gricelda López Avalos","Cliente":"156","Domicilio":"📍 Yucatán 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","URL":"🌐 https://172.16.5.120/crm/client/156","Fecha Ultimo Pago":"📆💸 07/01/2025 17:40 con Desconocido, revisar metodos de pago no contemplados","Resumen":"{\"Cliente\": \"156\",\"Domicilio\": \"📍 Yucatán 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Maria Gricelda López Avalos\",\"URL\": \"🌐 https://172.16.5.120/crm/client/156\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"💲 \",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 07/01/2025 17:40 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 07/01/2025 11:40\",\"Clabe Transferencia Banamex\": \"124180553522369174\"}","Monto Ultimo Pago":"💲 ","Saldo Actual":"💲0 está al corriente","Clabe Transferencia Banamex":"124180553522369174","Fecha Ultima Actualizacion":"📆🔄️ 07/01/2025 11:40","user entry point":"inbound_message","user name":"Grisel"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}}
[2025-01-07 17:40:59.185159] [debug] HTTP request processing ended.
[2025-01-07 17:42:39.148557] [notice] Logging level set to:debug
[2025-01-07 17:42:39.148984] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":156}
[2025-01-07 17:42:39.149173] [info] Evento de referencia de oxxo recibido
[2025-01-07 17:42:39.149353] [info] Creando referencia del cliente para OXXO:
[2025-01-07 17:42:39.276736] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_RWj8SZIs9d3z41
[2025-01-07 17:42:39.276957] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO.
[2025-01-07 17:42:39.277390] [info] Creando referencia del cliente para OXXO:
[2025-01-07 17:42:39.382885] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_RWj8SZIs9d3z41
[2025-01-07 17:42:39.383090] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO.
[2025-01-07 17:42:41.383547] [info] Creando referencia del cliente para OXXO:
[2025-01-07 17:42:41.496614] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_RWj8SZIs9d3z41
[2025-01-07 17:42:41.496913] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO.
[2025-01-07 17:42:43.497462] [info] Creando referencia del cliente para OXXO:
[2025-01-07 17:42:43.631756] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_RWj8SZIs9d3z41
[2025-01-07 17:42:43.631932] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO.
[2025-01-07 17:42:45.632616] [info] Creando referencia del cliente para OXXO:
[2025-01-07 17:42:45.750991] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_RWj8SZIs9d3z41
[2025-01-07 17:42:45.751188] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO.
[2025-01-07 17:42:45.751526] [debug] Reponse que se envía a CallBell: {"url": "errorsinadeudo"}
[2025-01-07 17:42:45.751657] [error] JSON error: No error
[2025-01-07 17:42:45.751741] [debug] HTTP request processing ended.
[2025-01-07 17:43:53.002497] [notice] Logging level set to:debug
[2025-01-07 17:43:53.003189] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":156,"amount":3600}
[2025-01-07 17:43:53.003453] [info] Evento de referencia de oxxo recibido
[2025-01-07 17:43:53.003650] [info] Referencia persnoalizada, Valor del monto: 3600
[2025-01-07 17:43:53.003839] [info] Creando referencia del cliente para OXXO:
[2025-01-07 17:43:53.129194] [info] Monto proporcionado directamente: 3600
[2025-01-07 17:43:53.129244] [info] Creando referencia en Stripe por: 360000
[2025-01-07 17:43:53.774100] [info] Creando payment methods del voucher
[2025-01-07 17:43:54.023724] [info] Confirmando el paymentIntent
[2025-01-07 17:43:54.676357] [info] Se terminó de confirmar el paymentIntent
[2025-01-07 17:43:54.677052] [info] Referencia OXXO: 12345678901234657890123456789012
[2025-01-07 17:43:54.677330] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SWG1Oa2dKa3FjYzMwa1E5aFFrTzlJM0o4Q0xxak5N01007o5azv0u
[2025-01-07 17:43:54.678241] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SWG1Oa2dKa3FjYzMwa1E5aFFrTzlJM0o4Q0xxak5N01007o5azv0u"}
[2025-01-07 17:43:54.678765] [error] JSON error: No error
[2025-01-07 17:43:54.679073] [debug] HTTP request processing ended.
[2025-01-07 17:46:58.678319] [notice] Logging level set to:debug
[2025-01-07 17:46:58.678580] [debug] El valor del evento recibio en json: {"uuid":"22da93c6-2e9b-43cf-97da-f4170f5180a5","changeType":"insert","entity":"payment","entityId":"502","eventName":"payment.add","extraData":{"entity":{"id":502,"clientId":156,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-07T11:46:58-0600","amount":3600,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":3600,"userId":null,"attributes":[]},"entityBeforeEdit":null}}
[2025-01-07 17:46:58.791903] [debug] valor el evento recibido por webhook: payment.add
[2025-01-07 17:46:58.792434] [debug] datos del notification para el invoice add:{"uuid":"22da93c6-2e9b-43cf-97da-f4170f5180a5","changeType":"insert","entity":"payment","entityId":502,"message":null,"clientId":156,"eventName":"payment.add","clientData":{"id":156,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"34 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Maria Gricelda","lastName":"L\u00f3pez Avalos","username":null,"contacts":[{"id":160,"clientId":156,"email":null,"phone":"4181817609","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":152,"clientId":156,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RWj8SZIs9d3z41","clientZoneVisible":true},{"id":153,"clientId":156,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"124180553522369174","clientZoneVisible":true}],"accountBalance":3600,"accountCredit":3600,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#7cb342","addressGpsLat":21.1562598,"addressGpsLon":-100.9370894,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":502,"clientId":156,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-07T11:46:58-0600","amount":3600,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":3600,"userId":null,"attributes":[]}}
[2025-01-07 17:46:58.792571] [debug] valor del payment data: {"id":502,"clientId":156,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-07T11:46:58-0600","amount":3600,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":3600,"userId":null,"attributes":[]}
[2025-01-07 17:46:58.792659] [debug] ***Se notifica y actualiza al cliente sobre su pago***
Eviando comprobante de pago al cliente: 156 con número: 5214181817609
El archivo se ha descargado correctamente y se ha guardado en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Maria_Gricelda_López_Avalos.png
El nombre del archivo PDF es: /home/unms/data/ucrm/ucrm/data/payment_receipts/6baecc42-ebc9-4cf1-b7a3-d800c48fe273.pdf
se creó la instancia de Imagick
Ancho original de la imagen:482 Altura original de la imagen: 1024
Terminó de crear la imagen del comprobante
Subiendo comprobante a worpdpress
Conexión FTP exitosa
[2025-01-07 17:47:08.845576] [notice] Logging level set to:debug
[2025-01-07 17:47:08.845988] [debug] El valor del evento recibio en json: {"uuid":"6bb82ae8-9fc3-4645-90e8-e37bb5c325e2","changeType":"edit","entity":"payment","entityId":"502","eventName":"payment.edit","extraData":{"entity":{"id":502,"clientId":156,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-07T11:46:58-0600","amount":3600,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":3600,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":502,"clientId":156,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-07T11:46:58-0600","amount":3600,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":3600,"userId":null,"attributes":[]}}}
[2025-01-07 17:47:08.977595] [debug] valor el evento recibido por webhook: payment.edit
[2025-01-07 17:47:08.978213] [debug] HTTP request processing ended.
El archivo ha sido cargado exitosamente.
La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Maria_Gricelda_López_Avalos.png
Comprobante eliminado de Wordpress: Comprobante_EMMELI_ABIGAIL_SANDOVAL_PAREDON.png
Archivos eliminados
Se terminó de subir comprobante a wordpress
La cadena CURL que se envia es: {
"to": "5214181817609",
"from": "whatsapp",
"type": "document",
"content": {
"text": "S/M",
"url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Maria_Gricelda_López_Avalos.png"
},
"template_values": ["Maria Gricelda López Avalos", "$3600", "$3600 a favor"],
"template_uuid": "57ead79cebd14902921477922403093b",
"optin_contact": true
}
Response del CallBell: {"message":{"uuid":"b8a4657e189c4223b5f047269a83dce9","status":"enqueued"}}
Hay menos de 50 archivos en el directorio. No se eliminarán archivos.
Dentro del proceso del patch:
Datos traidos con payment api: [{"id":502,"clientId":156,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-07T11:46:58-0600","amount":3600,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":3600,"userId":null,"attributes":[]}]
Nombre del cliente que se va a actualizar: Maria Gricelda López Avalos
UUID: 2038d2d99ae543f3b56f1ae54f4cc82b
JSON con los datos a actualizar: {"name":"Maria Gricelda L\u00f3pez Avalos","custom_fields":{"Cliente":156,"Domicilio":"\ud83d\udccd Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Maria Gricelda L\u00f3pez Avalos","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/156","Saldo Actual":"\ud83d\udcb23600 a favor","Monto Ultimo Pago":"\ud83d\udcb2 3600","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"156\",\"Domicilio\": \"\ud83d\udccd Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Maria Gricelda L\u00f3pez Avalos\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/156\",\"Saldo Actual\": \"\ud83d\udcb23600 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 3600\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 07\/01\/2025 11:46 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 07\/01\/2025 11:47\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 07\/01\/2025 11:46 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 07\/01\/2025 11:47","Clabe Transferencia Banamex":null}}
Response Patch CallBell: {"contact":{"uuid":"2038d2d99ae543f3b56f1ae54f4cc82b","name":"Maria Gricelda López Avalos","phoneNumber":"5214181817609","avatarUrl":null,"createdAt":"2024-01-26T18:16:09Z","closedAt":"2025-01-07T17:43:55Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/2038d2d99ae543f3b56f1ae54f4cc82b","conversationHref":"https://dash.callbell.eu/chat/90611886ac204c56a75240f951c53874","tags":[],"assignedUser":null,"customFields":{"Estado":"🟢 Activo ","Nombre":"👤 Maria Gricelda López Avalos","Cliente":"156","Domicilio":"📍 Yucatán 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","URL":"🌐 https://172.16.5.120/crm/client/156","Fecha Ultimo Pago":"📆💸 07/01/2025 11:46 con Tarjeta de crédito Stripe 💳","Resumen":"{\"Cliente\": \"156\",\"Domicilio\": \"📍 Yucatán 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Maria Gricelda López Avalos\",\"URL\": \"🌐 https://172.16.5.120/crm/client/156\",\"Saldo Actual\": \"💲3600 a favor\",\"Monto Ultimo Pago\": \"💲 3600\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 07/01/2025 11:46 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 07/01/2025 11:47\",\"Clabe Transferencia Banamex\": \"\"}","Monto Ultimo Pago":"💲 3600","Saldo Actual":"💲3600 a favor","Clabe Transferencia Banamex":"124180553522369174","Fecha Ultima Actualizacion":"📆🔄️ 07/01/2025 11:47","user entry point":"inbound_message","user name":"Grisel"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}}
[2025-01-07 17:47:17.931579] [debug] HTTP request processing ended.