1024 lines
183 KiB
Plaintext
1024 lines
183 KiB
Plaintext
|
|
[2025-01-04 21:35:11.502578] [debug] Este ese el reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SV2lRTUxaaDI2bnI0QVkxOWRjWm4zd3ExNEh0c3BD0100GnWL7Gu1"}
|
|
[2025-01-04 21:35:11.502944] [error] JSON error: No error
|
|
[2025-01-04 21:35:11.503017] [debug] HTTP request processing ended.
|
|
[2025-01-04 21:38:13.682878] [notice] Logging level set to:debug
|
|
[2025-01-04 21:38:13.683264] [debug] El valor del evento recibio en json: {"uuid":"f83e8c9c-3167-41cd-889b-dd3266c62437","changeType":"insert","entity":"payment","entityId":"494","eventName":"payment.add","extraData":{"entity":{"id":494,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:38:13-0600","amount":180,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":180,"userId":null,"attributes":[]},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-04 21:38:13.801563] [debug] valor el evento recibido por webhook: payment.add
|
|
|
|
[2025-01-04 21:38:13.801965] [debug] datos del notification para el invoice add:{"uuid":"f83e8c9c-3167-41cd-889b-dd3266c62437","changeType":"insert","entity":"payment","entityId":494,"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":4855,"accountCredit":4855,"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":494,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:38:13-0600","amount":180,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":180,"userId":null,"attributes":[]}}
|
|
|
|
[2025-01-04 21:38:13.802048] [debug] valor del payment data: {"id":494,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:38:13-0600","amount":180,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":180,"userId":null,"attributes":[]}
|
|
|
|
[2025-01-04 21:38:13.802115] [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/5580ea70-1af0-4bfd-acd4-f7d5ac7bb215.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
|
|
|
|
El archivo ha sido cargado exitosamente.
|
|
|
|
La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png
|
|
|
|
[2025-01-04 21:38:23.835932] [notice] Logging level set to:debug
|
|
[2025-01-04 21:38:23.836178] [debug] El valor del evento recibio en json: {"uuid":"8806f0c2-3119-4042-a833-fd44e8ea4422","changeType":"edit","entity":"payment","entityId":"494","eventName":"payment.edit","extraData":{"entity":{"id":494,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:38:13-0600","amount":180,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":180,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":494,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:38:13-0600","amount":180,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":180,"userId":null,"attributes":[]}}}
|
|
|
|
[2025-01-04 21:38:23.966581] [debug] valor el evento recibido por webhook: payment.edit
|
|
|
|
[2025-01-04 21:38:23.966840] [debug] HTTP request processing ended.
|
|
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", "$180", "$4855 a favor"],
|
|
"template_uuid": "57ead79cebd14902921477922403093b",
|
|
"optin_contact": true
|
|
}
|
|
Response del CallBell: {"message":{"uuid":"00c5e0f3a8f54c8f84e64eb37ca4f86a","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":494,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:38:13-0600","amount":180,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":180,"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\udcb24855 a favor","Monto Ultimo Pago":"\ud83d\udcb2 180","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\udcb24855 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 180\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 04\/01\/2025 15:38 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 15:38\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 04\/01\/2025 15:38 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 15:38","Clabe Transferencia Banamex":null}}
|
|
|
|
[2025-01-04 21:43:05.628685] [notice] Logging level set to:debug
|
|
[2025-01-04 21:43:05.629163] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":2,"amount":120}
|
|
|
|
[2025-01-04 21:43:05.629312] [info] Evento de referencia de oxxo recibido
|
|
|
|
[2025-01-04 21:43:05.629448] [info] Valor del monto: 120
|
|
|
|
[2025-01-04 21:43:05.629558] [info] Creando referencia del cliente para OXXO:
|
|
|
|
[2025-01-04 21:43:05.758450] [info] Monto proporcionado directamente: 120
|
|
|
|
[2025-01-04 21:43:07.253190] [info] Referencia OXXO: 12345678901234657890123456789012
|
|
|
|
[2025-01-04 21:43:07.253303] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SV2lZTjRTRmJsU3pRdDg0Ylk4V21VZm1sRmxXU3Nr01006DhfUkRl
|
|
|
|
[2025-01-04 21:43:07.253916] [debug] Este ese el reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SV2lZTjRTRmJsU3pRdDg0Ylk4V21VZm1sRmxXU3Nr01006DhfUkRl"}
|
|
[2025-01-04 21:43:07.254031] [error] JSON error: No error
|
|
[2025-01-04 21:43:07.254067] [debug] HTTP request processing ended.
|
|
[2025-01-04 21:44:27.391671] [notice] Logging level set to:debug
|
|
[2025-01-04 21:44:27.391904] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":2,"amount":0}
|
|
|
|
[2025-01-04 21:44:27.391993] [info] Evento de referencia de oxxo recibido
|
|
|
|
[2025-01-04 21:44:27.392055] [info] Creando referencia del cliente para OXXO:
|
|
|
|
[2025-01-04 21:44:27.544599] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_PetN1dhr4rx0kX
|
|
|
|
[2025-01-04 21:44:27.544748] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO.
|
|
|
|
[2025-01-04 21:44:27.545203] [info] Creando referencia del cliente para OXXO:
|
|
|
|
[2025-01-04 21:44:27.671631] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_PetN1dhr4rx0kX
|
|
|
|
[2025-01-04 21:44:27.671749] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO.
|
|
|
|
[2025-01-04 21:44:27.672075] [info] Creando referencia del cliente para OXXO:
|
|
|
|
[2025-01-04 21:44:27.811629] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_PetN1dhr4rx0kX
|
|
|
|
[2025-01-04 21:44:27.813256] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO.
|
|
|
|
[2025-01-04 21:44:27.813581] [info] Creando referencia del cliente para OXXO:
|
|
|
|
[2025-01-04 21:44:27.928096] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_PetN1dhr4rx0kX
|
|
|
|
[2025-01-04 21:44:27.928137] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO.
|
|
|
|
[2025-01-04 21:44:27.928673] [info] Creando referencia del cliente para OXXO:
|
|
|
|
[2025-01-04 21:44:28.024955] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_PetN1dhr4rx0kX
|
|
|
|
[2025-01-04 21:44:28.025002] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO.
|
|
|
|
[2025-01-04 21:44:28.025454] [debug] Este ese el reponse que se envía a CallBell: {"url": "errorsinadeudo"}
|
|
[2025-01-04 21:44:28.025501] [error] JSON error: No error
|
|
[2025-01-04 21:44:28.025515] [debug] HTTP request processing ended.
|
|
[2025-01-04 21:45:05.193242] [notice] Logging level set to:debug
|
|
[2025-01-04 21:45:05.193661] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":2,"amount":190}
|
|
|
|
[2025-01-04 21:45:05.193814] [info] Evento de referencia de oxxo recibido
|
|
|
|
[2025-01-04 21:45:05.193867] [info] Valor del monto: 190
|
|
|
|
[2025-01-04 21:45:05.193914] [info] Creando referencia del cliente para OXXO:
|
|
|
|
[2025-01-04 21:45:05.364599] [info] Monto proporcionado directamente: 190
|
|
|
|
[2025-01-04 21:46:11.387351] [notice] Logging level set to:debug
|
|
[2025-01-04 21:46:11.387454] [debug] El valor del evento recibio en json: {"uuid":"c33bbbc8-c202-43bf-adf0-f6fa95f391be","changeType":"insert","entity":"payment","entityId":"495","eventName":"payment.add","extraData":{"entity":{"id":495,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:46:10-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-04 21:46:11.591474] [debug] valor el evento recibido por webhook: payment.add
|
|
|
|
[2025-01-04 21:46:11.591733] [debug] datos del notification para el invoice add:{"uuid":"c33bbbc8-c202-43bf-adf0-f6fa95f391be","changeType":"insert","entity":"payment","entityId":495,"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":4975,"accountCredit":4975,"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":495,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:46:10-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]}}
|
|
|
|
[2025-01-04 21:46:11.591769] [debug] valor del payment data: {"id":495,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:46:10-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]}
|
|
|
|
[2025-01-04 21:46:11.591789] [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/9bc29ff8-2456-4fee-a036-54e785da6153.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
|
|
|
|
[2025-01-04 21:46:21.552692] [notice] Logging level set to:debug
|
|
[2025-01-04 21:46:21.552952] [debug] El valor del evento recibio en json: {"uuid":"30fe5eb5-a6c2-4071-ac04-40f928989c15","changeType":"edit","entity":"payment","entityId":"495","eventName":"payment.edit","extraData":{"entity":{"id":495,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:46:10-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":495,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:46:10-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]}}}
|
|
|
|
Conexión FTP exitosa
|
|
|
|
[2025-01-04 21:46:21.686734] [debug] valor el evento recibido por webhook: payment.edit
|
|
|
|
[2025-01-04 21:46:21.687012] [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
|
|
|
|
[2025-01-04 21:46:26.210530] [error] Error al crear el payment intent: Could not connect to Stripe (https://api.stripe.com/v1/payment_intents/pi_3Qdf9ZEFY1WEUtgR1DE1cypZ/confirm). Please check your internet connection and try again. If this problem persists, you should check Stripe's service status at https://twitter.com/stripestatus, or let us know at support@stripe.com.
|
|
|
|
(Network error [errno 28]: Operation timed out after 80001 milliseconds with 0 bytes received)
|
|
|
|
[2025-01-04 21:46:26.211350] [info] Creando referencia del cliente para OXXO:
|
|
|
|
[2025-01-04 21:46:26.355484] [info] Monto proporcionado directamente: 190
|
|
|
|
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", "$120", "$4975 a favor"],
|
|
"template_uuid": "57ead79cebd14902921477922403093b",
|
|
"optin_contact": true
|
|
}
|
|
[2025-01-04 21:46:28.099940] [info] Referencia OXXO: 12345678901234657890123456789012
|
|
|
|
[2025-01-04 21:46:28.100054] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SV2ljY2dPQmZkekNMVDVDb3dnTGFiSzhVOElTYTJU0100Kqq818de
|
|
|
|
[2025-01-04 21:46:28.100884] [debug] Este ese el reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SV2ljY2dPQmZkekNMVDVDb3dnTGFiSzhVOElTYTJU0100Kqq818de"}
|
|
[2025-01-04 21:46:28.101006] [error] JSON error: No error
|
|
[2025-01-04 21:46:28.101046] [debug] HTTP request processing ended.
|
|
Response del CallBell: {"message":{"uuid":"4bb3d4867ad64382a46e0124accf8795","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":495,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:46:10-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"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\udcb24975 a favor","Monto Ultimo Pago":"\ud83d\udcb2 120","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\udcb24975 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 120\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 04\/01\/2025 15:46 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 15:46\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 04\/01\/2025 15:46 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 15:46","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-04T21:45:15Z","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":"📆💸 04/01/2025 15:46 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":"💲4975 a favor","Monto Ultimo Pago":"💲 120","URL":"🌐 https://172.16.5.120/crm/client/2","Fecha Ultima Actualizacion":"📆🔄️ 04/01/2025 15:46","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\": \"💲4975 a favor\",\"Monto Ultimo Pago\": \"💲 120\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 04/01/2025 15:46 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 04/01/2025 15:46\",\"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-04 21:46:30.948810] [debug] HTTP request processing ended.
|
|
[2025-01-04 21:48:10.350208] [notice] Logging level set to:debug
|
|
[2025-01-04 21:48:10.350547] [debug] El valor del evento recibio en json: {"uuid":"4cd04fdf-5bcf-47c1-9271-44fe1c6185b9","changeType":"insert","entity":"payment","entityId":"496","eventName":"payment.add","extraData":{"entity":{"id":496,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:48:09-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-04 21:48:10.468911] [debug] valor el evento recibido por webhook: payment.add
|
|
|
|
[2025-01-04 21:48:10.469279] [debug] datos del notification para el invoice add:{"uuid":"4cd04fdf-5bcf-47c1-9271-44fe1c6185b9","changeType":"insert","entity":"payment","entityId":496,"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":5165,"accountCredit":5165,"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":496,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:48:09-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]}}
|
|
|
|
[2025-01-04 21:48:10.469362] [debug] valor del payment data: {"id":496,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:48:09-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]}
|
|
|
|
[2025-01-04 21:48:10.469424] [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/f20395b0-697c-428a-80fa-40ac291371df.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
|
|
|
|
El archivo ha sido cargado exitosamente.
|
|
|
|
La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png
|
|
|
|
[2025-01-04 21:48:20.510783] [notice] Logging level set to:debug
|
|
[2025-01-04 21:48:20.510968] [debug] El valor del evento recibio en json: {"uuid":"3b9c62c6-1bc6-4285-aa5d-84de9b1ccc5f","changeType":"edit","entity":"payment","entityId":"496","eventName":"payment.edit","extraData":{"entity":{"id":496,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:48:09-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":496,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:48:09-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]}}}
|
|
|
|
[2025-01-04 21:48:20.644665] [debug] valor el evento recibido por webhook: payment.edit
|
|
|
|
[2025-01-04 21:48:20.645021] [debug] HTTP request processing ended.
|
|
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", "$190", "$5165 a favor"],
|
|
"template_uuid": "57ead79cebd14902921477922403093b",
|
|
"optin_contact": true
|
|
}
|
|
Response del CallBell: {"message":{"uuid":"57e68d25a46c46d3b330ce3b82847b31","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":496,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:48:09-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"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\udcb25165 a favor","Monto Ultimo Pago":"\ud83d\udcb2 190","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\udcb25165 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 190\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 04\/01\/2025 15:48 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 15:48\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 04\/01\/2025 15:48 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 15: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":"2025-01-04T21:45:15Z","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":"📆💸 04/01/2025 15:48 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":"💲5165 a favor","Monto Ultimo Pago":"💲 190","URL":"🌐 https://172.16.5.120/crm/client/2","Fecha Ultima Actualizacion":"📆🔄️ 04/01/2025 15:48","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\": \"💲5165 a favor\",\"Monto Ultimo Pago\": \"💲 190\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 04/01/2025 15:48 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 04/01/2025 15:48\",\"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-04 21:48:28.388371] [debug] HTTP request processing ended.
|
|
[2025-01-04 21:49:32.930886] [notice] Logging level set to:debug
|
|
[2025-01-04 21:49:32.931526] [debug] El valor del evento recibio en json: {"uuid":"80fcaa9b-3cca-458b-b755-acfb2777f5ea","changeType":"insert","entity":"payment","entityId":"497","eventName":"payment.add","extraData":{"entity":{"id":497,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:49:32-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-04 21:49:33.050431] [debug] valor el evento recibido por webhook: payment.add
|
|
|
|
[2025-01-04 21:49:33.050817] [debug] datos del notification para el invoice add:{"uuid":"80fcaa9b-3cca-458b-b755-acfb2777f5ea","changeType":"insert","entity":"payment","entityId":497,"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":5355,"accountCredit":5355,"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":497,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:49:32-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]}}
|
|
|
|
[2025-01-04 21:49:33.051016] [debug] valor del payment data: {"id":497,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:49:32-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]}
|
|
|
|
[2025-01-04 21:49:33.051080] [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/eb03d77d-ee72-47b7-90a7-6dd9224c7c49.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
|
|
|
|
El archivo ha sido cargado exitosamente.
|
|
|
|
La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png
|
|
|
|
[2025-01-04 21:49:43.044415] [notice] Logging level set to:debug
|
|
[2025-01-04 21:49:43.044822] [debug] El valor del evento recibio en json: {"uuid":"de7c7814-5129-4242-9faf-a31912dc099a","changeType":"edit","entity":"payment","entityId":"497","eventName":"payment.edit","extraData":{"entity":{"id":497,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:49:32-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":497,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:49:32-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]}}}
|
|
|
|
[2025-01-04 21:49:43.181915] [debug] valor el evento recibido por webhook: payment.edit
|
|
|
|
[2025-01-04 21:49:43.182313] [debug] HTTP request processing ended.
|
|
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", "$190", "$5355 a favor"],
|
|
"template_uuid": "57ead79cebd14902921477922403093b",
|
|
"optin_contact": true
|
|
}
|
|
Response del CallBell: {"message":{"uuid":"262a3a477ba546a9acf72108977ecbbf","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":497,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:49:32-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"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\udcb25355 a favor","Monto Ultimo Pago":"\ud83d\udcb2 190","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\udcb25355 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 190\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 04\/01\/2025 15:49 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 15:49\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 04\/01\/2025 15:49 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 15:49","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-04T21:45:15Z","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":"📆💸 04/01/2025 15:49 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":"💲5355 a favor","Monto Ultimo Pago":"💲 190","URL":"🌐 https://172.16.5.120/crm/client/2","Fecha Ultima Actualizacion":"📆🔄️ 04/01/2025 15:49","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\": \"💲5355 a favor\",\"Monto Ultimo Pago\": \"💲 190\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 04/01/2025 15:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 04/01/2025 15:49\",\"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-04 21:49:52.404685] [debug] HTTP request processing ended.
|
|
[2025-01-04 21:50:31.251308] [notice] Logging level set to:debug
|
|
[2025-01-04 21:50:31.251548] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":2,"amount":320}
|
|
|
|
[2025-01-04 21:50:31.251641] [info] Evento de referencia de oxxo recibido
|
|
|
|
[2025-01-04 21:50:31.251717] [info] Valor del monto: 320
|
|
|
|
[2025-01-04 21:50:31.251791] [info] Creando referencia del cliente para OXXO:
|
|
|
|
[2025-01-04 21:50:31.369318] [info] Monto proporcionado directamente: 320
|
|
|
|
[2025-01-04 21:50:31.369445] [info] Creando referencia en Stripe por: 32000
|
|
|
|
[2025-01-04 21:50:31.962315] [info] Creando payment methods del voucher
|
|
|
|
[2025-01-04 21:50:32.214518] [info] Confirmando el paymentIntent
|
|
|
|
[2025-01-04 21:50:32.844495] [info] Se terminó de confirmar el paymentIntent
|
|
|
|
[2025-01-04 21:50:32.844799] [info] Referencia OXXO: 12345678901234657890123456789012
|
|
|
|
[2025-01-04 21:50:32.844892] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SV2lneDhmYTZ0NlY5QUw1TUY4Nk96WU9LeFJoWTJX0100Y7YdwVXF
|
|
|
|
[2025-01-04 21:50:32.845221] [debug] Este ese el reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SV2lneDhmYTZ0NlY5QUw1TUY4Nk96WU9LeFJoWTJX0100Y7YdwVXF"}
|
|
[2025-01-04 21:50:32.845422] [error] JSON error: No error
|
|
[2025-01-04 21:50:32.845591] [debug] HTTP request processing ended.
|
|
[2025-01-04 21:51:10.020046] [notice] Logging level set to:debug
|
|
[2025-01-04 21:51:10.020256] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":2,"amount":340}
|
|
|
|
[2025-01-04 21:51:10.020294] [info] Evento de referencia de oxxo recibido
|
|
|
|
[2025-01-04 21:51:10.020323] [info] Valor del monto: 340
|
|
|
|
[2025-01-04 21:51:10.020354] [info] Creando referencia del cliente para OXXO:
|
|
|
|
[2025-01-04 21:51:10.148372] [info] Monto proporcionado directamente: 340
|
|
|
|
[2025-01-04 21:51:10.148508] [info] Creando referencia en Stripe por: 34000
|
|
|
|
[2025-01-04 21:51:10.754482] [info] Creando payment methods del voucher
|
|
|
|
[2025-01-04 21:51:11.017270] [info] Confirmando el paymentIntent
|
|
|
|
[2025-01-04 21:51:11.629257] [info] Se terminó de confirmar el paymentIntent
|
|
|
|
[2025-01-04 21:51:11.629379] [info] Referencia OXXO: 12345678901234657890123456789012
|
|
|
|
[2025-01-04 21:51:11.629410] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SV2lnSGVEa1dRN1lmOEgyQndXdHd3S1BHUWdhc1hs0100hJjwUIhI
|
|
|
|
[2025-01-04 21:51:11.630063] [debug] Este ese el reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SV2lnSGVEa1dRN1lmOEgyQndXdHd3S1BHUWdhc1hs0100hJjwUIhI"}
|
|
[2025-01-04 21:51:11.630172] [error] JSON error: No error
|
|
[2025-01-04 21:51:11.630207] [debug] HTTP request processing ended.
|
|
[2025-01-04 21:53:38.085383] [notice] Logging level set to:debug
|
|
[2025-01-04 21:53:38.085490] [debug] El valor del evento recibio en json: {"uuid":"07d645c4-3134-4ba6-84d1-1ca35e7adfc5","changeType":"insert","entity":"payment","entityId":"498","eventName":"payment.add","extraData":{"entity":{"id":498,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:53:37-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":320,"userId":null,"attributes":[]},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-04 21:53:38.203583] [debug] valor el evento recibido por webhook: payment.add
|
|
|
|
[2025-01-04 21:53:38.203845] [debug] datos del notification para el invoice add:{"uuid":"07d645c4-3134-4ba6-84d1-1ca35e7adfc5","changeType":"insert","entity":"payment","entityId":498,"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":5675,"accountCredit":5675,"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":498,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:53:37-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":320,"userId":null,"attributes":[]}}
|
|
|
|
[2025-01-04 21:53:38.203872] [debug] valor del payment data: {"id":498,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:53:37-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":320,"userId":null,"attributes":[]}
|
|
|
|
[2025-01-04 21:53:38.203902] [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/c05d34e0-c9da-40ec-a992-407128e8e9f6.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
|
|
|
|
El archivo ha sido cargado exitosamente.
|
|
|
|
La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png
|
|
|
|
[2025-01-04 21:53:48.264913] [notice] Logging level set to:debug
|
|
[2025-01-04 21:53:48.265263] [debug] El valor del evento recibio en json: {"uuid":"0dad66e5-5bec-4567-a401-e7c468368806","changeType":"edit","entity":"payment","entityId":"498","eventName":"payment.edit","extraData":{"entity":{"id":498,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:53:37-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":320,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":498,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:53:37-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":320,"userId":null,"attributes":[]}}}
|
|
|
|
[2025-01-04 21:53:48.408209] [debug] valor el evento recibido por webhook: payment.edit
|
|
|
|
[2025-01-04 21:53:48.408613] [debug] HTTP request processing ended.
|
|
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", "$320", "$5675 a favor"],
|
|
"template_uuid": "57ead79cebd14902921477922403093b",
|
|
"optin_contact": true
|
|
}
|
|
Response del CallBell: {"message":{"uuid":"e72fe362942a47938a4a74f83630c4e0","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":498,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:53:37-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":320,"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\udcb25675 a favor","Monto Ultimo Pago":"\ud83d\udcb2 320","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb25675 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 320\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 04\/01\/2025 15:53 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 15:53\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 04\/01\/2025 15:53 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 15:53","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-04T21:51:12Z","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":"📆💸 04/01/2025 15:53 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":"💲5675 a favor","Monto Ultimo Pago":"💲 320","URL":"🌐 https://172.16.5.120/crm/client/2","Fecha Ultima Actualizacion":"📆🔄️ 04/01/2025 15:53","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\": \"💲5675 a favor\",\"Monto Ultimo Pago\": \"💲 320\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 04/01/2025 15:53 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 04/01/2025 15:53\",\"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-04 21:53:57.489893] [debug] HTTP request processing ended.
|
|
[2025-01-04 21:54:14.682770] [notice] Logging level set to:debug
|
|
[2025-01-04 21:54:14.683099] [debug] El valor del evento recibio en json: {"uuid":"c3ef3905-5d01-4027-995c-ec59fc8ec1f3","changeType":"insert","entity":"payment","entityId":"499","eventName":"payment.add","extraData":{"entity":{"id":499,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:54:14-0600","amount":340,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":340,"userId":null,"attributes":[]},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-04 21:54:14.900810] [debug] valor el evento recibido por webhook: payment.add
|
|
|
|
[2025-01-04 21:54:14.901177] [debug] datos del notification para el invoice add:{"uuid":"c3ef3905-5d01-4027-995c-ec59fc8ec1f3","changeType":"insert","entity":"payment","entityId":499,"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":6015,"accountCredit":6015,"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":499,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:54:14-0600","amount":340,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":340,"userId":null,"attributes":[]}}
|
|
|
|
[2025-01-04 21:54:14.901259] [debug] valor del payment data: {"id":499,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:54:14-0600","amount":340,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":340,"userId":null,"attributes":[]}
|
|
|
|
[2025-01-04 21:54:14.901318] [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/1e7ae20f-fe67-4321-a2a6-f0541504882e.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
|
|
|
|
[2025-01-04 21:54:24.792803] [notice] Logging level set to:debug
|
|
[2025-01-04 21:54:24.793018] [debug] El valor del evento recibio en json: {"uuid":"2815f9c6-019d-439e-9388-1114e7ac8056","changeType":"edit","entity":"payment","entityId":"499","eventName":"payment.edit","extraData":{"entity":{"id":499,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:54:14-0600","amount":340,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":340,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":499,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:54:14-0600","amount":340,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":340,"userId":null,"attributes":[]}}}
|
|
|
|
[2025-01-04 21:54:24.915355] [debug] valor el evento recibido por webhook: payment.edit
|
|
|
|
[2025-01-04 21:54:24.915704] [debug] HTTP request processing ended.
|
|
Conexión FTP exitosa
|
|
|
|
El archivo ha sido cargado exitosamente.
|
|
|
|
La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_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", "$340", "$6015 a favor"],
|
|
"template_uuid": "57ead79cebd14902921477922403093b",
|
|
"optin_contact": true
|
|
}
|
|
Response del CallBell: {"message":{"uuid":"fc25a9bf16da44d8ab24388cd4e541b5","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":499,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:54:14-0600","amount":340,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":340,"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\udcb26015 a favor","Monto Ultimo Pago":"\ud83d\udcb2 340","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\udcb26015 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 340\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 04\/01\/2025 15:54 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 15:54\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 04\/01\/2025 15:54 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 15:54","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-04T21:51:12Z","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":"📆💸 04/01/2025 15:54 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":"💲6015 a favor","Monto Ultimo Pago":"💲 340","URL":"🌐 https://172.16.5.120/crm/client/2","Fecha Ultima Actualizacion":"📆🔄️ 04/01/2025 15:54","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\": \"💲6015 a favor\",\"Monto Ultimo Pago\": \"💲 340\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 04/01/2025 15:54 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 04/01/2025 15:54\",\"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-04 21:54:35.509160] [debug] HTTP request processing ended.
|
|
[2025-01-04 22:18:44.527709] [notice] Logging level set to:debug
|
|
[2025-01-04 22:18:44.527829] [debug] El valor del evento recibio en json: {"uuid":"bea45958-bf21-4e1e-8447-1b69ff6b0735","changeType":"insert","entity":"client","entityId":"156","eventName":"client.add","extraData":{"entity":{"id":156,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":null,"countryId":173,"stateId":null,"zipCode":null,"fullAddress":"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":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#7cb342","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-04 22:18:44.630623] [debug] valor el evento recibido por webhook: client.add
|
|
|
|
[2025-01-04 22:18:44.630863] [debug] Se agregó un nuevo cliente
|
|
|
|
[2025-01-04 22:18:44.696295] [info] ID correspondiente a 'Customer Stripe ID': 10
|
|
|
|
[2025-01-04 22:18:44.696547] [info] Valor de notification client data export: {"id":156,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":null,"countryId":173,"stateId":null,"zipCode":null,"fullAddress":"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":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#7cb342","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}
|
|
|
|
[2025-01-04 22:18:44.696578] [info] Creando el Customer Stripe
|
|
|
|
[2025-01-04 22:18:44.696589] [info] El cliente a procesar es : Maria Gricelda López Avalos
|
|
|
|
[2025-01-04 22:18:44.696609] [info] Datos notificationData: {"uuid":"bea45958-bf21-4e1e-8447-1b69ff6b0735","changeType":"insert","entity":"client","entityId":156,"message":null,"clientId":156,"eventName":"client.add","clientData":{"id":156,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":null,"countryId":173,"stateId":null,"zipCode":null,"fullAddress":"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":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#7cb342","addressGpsLat":null,"addressGpsLon":null,"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-04 22:18:44.696616] [info] Ya dentro del FOREACH!!!
|
|
|
|
[2025-01-04 22:18:44.696624] [info] REVISANDO EL PRIMER CONTACTO!!!
|
|
|
|
[2025-01-04 22:18:44.696634] [info] SE VALIDA EL EMAIL!!!
|
|
|
|
[2025-01-04 22:18:44.698553] [info] ahora se procede a validar el teléfono!!!
|
|
|
|
[2025-01-04 22:18:44.699378] [info] AHORA SE MANDA A CREAR EL CLIENTE A STRIPE!!!
|
|
|
|
[2025-01-04 22:18:45.282644] [info] {"id":"cus_RWj8SZIs9d3z41","object":"customer","address":null,"balance":0,"created":1736029125,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 156","discount":null,"email":null,"invoice_prefix":"D4C51FAE","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":[],"name":"Maria Gricelda L\u00f3pez Avalos","next_invoice_sequence":1,"phone":"4181817609","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null}
|
|
|
|
[2025-01-04 22:18:47.605971] [info] {"id":"cus_RWj8SZIs9d3z41","object":"customer","address":null,"balance":0,"created":1736029125,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 156","discount":null,"email":null,"invoice_prefix":"D4C51FAE","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":{"ucrm_client_id":"156"},"name":"Maria Gricelda L\u00f3pez Avalos","next_invoice_sequence":1,"phone":"4181817609","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null}
|
|
|
|
[2025-01-04 22:18:47.935695] [notice] Logging level set to:debug
|
|
[2025-01-04 22:18:47.935879] [debug] El valor del evento recibio en json: {"id":"evt_1QdfgBEFY1WEUtgRjIvWiEE5","object":"event","api_version":"2023-10-16","created":1736029127,"data":{"object":{"id":"cus_RWj8SZIs9d3z41","object":"customer","address":null,"balance":0,"created":1736029125,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 156","discount":null,"email":null,"invoice_prefix":"D4C51FAE","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":{"ucrm_client_id":"156"},"name":"Maria Gricelda L\u00f3pez Avalos","next_invoice_sequence":1,"phone":"4181817609","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_FDjzalWo9Gwt4L","idempotency_key":"96c3a804-8b96-4ff9-a0ec-4a1b51c5540d"},"type":"customer.updated"}
|
|
|
|
[2025-01-04 22:18:47.935957] [error] JSON error: No error
|
|
[2025-01-04 22:18:47.935988] [debug] HTTP request processing ended.
|
|
[2025-01-04 22:18:50.051131] [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":"124180553522369174"},"supported_networks":["spei"],"type":"spei"}],"type":"mx_bank_transfer"},"currency":"mxn","funding_type":"bank_transfer","livemode":false}
|
|
|
|
[2025-01-04 22:18:50.375974] [info] CLABE guardada en metadata: 124180553522369174
|
|
|
|
[2025-01-04 22:18:50.700612] [notice] Logging level set to:debug
|
|
[2025-01-04 22:18:50.700712] [debug] El valor del evento recibio en json: {"id":"evt_1QdfgEEFY1WEUtgRt0eThmtx","object":"event","api_version":"2023-10-16","created":1736029130,"data":{"object":{"id":"cus_RWj8SZIs9d3z41","object":"customer","address":null,"balance":0,"created":1736029125,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 156","discount":null,"email":null,"invoice_prefix":"D4C51FAE","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":{"ucrm_client_id":"156","clabe":"124180553522369174"},"name":"Maria Gricelda L\u00f3pez Avalos","next_invoice_sequence":1,"phone":"4181817609","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_xnluVGAWzz73fe","idempotency_key":"bf4c455d-c3c9-4a6b-ae9e-4569661b6a3d"},"type":"customer.updated"}
|
|
|
|
[2025-01-04 22:18:50.700745] [error] JSON error: No error
|
|
[2025-01-04 22:18:50.700757] [debug] HTTP request processing ended.
|
|
[2025-01-04 22:18:51.001353] [info] {}
|
|
|
|
[2025-01-04 22:18:51.001948] [debug] HTTP request processing ended.
|
|
[2025-01-04 22:18:51.151599] [notice] Logging level set to:debug
|
|
[2025-01-04 22:18:51.151743] [debug] El valor del evento recibio en json: {"uuid":"afe0480a-4668-4491-9d1f-c9b9a2dd7762","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":false,"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":null,"street2":null,"city":null,"countryId":173,"stateId":null,"zipCode":null,"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":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#7cb342","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
|
|
|
|
[2025-01-04 22:18:51.240300] [debug] valor el evento recibido por webhook: client.edit
|
|
|
|
[2025-01-04 22:18:51.241818] [debug] Se actualiza a un cliente
|
|
|
|
[2025-01-04 22:18:51.241961] [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 04\/01\/2025 22:18 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 16:18\",\"Clabe Transferencia Banamex\": \"124180553522369174\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 04\/01\/2025 22:18 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 16:18","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":"2024-01-26T20:32:31Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/2038d2d99ae543f3b56f1ae54f4cc82b","conversationHref":"https://dash.callbell.eu/chat/90611886ac204c56a75240f951c53874","tags":[],"assignedUser":null,"customFields":{"Cliente":"156","Estado":"🟢 Activo ","Nombre":"👤 Maria Gricelda López Avalos","Resumen":"{\"Cliente\": \"156\",\"Domicilio\": \"📍 Yucatán 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Maria Gricelda López Avalos\",\"URL\": \"🌐 https://172.16.5.120/crm/client/156\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"💲 \",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 04/01/2025 22:18 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 04/01/2025 16:18\",\"Clabe Transferencia Banamex\": \"124180553522369174\"}","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":"📆💸 04/01/2025 22:18 con Desconocido, revisar metodos de pago no contemplados","Monto Ultimo Pago":"💲 ","Saldo Actual":"💲0 está al corriente","Clabe Transferencia Banamex":"124180553522369174","Fecha Ultima Actualizacion":"📆🔄️ 04/01/2025 16:18"},"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-04 22:18:53.682930] [debug] HTTP request processing ended.
|
|
[2025-01-04 22:18:55.716912] [notice] Logging level set to:debug
|
|
[2025-01-04 22:18:55.717020] [debug] El valor del evento recibio en json: {"uuid":"533ca3f5-fad3-4419-8a7c-fa3f75ffdb6d","changeType":"insert","entity":"service","entityId":"126","eventName":"service.add","extraData":{"entity":{"id":126,"prepaid":false,"clientId":156,"status":1,"name":"PREMIUM","fullAddress":"Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"34 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1562598,"addressGpsLon":-100.9370894,"servicePlanId":4,"servicePlanPeriodId":19,"price":700,"hasIndividualPrice":false,"totalPrice":700,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-01-04T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-01-04T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"PREMIUM","servicePlanPrice":700,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":20,"uploadSpeed":20,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"55d613ed-decc-4317-a3ad-d95c684a3843","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-04 22:18:56.158592] [debug] valor el evento recibido por webhook: service.add
|
|
|
|
[2025-01-04 22:18:56.158788] [debug] HTTP request processing ended.
|
|
[2025-01-04 22:19:01.632682] [notice] Logging level set to:debug
|
|
[2025-01-04 22:19:01.633083] [debug] El valor del evento recibio en json: {"uuid":"8a4b9191-6941-4958-8c98-a0426741cd54","changeType":"edit","entity":"service","entityId":"126","eventName":"service.edit","extraData":{"entity":{"id":126,"prepaid":false,"clientId":156,"status":1,"name":"PREMIUM","fullAddress":"Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"34 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1562598,"addressGpsLon":-100.9370894,"servicePlanId":4,"servicePlanPeriodId":19,"price":700,"hasIndividualPrice":false,"totalPrice":700,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-01-04T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-01-04T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"PREMIUM","servicePlanPrice":700,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":20,"uploadSpeed":20,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"55d613ed-decc-4317-a3ad-d95c684a3843","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":{"id":126,"prepaid":false,"clientId":156,"status":1,"name":"PREMIUM","fullAddress":"Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"34 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1562598,"addressGpsLon":-100.9370894,"servicePlanId":4,"servicePlanPeriodId":19,"price":700,"hasIndividualPrice":false,"totalPrice":700,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-01-04T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-01-04T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"PREMIUM","servicePlanPrice":700,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":20,"uploadSpeed":20,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"55d613ed-decc-4317-a3ad-d95c684a3843","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]}}}
|
|
|
|
[2025-01-04 22:19:01.806576] [debug] valor el evento recibido por webhook: service.edit
|
|
|
|
[2025-01-04 22:19:01.806916] [debug] HTTP request processing ended.
|
|
[2025-01-04 22:20:17.663285] [notice] Logging level set to:debug
|
|
[2025-01-04 22:20:17.663666] [debug] El valor del evento recibio en json: {"uuid":"37a75c83-96fc-4adb-b97a-a9be017c01d0","changeType":"edit","entity":"client","entityId":"3","eventName":"client.edit","extraData":{"entity":{"id":3,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":null,"countryId":173,"stateId":null,"zipCode":null,"fullAddress":null,"invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-27T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Lupita","lastName":"Morales","username":"lmorales03","contacts":[{"id":3,"clientId":3,"email":null,"phone":"5214181577623","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f9a825","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":3,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":null,"countryId":173,"stateId":null,"zipCode":null,"fullAddress":null,"invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-27T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Lupita","lastName":"Morales","username":"lmorales03","contacts":[{"id":3,"clientId":3,"email":null,"phone":"5214181148554","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f9a825","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
|
|
|
|
[2025-01-04 22:20:17.813152] [debug] valor el evento recibido por webhook: client.edit
|
|
|
|
[2025-01-04 22:20:17.813519] [debug] Se actualiza a un cliente
|
|
|
|
[2025-01-04 22:20:17.813637] [info] Se proceso los contactos
|
|
|
|
Dentro del proceso del patch:
|
|
|
|
Datos traidos con payment api: [{"id":387,"clientId":3,"methodId":"11721cdf-a498-48be-903e-daa67552e4f6","checkNumber":null,"createdDate":"2024-12-11T13:32:40-0600","amount":3000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":446,"invoiceId":117,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":447,"invoiceId":234,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":448,"invoiceId":331,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":449,"invoiceId":496,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":450,"invoiceId":632,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":451,"invoiceId":752,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":452,"invoiceId":860,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":453,"invoiceId":969,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":454,"invoiceId":1085,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":455,"invoiceId":1195,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}]
|
|
|
|
Nombre del cliente que se va a actualizar: Lupita Morales
|
|
|
|
UUID: 7ec1948ad8af4bcd8eff0d7c2a995d09
|
|
|
|
JSON con los datos a actualizar: {"name":"Lupita Morales","custom_fields":{"Cliente":3,"Domicilio":"\ud83d\udccd\u274c Sin domicilio","Nombre":"\ud83d\udc64 Lupita Morales","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/3","Saldo Actual":"\ud83d\udcb2300 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 3000","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"3\",\"Domicilio\": \"\ud83d\udccd\u274c Sin domicilio\",\"Nombre\": \"\ud83d\udc64 Lupita Morales\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/3\",\"Saldo Actual\": \"\ud83d\udcb2300 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 3000\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 11\/12\/2024 13:32 con Cheque \ud83d\udcc4\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 16:20\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 11\/12\/2024 13:32 con Cheque \ud83d\udcc4","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 16:20","Clabe Transferencia Banamex":null}}
|
|
|
|
Response Patch CallBell: {"contact":{"uuid":"7ec1948ad8af4bcd8eff0d7c2a995d09","name":"Lupita Morales","phoneNumber":"5214181577623","avatarUrl":null,"createdAt":"2023-12-22T16:52:57Z","closedAt":"2025-01-04T17:49:10Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7ec1948ad8af4bcd8eff0d7c2a995d09","conversationHref":"https://dash.callbell.eu/chat/d06f5a96768c4945b7a659a6930e5fa0","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Nombre":"👤 Lupita Morales","Cliente":"3","Domicilio":"📍❌ Sin domicilio","Clabe Transferencia Banamex":"124180650725363841","Fecha Ultimo Pago":"📆💸 11/12/2024 13:32 con Cheque 📄","Saldo Actual":"💲300 pendientes","user name":"Míriam Moctezuma","Resumen":"{\"Cliente\": \"3\",\"Domicilio\": \"📍❌ Sin domicilio\",\"Nombre\": \"👤 Lupita Morales\",\"URL\": \"🌐 https://172.16.5.120/crm/client/3\",\"Saldo Actual\": \"💲300 pendientes\",\"Monto Ultimo Pago\": \"💲 3000\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 11/12/2024 13:32 con Cheque 📄\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 04/01/2025 16:20\",\"Clabe Transferencia Banamex\": \"\"}","Estado":"🟢 Activo ","URL":"🌐 https://172.16.5.120/crm/client/3","Monto Ultimo Pago":"💲 3000","Fecha Ultima Actualizacion":"📆🔄️ 04/01/2025 16:20"},"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-04 22:20:19.867376] [debug] HTTP request processing ended.
|
|
[2025-01-04 22:20:32.980510] [notice] Logging level set to:debug
|
|
[2025-01-04 22:20:32.980901] [debug] El valor del evento recibio en json: {"uuid":"4ed181bc-7c5d-437c-88a1-d9fa1110c631","changeType":"edit","entity":"client","entityId":"3","eventName":"client.edit","extraData":{"entity":{"id":3,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"56 Oaxaca","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Oaxaca 56, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-27T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Lupita","lastName":"Morales","username":"lmorales03","contacts":[{"id":3,"clientId":3,"email":null,"phone":"5214181577623","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f9a825","addressGpsLat":21.16004,"addressGpsLon":-100.9368203,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":3,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":null,"countryId":173,"stateId":null,"zipCode":null,"fullAddress":null,"invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-27T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Lupita","lastName":"Morales","username":"lmorales03","contacts":[{"id":3,"clientId":3,"email":null,"phone":"5214181577623","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f9a825","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
|
|
|
|
[2025-01-04 22:20:33.100435] [debug] valor el evento recibido por webhook: client.edit
|
|
|
|
[2025-01-04 22:20:33.100795] [debug] Se actualiza a un cliente
|
|
|
|
[2025-01-04 22:20:33.100914] [info] Se proceso los contactos
|
|
|
|
Dentro del proceso del patch:
|
|
|
|
Datos traidos con payment api: [{"id":387,"clientId":3,"methodId":"11721cdf-a498-48be-903e-daa67552e4f6","checkNumber":null,"createdDate":"2024-12-11T13:32:40-0600","amount":3000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":446,"invoiceId":117,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":447,"invoiceId":234,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":448,"invoiceId":331,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":449,"invoiceId":496,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":450,"invoiceId":632,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":451,"invoiceId":752,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":452,"invoiceId":860,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":453,"invoiceId":969,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":454,"invoiceId":1085,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":455,"invoiceId":1195,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}]
|
|
|
|
Nombre del cliente que se va a actualizar: Lupita Morales
|
|
|
|
UUID: 7ec1948ad8af4bcd8eff0d7c2a995d09
|
|
|
|
JSON con los datos a actualizar: {"name":"Lupita Morales","custom_fields":{"Cliente":3,"Domicilio":"\ud83d\udccd Oaxaca 56, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Lupita Morales","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/3","Saldo Actual":"\ud83d\udcb2300 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 3000","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"3\",\"Domicilio\": \"\ud83d\udccd Oaxaca 56, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Lupita Morales\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/3\",\"Saldo Actual\": \"\ud83d\udcb2300 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 3000\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 11\/12\/2024 13:32 con Cheque \ud83d\udcc4\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 16:20\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 11\/12\/2024 13:32 con Cheque \ud83d\udcc4","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 16:20","Clabe Transferencia Banamex":null}}
|
|
|
|
Response Patch CallBell: {"contact":{"uuid":"7ec1948ad8af4bcd8eff0d7c2a995d09","name":"Lupita Morales","phoneNumber":"5214181577623","avatarUrl":null,"createdAt":"2023-12-22T16:52:57Z","closedAt":"2025-01-04T17:49:10Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7ec1948ad8af4bcd8eff0d7c2a995d09","conversationHref":"https://dash.callbell.eu/chat/d06f5a96768c4945b7a659a6930e5fa0","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Nombre":"👤 Lupita Morales","Cliente":"3","Domicilio":"📍 Oaxaca 56, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Clabe Transferencia Banamex":"124180650725363841","Fecha Ultimo Pago":"📆💸 11/12/2024 13:32 con Cheque 📄","Saldo Actual":"💲300 pendientes","user name":"Míriam Moctezuma","Resumen":"{\"Cliente\": \"3\",\"Domicilio\": \"📍 Oaxaca 56, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Lupita Morales\",\"URL\": \"🌐 https://172.16.5.120/crm/client/3\",\"Saldo Actual\": \"💲300 pendientes\",\"Monto Ultimo Pago\": \"💲 3000\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 11/12/2024 13:32 con Cheque 📄\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 04/01/2025 16:20\",\"Clabe Transferencia Banamex\": \"\"}","Estado":"🟢 Activo ","URL":"🌐 https://172.16.5.120/crm/client/3","Monto Ultimo Pago":"💲 3000","Fecha Ultima Actualizacion":"📆🔄️ 04/01/2025 16:20"},"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-04 22:20:35.211805] [debug] HTTP request processing ended.
|
|
[2025-01-04 22:20:35.335758] [notice] Logging level set to:debug
|
|
[2025-01-04 22:20:35.336025] [debug] El valor del evento recibio en json: {"uuid":"5d9c44cd-a7f6-4302-8da4-cbab62e09838","changeType":"edit","entity":"service","entityId":"3","eventName":"service.edit","extraData":{"entity":{"id":3,"prepaid":false,"clientId":3,"status":1,"name":"plan300","fullAddress":"Oaxaca 56, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"56 Oaxaca","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.16004,"addressGpsLon":-100.9368203,"servicePlanId":2,"servicePlanPeriodId":7,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2024-01-27T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2024-01-28T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":27,"nextInvoicingDayAdjustment":0,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"plan300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":6,"uploadSpeed":6,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2024-12-26T00:00:00-0600","unmsClientSiteId":"c4ea6c5c-0577-42bc-852e-e54cad6255b8","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":43,"startDate":"2024-03-13T00:00:00-0600","endDate":"2024-12-11T00:00:00-0600"}],"surcharges":[]},"entityBeforeEdit":{"id":3,"prepaid":false,"clientId":3,"status":1,"name":"plan300","fullAddress":null,"street1":null,"street2":null,"city":null,"countryId":173,"stateId":null,"zipCode":null,"note":null,"addressGpsLat":null,"addressGpsLon":null,"servicePlanId":2,"servicePlanPeriodId":7,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2024-01-27T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2024-01-28T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":27,"nextInvoicingDayAdjustment":0,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"plan300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":6,"uploadSpeed":6,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2024-12-26T00:00:00-0600","unmsClientSiteId":"c4ea6c5c-0577-42bc-852e-e54cad6255b8","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":43,"startDate":"2024-03-13T00:00:00-0600","endDate":"2024-12-11T00:00:00-0600"}],"surcharges":[]}}}
|
|
|
|
[2025-01-04 22:20:35.479461] [debug] valor el evento recibido por webhook: service.edit
|
|
|
|
[2025-01-04 22:20:35.479768] [debug] HTTP request processing ended.
|
|
[2025-01-04 22:21:04.397510] [notice] Logging level set to:debug
|
|
[2025-01-04 22:21:04.397908] [debug] El valor del evento recibio en json: {"uuid":"f2f8fabd-0b1b-419a-8adb-9349fa327d6a","changeType":"edit","entity":"client","entityId":"6","eventName":"client.edit","extraData":{"entity":{"id":6,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"ALEJANDRO","lastName":"MOCTEZUMA","username":"amoctezuma06","contacts":[{"id":7,"clientId":6,"email":null,"phone":"5214181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-3280,"accountCredit":0,"accountOutstanding":3280,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574,"addressGpsLon":-100.934617,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":6,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"ALEJANDRO","lastName":"MOCTEZUMA","username":"amoctezuma06","contacts":[{"id":7,"clientId":6,"email":null,"phone":"5214181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-3280,"accountCredit":0,"accountOutstanding":3280,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574,"addressGpsLon":-100.934617,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
|
|
|
|
[2025-01-04 22:21:04.471528] [debug] valor el evento recibido por webhook: client.edit
|
|
|
|
[2025-01-04 22:21:04.471887] [debug] Se actualiza a un cliente
|
|
|
|
[2025-01-04 22:21:04.472007] [info] Se proceso los contactos
|
|
|
|
Dentro del proceso del patch:
|
|
|
|
Datos traidos con payment api: [{"id":27,"clientId":6,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-02-01T12:57:53-0600","amount":2000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":30,"invoiceId":7,"paymentId":27,"creditNoteId":null,"refundId":null,"amount":1700},{"id":31,"invoiceId":5,"paymentId":27,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1000,"attributes":[]}]
|
|
|
|
Nombre del cliente que se va a actualizar: ALEJANDRO MOCTEZUMA
|
|
|
|
UUID: 71a76e57f89441ff978a5ece070f21d7
|
|
|
|
JSON con los datos a actualizar: {"name":"ALEJANDRO MOCTEZUMA","custom_fields":{"Cliente":6,"Domicilio":"\ud83d\udccd DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","Nombre":"\ud83d\udc64 ALEJANDRO MOCTEZUMA","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/6","Saldo Actual":"\ud83d\udcb23280 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 2000","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"6\",\"Domicilio\": \"\ud83d\udccd DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800\",\"Nombre\": \"\ud83d\udc64 ALEJANDRO MOCTEZUMA\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/6\",\"Saldo Actual\": \"\ud83d\udcb23280 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 2000\",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 01\/02\/2024 12:57 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 16:21\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 01\/02\/2024 12:57 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 16:21","Clabe Transferencia Banamex":null}}
|
|
|
|
Response Patch CallBell: {"contact":{"uuid":"71a76e57f89441ff978a5ece070f21d7","name":"ALEJANDRO MOCTEZUMA","phoneNumber":"5214181811375","avatarUrl":null,"createdAt":"2021-06-25T15:57:32Z","closedAt":"2024-03-08T18:53:35Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/71a76e57f89441ff978a5ece070f21d7","conversationHref":"https://dash.callbell.eu/chat/6c83978a945141db820592787b7184d5","tags":[],"assignedUser":"miriam.moctezuma2m@gmail.com","customFields":{"Cliente":"6","Nombre":"👤 ALEJANDRO MOCTEZUMA","Resumen":"{\"Cliente\": \"6\",\"Domicilio\": \"📍 DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800\",\"Nombre\": \"👤 ALEJANDRO MOCTEZUMA\",\"URL\": \"🌐 https://172.16.5.120/crm/client/6\",\"Saldo Actual\": \"💲3280 pendientes\",\"Monto Ultimo Pago\": \"💲 2000\",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 01/02/2024 12:57 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 04/01/2025 16:21\",\"Clabe Transferencia Banamex\": \"\"}","Domicilio":"📍 DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","URL":"🌐 https://172.16.5.120/crm/client/6","Fecha Ultimo Pago":"📆💸 01/02/2024 12:57 con Efectivo 💵","Monto Ultimo Pago":"💲 2000","Saldo Actual":"💲3280 pendientes","Estado":"🔴 Suspendido","Fecha Ultima Actualizacion":"📆🔄️ 04/01/2025 16:21"},"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-04 22:21:05.966211] [debug] HTTP request processing ended.
|
|
[2025-01-04 22:22:10.623811] [notice] Logging level set to:debug
|
|
[2025-01-04 22:22:10.624181] [debug] El valor del evento recibio en json: {"uuid":"02e74a3a-07e7-46fe-a244-02fe6a9a7825","changeType":"insert","entity":"client","entityId":"157","eventName":"client.add","extraData":{"entity":{"id":157,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Angel Mamey","lastName":"Arvizu","username":null,"contacts":[{"id":161,"clientId":157,"email":null,"phone":"5214181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574303,"addressGpsLon":-100.9275061,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-04 22:22:10.725749] [debug] valor el evento recibido por webhook: client.add
|
|
|
|
[2025-01-04 22:22:10.726104] [debug] Se agregó un nuevo cliente
|
|
|
|
[2025-01-04 22:22:10.765908] [info] ID correspondiente a 'Customer Stripe ID': 10
|
|
|
|
[2025-01-04 22:22:10.766249] [info] Valor de notification client data export: {"id":157,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Angel Mamey","lastName":"Arvizu","username":null,"contacts":[{"id":161,"clientId":157,"email":null,"phone":"5214181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574303,"addressGpsLon":-100.9275061,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}
|
|
|
|
[2025-01-04 22:22:10.767124] [info] Creando el Customer Stripe
|
|
|
|
[2025-01-04 22:22:10.767210] [info] El cliente a procesar es : Angel Mamey Arvizu
|
|
|
|
[2025-01-04 22:22:10.767272] [info] Datos notificationData: {"uuid":"02e74a3a-07e7-46fe-a244-02fe6a9a7825","changeType":"insert","entity":"client","entityId":157,"message":null,"clientId":157,"eventName":"client.add","clientData":{"id":157,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Angel Mamey","lastName":"Arvizu","username":null,"contacts":[{"id":161,"clientId":157,"email":null,"phone":"5214181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574303,"addressGpsLon":-100.9275061,"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-04 22:22:10.767326] [info] Ya dentro del FOREACH!!!
|
|
|
|
[2025-01-04 22:22:10.767389] [info] REVISANDO EL PRIMER CONTACTO!!!
|
|
|
|
[2025-01-04 22:22:10.767477] [info] REVISANDO EL PRIMER CONTACTO!!!
|
|
|
|
[2025-01-04 22:22:10.767528] [info] SE VALIDA EL EMAIL!!!
|
|
|
|
[2025-01-04 22:22:10.768306] [info] ahora se procede a validar el teléfono!!!
|
|
|
|
[2025-01-04 22:22:10.768460] [info] AHORA SE MANDA A CREAR EL CLIENTE A STRIPE!!!
|
|
|
|
[2025-01-04 22:22:11.357470] [info] {"id":"cus_RWjBO6Lsy1TgAV","object":"customer","address":null,"balance":0,"created":1736029331,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 157","discount":null,"email":null,"invoice_prefix":"560A5299","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":[],"name":"Angel Mamey Arvizu","next_invoice_sequence":1,"phone":"4181515664","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null}
|
|
|
|
[2025-01-04 22:22:13.687195] [info] {"id":"cus_RWjBO6Lsy1TgAV","object":"customer","address":null,"balance":0,"created":1736029331,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 157","discount":null,"email":null,"invoice_prefix":"560A5299","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":{"ucrm_client_id":"157"},"name":"Angel Mamey Arvizu","next_invoice_sequence":1,"phone":"4181515664","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null}
|
|
|
|
[2025-01-04 22:22:14.017498] [notice] Logging level set to:debug
|
|
[2025-01-04 22:22:14.017951] [debug] El valor del evento recibio en json: {"id":"evt_1QdfjVEFY1WEUtgRvdWOau08","object":"event","api_version":"2023-10-16","created":1736029333,"data":{"object":{"id":"cus_RWjBO6Lsy1TgAV","object":"customer","address":null,"balance":0,"created":1736029331,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 157","discount":null,"email":null,"invoice_prefix":"560A5299","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":{"ucrm_client_id":"157"},"name":"Angel Mamey Arvizu","next_invoice_sequence":1,"phone":"4181515664","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_qbKja1GdovqZYS","idempotency_key":"efec95ac-3ef6-4e2a-b42b-4b16b7385e64"},"type":"customer.updated"}
|
|
|
|
[2025-01-04 22:22:14.018176] [error] JSON error: No error
|
|
[2025-01-04 22:22:14.018336] [debug] HTTP request processing ended.
|
|
[2025-01-04 22:22:16.776110] [notice] Logging level set to:debug
|
|
[2025-01-04 22:22:16.776514] [debug] El valor del evento recibio en json: {"uuid":"6edca2b3-c2f5-4ae0-8d2b-09abced880f5","changeType":"edit","entity":"client","entityId":"157","eventName":"client.edit","extraData":{"entity":{"id":157,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Angel Mamey","lastName":"Arvizu","username":null,"contacts":[{"id":161,"clientId":157,"email":null,"phone":"5214181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":154,"clientId":157,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RWjBO6Lsy1TgAV","clientZoneVisible":true},{"id":155,"clientId":157,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"124180695267429334","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574303,"addressGpsLon":-100.9275061,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":157,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Angel Mamey","lastName":"Arvizu","username":null,"contacts":[{"id":161,"clientId":157,"email":null,"phone":"5214181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574303,"addressGpsLon":-100.9275061,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
|
|
|
|
[2025-01-04 22:22:16.837491] [notice] Logging level set to:debug
|
|
[2025-01-04 22:22:16.837570] [debug] El valor del evento recibio en json: {"id":"evt_1QdfjYEFY1WEUtgRV0lqJdue","object":"event","api_version":"2023-10-16","created":1736029336,"data":{"object":{"id":"cus_RWjBO6Lsy1TgAV","object":"customer","address":null,"balance":0,"created":1736029331,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 157","discount":null,"email":null,"invoice_prefix":"560A5299","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":{"ucrm_client_id":"157","clabe":"124180695267429334"},"name":"Angel Mamey Arvizu","next_invoice_sequence":1,"phone":"4181515664","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_qcy620Zsdd7vb8","idempotency_key":"fd1e697b-79e3-4878-90c8-ec656c031274"},"type":"customer.updated"}
|
|
|
|
[2025-01-04 22:22:16.837599] [error] JSON error: No error
|
|
[2025-01-04 22:22:16.837611] [debug] HTTP request processing ended.
|
|
[2025-01-04 22:22:21.312266] [notice] Logging level set to:debug
|
|
[2025-01-04 22:22:21.312629] [debug] El valor del evento recibio en json: {"uuid":"a3c13dd5-ec1a-4aa6-b8cd-8ac6942d646b","changeType":"insert","entity":"service","entityId":"127","eventName":"service.add","extraData":{"entity":{"id":127,"prepaid":false,"clientId":157,"status":1,"name":"plan300","fullAddress":"Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"45 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","note":null,"addressGpsLat":21.1574303,"addressGpsLon":-100.9275061,"servicePlanId":2,"servicePlanPeriodId":7,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-01-04T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-01-04T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"plan300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":6,"uploadSpeed":6,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"dc771889-4d2a-48c3-9c65-b0ee56b692be","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-04 22:22:21.481899] [debug] valor el evento recibido por webhook: service.add
|
|
|
|
[2025-01-04 22:22:21.482192] [debug] HTTP request processing ended.
|
|
[2025-01-04 22:22:24.370057] [notice] Logging level set to:debug
|
|
[2025-01-04 22:22:24.370665] [debug] El valor del evento recibio en json: {"uuid":"edd79fb1-aacd-4070-a1c4-9ef54a7833e8","changeType":"edit","entity":"service","entityId":"127","eventName":"service.edit","extraData":{"entity":{"id":127,"prepaid":false,"clientId":157,"status":1,"name":"plan300","fullAddress":"Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"45 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","note":null,"addressGpsLat":21.1574303,"addressGpsLon":-100.9275061,"servicePlanId":2,"servicePlanPeriodId":7,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-01-04T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-01-04T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"plan300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":6,"uploadSpeed":6,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"dc771889-4d2a-48c3-9c65-b0ee56b692be","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":{"id":127,"prepaid":false,"clientId":157,"status":1,"name":"plan300","fullAddress":"Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"45 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","note":null,"addressGpsLat":21.1574303,"addressGpsLon":-100.9275061,"servicePlanId":2,"servicePlanPeriodId":7,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-01-04T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-01-04T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"plan300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":6,"uploadSpeed":6,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"dc771889-4d2a-48c3-9c65-b0ee56b692be","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]}}}
|
|
|
|
[2025-01-04 22:22:24.505815] [debug] valor el evento recibido por webhook: service.edit
|
|
|
|
[2025-01-04 22:22:24.506067] [debug] HTTP request processing ended.
|
|
[2025-01-04 22:22:36.722002] [notice] Logging level set to:debug
|
|
[2025-01-04 22:22:36.722398] [debug] El valor del evento recibio en json: {"uuid":"bed116c4-14d9-41e2-920f-161832951f7b","changeType":"edit","entity":"client","entityId":"157","eventName":"client.edit","extraData":{"entity":{"id":157,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Angel Mamey","lastName":"Arvizu","username":null,"contacts":[{"id":161,"clientId":157,"email":null,"phone":"5214181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":154,"clientId":157,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RWjBO6Lsy1TgAV","clientZoneVisible":true},{"id":155,"clientId":157,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"124180695267429334","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574303,"addressGpsLon":-100.9275061,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":157,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Angel Mamey","lastName":"Arvizu","username":null,"contacts":[{"id":161,"clientId":157,"email":null,"phone":"5214181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":154,"clientId":157,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RWjBO6Lsy1TgAV","clientZoneVisible":true},{"id":155,"clientId":157,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"124180695267429334","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574303,"addressGpsLon":-100.9275061,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}}
|
|
|
|
[2025-01-04 22:22:36.802470] [debug] valor el evento recibido por webhook: client.edit
|
|
|
|
[2025-01-04 22:22:36.802804] [debug] Se actualiza a un cliente
|
|
|
|
[2025-01-04 22:22:36.802948] [info] Se proceso los contactos
|
|
|
|
Dentro del proceso del patch:
|
|
|
|
Datos traidos con payment api: []
|
|
|
|
Nombre del cliente que se va a actualizar: Angel Mamey Arvizu
|
|
|
|
UUID:
|
|
|
|
JSON con los datos a actualizar: {"name":"Angel Mamey Arvizu","custom_fields":{"Cliente":157,"Domicilio":"\ud83d\udccd Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Angel Mamey Arvizu","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/157","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"157\",\"Domicilio\": \"\ud83d\udccd Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Angel Mamey Arvizu\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/157\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 04\/01\/2025 22:22 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 16:22\",\"Clabe Transferencia Banamex\": \"124180695267429334\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 04\/01\/2025 22:22 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 16:22","Clabe Transferencia Banamex":"124180695267429334"}}
|
|
|
|
Response Patch CallBell:
|
|
|
|
[2025-01-04 22:22:38.523700] [debug] HTTP request processing ended.
|
|
[2025-01-04 22:49:47.987740] [notice] Logging level set to:debug
|
|
[2025-01-04 22:49:47.987854] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":1}
|
|
|
|
[2025-01-04 22:49:47.987869] [info] Evento de referencia de oxxo recibido
|
|
|
|
[2025-01-04 22:49:47.987890] [info] Creando referencia del cliente para OXXO:
|
|
|
|
[2025-01-04 22:49:48.127979] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_PdQvAvQ2wipl5k
|
|
|
|
[2025-01-04 22:49:48.128021] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO.
|
|
|
|
[2025-01-04 22:49:48.128273] [info] Creando referencia del cliente para OXXO:
|
|
|
|
[2025-01-04 22:49:48.243685] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_PdQvAvQ2wipl5k
|
|
|
|
[2025-01-04 22:49:48.243758] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO.
|
|
|
|
[2025-01-04 22:49:50.244091] [info] Creando referencia del cliente para OXXO:
|
|
|
|
[2025-01-04 22:49:50.373965] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_PdQvAvQ2wipl5k
|
|
|
|
[2025-01-04 22:49:50.374006] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO.
|
|
|
|
[2025-01-04 22:49:52.374564] [info] Creando referencia del cliente para OXXO:
|
|
|
|
[2025-01-04 22:49:52.494280] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_PdQvAvQ2wipl5k
|
|
|
|
[2025-01-04 22:49:52.494318] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO.
|
|
|
|
[2025-01-04 22:49:54.494967] [info] Creando referencia del cliente para OXXO:
|
|
|
|
[2025-01-04 22:49:54.623064] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_PdQvAvQ2wipl5k
|
|
|
|
[2025-01-04 22:49:54.623115] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO.
|
|
|
|
[2025-01-04 22:49:54.623347] [debug] Este ese el reponse que se envía a CallBell: {"url": "errorsinadeudo"}
|
|
[2025-01-04 22:49:54.623389] [error] JSON error: No error
|
|
[2025-01-04 22:49:54.623402] [debug] HTTP request processing ended.
|
|
[2025-01-04 22:50:33.884031] [notice] Logging level set to:debug
|
|
[2025-01-04 22:50:33.884248] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":1,"amount":300}
|
|
|
|
[2025-01-04 22:50:33.884324] [info] Evento de referencia de oxxo recibido
|
|
|
|
[2025-01-04 22:50:33.884385] [info] Valor del monto: 300
|
|
|
|
[2025-01-04 22:50:33.884464] [info] Creando referencia del cliente para OXXO:
|
|
|
|
[2025-01-04 22:50:34.002264] [info] Monto proporcionado directamente: 300
|
|
|
|
[2025-01-04 22:50:34.002387] [info] Creando referencia en Stripe por: 30000
|
|
|
|
[2025-01-04 22:50:34.589338] [info] Creando payment methods del voucher
|
|
|
|
[2025-01-04 22:50:34.839921] [info] Confirmando el paymentIntent
|
|
|
|
[2025-01-04 22:50:35.475716] [info] Se terminó de confirmar el paymentIntent
|
|
|
|
[2025-01-04 22:50:35.476252] [info] Referencia OXXO: 12345678901234657890123456789012
|
|
|
|
[2025-01-04 22:50:35.476428] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SV2plR0I0WWRNREtFdEtTTnBqdWcyTk9Sck5DeWpa0100jqXSQS8U
|
|
|
|
[2025-01-04 22:50:35.478384] [debug] Este ese el reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SV2plR0I0WWRNREtFdEtTTnBqdWcyTk9Sck5DeWpa0100jqXSQS8U"}
|
|
[2025-01-04 22:50:35.478650] [error] JSON error: No error
|
|
[2025-01-04 22:50:35.478807] [debug] HTTP request processing ended.
|
|
[2025-01-04 22:53:38.815505] [notice] Logging level set to:debug
|
|
[2025-01-04 22:53:38.815619] [debug] El valor del evento recibio en json: {"uuid":"8b0cc4a9-7c96-4d86-bd79-75dfb44ee615","changeType":"insert","entity":"payment","entityId":"500","eventName":"payment.add","extraData":{"entity":{"id":500,"clientId":1,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T16:53:38-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-04 22:53:38.938446] [debug] valor el evento recibido por webhook: payment.add
|
|
|
|
[2025-01-04 22:53:38.938730] [debug] datos del notification para el invoice add:{"uuid":"8b0cc4a9-7c96-4d86-bd79-75dfb44ee615","changeType":"insert","entity":"payment","entityId":500,"message":null,"clientId":1,"eventName":"payment.add","clientData":{"id":1,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"Calle Morelos 34","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Calle Morelos 34, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-15T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Don Miguel \u00c1ngel","lastName":"Guerrero Gonz\u00e1lez","username":"dguerrero01","contacts":[{"id":1,"clientId":1,"email":"mangelgg@gmail.com","phone":"5214181148554","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":110,"clientId":1,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PdQvAvQ2wipl5k","clientZoneVisible":true},{"id":111,"clientId":1,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"002180697144444854","clientZoneVisible":true}],"accountBalance":1080,"accountCredit":1080,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.1572096,"addressGpsLon":-100.9377327,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":500,"clientId":1,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T16:53:38-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}}
|
|
|
|
[2025-01-04 22:53:38.938765] [debug] valor del payment data: {"id":500,"clientId":1,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T16:53:38-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}
|
|
|
|
[2025-01-04 22:53:38.938786] [debug] ***Se notifica y actualiza al cliente sobre su pago***
|
|
|
|
Eviando comprobante de pago al cliente: 1 con número: 5214181148554
|
|
|
|
El archivo se ha descargado correctamente y se ha guardado en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Don_Miguel_Ángel_Guerrero_González.png
|
|
|
|
El nombre del archivo PDF es: /home/unms/data/ucrm/ucrm/data/payment_receipts/494541ba-8ce4-4c5a-8794-f970eba33708.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
|
|
|
|
El archivo ha sido cargado exitosamente.
|
|
|
|
La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Don_Miguel_Ángel_Guerrero_González.png
|
|
|
|
[2025-01-04 22:53:48.983692] [notice] Logging level set to:debug
|
|
[2025-01-04 22:53:48.984040] [debug] El valor del evento recibio en json: {"uuid":"6961d180-4b72-4698-9733-6b42dd939236","changeType":"edit","entity":"payment","entityId":"500","eventName":"payment.edit","extraData":{"entity":{"id":500,"clientId":1,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T16:53:38-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":"2025-01-04T16:53:39-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":500,"clientId":1,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T16:53:38-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}}}
|
|
|
|
[2025-01-04 22:53:49.131498] [debug] valor el evento recibido por webhook: payment.edit
|
|
|
|
[2025-01-04 22:53:49.131973] [debug] HTTP request processing ended.
|
|
Archivos eliminados
|
|
|
|
Se terminó de subir comprobante a wordpress
|
|
|
|
La cadena CURL que se envia es: {
|
|
"to": "5214181148554",
|
|
"from": "whatsapp",
|
|
"type": "document",
|
|
"content": {
|
|
"text": "S/M",
|
|
"url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Don_Miguel_Ángel_Guerrero_González.png"
|
|
},
|
|
"template_values": ["Don Miguel Ángel Guerrero González", "$300", "$1080 a favor"],
|
|
"template_uuid": "57ead79cebd14902921477922403093b",
|
|
"optin_contact": true
|
|
}
|
|
Response del CallBell: {"message":{"uuid":"34062e47f14a4272a7bae0aeb984dc2e","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":500,"clientId":1,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T16:53:38-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":"2025-01-04T16:53:39-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}]
|
|
|
|
Nombre del cliente que se va a actualizar: Don Miguel Ángel Guerrero González
|
|
|
|
UUID: 0e53e926ce424db5b9284a75915d24fe
|
|
|
|
JSON con los datos a actualizar: {"name":"Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez","custom_fields":{"Cliente":1,"Domicilio":"\ud83d\udccd Calle Morelos 34, Dolores Hidalgo, 37800","Nombre":"\ud83d\udc64 Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/1","Saldo Actual":"\ud83d\udcb21080 a favor","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"1\",\"Domicilio\": \"\ud83d\udccd Calle Morelos 34, Dolores Hidalgo, 37800\",\"Nombre\": \"\ud83d\udc64 Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/1\",\"Saldo Actual\": \"\ud83d\udcb21080 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 300\",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 04\/01\/2025 16:53 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 16:53\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 04\/01\/2025 16:53 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 16:53","Clabe Transferencia Banamex":null}}
|
|
|
|
Response Patch CallBell: {"contact":{"uuid":"0e53e926ce424db5b9284a75915d24fe","name":"Don Miguel Ángel Guerrero González","phoneNumber":"5214181148554","avatarUrl":null,"createdAt":"2024-01-26T17:29:28Z","closedAt":"2025-01-04T22:50:36Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/0e53e926ce424db5b9284a75915d24fe","conversationHref":"https://dash.callbell.eu/chat/f017e454a6b94ab297509274216c6795","tags":[],"assignedUser":null,"customFields":{"URL":"🌐 https://172.16.5.120/crm/client/1","user entry point":"inbound_message","Clientes Relacionados":"oxxo","Saldo Actual":"💲1080 a favor","Cliente":"1","Fecha Ultimo Pago":"📆💸 04/01/2025 16:53 con Tarjeta de crédito Stripe 💳","Domicilio":"📍 Calle Morelos 34, Dolores Hidalgo, 37800","Estado":"🔴 Suspendido","Clabe Transferencia Banamex":"124180650741039816","user name":"Angel","Nombre":"👤 Don Miguel Ángel Guerrero González","Fecha Ultima Actualizacion":"📆🔄️ 04/01/2025 16:53","Monto Ultimo Pago":"💲 300","Resumen":"{\"Cliente\": \"1\",\"Domicilio\": \"📍 Calle Morelos 34, Dolores Hidalgo, 37800\",\"Nombre\": \"👤 Don Miguel Ángel Guerrero González\",\"URL\": \"🌐 https://172.16.5.120/crm/client/1\",\"Saldo Actual\": \"💲1080 a favor\",\"Monto Ultimo Pago\": \"💲 300\",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 04/01/2025 16:53 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 04/01/2025 16:53\",\"Clabe Transferencia Banamex\": \"\"}"},"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 6:25:02.940608] [notice] Logging level set to:debug
|
|
[2025-01-05 6:25:02.940732] [debug] El valor del evento recibio en json: {"uuid":"ff5bbae1-a33f-4816-b8dd-a66d970f3a42","changeType":"overdue","entity":"invoice","entityId":"1306","eventName":"invoice.overdue","extraData":{"entity":{"id":1306,"clientId":105,"number":"001270","createdDate":"2024-12-21T10:00:01-0600","dueDate":"2025-01-04T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1308,"type":"service","label":"plan300 21\/11\/2024 \u2013 20\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":111,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"jota","clientLastName":"serpiente","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":null,"clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-05 6:25:03.347322] [debug] valor el evento recibido por webhook: invoice.overdue
|
|
|
|
[2025-01-05 6:25:03.347759] [debug] Factura vencida
|
|
|
|
[2025-01-05 6:25:03.347821] [debug] datos del notification para el invoice overdue:{"uuid":"ff5bbae1-a33f-4816-b8dd-a66d970f3a42","changeType":"overdue","entity":"invoice","entityId":1306,"message":null,"clientId":105,"eventName":"invoice.overdue","clientData":{"id":105,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":null,"countryId":173,"stateId":null,"zipCode":null,"fullAddress":null,"invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-02-17T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"jota","lastName":"serpiente","username":null,"contacts":[{"id":109,"clientId":105,"email":null,"phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-2000,"accountCredit":0,"accountOutstanding":2000,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#4527a0","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1306,"clientId":105,"number":"001270","createdDate":"2024-12-21T10:00:01-0600","dueDate":"2025-01-04T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1308,"type":"service","label":"plan300 21\/11\/2024 \u2013 20\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":111,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"jota","clientLastName":"serpiente","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":null,"clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null}
|
|
|
|
[2025-01-05 6:25:03.347839] [debug] ***Se notifica al cliente que la factura de su servicio está vencida***
|
|
|
|
contac vacio
|
|
[2025-01-05 6:25:03.349997] [debug] Numero de cel obtenido
|
|
|
|
[2025-01-05 6:25:03.350018] [warning] No se encontró un teléfono celular válido para el cliente: 105
|
|
[2025-01-05 6:25:03.350039] [debug] HTTP request processing ended.
|
|
[2025-01-05 6:25:03.604188] [notice] Logging level set to:debug
|
|
[2025-01-05 6:25:03.604279] [debug] El valor del evento recibio en json: {"uuid":"7677a070-edee-41b8-9f5e-9c6d235a6b2a","changeType":"overdue","entity":"invoice","entityId":"1307","eventName":"invoice.overdue","extraData":{"entity":{"id":1307,"clientId":133,"number":"001271","createdDate":"2024-12-21T10:00:01-0600","dueDate":"2025-01-04T10:00:01-0600","emailSentDate":"2025-01-05T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2024-12-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1309,"type":"service","label":"INTERMEDIO 21\/11\/2024 \u2013 20\/12\/2024","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":114,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Los Amigos","clientLastName":"Invisibles","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Calle Colima","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-05 6:25:03.891813] [debug] valor el evento recibido por webhook: invoice.overdue
|
|
|
|
[2025-01-05 6:25:03.891932] [debug] Factura vencida
|
|
|
|
[2025-01-05 6:25:03.891983] [debug] datos del notification para el invoice overdue:{"uuid":"7677a070-edee-41b8-9f5e-9c6d235a6b2a","changeType":"overdue","entity":"invoice","entityId":1307,"message":null,"clientId":133,"eventName":"invoice.overdue","clientData":{"id":133,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"34 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Colima 34, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-18T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Los Amigos","lastName":"Invisibles","username":null,"contacts":[{"id":137,"clientId":133,"email":"amigosinvisibles@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":135,"clientId":133,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_QJjZqeaZSSPwcT","clientZoneVisible":true},{"id":136,"clientId":133,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"002180822750421052","clientZoneVisible":true}],"accountBalance":-2833.33,"accountCredit":0,"accountOutstanding":2833.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ffc107","addressGpsLat":21.1568888,"addressGpsLon":-100.9275759,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1307,"clientId":133,"number":"001271","createdDate":"2024-12-21T10:00:01-0600","dueDate":"2025-01-04T10:00:01-0600","emailSentDate":"2025-01-05T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2024-12-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1309,"type":"service","label":"INTERMEDIO 21\/11\/2024 \u2013 20\/12\/2024","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":114,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Los Amigos","clientLastName":"Invisibles","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Calle Colima","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null}
|
|
|
|
[2025-01-05 6:25:03.892004] [debug] ***Se notifica al cliente que la factura de su servicio está vencida***
|
|
|
|
[2025-01-05 6:25:03.892056] [debug] Numero de cel obtenido
|
|
|
|
[2025-01-05 6:25:03.892069] [warning] No se encontró un teléfono celular válido para el cliente: 133
|
|
[2025-01-05 6:25:03.892086] [debug] HTTP request processing ended.
|
|
[2025-01-05 6:25:04.007344] [notice] Logging level set to:debug
|
|
[2025-01-05 6:25:04.007428] [debug] El valor del evento recibio en json: {"uuid":"11d01168-1e86-46a2-bdbe-e80155ef4958","changeType":"overdue","entity":"invoice","entityId":"1308","eventName":"invoice.overdue","extraData":{"entity":{"id":1308,"clientId":134,"number":"001272","createdDate":"2024-12-21T10:00:01-0600","dueDate":"2025-01-04T10:00:01-0600","emailSentDate":"2025-01-05T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2024-12-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1310,"type":"service","label":"PREMIUM 21\/11\/2024 \u2013 20\/12\/2024","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":113,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"La Mosca","clientLastName":"Tse Tse","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"25 Michoac\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-05 6:25:04.200701] [debug] valor el evento recibido por webhook: invoice.overdue
|
|
|
|
[2025-01-05 6:25:04.200820] [debug] Factura vencida
|
|
|
|
[2025-01-05 6:25:04.200990] [debug] datos del notification para el invoice overdue:{"uuid":"11d01168-1e86-46a2-bdbe-e80155ef4958","changeType":"overdue","entity":"invoice","entityId":1308,"message":null,"clientId":134,"eventName":"invoice.overdue","clientData":{"id":134,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"25 Michoac\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Michoac\u00e1n 25, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-18T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"La Mosca","lastName":"Tse Tse","username":null,"contacts":[{"id":138,"clientId":134,"email":"lamoscatsetse@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#009688","addressGpsLat":21.1576726,"addressGpsLon":-100.9370354,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1308,"clientId":134,"number":"001272","createdDate":"2024-12-21T10:00:01-0600","dueDate":"2025-01-04T10:00:01-0600","emailSentDate":"2025-01-05T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2024-12-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1310,"type":"service","label":"PREMIUM 21\/11\/2024 \u2013 20\/12\/2024","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":113,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"La Mosca","clientLastName":"Tse Tse","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"25 Michoac\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null}
|
|
|
|
[2025-01-05 6:25:04.201019] [debug] ***Se notifica al cliente que la factura de su servicio está vencida***
|
|
|
|
[2025-01-05 6:25:04.201082] [debug] Numero de cel obtenido
|
|
|
|
[2025-01-05 6:25:04.201095] [warning] No se encontró un teléfono celular válido para el cliente: 134
|
|
[2025-01-05 6:25:04.201112] [debug] HTTP request processing ended.
|
|
[2025-01-05 6:25:04.318753] [notice] Logging level set to:debug
|
|
[2025-01-05 6:25:04.318927] [debug] El valor del evento recibio en json: {"uuid":"6722b0d2-a0e8-48b4-8739-109525ee8003","changeType":"overdue","entity":"invoice","entityId":"1309","eventName":"invoice.overdue","extraData":{"entity":{"id":1309,"clientId":136,"number":"001273","createdDate":"2024-12-21T10:00:01-0600","dueDate":"2025-01-04T10:00:01-0600","emailSentDate":"2025-01-05T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2024-12-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1311,"type":"service","label":"INTERMEDIO 21\/11\/2024 \u2013 20\/12\/2024","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":112,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Mus","clientLastName":"Tafah","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"22 Yucat\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-05 6:25:04.498907] [debug] valor el evento recibido por webhook: invoice.overdue
|
|
|
|
[2025-01-05 6:25:04.499018] [debug] Factura vencida
|
|
|
|
[2025-01-05 6:25:04.499135] [debug] datos del notification para el invoice overdue:{"uuid":"6722b0d2-a0e8-48b4-8739-109525ee8003","changeType":"overdue","entity":"invoice","entityId":1309,"message":null,"clientId":136,"eventName":"invoice.overdue","clientData":{"id":136,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"22 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Yucat\u00e1n 22, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-18T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Mus","lastName":"Tafah","username":null,"contacts":[{"id":140,"clientId":136,"email":"elmus@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-2833.33,"accountCredit":0,"accountOutstanding":2833.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1571597,"addressGpsLon":-100.9367744,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1309,"clientId":136,"number":"001273","createdDate":"2024-12-21T10:00:01-0600","dueDate":"2025-01-04T10:00:01-0600","emailSentDate":"2025-01-05T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2024-12-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1311,"type":"service","label":"INTERMEDIO 21\/11\/2024 \u2013 20\/12\/2024","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":112,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Mus","clientLastName":"Tafah","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"22 Yucat\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null}
|
|
|
|
[2025-01-05 6:25:04.499161] [debug] ***Se notifica al cliente que la factura de su servicio está vencida***
|
|
|
|
[2025-01-05 6:25:04.499228] [debug] Numero de cel obtenido
|
|
|
|
[2025-01-05 6:25:04.499243] [warning] No se encontró un teléfono celular válido para el cliente: 136
|
|
[2025-01-05 6:25:04.499365] [debug] HTTP request processing ended.
|
|
[2025-01-05 19:41:17.278369] [notice] Logging level set to:debug
|
|
[2025-01-05 19:41:17.278481] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":1}
|
|
|
|
[2025-01-05 19:41:17.278496] [info] Evento de referencia de oxxo recibido
|
|
|
|
[2025-01-05 19:41:17.278506] [info] Creando referencia del cliente para OXXO:
|
|
|
|
[2025-01-05 19:41:17.422367] [info] Se obtuvo el Stripe Customer ID: cus_PdQvAvQ2wipl5k
|
|
|
|
[2025-01-05 19:41:17.422415] [info] Monto pendiente del cliente (procesado): 0
|
|
|
|
[2025-01-05 19:41:17.422425] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO.
|
|
|
|
[2025-01-05 19:41:17.422801] [info] Creando referencia del cliente para OXXO:
|
|
|
|
[2025-01-05 19:41:17.534370] [info] Se obtuvo el Stripe Customer ID: cus_PdQvAvQ2wipl5k
|
|
|
|
[2025-01-05 19:41:17.534418] [info] Monto pendiente del cliente (procesado): 0
|
|
|
|
[2025-01-05 19:41:17.534429] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO.
|
|
|
|
[2025-01-05 19:41:19.534785] [info] Creando referencia del cliente para OXXO:
|
|
|
|
[2025-01-05 19:41:19.647481] [info] Se obtuvo el Stripe Customer ID: cus_PdQvAvQ2wipl5k
|
|
|
|
[2025-01-05 19:41:19.647530] [info] Monto pendiente del cliente (procesado): 0
|
|
|
|
[2025-01-05 19:41:19.647541] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO.
|
|
|
|
[2025-01-05 19:41:21.648082] [info] Creando referencia del cliente para OXXO:
|
|
|
|
[2025-01-05 19:41:21.775234] [info] Se obtuvo el Stripe Customer ID: cus_PdQvAvQ2wipl5k
|
|
|
|
[2025-01-05 19:41:21.775295] [info] Monto pendiente del cliente (procesado): 0
|
|
|
|
[2025-01-05 19:41:21.775309] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO.
|
|
|
|
[2025-01-05 19:41:23.775923] [info] Creando referencia del cliente para OXXO:
|
|
|
|
[2025-01-05 19:41:23.889632] [info] Se obtuvo el Stripe Customer ID: cus_PdQvAvQ2wipl5k
|
|
|
|
[2025-01-05 19:41:23.889678] [info] Monto pendiente del cliente (procesado): 0
|
|
|
|
[2025-01-05 19:41:23.889689] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO.
|
|
|
|
[2025-01-05 19:41:23.890095] [debug] Este ese el reponse que se envía a CallBell: {"url": "errorsinadeudo"}
|
|
[2025-01-05 19:41:23.890140] [error] JSON error: No error
|
|
[2025-01-05 19:41:23.890151] [debug] HTTP request processing ended.
|