diff --git a/GoogleDriveUpload.php b/GoogleDriveUpload.php deleted file mode 100755 index 2186f67c..00000000 --- a/GoogleDriveUpload.php +++ /dev/null @@ -1,60 +0,0 @@ -setApplicationName('Google Drive API PHP Quickstart'); - $client->setScopes(Drive::DRIVE_FILE); - $client->setAuthConfig(__DIR__.'/credentials.json'); - $client->setAccessType('offline'); - $client->setPrompt('select_account consent'); - - $tokenPath = 'token.json'; - if (file_exists($tokenPath)) { - $accessToken = json_decode(file_get_contents($tokenPath), true); - $client->setAccessToken($accessToken); - } - - if ($client->isAccessTokenExpired()) { - if ($client->getRefreshToken()) { - $client->fetchAccessTokenWithRefreshToken($client->getRefreshToken()); - } else { - $authUrl = $client->createAuthUrl(); - printf("Open the following link in your browser:\n%s\n", $authUrl); - print 'Enter verification code: '; - $authCode = trim(fgets(STDIN)); - - $accessToken = $client->fetchAccessTokenWithAuthCode($authCode); - $client->setAccessToken($accessToken); - - if (!file_exists(dirname($tokenPath))) { - mkdir(dirname($tokenPath), 0700, true); - } - file_put_contents($tokenPath, json_encode($client->getAccessToken())); - } - } - return $client; -} - -// Función para subir archivo a Google Drive -function uploadFileToDrive($client, $filePath) { - $driveService = new Drive($client); - $fileMetadata = new Drive\DriveFile(array( - 'name' => basename($filePath) - )); - $content = file_get_contents($filePath); - $file = $driveService->files->create($fileMetadata, array( - 'data' => $content, - 'mimeType' => mime_content_type($filePath), - 'uploadType' => 'multipart', - 'fields' => 'id' - )); - printf("File ID: %s\n", $file->id); -} - - - diff --git a/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.png b/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.png deleted file mode 100755 index 53be42ee..00000000 Binary files a/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas.png and /dev/null differ diff --git a/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png b/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png deleted file mode 100755 index 37a66ca0..00000000 Binary files a/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png and /dev/null differ diff --git a/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria_2_prueba.png b/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria_2_prueba.png deleted file mode 100755 index b5f27b94..00000000 Binary files a/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria_2_prueba.png and /dev/null differ diff --git a/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_resss.png b/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_resss.png deleted file mode 100755 index c0fb3182..00000000 Binary files a/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_resss.png and /dev/null differ diff --git a/comprobantes/Comprobante_Don_Miguel_Ángel_Guerrero_González.png b/comprobantes/Comprobante_Don_Miguel_Ángel_Guerrero_González.png deleted file mode 100755 index a99329a1..00000000 Binary files a/comprobantes/Comprobante_Don_Miguel_Ángel_Guerrero_González.png and /dev/null differ diff --git a/comprobantes/Comprobante_Lupita_Morales.png b/comprobantes/Comprobante_Lupita_Morales.png deleted file mode 100755 index aa067f8a..00000000 Binary files a/comprobantes/Comprobante_Lupita_Morales.png and /dev/null differ diff --git a/data/config.json b/data/config.json index 558109f6..1e12ccf8 100755 --- a/data/config.json +++ b/data/config.json @@ -1 +1 @@ -{"ipserver":"172.16.5.134","apitoken":"6abef18c-783d-4dd0-b530-be6e6a7bbd1d","tokencallbell":"g8thcZkXGd3xBj2g3TtYNYFMH1fuesbJ.b6a940ea7d78cf6c9e42f067b21c8ddf96e9fa2a9e307bfd0c7c7c4d7fa38f79","tokenstripe":"sk_test_51OkG0REFY1WEUtgRH6UxBK5pu80Aq5Iy8EcdPnf0cOWzuVLQTpyLCd7CbPzqMsWMafZOHElCxhEHF7g8boURjWlJ00tBwE0W1M","unmsApiToken":null,"hostServerFTP":"siip.mx","usernameServerFTP":"siip0001","passServerFTP":"$spGiT,[wa)n","cashPaymentMethodId":false,"courtesyPaymentMethodId":false,"bankTransferPaymentMethodId":true,"paypalPaymentMethodId":true,"creditCardPaypalPaymentMethodId":true,"creditCardStripePaymentMethodId":true,"stripeSubscriptionCreditCardPaymentMethodId":true,"paypalSubscriptionPaymentMethodId":true,"mercadopagoPaymentMethodId":true,"checkPaymentMethodId":true,"customPaymentMethodId":true,"notificationTypeText":false,"debugMode":true,"logging_level":true} \ No newline at end of file +{"ipserver":"172.16.5.134","apitoken":"6abef18c-783d-4dd0-b530-be6e6a7bbd1d","tokencallbell":"g8thcZkXGd3xBj2g3TtYNYFMH1fuesbJ.b6a940ea7d78cf6c9e42f067b21c8ddf96e9fa2a9e307bfd0c7c7c4d7fa38f79","tokenstripe":"sk_test_51OkG0REFY1WEUtgRH6UxBK5pu80Aq5Iy8EcdPnf0cOWzuVLQTpyLCd7CbPzqMsWMafZOHElCxhEHF7g8boURjWlJ00tBwE0W1M","unmsApiToken":null,"hostServerFTP":"siip.mx","usernameServerFTP":"siip0001","passServerFTP":"$spGiT,[wa)n","cashPaymentMethodId":false,"courtesyPaymentMethodId":false,"bankTransferPaymentMethodId":true,"paypalPaymentMethodId":true,"creditCardPaypalPaymentMethodId":true,"creditCardStripePaymentMethodId":true,"stripeSubscriptionCreditCardPaymentMethodId":true,"paypalSubscriptionPaymentMethodId":true,"mercadopagoPaymentMethodId":true,"checkPaymentMethodId":true,"customPaymentMethodId":true,"notificationTypeText":false,"debugMode":true,"logging_level":true,"dataInstallersWhatsApp":"{ \"instaladores\": [{\"ID\": 1015, \"nombre\": \"Daniel Peña, \"whatsapp\": 4181878106}, {\"ID\": 1020, \"nombre\": \"Angel Arvizu\", \"whatsapp\": 4123456789}, {\"ID\": 1035,\"nombre\": \"Juan Rostro, \"whatsapp\": 4198765432}] }"} \ No newline at end of file diff --git a/data/plugin.log b/data/plugin.log index 3f90c4ba..e88db4dc 100644 --- a/data/plugin.log +++ b/data/plugin.log @@ -1,1023 +1,1022 @@ -Dentro del proceso del patch: -Datos traidos con payment api: [{"id":460,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:03:11-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":531,"invoiceId":1326,"paymentId":460,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}] +[2024-12-31 16:00:27.642757] [debug] valor el evento recibido por webhook: invoice.draft_approved -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria +[2024-12-31 16:00:27.642899] [debug] HTTP request processing ended. +[2024-12-31 16:00:28.490703] [notice] Logging level set to:debug +[2024-12-31 16:00:28.490922] [debug] El valor del evento recibio en json: {"uuid":"a03637a4-a2d0-46a8-ac16-10e6488b4386","changeType":"insert","entity":"invoice","entityId":"1356","eventName":"invoice.add_draft","extraData":{"entity":{"id":1356,"clientId":55,"number":"001320","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1359,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":54,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JOSE","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -UUID: 74cc2bb45eb8409f92cd5dba99200d26 +[2024-12-31 16:00:28.642141] [debug] valor el evento recibido por webhook: invoice.add_draft -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 700","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 700\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:03 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:03\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:03 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:03","Clabe Transferencia Banamex":"0021804341999569810"}} +[2024-12-31 16:00:28.642267] [debug] HTTP request processing ended. +[2024-12-31 16:00:28.754008] [notice] Logging level set to:debug +[2024-12-31 16:00:28.754528] [debug] El valor del evento recibio en json: {"uuid":"817cbe73-2170-44ba-a9d1-844a93196d07","changeType":"draft_approved","entity":"invoice","entityId":"1356","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1356,"clientId":55,"number":"001320","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1359,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":54,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JOSE","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:03 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 700","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:03","Saldo Actual":"💲0 está al corriente","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"💲 700\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:03 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:03\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/crm/client/2"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} +[2024-12-31 16:00:28.894725] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:03:21.156227] [debug] HTTP request processing ended. -[2024-12-26 9:03:21.282759] [notice] Logging level set to:debug -[2024-12-26 9:03:21.283030] [debug] El valor del evento recibio en json: {"uuid":"c0177785-13c6-447a-8635-e66ca5fc5eaf","changeType":"insert","entity":"payment","entityId":"460","eventName":"payment.add","extraData":{"entity":{"id":460,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:03:11-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":531,"invoiceId":1326,"paymentId":460,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":null}} +[2024-12-31 16:00:28.894854] [debug] HTTP request processing ended. +[2024-12-31 16:00:29.703847] [notice] Logging level set to:debug +[2024-12-31 16:00:29.704010] [debug] El valor del evento recibio en json: {"uuid":"cbfa6e4c-5b62-4343-9d79-89c641478244","changeType":"insert","entity":"invoice","entityId":"1357","eventName":"invoice.add_draft","extraData":{"entity":{"id":1357,"clientId":52,"number":"001321","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1360,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":51,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RODRIGO","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL CARMEN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:03:21.407744] [debug] valor el evento recibido por webhook: payment.add +[2024-12-31 16:00:29.847453] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:03:21.407994] [debug] datos del notification para el invoice add:{"uuid":"c0177785-13c6-447a-8635-e66ca5fc5eaf","changeType":"insert","entity":"payment","entityId":460,"message":null,"clientId":2,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":460,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:03:11-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":531,"invoiceId":1326,"paymentId":460,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}} +[2024-12-31 16:00:29.847578] [debug] HTTP request processing ended. +[2024-12-31 16:00:29.958602] [notice] Logging level set to:debug +[2024-12-31 16:00:29.958830] [debug] El valor del evento recibio en json: {"uuid":"856014e2-0f5e-44a6-bead-0e906c4b3baa","changeType":"draft_approved","entity":"invoice","entityId":"1357","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1357,"clientId":52,"number":"001321","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1360,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":51,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RODRIGO","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL CARMEN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:03:21.408067] [debug] valor del payment data: {"id":460,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:03:11-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":531,"invoiceId":1326,"paymentId":460,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]} +[2024-12-31 16:00:30.103347] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:03:21.408140] [debug] ***Se notifica y actualiza al cliente sobre su pago*** +[2024-12-31 16:00:30.103472] [debug] HTTP request processing ended. +[2024-12-31 16:00:30.922935] [notice] Logging level set to:debug +[2024-12-31 16:00:30.923043] [debug] El valor del evento recibio en json: {"uuid":"deb02355-bd56-4e4d-a361-235af279d4ac","changeType":"insert","entity":"invoice","entityId":"1358","eventName":"invoice.add_draft","extraData":{"entity":{"id":1358,"clientId":44,"number":"001322","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1361,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":43,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JAVIER","clientLastName":"BRIONES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ESTANCIA DE ZAMARRIPA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:03:21.408335] [debug] Activado el check de mensajes de texto: 1 +[2024-12-31 16:00:31.073121] [debug] valor el evento recibido por webhook: invoice.add_draft -Eviando comprobante de pago al cliente: 2 con número: 5214181878106 +[2024-12-31 16:00:31.073308] [debug] HTTP request processing ended. +[2024-12-31 16:00:31.183938] [notice] Logging level set to:debug +[2024-12-31 16:00:31.184158] [debug] El valor del evento recibio en json: {"uuid":"714d5e4f-da1c-450b-b26d-95d0f371fd19","changeType":"draft_approved","entity":"invoice","entityId":"1358","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1358,"clientId":44,"number":"001322","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1361,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":43,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JAVIER","clientLastName":"BRIONES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ESTANCIA DE ZAMARRIPA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Datos traidos con payment api: [{"id":460,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:03:11-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":531,"invoiceId":1326,"paymentId":460,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}] +[2024-12-31 16:00:31.324625] [debug] valor el evento recibido por webhook: invoice.draft_approved -Datos client data credit amount: 0 +[2024-12-31 16:00:31.324760] [debug] HTTP request processing ended. +[2024-12-31 16:00:32.190707] [notice] Logging level set to:debug +[2024-12-31 16:00:32.190830] [debug] El valor del evento recibio en json: {"uuid":"68b3be69-5ad8-451f-a8b9-945648d1aecc","changeType":"insert","entity":"invoice","entityId":"1359","eventName":"invoice.add_draft","extraData":{"entity":{"id":1359,"clientId":89,"number":"001323","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1362,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":88,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RIO LAJA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Verificar paymentCovers +[2024-12-31 16:00:32.335235] [debug] valor el evento recibido por webhook: invoice.add_draft -payment covers[{"id":531,"invoiceId":1326,"paymentId":460,"creditNoteId":null,"refundId":null,"amount":700}] +[2024-12-31 16:00:32.335350] [debug] HTTP request processing ended. +[2024-12-31 16:00:32.447494] [notice] Logging level set to:debug +[2024-12-31 16:00:32.447590] [debug] El valor del evento recibio en json: {"uuid":"1db299f0-5d02-48a9-bd85-904cca7eedcb","changeType":"draft_approved","entity":"invoice","entityId":"1359","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1359,"clientId":89,"number":"001323","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1362,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":88,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"SANCHEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RIO LAJA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Datos del payment covers: +[2024-12-31 16:00:32.597368] [debug] valor el evento recibido por webhook: invoice.draft_approved -Invoice ID pagado: 1326 de esta cantidad: 700 +[2024-12-31 16:00:32.597496] [debug] HTTP request processing ended. +[2024-12-31 16:00:36.277554] [notice] Logging level set to:debug +[2024-12-31 16:00:36.277688] [debug] El valor del evento recibio en json: {"uuid":"e4e54d20-7206-4129-af78-89405ce0f4ee","changeType":"insert","entity":"invoice","entityId":"1360","eventName":"invoice.add_draft","extraData":{"entity":{"id":1360,"clientId":53,"number":"001324","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1363,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":52,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONIO","clientLastName":"CHAVEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Todos los Invoice IDs: 1326 +[2024-12-31 16:00:36.457473] [debug] valor el evento recibido por webhook: invoice.add_draft -Todas las cantidades: 700,00 +[2024-12-31 16:00:36.457685] [debug] HTTP request processing ended. +[2024-12-31 16:00:36.571294] [notice] Logging level set to:debug +[2024-12-31 16:00:36.571387] [debug] El valor del evento recibio en json: {"uuid":"c0b9b466-61d8-4e1a-9372-593887a8960b","changeType":"draft_approved","entity":"invoice","entityId":"1360","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1360,"clientId":53,"number":"001324","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1363,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":52,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONIO","clientLastName":"CHAVEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Numero de factura: 001290 +[2024-12-31 16:00:36.722855] [debug] valor el evento recibido por webhook: invoice.draft_approved -TOTAL de factura: 700 +[2024-12-31 16:00:36.722980] [debug] HTTP request processing ended. +[2024-12-31 16:00:37.552664] [notice] Logging level set to:debug +[2024-12-31 16:00:37.552819] [debug] El valor del evento recibio en json: {"uuid":"f681aef8-2854-40d3-9654-8727117e02c1","changeType":"insert","entity":"invoice","entityId":"1361","eventName":"invoice.add_draft","extraData":{"entity":{"id":1361,"clientId":67,"number":"001325","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1364,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":66,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TOMAS","clientLastName":"SUASTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Se terminó de verificar payment covers +[2024-12-31 16:00:37.696914] [debug] valor el evento recibido por webhook: invoice.add_draft -Tipo de $total_factura: double +[2024-12-31 16:00:37.697040] [debug] HTTP request processing ended. +[2024-12-31 16:00:37.809956] [notice] Logging level set to:debug +[2024-12-31 16:00:37.810213] [debug] El valor del evento recibio en json: {"uuid":"69ccb019-a5d7-475a-9bf0-cc7bbe50a9b1","changeType":"draft_approved","entity":"invoice","entityId":"1361","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1361,"clientId":67,"number":"001325","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1364,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":66,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TOMAS","clientLastName":"SUASTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:03:21.675755] [notice] Logging level set to:debug -[2024-12-26 9:03:21.676043] [debug] El valor del evento recibio en json: {"uuid":"2c6608ff-d8c3-4701-9ea8-1007d29144a3","changeType":"edit","entity":"payment","entityId":"460","eventName":"payment.edit","extraData":{"entity":{"id":460,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:03:11-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":531,"invoiceId":1326,"paymentId":460,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":460,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:03:11-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":531,"invoiceId":1326,"paymentId":460,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}}} +[2024-12-31 16:00:37.954628] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:03:21.784559] [debug] valor el evento recibido por webhook: payment.edit +[2024-12-31 16:00:37.954755] [debug] HTTP request processing ended. +[2024-12-31 16:00:38.750116] [notice] Logging level set to:debug +[2024-12-31 16:00:38.750339] [debug] El valor del evento recibio en json: {"uuid":"20b9a7db-eac7-413e-8135-a466328b4e18","changeType":"insert","entity":"invoice","entityId":"1362","eventName":"invoice.add_draft","extraData":{"entity":{"id":1362,"clientId":87,"number":"001326","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1365,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":86,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ANTON","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:03:21.784770] [debug] HTTP request processing ended. -[2024-12-26 9:08:52.032123] [notice] Logging level set to:debug -[2024-12-26 9:08:52.032253] [debug] El valor del evento recibio en json: {"uuid":"78705be1-8bd9-4f16-a883-defa9a75b24d","changeType":"insert","entity":"invoice","entityId":"1327","eventName":"invoice.add","extraData":{"entity":{"id":1327,"clientId":2,"number":"001291","createdDate":"2024-12-26T03:08:47-0600","dueDate":"2025-01-09T03:08:47-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1330,"type":"service","label":"PREMIUM 27\/10\/2025 \u2013 26\/11\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} +[2024-12-31 16:00:38.890580] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:08:52.169433] [debug] valor el evento recibido por webhook: invoice.add +[2024-12-31 16:00:38.890707] [debug] HTTP request processing ended. +[2024-12-31 16:00:39.007633] [notice] Logging level set to:debug +[2024-12-31 16:00:39.007783] [debug] El valor del evento recibio en json: {"uuid":"34d43208-fb04-4fcf-8fe4-8312e3a73d9c","changeType":"draft_approved","entity":"invoice","entityId":"1362","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1362,"clientId":87,"number":"001326","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1365,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":86,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"TERESA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ANTON","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:08:52.169661] [debug] Adición de Factura +[2024-12-31 16:00:39.163284] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:08:52.169720] [debug] datos del notification para el invoice add:{"uuid":"78705be1-8bd9-4f16-a883-defa9a75b24d","changeType":"insert","entity":"invoice","entityId":1327,"message":null,"clientId":2,"eventName":"invoice.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1327,"clientId":2,"number":"001291","createdDate":"2024-12-26T03:08:47-0600","dueDate":"2025-01-09T03:08:47-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1330,"type":"service","label":"PREMIUM 27\/10\/2025 \u2013 26\/11\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} +[2024-12-31 16:00:39.163542] [debug] HTTP request processing ended. +[2024-12-31 16:00:39.987900] [notice] Logging level set to:debug +[2024-12-31 16:00:39.988125] [debug] El valor del evento recibio en json: {"uuid":"ddf4c7d2-ee79-4d1a-bc7a-05426e0c2127","changeType":"insert","entity":"invoice","entityId":"1363","eventName":"invoice.add_draft","extraData":{"entity":{"id":1363,"clientId":57,"number":"001327","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1366,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":56,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SANDRO","clientLastName":"MARQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:08:52.169750] [debug] Account Balance: -700 +[2024-12-31 16:00:40.127131] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:08:52.169759] [debug] Pago hecho con la factura: 0 +[2024-12-31 16:00:40.127259] [debug] HTTP request processing ended. +[2024-12-31 16:00:40.241647] [notice] Logging level set to:debug +[2024-12-31 16:00:40.241868] [debug] El valor del evento recibio en json: {"uuid":"5581aa12-13a4-487c-9c4e-6ca0dced3832","changeType":"draft_approved","entity":"invoice","entityId":"1363","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1363,"clientId":57,"number":"001327","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1366,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":56,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SANDRO","clientLastName":"MARQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:08:52.169795] [debug] {"uuid":"78705be1-8bd9-4f16-a883-defa9a75b24d","changeType":"insert","entity":"invoice","entityId":1327,"message":null,"clientId":2,"eventName":"invoice.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1327,"clientId":2,"number":"001291","createdDate":"2024-12-26T03:08:47-0600","dueDate":"2025-01-09T03:08:47-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1330,"type":"service","label":"PREMIUM 27\/10\/2025 \u2013 26\/11\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} +[2024-12-31 16:00:40.381670] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:08:52.169858] [info] Se proceso los contactos +[2024-12-31 16:00:40.381788] [debug] HTTP request processing ended. +[2024-12-31 16:00:41.367500] [notice] Logging level set to:debug +[2024-12-31 16:00:41.367590] [debug] El valor del evento recibio en json: {"uuid":"f8a4cc80-bd10-440d-b13c-36c2b217f6da","changeType":"insert","entity":"invoice","entityId":"1364","eventName":"invoice.add_draft","extraData":{"entity":{"id":1364,"clientId":47,"number":"001328","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1367,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":46,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ASRAEL","clientLastName":"PONCE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Dentro del proceso del patch: +[2024-12-31 16:00:41.530543] [debug] valor el evento recibido por webhook: invoice.add_draft -Datos traidos con payment api: [{"id":460,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:03:11-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":531,"invoiceId":1326,"paymentId":460,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}] +[2024-12-31 16:00:41.530669] [debug] HTTP request processing ended. +[2024-12-31 16:00:41.745589] [notice] Logging level set to:debug +[2024-12-31 16:00:41.745683] [debug] El valor del evento recibio en json: {"uuid":"bebfa063-0f9f-45cd-9896-7cd21f903b88","changeType":"draft_approved","entity":"invoice","entityId":"1364","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1364,"clientId":47,"number":"001328","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1367,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":46,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ASRAEL","clientLastName":"PONCE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria +[2024-12-31 16:00:41.892291] [debug] valor el evento recibido por webhook: invoice.draft_approved -UUID: 74cc2bb45eb8409f92cd5dba99200d26 +[2024-12-31 16:00:41.892421] [debug] HTTP request processing ended. +[2024-12-31 16:00:42.732383] [notice] Logging level set to:debug +[2024-12-31 16:00:42.732530] [debug] El valor del evento recibio en json: {"uuid":"53962271-d5b6-48c7-826a-d4eed873f413","changeType":"insert","entity":"invoice","entityId":"1365","eventName":"invoice.add_draft","extraData":{"entity":{"id":1365,"clientId":10,"number":"001329","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1368,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":10,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CARLOS","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 700","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2700 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 700\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:03 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:08\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:03 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:08","Clabe Transferencia Banamex":"0021804341999569810"}} +[2024-12-31 16:00:42.879034] [debug] valor el evento recibido por webhook: invoice.add_draft -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:03 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 700","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:08","Saldo Actual":"💲700 pendientes","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲700 pendientes\",\"Monto Ultimo Pago\": \"💲 700\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:03 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:08\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/crm/client/2"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} +[2024-12-31 16:00:42.879221] [debug] HTTP request processing ended. +[2024-12-31 16:00:42.994884] [notice] Logging level set to:debug +[2024-12-31 16:00:42.995026] [debug] El valor del evento recibio en json: {"uuid":"36ca5eb0-24c4-41e8-93d9-4fb50549cee1","changeType":"draft_approved","entity":"invoice","entityId":"1365","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1365,"clientId":10,"number":"001329","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1368,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":10,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CARLOS","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:08:54.677335] [debug] HTTP request processing ended. -[2024-12-26 9:08:59.405554] [notice] Logging level set to:debug -[2024-12-26 9:08:59.406235] [debug] El valor del evento recibio en json: {"uuid":"7b9e3496-179c-42bc-8425-b509cbc62fe4","changeType":"edit","entity":"invoice","entityId":"1327","eventName":"invoice.edit","extraData":{"entity":{"id":1327,"clientId":2,"number":"001291","createdDate":"2024-12-26T03:08:47-0600","dueDate":"2025-01-09T03:08:47-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1330,"type":"service","label":"PREMIUM 27\/10\/2025 \u2013 26\/11\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":700,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":532,"invoiceId":1327,"paymentId":461,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":{"id":1327,"clientId":2,"number":"001291","createdDate":"2024-12-26T03:08:47-0600","dueDate":"2025-01-09T03:08:47-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1330,"type":"service","label":"PREMIUM 27\/10\/2025 \u2013 26\/11\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[{"id":532,"invoiceId":1327,"paymentId":461,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false}}} +[2024-12-31 16:00:43.136646] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:08:59.624665] [debug] valor el evento recibido por webhook: invoice.edit +[2024-12-31 16:00:43.136775] [debug] HTTP request processing ended. +[2024-12-31 16:00:43.953123] [notice] Logging level set to:debug +[2024-12-31 16:00:43.953247] [debug] El valor del evento recibio en json: {"uuid":"e21fd647-ebb5-4e85-ad56-720107260108","changeType":"insert","entity":"invoice","entityId":"1366","eventName":"invoice.add_draft","extraData":{"entity":{"id":1366,"clientId":7,"number":"001330","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1369,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":7,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JESUS","clientLastName":"GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:08:59.624921] [debug] Edición de Factura +[2024-12-31 16:00:44.092376] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:08:59.625025] [debug] {"uuid":"7b9e3496-179c-42bc-8425-b509cbc62fe4","changeType":"edit","entity":"invoice","entityId":1327,"message":null,"clientId":2,"eventName":"invoice.edit","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1327,"clientId":2,"number":"001291","createdDate":"2024-12-26T03:08:47-0600","dueDate":"2025-01-09T03:08:47-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1330,"type":"service","label":"PREMIUM 27\/10\/2025 \u2013 26\/11\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":700,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":532,"invoiceId":1327,"paymentId":461,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} +[2024-12-31 16:00:44.092513] [debug] HTTP request processing ended. +[2024-12-31 16:00:44.203265] [notice] Logging level set to:debug +[2024-12-31 16:00:44.203356] [debug] El valor del evento recibio en json: {"uuid":"e207e6ad-410c-408c-9782-0765f7d4302c","changeType":"draft_approved","entity":"invoice","entityId":"1366","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1366,"clientId":7,"number":"001330","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1369,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":7,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JESUS","clientLastName":"GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:08:59.625125] [info] Se proceso los contactos +[2024-12-31 16:00:44.354581] [debug] valor el evento recibido por webhook: invoice.draft_approved -Dentro del proceso del patch: +[2024-12-31 16:00:44.354701] [debug] HTTP request processing ended. +[2024-12-31 16:00:45.191852] [notice] Logging level set to:debug +[2024-12-31 16:00:45.191973] [debug] El valor del evento recibio en json: {"uuid":"8f211dbc-f14b-4eee-8d92-f0d2d9e8ff3b","changeType":"insert","entity":"invoice","entityId":"1367","eventName":"invoice.add_draft","extraData":{"entity":{"id":1367,"clientId":50,"number":"001331","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1370,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":49,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GLORIA","clientLastName":"DELGADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Datos traidos con payment api: [{"id":461,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:08:56-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":532,"invoiceId":1327,"paymentId":461,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}] +[2024-12-31 16:00:45.345153] [debug] valor el evento recibido por webhook: invoice.add_draft -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria +[2024-12-31 16:00:45.345350] [debug] HTTP request processing ended. +[2024-12-31 16:00:45.460258] [notice] Logging level set to:debug +[2024-12-31 16:00:45.460354] [debug] El valor del evento recibio en json: {"uuid":"2d282da2-1298-4f02-b87a-635d35f00cff","changeType":"draft_approved","entity":"invoice","entityId":"1367","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1367,"clientId":50,"number":"001331","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1370,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":49,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GLORIA","clientLastName":"DELGADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -UUID: 74cc2bb45eb8409f92cd5dba99200d26 +[2024-12-31 16:00:45.605557] [debug] valor el evento recibido por webhook: invoice.draft_approved -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 700","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 700\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:08 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:09\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:08 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:09","Clabe Transferencia Banamex":"0021804341999569810"}} +[2024-12-31 16:00:45.605695] [debug] HTTP request processing ended. +[2024-12-31 16:00:46.393065] [notice] Logging level set to:debug +[2024-12-31 16:00:46.393244] [debug] El valor del evento recibio en json: {"uuid":"ad2410b3-bfb8-4c5d-b096-85a473d42d66","changeType":"insert","entity":"invoice","entityId":"1368","eventName":"invoice.add_draft","extraData":{"entity":{"id":1368,"clientId":5,"number":"001332","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1371,"type":"service","label":"INTERMEDIO 30\/11\/2024 \u2013 30\/12\/2024","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":5,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MUCIO","clientLastName":"ROBLEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CORREGIDORA #61, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:08 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 700","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:09","Saldo Actual":"💲0 está al corriente","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"💲 700\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:08 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:09\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/crm/client/2"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} +[2024-12-31 16:00:46.531156] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:09:02.274424] [debug] HTTP request processing ended. -[2024-12-26 9:09:02.400058] [notice] Logging level set to:debug -[2024-12-26 9:09:02.400250] [debug] El valor del evento recibio en json: {"uuid":"b35eaaae-9af1-46ca-bf6e-1b2bda88545c","changeType":"insert","entity":"payment","entityId":"461","eventName":"payment.add","extraData":{"entity":{"id":461,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:08:56-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":532,"invoiceId":1327,"paymentId":461,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":null}} +[2024-12-31 16:00:46.531289] [debug] HTTP request processing ended. +[2024-12-31 16:00:46.641958] [notice] Logging level set to:debug +[2024-12-31 16:00:46.642100] [debug] El valor del evento recibio en json: {"uuid":"c51a1017-0011-4642-b6fd-b60d994617bb","changeType":"draft_approved","entity":"invoice","entityId":"1368","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1368,"clientId":5,"number":"001332","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1371,"type":"service","label":"INTERMEDIO 30\/11\/2024 \u2013 30\/12\/2024","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":5,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MUCIO","clientLastName":"ROBLEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"CORREGIDORA #61, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:09:02.528273] [debug] valor el evento recibido por webhook: payment.add +[2024-12-31 16:00:46.778487] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:09:02.528435] [debug] datos del notification para el invoice add:{"uuid":"b35eaaae-9af1-46ca-bf6e-1b2bda88545c","changeType":"insert","entity":"payment","entityId":461,"message":null,"clientId":2,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":461,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:08:56-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":532,"invoiceId":1327,"paymentId":461,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}} +[2024-12-31 16:00:46.778621] [debug] HTTP request processing ended. +[2024-12-31 16:00:47.602298] [notice] Logging level set to:debug +[2024-12-31 16:00:47.602447] [debug] El valor del evento recibio en json: {"uuid":"2da499a2-60a3-4332-8f5f-e1adc3ec0377","changeType":"insert","entity":"invoice","entityId":"1369","eventName":"invoice.add_draft","extraData":{"entity":{"id":1369,"clientId":14,"number":"001333","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1372,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":14,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDRO","clientLastName":"ARIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:09:02.528472] [debug] valor del payment data: {"id":461,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:08:56-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":532,"invoiceId":1327,"paymentId":461,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]} +[2024-12-31 16:00:47.734401] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:09:02.528493] [debug] ***Se notifica y actualiza al cliente sobre su pago*** +[2024-12-31 16:00:47.734533] [debug] HTTP request processing ended. +[2024-12-31 16:00:47.851295] [notice] Logging level set to:debug +[2024-12-31 16:00:47.851521] [debug] El valor del evento recibio en json: {"uuid":"2043df6f-30df-4c29-988b-519b9691a548","changeType":"draft_approved","entity":"invoice","entityId":"1369","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1369,"clientId":14,"number":"001333","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1372,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":14,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDRO","clientLastName":"ARIAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:09:02.528557] [debug] Activado el check de mensajes de texto: 1 +[2024-12-31 16:00:47.988028] [debug] valor el evento recibido por webhook: invoice.draft_approved -Eviando comprobante de pago al cliente: 2 con número: 5214181878106 +[2024-12-31 16:00:47.988181] [debug] HTTP request processing ended. +[2024-12-31 16:00:48.895575] [notice] Logging level set to:debug +[2024-12-31 16:00:48.895783] [debug] El valor del evento recibio en json: {"uuid":"2f466a7e-620b-4ccd-9fb7-0bf848171e80","changeType":"insert","entity":"invoice","entityId":"1370","eventName":"invoice.add_draft","extraData":{"entity":{"id":1370,"clientId":100,"number":"001334","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1373,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":99,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RENE","clientLastName":"BUSTOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Datos traidos con payment api: [{"id":461,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:08:56-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":532,"invoiceId":1327,"paymentId":461,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}] +[2024-12-31 16:00:49.046695] [debug] valor el evento recibido por webhook: invoice.add_draft -Datos client data credit amount: 0 +[2024-12-31 16:00:49.046901] [debug] HTTP request processing ended. +[2024-12-31 16:00:49.162450] [notice] Logging level set to:debug +[2024-12-31 16:00:49.162548] [debug] El valor del evento recibio en json: {"uuid":"81372e68-e905-48d8-b458-170bfcb9eade","changeType":"draft_approved","entity":"invoice","entityId":"1370","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1370,"clientId":100,"number":"001334","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1373,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":99,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RENE","clientLastName":"BUSTOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Verificar paymentCovers +[2024-12-31 16:00:49.299696] [debug] valor el evento recibido por webhook: invoice.draft_approved -payment covers[{"id":532,"invoiceId":1327,"paymentId":461,"creditNoteId":null,"refundId":null,"amount":700}] +[2024-12-31 16:00:49.299824] [debug] HTTP request processing ended. +[2024-12-31 16:00:50.096609] [notice] Logging level set to:debug +[2024-12-31 16:00:50.096838] [debug] El valor del evento recibio en json: {"uuid":"74b0010d-e8f7-4f33-a1fc-9dfc8154d382","changeType":"insert","entity":"invoice","entityId":"1371","eventName":"invoice.add_draft","extraData":{"entity":{"id":1371,"clientId":15,"number":"001335","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1374,"type":"service","label":"PREMIUM 30\/11\/2024 \u2013 30\/12\/2024","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":15,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"VILLEGAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Datos del payment covers: +[2024-12-31 16:00:50.233805] [debug] valor el evento recibido por webhook: invoice.add_draft -Invoice ID pagado: 1327 de esta cantidad: 700 +[2024-12-31 16:00:50.233943] [debug] HTTP request processing ended. +[2024-12-31 16:00:50.346827] [notice] Logging level set to:debug +[2024-12-31 16:00:50.346919] [debug] El valor del evento recibio en json: {"uuid":"8e271146-5a35-4d25-b5e1-267dea8ef28d","changeType":"draft_approved","entity":"invoice","entityId":"1371","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1371,"clientId":15,"number":"001335","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1374,"type":"service","label":"PREMIUM 30\/11\/2024 \u2013 30\/12\/2024","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":15,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDUARDO","clientLastName":"VILLEGAZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Todos los Invoice IDs: 1327 +[2024-12-31 16:00:50.565248] [debug] valor el evento recibido por webhook: invoice.draft_approved -Todas las cantidades: 700,00 +[2024-12-31 16:00:50.565371] [debug] HTTP request processing ended. +[2024-12-31 16:00:51.492599] [notice] Logging level set to:debug +[2024-12-31 16:00:51.492726] [debug] El valor del evento recibio en json: {"uuid":"761e6c41-72fb-4540-b129-a9bfefddb578","changeType":"insert","entity":"invoice","entityId":"1372","eventName":"invoice.add_draft","extraData":{"entity":{"id":1372,"clientId":45,"number":"001336","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1375,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":44,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALBERTO","clientLastName":"GRANADOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Numero de factura: 001291 +[2024-12-31 16:00:51.791801] [debug] valor el evento recibido por webhook: invoice.add_draft -TOTAL de factura: 700 +[2024-12-31 16:00:51.791997] [debug] HTTP request processing ended. +[2024-12-31 16:00:51.914112] [notice] Logging level set to:debug +[2024-12-31 16:00:51.914218] [debug] El valor del evento recibio en json: {"uuid":"112508c3-a545-4ae3-a92d-a55255c489cd","changeType":"draft_approved","entity":"invoice","entityId":"1372","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1372,"clientId":45,"number":"001336","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1375,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":44,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALBERTO","clientLastName":"GRANADOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Se terminó de verificar payment covers +[2024-12-31 16:00:52.135365] [debug] valor el evento recibido por webhook: invoice.draft_approved -Tipo de $total_factura: double +[2024-12-31 16:00:52.135483] [debug] HTTP request processing ended. +[2024-12-31 16:00:52.983127] [notice] Logging level set to:debug +[2024-12-31 16:00:52.983232] [debug] El valor del evento recibio en json: {"uuid":"595576fb-c498-4530-bbb1-b6dff5fef1cc","changeType":"insert","entity":"invoice","entityId":"1373","eventName":"invoice.add_draft","extraData":{"entity":{"id":1373,"clientId":23,"number":"001337","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1376,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":22,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OSCAR","clientLastName":"GUERRERO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TABASCO #45, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Valor formateado: $700,00 MXN +[2024-12-31 16:00:53.190175] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:09:02.793855] [notice] Logging level set to:debug -[2024-12-26 9:09:02.794104] [debug] El valor del evento recibio en json: {"uuid":"3be7b47b-1f73-4cce-9b06-adaa575c917e","changeType":"edit","entity":"payment","entityId":"461","eventName":"payment.edit","extraData":{"entity":{"id":461,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:08:56-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":532,"invoiceId":1327,"paymentId":461,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":461,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:08:56-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":532,"invoiceId":1327,"paymentId":461,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}}} +[2024-12-31 16:00:53.190304] [debug] HTTP request processing ended. +[2024-12-31 16:00:53.300275] [notice] Logging level set to:debug +[2024-12-31 16:00:53.300367] [debug] El valor del evento recibio en json: {"uuid":"480f741c-0dd8-43b0-befe-4d7f45e98418","changeType":"draft_approved","entity":"invoice","entityId":"1373","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1373,"clientId":23,"number":"001337","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1376,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":22,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OSCAR","clientLastName":"GUERRERO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TABASCO #45, ZONA CENTRO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:09:02.913233] [debug] valor el evento recibido por webhook: payment.edit +[2024-12-31 16:00:53.478665] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:09:02.913466] [debug] HTTP request processing ended. -[2024-12-26 9:12:18.774434] [notice] Logging level set to:debug -[2024-12-26 9:12:18.774561] [debug] El valor del evento recibio en json: {"uuid":"b5bef91b-57aa-445a-b795-54b5f541ce08","changeType":"insert","entity":"invoice","entityId":"1328","eventName":"invoice.add","extraData":{"entity":{"id":1328,"clientId":2,"number":"001292","createdDate":"2024-12-26T03:12:10-0600","dueDate":"2025-01-09T03:12:10-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1331,"type":"service","label":"PREMIUM 27\/11\/2025 \u2013 26\/12\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} +[2024-12-31 16:00:53.478790] [debug] HTTP request processing ended. +[2024-12-31 16:00:54.414091] [notice] Logging level set to:debug +[2024-12-31 16:00:54.414190] [debug] El valor del evento recibio en json: {"uuid":"249619c4-c252-4674-bb71-455885375d65","changeType":"insert","entity":"invoice","entityId":"1374","eventName":"invoice.add_draft","extraData":{"entity":{"id":1374,"clientId":78,"number":"001338","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1377,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":77,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDER","clientLastName":"ROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:12:18.915384] [debug] valor el evento recibido por webhook: invoice.add +[2024-12-31 16:00:54.784189] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:12:18.915739] [debug] Adición de Factura +[2024-12-31 16:00:54.784387] [debug] HTTP request processing ended. +[2024-12-31 16:00:54.935466] [notice] Logging level set to:debug +[2024-12-31 16:00:54.935573] [debug] El valor del evento recibio en json: {"uuid":"0e093950-316b-4b68-a5a1-c54785f485cd","changeType":"draft_approved","entity":"invoice","entityId":"1374","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1374,"clientId":78,"number":"001338","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1377,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":77,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEXANDER","clientLastName":"ROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:12:18.915842] [debug] datos del notification para el invoice add:{"uuid":"b5bef91b-57aa-445a-b795-54b5f541ce08","changeType":"insert","entity":"invoice","entityId":1328,"message":null,"clientId":2,"eventName":"invoice.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1328,"clientId":2,"number":"001292","createdDate":"2024-12-26T03:12:10-0600","dueDate":"2025-01-09T03:12:10-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1331,"type":"service","label":"PREMIUM 27\/11\/2025 \u2013 26\/12\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} +[2024-12-31 16:00:55.228234] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:12:18.915905] [debug] Account Balance: -700 +[2024-12-31 16:00:55.228363] [debug] HTTP request processing ended. +[2024-12-31 16:00:55.954986] [notice] Logging level set to:debug +[2024-12-31 16:00:55.955090] [debug] El valor del evento recibio en json: {"uuid":"e68e2ccd-10d3-4377-8126-48ba2aafd399","changeType":"insert","entity":"invoice","entityId":"1375","eventName":"invoice.add_draft","extraData":{"entity":{"id":1375,"clientId":85,"number":"001339","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1378,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":84,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GISELLE","clientLastName":"ARREDONDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GARABATILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:12:18.915951] [debug] Pago hecho con la factura: 0 +[2024-12-31 16:00:56.143239] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:12:18.916023] [debug] {"uuid":"b5bef91b-57aa-445a-b795-54b5f541ce08","changeType":"insert","entity":"invoice","entityId":1328,"message":null,"clientId":2,"eventName":"invoice.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1328,"clientId":2,"number":"001292","createdDate":"2024-12-26T03:12:10-0600","dueDate":"2025-01-09T03:12:10-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1331,"type":"service","label":"PREMIUM 27\/11\/2025 \u2013 26\/12\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} +[2024-12-31 16:00:56.143451] [debug] HTTP request processing ended. +[2024-12-31 16:00:56.254651] [notice] Logging level set to:debug +[2024-12-31 16:00:56.254744] [debug] El valor del evento recibio en json: {"uuid":"c16c8979-ab56-4094-8a04-2eab2e665778","changeType":"draft_approved","entity":"invoice","entityId":"1375","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1375,"clientId":85,"number":"001339","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1378,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":84,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"GISELLE","clientLastName":"ARREDONDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GARABATILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:12:18.916117] [info] Se proceso los contactos +[2024-12-31 16:00:56.425735] [debug] valor el evento recibido por webhook: invoice.draft_approved -Dentro del proceso del patch: +[2024-12-31 16:00:56.425874] [debug] HTTP request processing ended. +[2024-12-31 16:00:57.279258] [notice] Logging level set to:debug +[2024-12-31 16:00:57.279361] [debug] El valor del evento recibio en json: {"uuid":"b2aff3fa-cb31-4843-b79e-774d3fdd2b33","changeType":"insert","entity":"invoice","entityId":"1376","eventName":"invoice.add_draft","extraData":{"entity":{"id":1376,"clientId":11,"number":"001340","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1379,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":11,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"KARIME","clientLastName":"QUINTERO HERNANDEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Datos traidos con payment api: [{"id":461,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:08:56-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":532,"invoiceId":1327,"paymentId":461,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}] +[2024-12-31 16:00:57.481678] [debug] valor el evento recibido por webhook: invoice.add_draft -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria +[2024-12-31 16:00:57.481873] [debug] HTTP request processing ended. +[2024-12-31 16:00:57.591536] [notice] Logging level set to:debug +[2024-12-31 16:00:57.591631] [debug] El valor del evento recibio en json: {"uuid":"39622571-b604-449b-b1d5-b5657db258c5","changeType":"draft_approved","entity":"invoice","entityId":"1376","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1376,"clientId":11,"number":"001340","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1379,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":11,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"KARIME","clientLastName":"QUINTERO HERNANDEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -UUID: 74cc2bb45eb8409f92cd5dba99200d26 +[2024-12-31 16:00:57.780267] [debug] valor el evento recibido por webhook: invoice.draft_approved -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 700","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2700 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 700\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:08 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:12\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:08 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:12","Clabe Transferencia Banamex":"0021804341999569810"}} +[2024-12-31 16:00:57.780396] [debug] HTTP request processing ended. +[2024-12-31 16:00:58.624900] [notice] Logging level set to:debug +[2024-12-31 16:00:58.624994] [debug] El valor del evento recibio en json: {"uuid":"2bbd2310-3881-4bb6-95d5-20a0ce9bb74e","changeType":"insert","entity":"invoice","entityId":"1377","eventName":"invoice.add_draft","extraData":{"entity":{"id":1377,"clientId":6,"number":"001341","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1380,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":6,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEJANDRO","clientLastName":"MOCTEZUMA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:08 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 700","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:12","Saldo Actual":"💲700 pendientes","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲700 pendientes\",\"Monto Ultimo Pago\": \"💲 700\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:08 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:12\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/crm/client/2"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} +[2024-12-31 16:00:58.808864] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:12:21.400450] [debug] HTTP request processing ended. -[2024-12-26 9:12:25.214596] [notice] Logging level set to:debug -[2024-12-26 9:12:25.214936] [debug] El valor del evento recibio en json: {"uuid":"3fdc6351-393d-489c-b995-829fd69e1350","changeType":"edit","entity":"invoice","entityId":"1328","eventName":"invoice.edit","extraData":{"entity":{"id":1328,"clientId":2,"number":"001292","createdDate":"2024-12-26T03:12:10-0600","dueDate":"2025-01-09T03:12:10-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1331,"type":"service","label":"PREMIUM 27\/11\/2025 \u2013 26\/12\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":700,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":533,"invoiceId":1328,"paymentId":462,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":{"id":1328,"clientId":2,"number":"001292","createdDate":"2024-12-26T03:12:10-0600","dueDate":"2025-01-09T03:12:10-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1331,"type":"service","label":"PREMIUM 27\/11\/2025 \u2013 26\/12\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[{"id":533,"invoiceId":1328,"paymentId":462,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false}}} +[2024-12-31 16:00:58.808984] [debug] HTTP request processing ended. +[2024-12-31 16:00:58.920408] [notice] Logging level set to:debug +[2024-12-31 16:00:58.920506] [debug] El valor del evento recibio en json: {"uuid":"71808451-f020-4fda-a5c7-9f3088e6c25c","changeType":"draft_approved","entity":"invoice","entityId":"1377","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1377,"clientId":6,"number":"001341","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1380,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":6,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALEJANDRO","clientLastName":"MOCTEZUMA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:12:25.486272] [debug] valor el evento recibido por webhook: invoice.edit +[2024-12-31 16:00:59.072046] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:12:25.486459] [debug] Edición de Factura +[2024-12-31 16:00:59.072175] [debug] HTTP request processing ended. +[2024-12-31 16:00:59.916297] [notice] Logging level set to:debug +[2024-12-31 16:00:59.916466] [debug] El valor del evento recibio en json: {"uuid":"0bca3f26-dde0-486c-89f7-871128cf1f27","changeType":"insert","entity":"invoice","entityId":"1378","eventName":"invoice.add_draft","extraData":{"entity":{"id":1378,"clientId":76,"number":"001342","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1381,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":75,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"RANGEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:12:25.486517] [debug] {"uuid":"3fdc6351-393d-489c-b995-829fd69e1350","changeType":"edit","entity":"invoice","entityId":1328,"message":null,"clientId":2,"eventName":"invoice.edit","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1328,"clientId":2,"number":"001292","createdDate":"2024-12-26T03:12:10-0600","dueDate":"2025-01-09T03:12:10-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1331,"type":"service","label":"PREMIUM 27\/11\/2025 \u2013 26\/12\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":700,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":533,"invoiceId":1328,"paymentId":462,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} +[2024-12-31 16:01:00.068099] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:12:25.486578] [info] Se proceso los contactos +[2024-12-31 16:01:00.068265] [debug] HTTP request processing ended. +[2024-12-31 16:01:00.181426] [notice] Logging level set to:debug +[2024-12-31 16:01:00.181642] [debug] El valor del evento recibio en json: {"uuid":"03a7ef93-1b13-4d59-a404-7f450af236ac","changeType":"draft_approved","entity":"invoice","entityId":"1378","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1378,"clientId":76,"number":"001342","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1381,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":75,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"RANGEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Dentro del proceso del patch: +[2024-12-31 16:01:00.320370] [debug] valor el evento recibido por webhook: invoice.draft_approved -Datos traidos con payment api: [{"id":462,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:12:22-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":533,"invoiceId":1328,"paymentId":462,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}] +[2024-12-31 16:01:00.320570] [debug] HTTP request processing ended. +[2024-12-31 16:01:01.812163] [notice] Logging level set to:debug +[2024-12-31 16:01:01.812311] [debug] El valor del evento recibio en json: {"uuid":"91382cb4-e269-4fb7-9bfc-ad8505260d5f","changeType":"insert","entity":"invoice","entityId":"1379","eventName":"invoice.add_draft","extraData":{"entity":{"id":1379,"clientId":37,"number":"001343","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1382,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":36,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGEL","clientLastName":"ARVIZU","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA SOLEDAD","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria +[2024-12-31 16:01:01.957144] [debug] valor el evento recibido por webhook: invoice.add_draft -UUID: 74cc2bb45eb8409f92cd5dba99200d26 +[2024-12-31 16:01:01.957288] [debug] HTTP request processing ended. +[2024-12-31 16:01:02.068037] [notice] Logging level set to:debug +[2024-12-31 16:01:02.068253] [debug] El valor del evento recibio en json: {"uuid":"d026c64e-e6f7-479c-b10e-e39e9f6ad209","changeType":"draft_approved","entity":"invoice","entityId":"1379","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1379,"clientId":37,"number":"001343","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1382,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":36,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGEL","clientLastName":"ARVIZU","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA SOLEDAD","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 700","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 700\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:12 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:12\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:12 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:12","Clabe Transferencia Banamex":"0021804341999569810"}} +[2024-12-31 16:01:02.211699] [debug] valor el evento recibido por webhook: invoice.draft_approved -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:12 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 700","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:12","Saldo Actual":"💲0 está al corriente","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"💲 700\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:12 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:12\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/crm/client/2"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} +[2024-12-31 16:01:02.211822] [debug] HTTP request processing ended. +[2024-12-31 16:01:03.031403] [notice] Logging level set to:debug +[2024-12-31 16:01:03.031548] [debug] El valor del evento recibio en json: {"uuid":"fa6d1ab7-8e6e-4541-88a9-7976ced96a90","changeType":"insert","entity":"invoice","entityId":"1380","eventName":"invoice.add_draft","extraData":{"entity":{"id":1380,"clientId":24,"number":"001344","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1383,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":23,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JACIEL","clientLastName":"CERVANTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTO NI\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:12:27.810949] [debug] HTTP request processing ended. -[2024-12-26 9:12:27.931853] [notice] Logging level set to:debug -[2024-12-26 9:12:27.932009] [debug] El valor del evento recibio en json: {"uuid":"993aaeb4-5fd7-4937-bb73-c7aeade1970b","changeType":"insert","entity":"payment","entityId":"462","eventName":"payment.add","extraData":{"entity":{"id":462,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:12:22-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":533,"invoiceId":1328,"paymentId":462,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":null}} +[2024-12-31 16:01:03.189465] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:12:28.113540] [debug] valor el evento recibido por webhook: payment.add +[2024-12-31 16:01:03.189690] [debug] HTTP request processing ended. +[2024-12-31 16:01:03.305195] [notice] Logging level set to:debug +[2024-12-31 16:01:03.305418] [debug] El valor del evento recibio en json: {"uuid":"a81410e9-1c97-414a-a956-b4eca21f1af3","changeType":"draft_approved","entity":"invoice","entityId":"1380","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1380,"clientId":24,"number":"001344","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1383,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":23,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JACIEL","clientLastName":"CERVANTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTO NI\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:12:28.113817] [debug] datos del notification para el invoice add:{"uuid":"993aaeb4-5fd7-4937-bb73-c7aeade1970b","changeType":"insert","entity":"payment","entityId":462,"message":null,"clientId":2,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":462,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:12:22-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":533,"invoiceId":1328,"paymentId":462,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}} +[2024-12-31 16:01:03.440273] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:12:28.113898] [debug] valor del payment data: {"id":462,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:12:22-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":533,"invoiceId":1328,"paymentId":462,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]} +[2024-12-31 16:01:03.440402] [debug] HTTP request processing ended. +[2024-12-31 16:01:04.265513] [notice] Logging level set to:debug +[2024-12-31 16:01:04.265736] [debug] El valor del evento recibio en json: {"uuid":"f793856d-aee6-402c-b52d-2ae264d98f77","changeType":"insert","entity":"invoice","entityId":"1381","eventName":"invoice.add_draft","extraData":{"entity":{"id":1381,"clientId":20,"number":"001345","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1384,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":19,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEFANIA","clientLastName":"BUENROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN PABLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:12:28.113960] [debug] ***Se notifica y actualiza al cliente sobre su pago*** +[2024-12-31 16:01:04.406898] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:12:28.114099] [debug] Activado el check de mensajes de texto: 1 +[2024-12-31 16:01:04.407020] [debug] HTTP request processing ended. +[2024-12-31 16:01:04.525316] [notice] Logging level set to:debug +[2024-12-31 16:01:04.525532] [debug] El valor del evento recibio en json: {"uuid":"35a69826-b095-4d44-8e21-b94dc22b27dc","changeType":"draft_approved","entity":"invoice","entityId":"1381","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1381,"clientId":20,"number":"001345","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1384,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":19,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEFANIA","clientLastName":"BUENROSTRO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN PABLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Eviando comprobante de pago al cliente: 2 con número: 5214181878106 +[2024-12-31 16:01:04.669672] [debug] valor el evento recibido por webhook: invoice.draft_approved -Datos traidos con payment api: [{"id":462,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:12:22-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":533,"invoiceId":1328,"paymentId":462,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}] +[2024-12-31 16:01:04.669795] [debug] HTTP request processing ended. +[2024-12-31 16:01:05.493931] [notice] Logging level set to:debug +[2024-12-31 16:01:05.494246] [debug] El valor del evento recibio en json: {"uuid":"45d4be26-6772-4ec3-b870-f23c554daf23","changeType":"insert","entity":"invoice","entityId":"1382","eventName":"invoice.add_draft","extraData":{"entity":{"id":1382,"clientId":101,"number":"001346","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1385,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":100,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OCTAVIO","clientLastName":"VIDAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ESTA\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Datos client data credit amount: 0 +[2024-12-31 16:01:05.634197] [debug] valor el evento recibido por webhook: invoice.add_draft -Verificar paymentCovers +[2024-12-31 16:01:05.634327] [debug] HTTP request processing ended. +[2024-12-31 16:01:05.746206] [notice] Logging level set to:debug +[2024-12-31 16:01:05.746304] [debug] El valor del evento recibio en json: {"uuid":"e8bdb49e-362d-463e-a6ff-4de5c39167c3","changeType":"draft_approved","entity":"invoice","entityId":"1382","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1382,"clientId":101,"number":"001346","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1385,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":100,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OCTAVIO","clientLastName":"VIDAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ESTA\u00d1O","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -payment covers[{"id":533,"invoiceId":1328,"paymentId":462,"creditNoteId":null,"refundId":null,"amount":700}] +[2024-12-31 16:01:05.890785] [debug] valor el evento recibido por webhook: invoice.draft_approved -Datos del payment covers: +[2024-12-31 16:01:05.890906] [debug] HTTP request processing ended. +[2024-12-31 16:01:06.722017] [notice] Logging level set to:debug +[2024-12-31 16:01:06.722186] [debug] El valor del evento recibio en json: {"uuid":"eb397ca2-28d2-4c73-8448-d92d67626ff6","changeType":"insert","entity":"invoice","entityId":"1383","eventName":"invoice.add_draft","extraData":{"entity":{"id":1383,"clientId":33,"number":"001347","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1386,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":32,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURELIA","clientLastName":"BARAJAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA CECILIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Invoice ID pagado: 1328 de esta cantidad: 700 +[2024-12-31 16:01:06.871818] [debug] valor el evento recibido por webhook: invoice.add_draft -Todos los Invoice IDs: 1328 +[2024-12-31 16:01:06.872014] [debug] HTTP request processing ended. +[2024-12-31 16:01:06.987715] [notice] Logging level set to:debug +[2024-12-31 16:01:06.987807] [debug] El valor del evento recibio en json: {"uuid":"6357d7b6-a7a3-421e-91f7-122f15d27f7a","changeType":"draft_approved","entity":"invoice","entityId":"1383","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1383,"clientId":33,"number":"001347","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1386,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":32,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURELIA","clientLastName":"BARAJAS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA CECILIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Todas las cantidades: 700,00 +[2024-12-31 16:01:07.191348] [debug] valor el evento recibido por webhook: invoice.draft_approved -Numero de factura: 001292 +[2024-12-31 16:01:07.191478] [debug] HTTP request processing ended. +[2024-12-31 16:01:07.975486] [notice] Logging level set to:debug +[2024-12-31 16:01:07.975575] [debug] El valor del evento recibio en json: {"uuid":"28112b9d-83d5-47f7-9f98-c768cb631c05","changeType":"insert","entity":"invoice","entityId":"1384","eventName":"invoice.add_draft","extraData":{"entity":{"id":1384,"clientId":82,"number":"001348","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1387,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":81,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AGUSTINA","clientLastName":"PERICLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -TOTAL de factura: 700 +[2024-12-31 16:01:08.232268] [debug] valor el evento recibido por webhook: invoice.add_draft -Se terminó de verificar payment covers +[2024-12-31 16:01:08.232386] [debug] HTTP request processing ended. +[2024-12-31 16:01:08.353125] [notice] Logging level set to:debug +[2024-12-31 16:01:08.353225] [debug] El valor del evento recibio en json: {"uuid":"4dc2ad2a-abb9-4125-8556-44f590748a8e","changeType":"draft_approved","entity":"invoice","entityId":"1384","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1384,"clientId":82,"number":"001348","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1387,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":81,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AGUSTINA","clientLastName":"PERICLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "John Doe" - }, - "template_values": ["Daniel Humberto Soto Villegas Polleria", "462", "2", "26/12/2024 3:12am", "700", "Transferencia bancaria 📱🏦", "1328", "$700,00 MXN", "$700,00 MXN", "$0 está al corriente", ""], - "template_uuid": "c1396a6ad3cb4192916d4ac2bfb782a5", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"cca442b0f20c4348ba2fe7b8deb749c2","status":"enqueued"}} -Dentro del proceso del patch: +[2024-12-31 16:01:08.500886] [debug] valor el evento recibido por webhook: invoice.draft_approved -Datos traidos con payment api: [{"id":462,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:12:22-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":533,"invoiceId":1328,"paymentId":462,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}] +[2024-12-31 16:01:08.501008] [debug] HTTP request processing ended. +[2024-12-31 16:01:09.181278] [notice] Logging level set to:debug +[2024-12-31 16:01:09.181376] [debug] El valor del evento recibio en json: {"uuid":"de715de8-8066-4bc7-ad0b-0b5f6c1b41b2","changeType":"insert","entity":"invoice","entityId":"1385","eventName":"invoice.add_draft","extraData":{"entity":{"id":1385,"clientId":69,"number":"001349","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1388,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":68,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CIRILA","clientLastName":"AVILES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria +[2024-12-31 16:01:09.441638] [debug] valor el evento recibido por webhook: invoice.add_draft -UUID: 74cc2bb45eb8409f92cd5dba99200d26 +[2024-12-31 16:01:09.441837] [debug] HTTP request processing ended. +[2024-12-31 16:01:09.554485] [notice] Logging level set to:debug +[2024-12-31 16:01:09.554579] [debug] El valor del evento recibio en json: {"uuid":"ad4cbe5b-0f50-4361-a79c-11eab6e3e478","changeType":"draft_approved","entity":"invoice","entityId":"1385","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1385,"clientId":69,"number":"001349","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1388,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":68,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CIRILA","clientLastName":"AVILES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 700","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 700\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:12 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:12\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:12 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:12","Clabe Transferencia Banamex":null}} +[2024-12-31 16:01:09.731844] [debug] valor el evento recibido por webhook: invoice.draft_approved -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:12 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 700","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:12","Saldo Actual":"💲0 está al corriente","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"💲 700\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:12 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:12\",\"Clabe Transferencia Banamex\": \"\"}","URL":"🌐 https://172.16.5.120/crm/client/2"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} +[2024-12-31 16:01:09.731966] [debug] HTTP request processing ended. +[2024-12-31 16:01:10.468588] [notice] Logging level set to:debug +[2024-12-31 16:01:10.468683] [debug] El valor del evento recibio en json: {"uuid":"f95a05eb-1c97-4c0a-9a43-cd070f1615d3","changeType":"insert","entity":"invoice","entityId":"1386","eventName":"invoice.add_draft","extraData":{"entity":{"id":1386,"clientId":49,"number":"001350","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1389,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":48,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"ARGOTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:12:30.562055] [debug] HTTP request processing ended. -[2024-12-26 9:12:30.685121] [notice] Logging level set to:debug -[2024-12-26 9:12:30.685329] [debug] El valor del evento recibio en json: {"uuid":"fab2aa46-71a0-4208-9f05-d938af6e47b5","changeType":"edit","entity":"payment","entityId":"462","eventName":"payment.edit","extraData":{"entity":{"id":462,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:12:22-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":533,"invoiceId":1328,"paymentId":462,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":462,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:12:22-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":533,"invoiceId":1328,"paymentId":462,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}}} +[2024-12-31 16:01:10.697026] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:12:30.807316] [debug] valor el evento recibido por webhook: payment.edit +[2024-12-31 16:01:10.697149] [debug] HTTP request processing ended. +[2024-12-31 16:01:10.814997] [notice] Logging level set to:debug +[2024-12-31 16:01:10.815104] [debug] El valor del evento recibio en json: {"uuid":"aefbf41f-b60d-41db-9ec6-2e017cfe7bd3","changeType":"draft_approved","entity":"invoice","entityId":"1386","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1386,"clientId":49,"number":"001350","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1389,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":48,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"ARGOTE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:12:30.807583] [debug] HTTP request processing ended. -[2024-12-26 9:18:54.174266] [notice] Logging level set to:debug -[2024-12-26 9:18:54.174402] [debug] El valor del evento recibio en json: {"uuid":"74d1842c-26d4-4590-b487-2a0a21d2c88f","changeType":"insert","entity":"invoice","entityId":"1329","eventName":"invoice.add","extraData":{"entity":{"id":1329,"clientId":2,"number":"001293","createdDate":"2024-12-26T03:18:44-0600","dueDate":"2025-01-09T03:18:44-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1332,"type":"service","label":"PREMIUM 27\/12\/2025 \u2013 26\/01\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} +[2024-12-31 16:01:11.033519] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:18:54.333064] [debug] valor el evento recibido por webhook: invoice.add +[2024-12-31 16:01:11.033637] [debug] HTTP request processing ended. +[2024-12-31 16:01:11.825772] [notice] Logging level set to:debug +[2024-12-31 16:01:11.825869] [debug] El valor del evento recibio en json: {"uuid":"a9c15908-ec63-4693-a35a-5c3fb3dfda56","changeType":"insert","entity":"invoice","entityId":"1387","eventName":"invoice.add_draft","extraData":{"entity":{"id":1387,"clientId":68,"number":"001351","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1390,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":67,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DOLORES","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:18:54.333319] [debug] Adición de Factura +[2024-12-31 16:01:12.060584] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:18:54.333379] [debug] datos del notification para el invoice add:{"uuid":"74d1842c-26d4-4590-b487-2a0a21d2c88f","changeType":"insert","entity":"invoice","entityId":1329,"message":null,"clientId":2,"eventName":"invoice.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1329,"clientId":2,"number":"001293","createdDate":"2024-12-26T03:18:44-0600","dueDate":"2025-01-09T03:18:44-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1332,"type":"service","label":"PREMIUM 27\/12\/2025 \u2013 26\/01\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} +[2024-12-31 16:01:12.060704] [debug] HTTP request processing ended. +[2024-12-31 16:01:12.174829] [notice] Logging level set to:debug +[2024-12-31 16:01:12.174937] [debug] El valor del evento recibio en json: {"uuid":"8ac39910-af9e-466b-81bd-cc4bbf723cff","changeType":"draft_approved","entity":"invoice","entityId":"1387","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1387,"clientId":68,"number":"001351","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1390,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":67,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DOLORES","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:18:54.333411] [debug] Account Balance: -700 +[2024-12-31 16:01:12.444701] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:18:54.333420] [debug] Pago hecho con la factura: 0 +[2024-12-31 16:01:12.444905] [debug] HTTP request processing ended. +[2024-12-31 16:01:13.216665] [notice] Logging level set to:debug +[2024-12-31 16:01:13.216756] [debug] El valor del evento recibio en json: {"uuid":"8952656a-53cd-4a78-8d7d-e63f0979702c","changeType":"insert","entity":"invoice","entityId":"1388","eventName":"invoice.add_draft","extraData":{"entity":{"id":1388,"clientId":51,"number":"001352","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1391,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":50,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"MORENO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PADRE HIDALGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:18:54.333461] [debug] {"uuid":"74d1842c-26d4-4590-b487-2a0a21d2c88f","changeType":"insert","entity":"invoice","entityId":1329,"message":null,"clientId":2,"eventName":"invoice.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1329,"clientId":2,"number":"001293","createdDate":"2024-12-26T03:18:44-0600","dueDate":"2025-01-09T03:18:44-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1332,"type":"service","label":"PREMIUM 27\/12\/2025 \u2013 26\/01\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} +[2024-12-31 16:01:13.537965] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:18:54.333528] [info] Se proceso los contactos +[2024-12-31 16:01:13.538108] [debug] HTTP request processing ended. +[2024-12-31 16:01:13.664824] [notice] Logging level set to:debug +[2024-12-31 16:01:13.664921] [debug] El valor del evento recibio en json: {"uuid":"e020f9f7-6b0c-46e8-89ae-831211c3eaf6","changeType":"draft_approved","entity":"invoice","entityId":"1388","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1388,"clientId":51,"number":"001352","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1391,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":50,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"MORENO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PADRE HIDALGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Dentro del proceso del patch: +[2024-12-31 16:01:13.906543] [debug] valor el evento recibido por webhook: invoice.draft_approved -Datos traidos con payment api: [{"id":462,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:12:22-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":533,"invoiceId":1328,"paymentId":462,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}] +[2024-12-31 16:01:13.906663] [debug] HTTP request processing ended. +[2024-12-31 16:01:15.005512] [notice] Logging level set to:debug +[2024-12-31 16:01:15.005637] [debug] El valor del evento recibio en json: {"uuid":"72d186f3-1d08-4221-982c-a2d80c1bfaa4","changeType":"insert","entity":"invoice","entityId":"1389","eventName":"invoice.add_draft","extraData":{"entity":{"id":1389,"clientId":31,"number":"001353","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1392,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":30,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANA","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SIETE REALES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria +[2024-12-31 16:01:15.152781] [debug] valor el evento recibido por webhook: invoice.add_draft -UUID: 74cc2bb45eb8409f92cd5dba99200d26 +[2024-12-31 16:01:15.152971] [debug] HTTP request processing ended. +[2024-12-31 16:01:15.318108] [notice] Logging level set to:debug +[2024-12-31 16:01:15.318205] [debug] El valor del evento recibio en json: {"uuid":"defa78f6-7e8d-426e-a315-e88e284f74ab","changeType":"draft_approved","entity":"invoice","entityId":"1389","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1389,"clientId":31,"number":"001353","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1392,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":30,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANA","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SIETE REALES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 700","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2700 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 700\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:12 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:18\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:12 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:18","Clabe Transferencia Banamex":"0021804341999569810"}} +[2024-12-31 16:01:15.450339] [debug] valor el evento recibido por webhook: invoice.draft_approved -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:12 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 700","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:18","Saldo Actual":"💲700 pendientes","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲700 pendientes\",\"Monto Ultimo Pago\": \"💲 700\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:12 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:18\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/crm/client/2"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} +[2024-12-31 16:01:15.450469] [debug] HTTP request processing ended. +[2024-12-31 16:01:16.252578] [notice] Logging level set to:debug +[2024-12-31 16:01:16.252794] [debug] El valor del evento recibio en json: {"uuid":"6ecb024b-6d6b-49d8-8b63-003b58b166b3","changeType":"insert","entity":"invoice","entityId":"1390","eventName":"invoice.add_draft","extraData":{"entity":{"id":1390,"clientId":84,"number":"001354","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1393,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":83,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ROLANDO","clientLastName":"CALVILLLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:18:57.216907] [debug] HTTP request processing ended. -[2024-12-26 9:19:06.828685] [notice] Logging level set to:debug -[2024-12-26 9:19:06.829054] [debug] El valor del evento recibio en json: {"uuid":"3d7168ef-2944-4c18-886b-38f1cefc365a","changeType":"edit","entity":"invoice","entityId":"1329","eventName":"invoice.edit","extraData":{"entity":{"id":1329,"clientId":2,"number":"001293","createdDate":"2024-12-26T03:18:44-0600","dueDate":"2025-01-09T03:18:44-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1332,"type":"service","label":"PREMIUM 27\/12\/2025 \u2013 26\/01\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":700,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":534,"invoiceId":1329,"paymentId":463,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":{"id":1329,"clientId":2,"number":"001293","createdDate":"2024-12-26T03:18:44-0600","dueDate":"2025-01-09T03:18:44-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1332,"type":"service","label":"PREMIUM 27\/12\/2025 \u2013 26\/01\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[{"id":534,"invoiceId":1329,"paymentId":463,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false}}} +[2024-12-31 16:01:16.400234] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:19:07.076461] [debug] valor el evento recibido por webhook: invoice.edit +[2024-12-31 16:01:16.400362] [debug] HTTP request processing ended. +[2024-12-31 16:01:16.516808] [notice] Logging level set to:debug +[2024-12-31 16:01:16.516983] [debug] El valor del evento recibio en json: {"uuid":"ba1bcc52-8a76-46fb-a97c-a2c076c229ff","changeType":"draft_approved","entity":"invoice","entityId":"1390","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1390,"clientId":84,"number":"001354","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1393,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":83,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ROLANDO","clientLastName":"CALVILLLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:19:07.076729] [debug] Edición de Factura +[2024-12-31 16:01:16.657187] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:19:07.076828] [debug] {"uuid":"3d7168ef-2944-4c18-886b-38f1cefc365a","changeType":"edit","entity":"invoice","entityId":1329,"message":null,"clientId":2,"eventName":"invoice.edit","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1329,"clientId":2,"number":"001293","createdDate":"2024-12-26T03:18:44-0600","dueDate":"2025-01-09T03:18:44-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1332,"type":"service","label":"PREMIUM 27\/12\/2025 \u2013 26\/01\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":700,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":534,"invoiceId":1329,"paymentId":463,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} +[2024-12-31 16:01:16.657321] [debug] HTTP request processing ended. +[2024-12-31 16:01:17.473469] [notice] Logging level set to:debug +[2024-12-31 16:01:17.473565] [debug] El valor del evento recibio en json: {"uuid":"658bced7-1103-4874-804e-13243034bd1e","changeType":"insert","entity":"invoice","entityId":"1391","eventName":"invoice.add_draft","extraData":{"entity":{"id":1391,"clientId":94,"number":"001355","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1394,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":93,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARTIN","clientLastName":"TREJO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:19:07.076932] [info] Se proceso los contactos +[2024-12-31 16:01:17.615628] [debug] valor el evento recibido por webhook: invoice.add_draft -Dentro del proceso del patch: +[2024-12-31 16:01:17.615753] [debug] HTTP request processing ended. +[2024-12-31 16:01:17.729938] [notice] Logging level set to:debug +[2024-12-31 16:01:17.730066] [debug] El valor del evento recibio en json: {"uuid":"408896b1-527f-4f21-96f3-18b6e4bdee4a","changeType":"draft_approved","entity":"invoice","entityId":"1391","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1391,"clientId":94,"number":"001355","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1394,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":93,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARTIN","clientLastName":"TREJO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Datos traidos con payment api: [{"id":463,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:19:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":534,"invoiceId":1329,"paymentId":463,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}] +[2024-12-31 16:01:17.877491] [debug] valor el evento recibido por webhook: invoice.draft_approved -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria +[2024-12-31 16:01:17.877619] [debug] HTTP request processing ended. +[2024-12-31 16:01:18.722990] [notice] Logging level set to:debug +[2024-12-31 16:01:18.723110] [debug] El valor del evento recibio en json: {"uuid":"85e8e691-fb69-497b-866e-cb40ba95c454","changeType":"insert","entity":"invoice","entityId":"1392","eventName":"invoice.add_draft","extraData":{"entity":{"id":1392,"clientId":71,"number":"001356","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1395,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":70,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MNARIA","clientLastName":"ALVAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -UUID: 74cc2bb45eb8409f92cd5dba99200d26 +[2024-12-31 16:01:18.871078] [debug] valor el evento recibido por webhook: invoice.add_draft -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 700","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 700\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:19 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:19\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:19 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:19","Clabe Transferencia Banamex":"0021804341999569810"}} +[2024-12-31 16:01:18.871265] [debug] HTTP request processing ended. +[2024-12-31 16:01:18.984838] [notice] Logging level set to:debug +[2024-12-31 16:01:18.984944] [debug] El valor del evento recibio en json: {"uuid":"2cd9ee4a-b574-49b1-8436-72383e661dd9","changeType":"draft_approved","entity":"invoice","entityId":"1392","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1392,"clientId":71,"number":"001356","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1395,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":70,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MNARIA","clientLastName":"ALVAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:19 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 700","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:19","Saldo Actual":"💲0 está al corriente","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"💲 700\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:19 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:19\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/crm/client/2"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} +[2024-12-31 16:01:19.150341] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:19:09.410880] [debug] HTTP request processing ended. -[2024-12-26 9:19:09.532331] [notice] Logging level set to:debug -[2024-12-26 9:19:09.532491] [debug] El valor del evento recibio en json: {"uuid":"26b62302-3e6f-4f5e-86e9-0381b8b382c2","changeType":"insert","entity":"payment","entityId":"463","eventName":"payment.add","extraData":{"entity":{"id":463,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:19:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":534,"invoiceId":1329,"paymentId":463,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":null}} +[2024-12-31 16:01:19.150465] [debug] HTTP request processing ended. +[2024-12-31 16:01:19.943557] [notice] Logging level set to:debug +[2024-12-31 16:01:19.943809] [debug] El valor del evento recibio en json: {"uuid":"58f56581-fa0d-4f24-bbee-5f300cbf8653","changeType":"insert","entity":"invoice","entityId":"1393","eventName":"invoice.add_draft","extraData":{"entity":{"id":1393,"clientId":90,"number":"001357","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1396,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":89,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PEDRO","clientLastName":"HORNEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:19:09.814265] [debug] valor el evento recibido por webhook: payment.add +[2024-12-31 16:01:20.086934] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:19:09.814585] [debug] datos del notification para el invoice add:{"uuid":"26b62302-3e6f-4f5e-86e9-0381b8b382c2","changeType":"insert","entity":"payment","entityId":463,"message":null,"clientId":2,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":463,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:19:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":534,"invoiceId":1329,"paymentId":463,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}} +[2024-12-31 16:01:20.087136] [debug] HTTP request processing ended. +[2024-12-31 16:01:20.204525] [notice] Logging level set to:debug +[2024-12-31 16:01:20.204618] [debug] El valor del evento recibio en json: {"uuid":"4d5cc41e-6dea-40d1-84b2-005a4d146408","changeType":"draft_approved","entity":"invoice","entityId":"1393","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1393,"clientId":90,"number":"001357","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1396,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":89,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PEDRO","clientLastName":"HORNEDO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"ADJUNTAS DEL RIO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:19:09.814668] [debug] valor del payment data: {"id":463,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:19:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":534,"invoiceId":1329,"paymentId":463,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]} +[2024-12-31 16:01:20.344835] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:19:09.814737] [debug] ***Se notifica y actualiza al cliente sobre su pago*** +[2024-12-31 16:01:20.344975] [debug] HTTP request processing ended. +[2024-12-31 16:01:21.203164] [notice] Logging level set to:debug +[2024-12-31 16:01:21.203305] [debug] El valor del evento recibio en json: {"uuid":"35a8d0aa-1cba-4626-8bf4-99c62f3f06cd","changeType":"insert","entity":"invoice","entityId":"1394","eventName":"invoice.add_draft","extraData":{"entity":{"id":1394,"clientId":30,"number":"001358","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1397,"type":"service","label":"PREMIUM 30\/11\/2024 \u2013 30\/12\/2024","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":29,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUANA","clientLastName":"MONTES DE OCA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:19:09.814840] [debug] Activado el check de mensajes de texto: 1 +[2024-12-31 16:01:21.349052] [debug] valor el evento recibido por webhook: invoice.add_draft -Eviando comprobante de pago al cliente: 2 con número: 5214181878106 +[2024-12-31 16:01:21.349244] [debug] HTTP request processing ended. +[2024-12-31 16:01:21.463956] [notice] Logging level set to:debug +[2024-12-31 16:01:21.464077] [debug] El valor del evento recibio en json: {"uuid":"f4c5937a-3427-430e-b79f-e4f143c29604","changeType":"draft_approved","entity":"invoice","entityId":"1394","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1394,"clientId":30,"number":"001358","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1397,"type":"service","label":"PREMIUM 30\/11\/2024 \u2013 30\/12\/2024","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":29,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUANA","clientLastName":"MONTES DE OCA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"FRACCIONAMIENTO GUANAJUATO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Datos traidos con payment api: [{"id":463,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:19:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":534,"invoiceId":1329,"paymentId":463,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}] +[2024-12-31 16:01:21.598798] [debug] valor el evento recibido por webhook: invoice.draft_approved -Datos client data credit amount: 0 +[2024-12-31 16:01:21.598915] [debug] HTTP request processing ended. +[2024-12-31 16:01:22.471332] [notice] Logging level set to:debug +[2024-12-31 16:01:22.471448] [debug] El valor del evento recibio en json: {"uuid":"fa4b9ce7-6df3-4a4f-8b57-8c9fad238d6b","changeType":"insert","entity":"invoice","entityId":"1395","eventName":"invoice.add_draft","extraData":{"entity":{"id":1395,"clientId":72,"number":"001359","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1398,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":71,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BRANDOM","clientLastName":"EZQUIVEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Verificar paymentCovers +[2024-12-31 16:01:22.651164] [debug] valor el evento recibido por webhook: invoice.add_draft -payment covers[{"id":534,"invoiceId":1329,"paymentId":463,"creditNoteId":null,"refundId":null,"amount":700}] +[2024-12-31 16:01:22.651490] [debug] HTTP request processing ended. +[2024-12-31 16:01:22.766971] [notice] Logging level set to:debug +[2024-12-31 16:01:22.767064] [debug] El valor del evento recibio en json: {"uuid":"08f90cf8-ce93-43cc-bdec-90685f8c111a","changeType":"draft_approved","entity":"invoice","entityId":"1395","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1395,"clientId":72,"number":"001359","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1398,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":71,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BRANDOM","clientLastName":"EZQUIVEL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Datos del payment covers: +[2024-12-31 16:01:22.918649] [debug] valor el evento recibido por webhook: invoice.draft_approved -Invoice ID pagado: 1329 de esta cantidad: 700 +[2024-12-31 16:01:22.918847] [debug] HTTP request processing ended. +[2024-12-31 16:01:23.730601] [notice] Logging level set to:debug +[2024-12-31 16:01:23.730731] [debug] El valor del evento recibio en json: {"uuid":"a3738f37-85fa-4de0-8b85-7d5f9db5545f","changeType":"insert","entity":"invoice","entityId":"1396","eventName":"invoice.add_draft","extraData":{"entity":{"id":1396,"clientId":36,"number":"001360","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1399,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":35,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURORA","clientLastName":"FLORES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS FLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Todos los Invoice IDs: 1329 +[2024-12-31 16:01:23.859483] [debug] valor el evento recibido por webhook: invoice.add_draft -Todas las cantidades: 700,00 +[2024-12-31 16:01:23.859608] [debug] HTTP request processing ended. +[2024-12-31 16:01:23.970463] [notice] Logging level set to:debug +[2024-12-31 16:01:23.970555] [debug] El valor del evento recibio en json: {"uuid":"6d4ef4ec-ff25-4747-a618-b79d8b0ad74a","changeType":"draft_approved","entity":"invoice","entityId":"1396","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1396,"clientId":36,"number":"001360","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1399,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":35,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"AURORA","clientLastName":"FLORES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS FLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Numero de factura: 001293 +[2024-12-31 16:01:24.126336] [debug] valor el evento recibido por webhook: invoice.draft_approved -TOTAL de factura: 700 +[2024-12-31 16:01:24.126473] [debug] HTTP request processing ended. +[2024-12-31 16:01:24.919990] [notice] Logging level set to:debug +[2024-12-31 16:01:24.920097] [debug] El valor del evento recibio en json: {"uuid":"774021e5-6af9-47e6-aebe-512de55185c8","changeType":"insert","entity":"invoice","entityId":"1397","eventName":"invoice.add_draft","extraData":{"entity":{"id":1397,"clientId":81,"number":"001361","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1400,"type":"service","label":"PREMIUM 30\/11\/2024 \u2013 30\/12\/2024","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":80,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"FERNANDO","clientLastName":"ALCAZAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Se terminó de verificar payment covers +[2024-12-31 16:01:25.054419] [debug] valor el evento recibido por webhook: invoice.add_draft -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "John Doe" - }, - "template_values": ["Daniel Humberto Soto Villegas Polleria", "463", "2", "26/12/2024 3:19am", "700", "Transferencia bancaria 📱🏦", "1329", "$700,00 MXN", "$700,00 MXN", "$0 está al corriente", "_________________________"], - "template_uuid": "c1396a6ad3cb4192916d4ac2bfb782a5", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"1ff04f3156d94f0b8c55e9c3a8c54191","status":"enqueued"}} -Dentro del proceso del patch: +[2024-12-31 16:01:25.054610] [debug] HTTP request processing ended. +[2024-12-31 16:01:25.165740] [notice] Logging level set to:debug +[2024-12-31 16:01:25.165836] [debug] El valor del evento recibio en json: {"uuid":"8b09c3f7-eb40-4294-85e6-0633fb6fe823","changeType":"draft_approved","entity":"invoice","entityId":"1397","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1397,"clientId":81,"number":"001361","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1400,"type":"service","label":"PREMIUM 30\/11\/2024 \u2013 30\/12\/2024","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":80,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"FERNANDO","clientLastName":"ALCAZAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Datos traidos con payment api: [{"id":463,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:19:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":534,"invoiceId":1329,"paymentId":463,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}] +[2024-12-31 16:01:25.317404] [debug] valor el evento recibido por webhook: invoice.draft_approved -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria +[2024-12-31 16:01:25.317534] [debug] HTTP request processing ended. +[2024-12-31 16:01:26.197581] [notice] Logging level set to:debug +[2024-12-31 16:01:26.197804] [debug] El valor del evento recibio en json: {"uuid":"de824a3d-83d2-4e8b-a980-253df45cd360","changeType":"insert","entity":"invoice","entityId":"1398","eventName":"invoice.add_draft","extraData":{"entity":{"id":1398,"clientId":22,"number":"001362","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1401,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":21,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEBAN","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA PUERTA DE SAN FRANCISCO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -UUID: 74cc2bb45eb8409f92cd5dba99200d26 +[2024-12-31 16:01:26.337382] [debug] valor el evento recibido por webhook: invoice.add_draft -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 700","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 700\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:19 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:19\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:19 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:19","Clabe Transferencia Banamex":null}} +[2024-12-31 16:01:26.337516] [debug] HTTP request processing ended. +[2024-12-31 16:01:26.451817] [notice] Logging level set to:debug +[2024-12-31 16:01:26.451908] [debug] El valor del evento recibio en json: {"uuid":"3e60fa14-5309-40c5-892a-a2a28736ff92","changeType":"draft_approved","entity":"invoice","entityId":"1398","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1398,"clientId":22,"number":"001362","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1401,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":21,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTEBAN","clientLastName":"GARCIA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA PUERTA DE SAN FRANCISCO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:19 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 700","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:19","Saldo Actual":"💲0 está al corriente","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"💲 700\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:19 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:19\",\"Clabe Transferencia Banamex\": \"\"}","URL":"🌐 https://172.16.5.120/crm/client/2"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} +[2024-12-31 16:01:26.598030] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:19:12.570210] [debug] HTTP request processing ended. -[2024-12-26 9:19:12.698903] [notice] Logging level set to:debug -[2024-12-26 9:19:12.699117] [debug] El valor del evento recibio en json: {"uuid":"6b06be62-8569-4b86-9faf-145807586b18","changeType":"edit","entity":"payment","entityId":"463","eventName":"payment.edit","extraData":{"entity":{"id":463,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:19:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":534,"invoiceId":1329,"paymentId":463,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":463,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:19:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":534,"invoiceId":1329,"paymentId":463,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}}} +[2024-12-31 16:01:26.598151] [debug] HTTP request processing ended. +[2024-12-31 16:01:27.448482] [notice] Logging level set to:debug +[2024-12-31 16:01:27.448592] [debug] El valor del evento recibio en json: {"uuid":"d63eb843-1271-42ca-aac9-e65888f7a732","changeType":"insert","entity":"invoice","entityId":"1399","eventName":"invoice.add_draft","extraData":{"entity":{"id":1399,"clientId":61,"number":"001363","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1402,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":60,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LUIS","clientLastName":"AGULAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AGUILAR","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:19:12.815179] [debug] valor el evento recibido por webhook: payment.edit +[2024-12-31 16:01:27.605597] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:19:12.815363] [debug] HTTP request processing ended. -[2024-12-26 9:24:57.725142] [notice] Logging level set to:debug -[2024-12-26 9:24:57.725330] [debug] El valor del evento recibio en json: {"uuid":"eecdef6a-fa4b-47f6-90c9-4ca087901a24","changeType":"insert","entity":"invoice","entityId":"1330","eventName":"invoice.add","extraData":{"entity":{"id":1330,"clientId":2,"number":"001294","createdDate":"2024-12-26T03:24:47-0600","dueDate":"2025-01-09T03:24:47-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1333,"type":"service","label":"PREMIUM 27\/01\/2026 \u2013 26\/02\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} +[2024-12-31 16:01:27.605777] [debug] HTTP request processing ended. +[2024-12-31 16:01:27.721448] [notice] Logging level set to:debug +[2024-12-31 16:01:27.721579] [debug] El valor del evento recibio en json: {"uuid":"07054414-a23a-403c-999f-b79e3c7cca11","changeType":"draft_approved","entity":"invoice","entityId":"1399","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1399,"clientId":61,"number":"001363","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1402,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":60,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LUIS","clientLastName":"AGULAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AGUILAR","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:24:57.845472] [debug] valor el evento recibido por webhook: invoice.add +[2024-12-31 16:01:27.858767] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:24:57.845805] [debug] Adición de Factura +[2024-12-31 16:01:27.858896] [debug] HTTP request processing ended. +[2024-12-31 16:01:28.693092] [notice] Logging level set to:debug +[2024-12-31 16:01:28.693316] [debug] El valor del evento recibio en json: {"uuid":"7608242b-c87d-4d58-a285-0dceb9a8980b","changeType":"insert","entity":"invoice","entityId":"1400","eventName":"invoice.add_draft","extraData":{"entity":{"id":1400,"clientId":73,"number":"001364","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1403,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":72,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ERICK","clientLastName":"VAZQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:24:57.845906] [debug] datos del notification para el invoice add:{"uuid":"eecdef6a-fa4b-47f6-90c9-4ca087901a24","changeType":"insert","entity":"invoice","entityId":1330,"message":null,"clientId":2,"eventName":"invoice.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1330,"clientId":2,"number":"001294","createdDate":"2024-12-26T03:24:47-0600","dueDate":"2025-01-09T03:24:47-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1333,"type":"service","label":"PREMIUM 27\/01\/2026 \u2013 26\/02\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} +[2024-12-31 16:01:28.827462] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:24:57.845969] [debug] Account Balance: -700 +[2024-12-31 16:01:28.827594] [debug] HTTP request processing ended. +[2024-12-31 16:01:28.949954] [notice] Logging level set to:debug +[2024-12-31 16:01:28.950071] [debug] El valor del evento recibio en json: {"uuid":"94b2bb3e-d2b5-4051-a3af-eb0901b5ebb4","changeType":"draft_approved","entity":"invoice","entityId":"1400","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1400,"clientId":73,"number":"001364","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1403,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":72,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ERICK","clientLastName":"VAZQUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:24:57.846038] [debug] Pago hecho con la factura: 0 +[2024-12-31 16:01:29.088453] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:24:57.846148] [debug] {"uuid":"eecdef6a-fa4b-47f6-90c9-4ca087901a24","changeType":"insert","entity":"invoice","entityId":1330,"message":null,"clientId":2,"eventName":"invoice.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1330,"clientId":2,"number":"001294","createdDate":"2024-12-26T03:24:47-0600","dueDate":"2025-01-09T03:24:47-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1333,"type":"service","label":"PREMIUM 27\/01\/2026 \u2013 26\/02\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} +[2024-12-31 16:01:29.088587] [debug] HTTP request processing ended. +[2024-12-31 16:01:29.896536] [notice] Logging level set to:debug +[2024-12-31 16:01:29.896646] [debug] El valor del evento recibio en json: {"uuid":"8bd2705b-ea2d-46ce-9240-a2b7b4491937","changeType":"insert","entity":"invoice","entityId":"1401","eventName":"invoice.add_draft","extraData":{"entity":{"id":1401,"clientId":21,"number":"001365","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1404,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":20,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NATALIA","clientLastName":"JUAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:24:57.846252] [info] Se proceso los contactos +[2024-12-31 16:01:30.044214] [debug] valor el evento recibido por webhook: invoice.add_draft -Dentro del proceso del patch: +[2024-12-31 16:01:30.044352] [debug] HTTP request processing ended. +[2024-12-31 16:01:30.161408] [notice] Logging level set to:debug +[2024-12-31 16:01:30.161506] [debug] El valor del evento recibio en json: {"uuid":"306e8557-033a-4eb1-8bf5-4d9fd9871a44","changeType":"draft_approved","entity":"invoice","entityId":"1401","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1401,"clientId":21,"number":"001365","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1404,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":20,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NATALIA","clientLastName":"JUAREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MEZQUITAL","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Datos traidos con payment api: [{"id":463,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:19:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":534,"invoiceId":1329,"paymentId":463,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}] +[2024-12-31 16:01:30.321573] [debug] valor el evento recibido por webhook: invoice.draft_approved -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria +[2024-12-31 16:01:30.321770] [debug] HTTP request processing ended. +[2024-12-31 16:01:31.145299] [notice] Logging level set to:debug +[2024-12-31 16:01:31.145493] [debug] El valor del evento recibio en json: {"uuid":"880f38ce-bb59-4fa0-987a-8efd5506a909","changeType":"insert","entity":"invoice","entityId":"1402","eventName":"invoice.add_draft","extraData":{"entity":{"id":1402,"clientId":40,"number":"001366","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1405,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":39,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"PADRON","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RANCHO GUADALUPE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -UUID: 74cc2bb45eb8409f92cd5dba99200d26 +[2024-12-31 16:01:31.291323] [debug] valor el evento recibido por webhook: invoice.add_draft -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 700","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2700 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 700\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:19 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:24\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:19 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:24","Clabe Transferencia Banamex":"0021804341999569810"}} +[2024-12-31 16:01:31.291454] [debug] HTTP request processing ended. +[2024-12-31 16:01:31.402904] [notice] Logging level set to:debug +[2024-12-31 16:01:31.402998] [debug] El valor del evento recibio en json: {"uuid":"70aef611-a32d-472f-9658-1687a7ced864","changeType":"draft_approved","entity":"invoice","entityId":"1402","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1402,"clientId":40,"number":"001366","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1405,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":39,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"PADRON","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"RANCHO GUADALUPE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:19 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 700","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:24","Saldo Actual":"💲700 pendientes","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲700 pendientes\",\"Monto Ultimo Pago\": \"💲 700\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:19 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:24\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/crm/client/2"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} +[2024-12-31 16:01:31.543787] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:25:00.357511] [debug] HTTP request processing ended. -[2024-12-26 9:25:08.293163] [notice] Logging level set to:debug -[2024-12-26 9:25:08.293303] [debug] El valor del evento recibio en json: {"uuid":"4478a855-7bef-4b70-b1ee-36c50a3c8189","changeType":"edit","entity":"invoice","entityId":"1330","eventName":"invoice.edit","extraData":{"entity":{"id":1330,"clientId":2,"number":"001294","createdDate":"2024-12-26T03:24:47-0600","dueDate":"2025-01-09T03:24:47-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1333,"type":"service","label":"PREMIUM 27\/01\/2026 \u2013 26\/02\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":700,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":535,"invoiceId":1330,"paymentId":464,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":{"id":1330,"clientId":2,"number":"001294","createdDate":"2024-12-26T03:24:47-0600","dueDate":"2025-01-09T03:24:47-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1333,"type":"service","label":"PREMIUM 27\/01\/2026 \u2013 26\/02\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[{"id":535,"invoiceId":1330,"paymentId":464,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false}}} +[2024-12-31 16:01:31.543915] [debug] HTTP request processing ended. +[2024-12-31 16:01:32.465763] [notice] Logging level set to:debug +[2024-12-31 16:01:32.466037] [debug] El valor del evento recibio en json: {"uuid":"242ed627-752f-4f40-a513-3f596ba73d1c","changeType":"insert","entity":"invoice","entityId":"1403","eventName":"invoice.add_draft","extraData":{"entity":{"id":1403,"clientId":63,"number":"001367","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1406,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":62,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONELA","clientLastName":"ROBLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:25:08.457889] [debug] valor el evento recibido por webhook: invoice.edit +[2024-12-31 16:01:32.615000] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:25:08.458089] [debug] Edición de Factura +[2024-12-31 16:01:32.615117] [debug] HTTP request processing ended. +[2024-12-31 16:01:32.727041] [notice] Logging level set to:debug +[2024-12-31 16:01:32.727128] [debug] El valor del evento recibio en json: {"uuid":"c9b6e705-1618-4a41-8244-ca621d3e49a1","changeType":"draft_approved","entity":"invoice","entityId":"1403","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1403,"clientId":63,"number":"001367","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1406,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":62,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANTONELA","clientLastName":"ROBLES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:25:08.458148] [debug] {"uuid":"4478a855-7bef-4b70-b1ee-36c50a3c8189","changeType":"edit","entity":"invoice","entityId":1330,"message":null,"clientId":2,"eventName":"invoice.edit","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1330,"clientId":2,"number":"001294","createdDate":"2024-12-26T03:24:47-0600","dueDate":"2025-01-09T03:24:47-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1333,"type":"service","label":"PREMIUM 27\/01\/2026 \u2013 26\/02\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":700,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":535,"invoiceId":1330,"paymentId":464,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} +[2024-12-31 16:01:32.864289] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:25:08.458209] [info] Se proceso los contactos +[2024-12-31 16:01:32.864413] [debug] HTTP request processing ended. +[2024-12-31 16:01:33.758960] [notice] Logging level set to:debug +[2024-12-31 16:01:33.759147] [debug] El valor del evento recibio en json: {"uuid":"69751ba0-dc9a-46ab-8e8d-430cd3a1427f","changeType":"insert","entity":"invoice","entityId":"1404","eventName":"invoice.add_draft","extraData":{"entity":{"id":1404,"clientId":91,"number":"001368","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1407,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":90,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CAROLINA","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Dentro del proceso del patch: +[2024-12-31 16:01:33.930116] [debug] valor el evento recibido por webhook: invoice.add_draft -Datos traidos con payment api: [{"id":464,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":535,"invoiceId":1330,"paymentId":464,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}] +[2024-12-31 16:01:33.930315] [debug] HTTP request processing ended. +[2024-12-31 16:01:34.052736] [notice] Logging level set to:debug +[2024-12-31 16:01:34.052912] [debug] El valor del evento recibio en json: {"uuid":"e293541b-ff53-4813-b2ef-09cc49887a11","changeType":"draft_approved","entity":"invoice","entityId":"1404","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1404,"clientId":91,"number":"001368","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1407,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":90,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CAROLINA","clientLastName":"PE\u00d1A","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria +[2024-12-31 16:01:34.197271] [debug] valor el evento recibido por webhook: invoice.draft_approved -UUID: 74cc2bb45eb8409f92cd5dba99200d26 +[2024-12-31 16:01:34.197395] [debug] HTTP request processing ended. +[2024-12-31 16:01:35.016659] [notice] Logging level set to:debug +[2024-12-31 16:01:35.016802] [debug] El valor del evento recibio en json: {"uuid":"764ba40e-f7da-4673-8e5f-d5163142163c","changeType":"insert","entity":"invoice","entityId":"1405","eventName":"invoice.add_draft","extraData":{"entity":{"id":1405,"clientId":18,"number":"001369","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1408,"type":"service","label":"PREMIUM 30\/11\/2024 \u2013 30\/12\/2024","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":17,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"INGRID","clientLastName":"CORONADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 700","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 700\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:25 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:25\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:25 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:25","Clabe Transferencia Banamex":"0021804341999569810"}} +[2024-12-31 16:01:35.153875] [debug] valor el evento recibido por webhook: invoice.add_draft -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:25 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 700","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:25","Saldo Actual":"💲0 está al corriente","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"💲 700\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:25 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:25\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/crm/client/2"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} +[2024-12-31 16:01:35.154016] [debug] HTTP request processing ended. +[2024-12-31 16:01:35.271054] [notice] Logging level set to:debug +[2024-12-31 16:01:35.271215] [debug] El valor del evento recibio en json: {"uuid":"9c0ee269-0e65-48dc-af03-6df55517e4aa","changeType":"draft_approved","entity":"invoice","entityId":"1405","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1405,"clientId":18,"number":"001369","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1408,"type":"service","label":"PREMIUM 30\/11\/2024 \u2013 30\/12\/2024","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":17,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"INGRID","clientLastName":"CORONADO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:25:10.756251] [debug] HTTP request processing ended. -[2024-12-26 9:25:10.904570] [notice] Logging level set to:debug -[2024-12-26 9:25:10.906088] [debug] El valor del evento recibio en json: {"uuid":"11597ff2-33bd-459a-8cb6-4bc8dcfa118b","changeType":"insert","entity":"payment","entityId":"464","eventName":"payment.add","extraData":{"entity":{"id":464,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":535,"invoiceId":1330,"paymentId":464,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":null}} +[2024-12-31 16:01:35.414362] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:25:11.035006] [debug] valor el evento recibido por webhook: payment.add +[2024-12-31 16:01:35.414489] [debug] HTTP request processing ended. +[2024-12-31 16:01:36.238379] [notice] Logging level set to:debug +[2024-12-31 16:01:36.238472] [debug] El valor del evento recibio en json: {"uuid":"7cff76ec-213a-4bf4-ab20-12ef38a334c7","changeType":"insert","entity":"invoice","entityId":"1406","eventName":"invoice.add_draft","extraData":{"entity":{"id":1406,"clientId":74,"number":"001370","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1409,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":73,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARCELO","clientLastName":"PALACIOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:25:11.035160] [debug] datos del notification para el invoice add:{"uuid":"11597ff2-33bd-459a-8cb6-4bc8dcfa118b","changeType":"insert","entity":"payment","entityId":464,"message":null,"clientId":2,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":464,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":535,"invoiceId":1330,"paymentId":464,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}} +[2024-12-31 16:01:36.415864] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:25:11.035192] [debug] valor del payment data: {"id":464,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":535,"invoiceId":1330,"paymentId":464,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]} +[2024-12-31 16:01:36.416055] [debug] HTTP request processing ended. +[2024-12-31 16:01:36.530055] [notice] Logging level set to:debug +[2024-12-31 16:01:36.530153] [debug] El valor del evento recibio en json: {"uuid":"11056f67-6c76-47e4-99d8-817c9cdd957b","changeType":"draft_approved","entity":"invoice","entityId":"1406","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1406,"clientId":74,"number":"001370","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1409,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":73,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARCELO","clientLastName":"PALACIOS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:25:11.035219] [debug] ***Se notifica y actualiza al cliente sobre su pago*** +[2024-12-31 16:01:36.693396] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:25:11.035269] [debug] Activado el check de mensajes de texto: 1 +[2024-12-31 16:01:36.693516] [debug] HTTP request processing ended. +[2024-12-31 16:01:37.548950] [notice] Logging level set to:debug +[2024-12-31 16:01:37.549128] [debug] El valor del evento recibio en json: {"uuid":"a9f0bdc9-eeb4-4cd8-bfbb-855d906c6bdd","changeType":"insert","entity":"invoice","entityId":"1407","eventName":"invoice.add_draft","extraData":{"entity":{"id":1407,"clientId":41,"number":"001371","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1410,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":40,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUDITH","clientLastName":"CUELLAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN SEBASTIAN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Eviando comprobante de pago al cliente: 2 con número: 5214181878106 +[2024-12-31 16:01:37.689728] [debug] valor el evento recibido por webhook: invoice.add_draft -Datos traidos con payment api: [{"id":464,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":535,"invoiceId":1330,"paymentId":464,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}] +[2024-12-31 16:01:37.689853] [debug] HTTP request processing ended. +[2024-12-31 16:01:37.802383] [notice] Logging level set to:debug +[2024-12-31 16:01:37.802475] [debug] El valor del evento recibio en json: {"uuid":"fc344c4f-6e14-4d83-8fd7-499eb1863e49","changeType":"draft_approved","entity":"invoice","entityId":"1407","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1407,"clientId":41,"number":"001371","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1410,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":40,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUDITH","clientLastName":"CUELLAR","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN SEBASTIAN","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Datos client data credit amount: 0 +[2024-12-31 16:01:37.945075] [debug] valor el evento recibido por webhook: invoice.draft_approved -Verificar paymentCovers +[2024-12-31 16:01:37.945199] [debug] HTTP request processing ended. +[2024-12-31 16:01:38.843990] [notice] Logging level set to:debug +[2024-12-31 16:01:38.844211] [debug] El valor del evento recibio en json: {"uuid":"f345b6bf-4ab8-4c20-a6de-42897b796d29","changeType":"insert","entity":"invoice","entityId":"1408","eventName":"invoice.add_draft","extraData":{"entity":{"id":1408,"clientId":99,"number":"001372","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1411,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":98,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BELINDA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -payment covers[{"id":535,"invoiceId":1330,"paymentId":464,"creditNoteId":null,"refundId":null,"amount":700}] +[2024-12-31 16:01:38.979353] [debug] valor el evento recibido por webhook: invoice.add_draft -Datos del payment covers: +[2024-12-31 16:01:38.979499] [debug] HTTP request processing ended. +[2024-12-31 16:01:39.097831] [notice] Logging level set to:debug +[2024-12-31 16:01:39.097935] [debug] El valor del evento recibio en json: {"uuid":"fbed0b19-ad63-43ec-b701-5a516ce5a7fb","changeType":"draft_approved","entity":"invoice","entityId":"1408","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1408,"clientId":99,"number":"001372","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1411,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":98,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"BELINDA","clientLastName":"REYES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"MONTELONGO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Invoice ID pagado: 1330 de esta cantidad: 700 +[2024-12-31 16:01:39.249957] [debug] valor el evento recibido por webhook: invoice.draft_approved -Todos los Invoice IDs: 1330 +[2024-12-31 16:01:39.250178] [debug] HTTP request processing ended. +[2024-12-31 16:01:40.103218] [notice] Logging level set to:debug +[2024-12-31 16:01:40.103439] [debug] El valor del evento recibio en json: {"uuid":"83fee79a-1138-4eb8-a554-155b0b4c59b9","changeType":"insert","entity":"invoice","entityId":"1409","eventName":"invoice.add_draft","extraData":{"entity":{"id":1409,"clientId":97,"number":"001373","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1412,"type":"service","label":"INTERMEDIO 30\/11\/2024 \u2013 30\/12\/2024","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":96,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"YOLANDA","clientLastName":"CANO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AVILES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Todas las cantidades: 700,00 +[2024-12-31 16:01:40.247941] [debug] valor el evento recibido por webhook: invoice.add_draft -Numero de factura: 001294 +[2024-12-31 16:01:40.248069] [debug] HTTP request processing ended. +[2024-12-31 16:01:40.360150] [notice] Logging level set to:debug +[2024-12-31 16:01:40.360244] [debug] El valor del evento recibio en json: {"uuid":"8ed25a06-4c6b-46ef-a32b-cb4bb4d947c6","changeType":"draft_approved","entity":"invoice","entityId":"1409","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1409,"clientId":97,"number":"001373","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1412,"type":"service","label":"INTERMEDIO 30\/11\/2024 \u2013 30\/12\/2024","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":96,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"YOLANDA","clientLastName":"CANO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS AVILES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -TOTAL de factura: 700 +[2024-12-31 16:01:40.500504] [debug] valor el evento recibido por webhook: invoice.draft_approved -Se terminó de verificar payment covers +[2024-12-31 16:01:40.500631] [debug] HTTP request processing ended. +[2024-12-31 16:01:41.472084] [notice] Logging level set to:debug +[2024-12-31 16:01:41.472311] [debug] El valor del evento recibio en json: {"uuid":"009066ef-d440-4e7a-be6a-37c15ca5c3d6","changeType":"insert","entity":"invoice","entityId":"1410","eventName":"invoice.add_draft","extraData":{"entity":{"id":1410,"clientId":66,"number":"001374","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1413,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":65,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LAURA","clientLastName":"CRUCES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "John Doe" - }, - "template_values": ["Daniel Humberto Soto Villegas Polleria", "464", "2", "26/12/2024 3:25am", "$700,00 MXN", "Transferencia bancaria 📱🏦", "1330", "$700,00 MXN", "$700,00 MXN", "$0 está al corriente", "_________________________"], - "template_uuid": "c1396a6ad3cb4192916d4ac2bfb782a5", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"4192abd70d084dc7a5eed3301f803151","status":"enqueued"}} -Dentro del proceso del patch: +[2024-12-31 16:01:41.649315] [debug] valor el evento recibido por webhook: invoice.add_draft -Datos traidos con payment api: [{"id":464,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":535,"invoiceId":1330,"paymentId":464,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}] +[2024-12-31 16:01:41.649452] [debug] HTTP request processing ended. +[2024-12-31 16:01:41.759607] [notice] Logging level set to:debug +[2024-12-31 16:01:41.759695] [debug] El valor del evento recibio en json: {"uuid":"79206b29-c853-4982-8d82-82c1ee5c92e9","changeType":"draft_approved","entity":"invoice","entityId":"1410","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1410,"clientId":66,"number":"001374","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1413,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":65,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LAURA","clientLastName":"CRUCES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria +[2024-12-31 16:01:41.960633] [debug] valor el evento recibido por webhook: invoice.draft_approved -UUID: 74cc2bb45eb8409f92cd5dba99200d26 +[2024-12-31 16:01:41.960762] [debug] HTTP request processing ended. +[2024-12-31 16:01:42.837742] [notice] Logging level set to:debug +[2024-12-31 16:01:42.837846] [debug] El valor del evento recibio en json: {"uuid":"dac4a3ba-670a-4c20-92ab-b7ef88e74df9","changeType":"insert","entity":"invoice","entityId":"1411","eventName":"invoice.add_draft","extraData":{"entity":{"id":1411,"clientId":54,"number":"001375","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1414,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":53,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORETO","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"COLORADO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 700","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 700\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:25 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:25\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:25 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:25","Clabe Transferencia Banamex":null}} +[2024-12-31 16:01:43.083547] [debug] valor el evento recibido por webhook: invoice.add_draft -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:25 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 700","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:25","Saldo Actual":"💲0 está al corriente","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"💲 700\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:25 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:25\",\"Clabe Transferencia Banamex\": \"\"}","URL":"🌐 https://172.16.5.120/crm/client/2"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} +[2024-12-31 16:01:43.083738] [debug] HTTP request processing ended. +[2024-12-31 16:01:43.203413] [notice] Logging level set to:debug +[2024-12-31 16:01:43.203502] [debug] El valor del evento recibio en json: {"uuid":"74116aaa-e6e8-41d7-9efa-c15a4be0c2f4","changeType":"draft_approved","entity":"invoice","entityId":"1411","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1411,"clientId":54,"number":"001375","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1414,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":53,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORETO","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"COLORADO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:25:12.713030] [debug] HTTP request processing ended. -[2024-12-26 9:25:12.834311] [notice] Logging level set to:debug -[2024-12-26 9:25:12.834480] [debug] El valor del evento recibio en json: {"uuid":"51b36569-01b8-48c4-b7dc-0f7443350a48","changeType":"edit","entity":"payment","entityId":"464","eventName":"payment.edit","extraData":{"entity":{"id":464,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":535,"invoiceId":1330,"paymentId":464,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":464,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":535,"invoiceId":1330,"paymentId":464,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}}} +[2024-12-31 16:01:43.397993] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:25:12.948039] [debug] valor el evento recibido por webhook: payment.edit +[2024-12-31 16:01:43.398118] [debug] HTTP request processing ended. +[2024-12-31 16:01:44.257035] [notice] Logging level set to:debug +[2024-12-31 16:01:44.257201] [debug] El valor del evento recibio en json: {"uuid":"59cdd49a-9f92-4f6d-be4a-7f6e1a3f10b5","changeType":"insert","entity":"invoice","entityId":"1412","eventName":"invoice.add_draft","extraData":{"entity":{"id":1412,"clientId":8,"number":"001376","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1415,"type":"service","label":"INTERMEDIO 30\/11\/2024 \u2013 30\/12\/2024","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":8,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALFREDO","clientLastName":"GUTIERREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:25:12.948226] [debug] HTTP request processing ended. -[2024-12-26 9:25:36.516185] [notice] Logging level set to:debug -[2024-12-26 9:25:36.516602] [debug] El valor del evento recibio en json: {"uuid":"9b49a937-e682-41fc-b601-267cf55e3b7b","changeType":"insert","entity":"invoice","entityId":"1331","eventName":"invoice.add","extraData":{"entity":{"id":1331,"clientId":2,"number":"001295","createdDate":"2024-12-26T03:25:30-0600","dueDate":"2025-01-09T03:25:30-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1334,"type":"service","label":"PREMIUM 27\/02\/2026 \u2013 26\/03\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} +[2024-12-31 16:01:44.441364] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:25:36.659631] [debug] valor el evento recibido por webhook: invoice.add +[2024-12-31 16:01:44.441482] [debug] HTTP request processing ended. +[2024-12-31 16:01:44.552913] [notice] Logging level set to:debug +[2024-12-31 16:01:44.553004] [debug] El valor del evento recibio en json: {"uuid":"129174ee-b7b6-4b81-aa99-233d49613ba9","changeType":"draft_approved","entity":"invoice","entityId":"1412","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1412,"clientId":8,"number":"001376","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1415,"type":"service","label":"INTERMEDIO 30\/11\/2024 \u2013 30\/12\/2024","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":8,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ALFREDO","clientLastName":"GUTIERREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL BOBO","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:25:36.659953] [debug] Adición de Factura +[2024-12-31 16:01:44.742712] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:25:36.660056] [debug] datos del notification para el invoice add:{"uuid":"9b49a937-e682-41fc-b601-267cf55e3b7b","changeType":"insert","entity":"invoice","entityId":1331,"message":null,"clientId":2,"eventName":"invoice.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1331,"clientId":2,"number":"001295","createdDate":"2024-12-26T03:25:30-0600","dueDate":"2025-01-09T03:25:30-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1334,"type":"service","label":"PREMIUM 27\/02\/2026 \u2013 26\/03\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} +[2024-12-31 16:01:44.742837] [debug] HTTP request processing ended. +[2024-12-31 16:01:45.596457] [notice] Logging level set to:debug +[2024-12-31 16:01:45.596553] [debug] El valor del evento recibio en json: {"uuid":"1924f1e2-af4d-4914-83d1-877bf2f559c3","changeType":"insert","entity":"invoice","entityId":"1413","eventName":"invoice.add_draft","extraData":{"entity":{"id":1413,"clientId":102,"number":"001377","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1416,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":101,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"XX","clientLastName":"XX","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:25:36.660124] [debug] Account Balance: -700 +[2024-12-31 16:01:45.868052] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:25:36.660171] [debug] Pago hecho con la factura: 0 +[2024-12-31 16:01:45.868417] [debug] HTTP request processing ended. +[2024-12-31 16:01:45.986651] [notice] Logging level set to:debug +[2024-12-31 16:01:45.986742] [debug] El valor del evento recibio en json: {"uuid":"684b7c38-2358-4687-a2b8-611305d60c92","changeType":"draft_approved","entity":"invoice","entityId":"1413","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1413,"clientId":102,"number":"001377","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1416,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":101,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"XX","clientLastName":"XX","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:25:36.660247] [debug] {"uuid":"9b49a937-e682-41fc-b601-267cf55e3b7b","changeType":"insert","entity":"invoice","entityId":1331,"message":null,"clientId":2,"eventName":"invoice.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1331,"clientId":2,"number":"001295","createdDate":"2024-12-26T03:25:30-0600","dueDate":"2025-01-09T03:25:30-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1334,"type":"service","label":"PREMIUM 27\/02\/2026 \u2013 26\/03\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} +[2024-12-31 16:01:46.179544] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:25:36.660345] [info] Se proceso los contactos +[2024-12-31 16:01:46.179738] [debug] HTTP request processing ended. +[2024-12-31 16:01:47.232928] [notice] Logging level set to:debug +[2024-12-31 16:01:47.233026] [debug] El valor del evento recibio en json: {"uuid":"10b010ee-2e65-49d4-93b0-ff5e8ec08d7a","changeType":"insert","entity":"invoice","entityId":"1414","eventName":"invoice.add_draft","extraData":{"entity":{"id":1414,"clientId":75,"number":"001378","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1417,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":74,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAUL","clientLastName":"AYALA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Dentro del proceso del patch: +[2024-12-31 16:01:47.409832] [debug] valor el evento recibido por webhook: invoice.add_draft -Datos traidos con payment api: [{"id":464,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:03-0600","amount":700,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":535,"invoiceId":1330,"paymentId":464,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":0,"userId":1015,"attributes":[]}] +[2024-12-31 16:01:47.409960] [debug] HTTP request processing ended. +[2024-12-31 16:01:47.616309] [notice] Logging level set to:debug +[2024-12-31 16:01:47.616403] [debug] El valor del evento recibio en json: {"uuid":"38ae518c-5325-4ba4-af45-17f64dd94e03","changeType":"draft_approved","entity":"invoice","entityId":"1414","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1414,"clientId":75,"number":"001378","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1417,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":74,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAUL","clientLastName":"AYALA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria +[2024-12-31 16:01:47.790122] [debug] valor el evento recibido por webhook: invoice.draft_approved -UUID: 74cc2bb45eb8409f92cd5dba99200d26 +[2024-12-31 16:01:47.790260] [debug] HTTP request processing ended. +[2024-12-31 16:01:48.690047] [notice] Logging level set to:debug +[2024-12-31 16:01:48.690150] [debug] El valor del evento recibio en json: {"uuid":"c77a235d-32ac-4eee-9b9e-94533c7b21bc","changeType":"insert","entity":"invoice","entityId":"1415","eventName":"invoice.add_draft","extraData":{"entity":{"id":1415,"clientId":42,"number":"001379","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1418,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":41,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORENA","clientLastName":"MARTINEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 700","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2700 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 700\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:25 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:25\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:25 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:25","Clabe Transferencia Banamex":"0021804341999569810"}} +[2024-12-31 16:01:48.836178] [debug] valor el evento recibido por webhook: invoice.add_draft -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:25 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 700","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:25","Saldo Actual":"💲700 pendientes","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲700 pendientes\",\"Monto Ultimo Pago\": \"💲 700\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:25 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:25\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/crm/client/2"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} +[2024-12-31 16:01:48.836370] [debug] HTTP request processing ended. +[2024-12-31 16:01:48.952764] [notice] Logging level set to:debug +[2024-12-31 16:01:48.952929] [debug] El valor del evento recibio en json: {"uuid":"8b074ca3-d6c0-4157-b8f7-8acb3480e2ba","changeType":"draft_approved","entity":"invoice","entityId":"1415","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1415,"clientId":42,"number":"001379","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1418,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":41,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"LORENA","clientLastName":"MARTINEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAUCILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:25:39.035387] [debug] HTTP request processing ended. -[2024-12-26 9:25:59.252665] [notice] Logging level set to:debug -[2024-12-26 9:25:59.253062] [debug] El valor del evento recibio en json: {"uuid":"e30da04d-29eb-40c7-b663-463366fcf933","changeType":"edit","entity":"invoice","entityId":"1331","eventName":"invoice.edit","extraData":{"entity":{"id":1331,"clientId":2,"number":"001295","createdDate":"2024-12-26T03:25:30-0600","dueDate":"2025-01-09T03:25:30-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1334,"type":"service","label":"PREMIUM 27\/02\/2026 \u2013 26\/03\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":700,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":536,"invoiceId":1331,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":{"id":1331,"clientId":2,"number":"001295","createdDate":"2024-12-26T03:25:30-0600","dueDate":"2025-01-09T03:25:30-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1334,"type":"service","label":"PREMIUM 27\/02\/2026 \u2013 26\/03\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[{"id":536,"invoiceId":1331,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false}}} +[2024-12-31 16:01:49.109304] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:25:59.511033] [debug] valor el evento recibido por webhook: invoice.edit +[2024-12-31 16:01:49.109430] [debug] HTTP request processing ended. +[2024-12-31 16:01:49.938767] [notice] Logging level set to:debug +[2024-12-31 16:01:49.938925] [debug] El valor del evento recibio en json: {"uuid":"346e3fb3-bb8f-4ff7-8cae-02f75534a8c4","changeType":"insert","entity":"invoice","entityId":"1416","eventName":"invoice.add_draft","extraData":{"entity":{"id":1416,"clientId":46,"number":"001380","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1419,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":45,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ISMAEL","clientLastName":"PUGA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ROSILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:25:59.511364] [debug] Edición de Factura +[2024-12-31 16:01:50.081402] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:25:59.511493] [debug] {"uuid":"e30da04d-29eb-40c7-b663-463366fcf933","changeType":"edit","entity":"invoice","entityId":1331,"message":null,"clientId":2,"eventName":"invoice.edit","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":200,"accountCredit":200,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1331,"clientId":2,"number":"001295","createdDate":"2024-12-26T03:25:30-0600","dueDate":"2025-01-09T03:25:30-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1334,"type":"service","label":"PREMIUM 27\/02\/2026 \u2013 26\/03\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":700,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":536,"invoiceId":1331,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} +[2024-12-31 16:01:50.081558] [debug] HTTP request processing ended. +[2024-12-31 16:01:50.200089] [notice] Logging level set to:debug +[2024-12-31 16:01:50.200200] [debug] El valor del evento recibio en json: {"uuid":"24a90329-a33b-4882-a810-2d297be5b7b8","changeType":"draft_approved","entity":"invoice","entityId":"1416","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1416,"clientId":46,"number":"001380","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1419,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":45,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ISMAEL","clientLastName":"PUGA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL ROSILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:25:59.511615] [info] Se proceso los contactos +[2024-12-31 16:01:50.347790] [debug] valor el evento recibido por webhook: invoice.draft_approved -Dentro del proceso del patch: +[2024-12-31 16:01:50.347933] [debug] HTTP request processing ended. +[2024-12-31 16:01:51.151479] [notice] Logging level set to:debug +[2024-12-31 16:01:51.151643] [debug] El valor del evento recibio en json: {"uuid":"691c25ab-2002-456d-b064-b444eaec8dd7","changeType":"insert","entity":"invoice","entityId":"1417","eventName":"invoice.add_draft","extraData":{"entity":{"id":1417,"clientId":86,"number":"001381","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1420,"type":"service","label":"PREMIUM 30\/11\/2024 \u2013 30\/12\/2024","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":85,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PALMITAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Datos traidos con payment api: [{"id":465,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:49-0600","amount":900,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":536,"invoiceId":1331,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":200,"userId":1015,"attributes":[]}] +[2024-12-31 16:01:51.300129] [debug] valor el evento recibido por webhook: invoice.add_draft -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria +[2024-12-31 16:01:51.300319] [debug] HTTP request processing ended. +[2024-12-31 16:01:51.412142] [notice] Logging level set to:debug +[2024-12-31 16:01:51.412353] [debug] El valor del evento recibio en json: {"uuid":"7edebbef-f8b5-4129-98cd-9bc4ee7b2c1f","changeType":"draft_approved","entity":"invoice","entityId":"1417","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1417,"clientId":86,"number":"001381","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1420,"type":"service","label":"PREMIUM 30\/11\/2024 \u2013 30\/12\/2024","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":85,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"HUMBERTO","clientLastName":"CASTILLO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PALMITAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -UUID: 74cc2bb45eb8409f92cd5dba99200d26 +[2024-12-31 16:01:51.558844] [debug] valor el evento recibido por webhook: invoice.draft_approved -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2200 a favor","Monto Ultimo Pago":"\ud83d\udcb2 900","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2200 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 900\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:25 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:26\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:25 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:26","Clabe Transferencia Banamex":"0021804341999569810"}} +[2024-12-31 16:01:51.558969] [debug] HTTP request processing ended. +[2024-12-31 16:01:52.402314] [notice] Logging level set to:debug +[2024-12-31 16:01:52.402503] [debug] El valor del evento recibio en json: {"uuid":"66d3208b-0d70-4424-adeb-2995b9103c4a","changeType":"insert","entity":"invoice","entityId":"1418","eventName":"invoice.add_draft","extraData":{"entity":{"id":1418,"clientId":77,"number":"001382","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1421,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":76,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARGARITO","clientLastName":"ESTRADA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTILLA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:25 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 900","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:26","Saldo Actual":"💲200 a favor","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲200 a favor\",\"Monto Ultimo Pago\": \"💲 900\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:25 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:26\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/crm/client/2"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} +[2024-12-31 16:01:52.541481] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:26:02.393014] [debug] HTTP request processing ended. -[2024-12-26 9:26:02.534684] [notice] Logging level set to:debug -[2024-12-26 9:26:02.534847] [debug] El valor del evento recibio en json: {"uuid":"e7d6cb0f-7448-4f63-a4d2-db34d2653c84","changeType":"insert","entity":"payment","entityId":"465","eventName":"payment.add","extraData":{"entity":{"id":465,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:49-0600","amount":900,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":536,"invoiceId":1331,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":200,"userId":1015,"attributes":[]},"entityBeforeEdit":null}} +[2024-12-31 16:01:52.541613] [debug] HTTP request processing ended. +[2024-12-31 16:01:52.651421] [notice] Logging level set to:debug +[2024-12-31 16:01:52.651514] [debug] El valor del evento recibio en json: {"uuid":"2b6012b5-5bd7-4190-8bac-59ea38320f8d","changeType":"draft_approved","entity":"invoice","entityId":"1418","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1418,"clientId":77,"number":"001382","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1421,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":76,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARGARITO","clientLastName":"ESTRADA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA VENTILLA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:26:02.701246] [debug] valor el evento recibido por webhook: payment.add +[2024-12-31 16:01:52.788873] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:26:02.701545] [debug] datos del notification para el invoice add:{"uuid":"e7d6cb0f-7448-4f63-a4d2-db34d2653c84","changeType":"insert","entity":"payment","entityId":465,"message":null,"clientId":2,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":200,"accountCredit":200,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":465,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:49-0600","amount":900,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":536,"invoiceId":1331,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":200,"userId":1015,"attributes":[]}} +[2024-12-31 16:01:52.789009] [debug] HTTP request processing ended. +[2024-12-31 16:01:53.668581] [notice] Logging level set to:debug +[2024-12-31 16:01:53.668732] [debug] El valor del evento recibio en json: {"uuid":"b423dec6-2608-4f84-9885-bfa44b338669","changeType":"insert","entity":"invoice","entityId":"1419","eventName":"invoice.add_draft","extraData":{"entity":{"id":1419,"clientId":25,"number":"001383","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1422,"type":"service","label":"PREMIUM 30\/11\/2024 \u2013 30\/12\/2024","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":24,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ARIEL","clientLastName":"CORTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL DURAZNO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:26:02.703102] [debug] valor del payment data: {"id":465,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:49-0600","amount":900,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":536,"invoiceId":1331,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":200,"userId":1015,"attributes":[]} +[2024-12-31 16:01:53.803473] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:26:02.703213] [debug] ***Se notifica y actualiza al cliente sobre su pago*** +[2024-12-31 16:01:53.803597] [debug] HTTP request processing ended. +[2024-12-31 16:01:53.914592] [notice] Logging level set to:debug +[2024-12-31 16:01:53.914685] [debug] El valor del evento recibio en json: {"uuid":"4786aa5b-b015-4d55-9f70-dc4885e339bc","changeType":"draft_approved","entity":"invoice","entityId":"1419","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1419,"clientId":25,"number":"001383","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1422,"type":"service","label":"PREMIUM 30\/11\/2024 \u2013 30\/12\/2024","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":24,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ARIEL","clientLastName":"CORTES","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL DURAZNO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:26:02.703342] [debug] Activado el check de mensajes de texto: 1 +[2024-12-31 16:01:54.065203] [debug] valor el evento recibido por webhook: invoice.draft_approved -Eviando comprobante de pago al cliente: 2 con número: 5214181878106 +[2024-12-31 16:01:54.065336] [debug] HTTP request processing ended. +[2024-12-31 16:01:54.898262] [notice] Logging level set to:debug +[2024-12-31 16:01:54.898400] [debug] El valor del evento recibio en json: {"uuid":"207e39db-5f76-45e7-9bb3-5ec9a9fe9d21","changeType":"insert","entity":"invoice","entityId":"1420","eventName":"invoice.add_draft","extraData":{"entity":{"id":1420,"clientId":60,"number":"001384","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1423,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":59,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MANUEL","clientLastName":"CORENEO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Datos traidos con payment api: [{"id":465,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:49-0600","amount":900,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":536,"invoiceId":1331,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":200,"userId":1015,"attributes":[]}] +[2024-12-31 16:01:55.035819] [debug] valor el evento recibido por webhook: invoice.add_draft -Datos client data credit amount: 200 +[2024-12-31 16:01:55.036022] [debug] HTTP request processing ended. +[2024-12-31 16:01:55.154712] [notice] Logging level set to:debug +[2024-12-31 16:01:55.154818] [debug] El valor del evento recibio en json: {"uuid":"c4cab5bc-e53b-42cf-b567-8ff6a3160884","changeType":"draft_approved","entity":"invoice","entityId":"1420","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1420,"clientId":60,"number":"001384","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1423,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":59,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MANUEL","clientLastName":"CORENEO","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -La cantidad que sobra de $200,00 MXN se ha convertido a crédito +[2024-12-31 16:01:55.304068] [debug] valor el evento recibido por webhook: invoice.draft_approved -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "John Doe" - }, - "template_values": ["Daniel Humberto Soto Villegas Polleria", "465", "2", "26/12/2024 3:26am", "$900,00 MXN", "Transferencia bancaria 📱🏦", "$200 a favor", "La cantidad que sobra de $200,00 MXN se ha convertido a crédito"], - "template_uuid": "4ac9dc060cf746b6ad7f2e8acad355e0", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"c3f0ed5b79854fb190bc9c5f75a03175","status":"enqueued"}} -Dentro del proceso del patch: +[2024-12-31 16:01:55.304194] [debug] HTTP request processing ended. +[2024-12-31 16:01:56.144181] [notice] Logging level set to:debug +[2024-12-31 16:01:56.144402] [debug] El valor del evento recibio en json: {"uuid":"588fe53c-f201-456a-ac68-d64e62e8101d","changeType":"insert","entity":"invoice","entityId":"1421","eventName":"invoice.add_draft","extraData":{"entity":{"id":1421,"clientId":38,"number":"001385","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1424,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":37,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGELICA","clientLastName":"ROMAN","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Datos traidos con payment api: [{"id":465,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:49-0600","amount":900,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":536,"invoiceId":1331,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":200,"userId":1015,"attributes":[]}] +[2024-12-31 16:01:56.313534] [debug] valor el evento recibido por webhook: invoice.add_draft -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria +[2024-12-31 16:01:56.313678] [debug] HTTP request processing ended. +[2024-12-31 16:01:56.428178] [notice] Logging level set to:debug +[2024-12-31 16:01:56.428308] [debug] El valor del evento recibio en json: {"uuid":"136403df-b345-495a-92a0-4ae2305ac26b","changeType":"draft_approved","entity":"invoice","entityId":"1421","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1421,"clientId":38,"number":"001385","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1424,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":37,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ANGELICA","clientLastName":"ROMAN","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TECOLOTE","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -UUID: 74cc2bb45eb8409f92cd5dba99200d26 +[2024-12-31 16:01:56.569127] [debug] valor el evento recibido por webhook: invoice.draft_approved -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2200 a favor","Monto Ultimo Pago":"\ud83d\udcb2 900","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2200 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 900\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:25 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:26\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:25 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:26","Clabe Transferencia Banamex":null}} +[2024-12-31 16:01:56.569262] [debug] HTTP request processing ended. +[2024-12-31 16:01:57.427505] [notice] Logging level set to:debug +[2024-12-31 16:01:57.427685] [debug] El valor del evento recibio en json: {"uuid":"baeaf281-1b7c-4b65-bdd7-d197d8f479df","changeType":"insert","entity":"invoice","entityId":"1422","eventName":"invoice.add_draft","extraData":{"entity":{"id":1422,"clientId":64,"number":"001386","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1425,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":63,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"LANDEROS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:25 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 900","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:26","Saldo Actual":"💲200 a favor","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲200 a favor\",\"Monto Ultimo Pago\": \"💲 900\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:25 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:26\",\"Clabe Transferencia Banamex\": \"\"}","URL":"🌐 https://172.16.5.120/crm/client/2"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} +[2024-12-31 16:01:57.575376] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:26:05.110667] [debug] HTTP request processing ended. -[2024-12-26 9:26:05.227163] [notice] Logging level set to:debug -[2024-12-26 9:26:05.227344] [debug] El valor del evento recibio en json: {"uuid":"7a0a6980-3206-4881-b915-3f64bcb60a37","changeType":"edit","entity":"payment","entityId":"465","eventName":"payment.edit","extraData":{"entity":{"id":465,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:49-0600","amount":900,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":536,"invoiceId":1331,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":200,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":465,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:49-0600","amount":900,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":536,"invoiceId":1331,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":200,"userId":1015,"attributes":[]}}} +[2024-12-31 16:01:57.575556] [debug] HTTP request processing ended. +[2024-12-31 16:01:57.689599] [notice] Logging level set to:debug +[2024-12-31 16:01:57.689692] [debug] El valor del evento recibio en json: {"uuid":"6c65f689-9b9f-46d0-ba91-c97191f8b0ef","changeType":"draft_approved","entity":"invoice","entityId":"1422","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1422,"clientId":64,"number":"001386","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1425,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":63,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"OMAR","clientLastName":"LANDEROS","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SAN ELIAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:26:05.357670] [debug] valor el evento recibido por webhook: payment.edit +[2024-12-31 16:01:57.827331] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:26:05.358052] [debug] HTTP request processing ended. -[2024-12-26 9:37:04.269673] [notice] Logging level set to:debug -[2024-12-26 9:37:04.270333] [debug] El valor del evento recibio en json: {"uuid":"78236e9a-8859-45c9-8c04-a07708c13f18","changeType":"insert","entity":"invoice","entityId":"1332","eventName":"invoice.add","extraData":{"entity":{"id":1332,"clientId":2,"number":"001296","createdDate":"2024-12-26T03:36:32-0600","dueDate":"2025-01-09T03:36:32-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1335,"type":"other","label":"assas","price":200,"quantity":1,"total":200,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":null,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":200,"discount":null,"discountLabel":"Descuento","taxes":[],"total":200,"amountPaid":200,"totalUntaxed":200,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":537,"invoiceId":1332,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":200}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} +[2024-12-31 16:01:57.827450] [debug] HTTP request processing ended. +[2024-12-31 16:01:58.690968] [notice] Logging level set to:debug +[2024-12-31 16:01:58.691065] [debug] El valor del evento recibio en json: {"uuid":"7293aad9-8128-4af1-84ac-f437e53511d4","changeType":"insert","entity":"invoice","entityId":"1423","eventName":"invoice.add_draft","extraData":{"entity":{"id":1423,"clientId":79,"number":"001387","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1426,"type":"service","label":"INTERMEDIO 30\/11\/2024 \u2013 30\/12\/2024","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":78,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"ESPONIZA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:37:04.406888] [debug] valor el evento recibido por webhook: invoice.add +[2024-12-31 16:01:58.941095] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:37:04.407207] [debug] Adición de Factura +[2024-12-31 16:01:58.941225] [debug] HTTP request processing ended. +[2024-12-31 16:01:59.053683] [notice] Logging level set to:debug +[2024-12-31 16:01:59.053776] [debug] El valor del evento recibio en json: {"uuid":"b8f25c6e-4d7d-4bb1-b73e-61d725117c0c","changeType":"draft_approved","entity":"invoice","entityId":"1423","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1423,"clientId":79,"number":"001387","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1426,"type":"service","label":"INTERMEDIO 30\/11\/2024 \u2013 30\/12\/2024","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":78,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"ESPONIZA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LAS YERBAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:37:04.407316] [debug] datos del notification para el invoice add:{"uuid":"78236e9a-8859-45c9-8c04-a07708c13f18","changeType":"insert","entity":"invoice","entityId":1332,"message":null,"clientId":2,"eventName":"invoice.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1332,"clientId":2,"number":"001296","createdDate":"2024-12-26T03:36:32-0600","dueDate":"2025-01-09T03:36:32-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1335,"type":"other","label":"assas","price":200,"quantity":1,"total":200,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":null,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":200,"discount":null,"discountLabel":"Descuento","taxes":[],"total":200,"amountPaid":200,"totalUntaxed":200,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":537,"invoiceId":1332,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":200}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} +[2024-12-31 16:01:59.193335] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:37:04.407387] [debug] Account Balance: 0 +[2024-12-31 16:01:59.193471] [debug] HTTP request processing ended. +[2024-12-31 16:01:59.891796] [notice] Logging level set to:debug +[2024-12-31 16:01:59.892023] [debug] El valor del evento recibio en json: {"uuid":"afc70214-a72b-4187-ab74-691c45c88e53","changeType":"insert","entity":"invoice","entityId":"1424","eventName":"invoice.add_draft","extraData":{"entity":{"id":1424,"clientId":29,"number":"001388","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1427,"type":"service","label":"INTERMEDIO 30\/11\/2024 \u2013 30\/12\/2024","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":28,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTELA","clientLastName":"ORTIZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EJIDO DOLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:37:04.407438] [debug] Pago hecho con la factura: 200 +[2024-12-31 16:02:00.030462] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:37:04.407519] [debug] {"uuid":"78236e9a-8859-45c9-8c04-a07708c13f18","changeType":"insert","entity":"invoice","entityId":1332,"message":null,"clientId":2,"eventName":"invoice.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1332,"clientId":2,"number":"001296","createdDate":"2024-12-26T03:36:32-0600","dueDate":"2025-01-09T03:36:32-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1335,"type":"other","label":"assas","price":200,"quantity":1,"total":200,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":null,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":200,"discount":null,"discountLabel":"Descuento","taxes":[],"total":200,"amountPaid":200,"totalUntaxed":200,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":537,"invoiceId":1332,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":200}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} +[2024-12-31 16:02:00.030597] [debug] HTTP request processing ended. +[2024-12-31 16:02:00.146387] [notice] Logging level set to:debug +[2024-12-31 16:02:00.146481] [debug] El valor del evento recibio en json: {"uuid":"50e2b404-fd7d-48a6-a35a-693e94c98c15","changeType":"draft_approved","entity":"invoice","entityId":"1424","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1424,"clientId":29,"number":"001388","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1427,"type":"service","label":"INTERMEDIO 30\/11\/2024 \u2013 30\/12\/2024","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":28,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"ESTELA","clientLastName":"ORTIZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EJIDO DOLORES","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:37:04.407618] [info] Se proceso los contactos +[2024-12-31 16:02:00.296147] [debug] valor el evento recibido por webhook: invoice.draft_approved -Dentro del proceso del patch: +[2024-12-31 16:02:00.296350] [debug] HTTP request processing ended. +[2024-12-31 16:02:04.298767] [notice] Logging level set to:debug +[2024-12-31 16:02:04.298893] [debug] El valor del evento recibio en json: {"uuid":"b77c0270-2bbb-4164-b32b-15b77cb66d0b","changeType":"insert","entity":"invoice","entityId":"1425","eventName":"invoice.add_draft","extraData":{"entity":{"id":1425,"clientId":96,"number":"001389","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1428,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":95,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":300,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":542,"invoiceId":1425,"paymentId":22,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PAMELA","clientLastName":"RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Datos traidos con payment api: [{"id":465,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:49-0600","amount":900,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":536,"invoiceId":1331,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":700},{"id":537,"invoiceId":1332,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":200}],"creditAmount":0,"userId":1015,"attributes":[]}] +[2024-12-31 16:02:04.448328] [debug] valor el evento recibido por webhook: invoice.add_draft -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria +[2024-12-31 16:02:04.448508] [debug] HTTP request processing ended. +[2024-12-31 16:02:04.563066] [notice] Logging level set to:debug +[2024-12-31 16:02:04.563162] [debug] El valor del evento recibio en json: {"uuid":"3a50c172-d324-4fa4-b535-f1b73cf1860b","changeType":"draft_approved","entity":"invoice","entityId":"1425","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1425,"clientId":96,"number":"001389","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1428,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":95,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":300,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":542,"invoiceId":1425,"paymentId":22,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"PAMELA","clientLastName":"RAMIREZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -UUID: 74cc2bb45eb8409f92cd5dba99200d26 +[2024-12-31 16:02:04.702992] [debug] valor el evento recibido por webhook: invoice.draft_approved -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 900","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 900\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:25 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:37\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:25 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:37","Clabe Transferencia Banamex":"0021804341999569810"}} +[2024-12-31 16:02:04.703118] [debug] HTTP request processing ended. +[2024-12-31 16:02:05.514648] [notice] Logging level set to:debug +[2024-12-31 16:02:05.514872] [debug] El valor del evento recibio en json: {"uuid":"f2138cf1-213f-4ddf-98cc-178d4d512504","changeType":"insert","entity":"invoice","entityId":"1426","eventName":"invoice.add_draft","extraData":{"entity":{"id":1426,"clientId":58,"number":"001390","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1429,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":57,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"DOMINGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MOLINO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:25 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 900","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:37","Saldo Actual":"💲0 está al corriente","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"💲 900\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:25 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:37\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/crm/client/2"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} +[2024-12-31 16:02:05.653690] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:37:07.008533] [debug] HTTP request processing ended. -[2024-12-26 9:37:42.223177] [notice] Logging level set to:debug -[2024-12-26 9:37:42.223587] [debug] El valor del evento recibio en json: {"uuid":"d672231f-0661-4995-8c01-98ad1e4599e8","changeType":"insert","entity":"invoice","entityId":"1333","eventName":"invoice.add","extraData":{"entity":{"id":1333,"clientId":2,"number":"001297","createdDate":"2024-12-26T03:37:08-0600","dueDate":"2025-01-09T03:37:08-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1336,"type":"service","label":"PREMIUM 27\/03\/2026 \u2013 26\/04\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} +[2024-12-31 16:02:05.653815] [debug] HTTP request processing ended. +[2024-12-31 16:02:05.768275] [notice] Logging level set to:debug +[2024-12-31 16:02:05.768438] [debug] El valor del evento recibio en json: {"uuid":"181128bc-b2fc-4f42-84f6-3e9f70d8b545","changeType":"draft_approved","entity":"invoice","entityId":"1426","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1426,"clientId":58,"number":"001390","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1429,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":57,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"EDGAR","clientLastName":"DOMINGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"EL MOLINO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:37:42.373249] [debug] valor el evento recibido por webhook: invoice.add +[2024-12-31 16:02:05.911329] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:37:42.373658] [debug] Adición de Factura +[2024-12-31 16:02:05.911453] [debug] HTTP request processing ended. +[2024-12-31 16:02:06.765954] [notice] Logging level set to:debug +[2024-12-31 16:02:06.766109] [debug] El valor del evento recibio en json: {"uuid":"4152f310-f821-4383-be16-c1364d2a5f9b","changeType":"insert","entity":"invoice","entityId":"1427","eventName":"invoice.add_draft","extraData":{"entity":{"id":1427,"clientId":62,"number":"001391","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1430,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":61,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"BERNAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:37:42.373802] [debug] datos del notification para el invoice add:{"uuid":"d672231f-0661-4995-8c01-98ad1e4599e8","changeType":"insert","entity":"invoice","entityId":1333,"message":null,"clientId":2,"eventName":"invoice.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1333,"clientId":2,"number":"001297","createdDate":"2024-12-26T03:37:08-0600","dueDate":"2025-01-09T03:37:08-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1336,"type":"service","label":"PREMIUM 27\/03\/2026 \u2013 26\/04\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} +[2024-12-31 16:02:06.902806] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:37:42.373902] [debug] Account Balance: -700 +[2024-12-31 16:02:06.902930] [debug] HTTP request processing ended. +[2024-12-31 16:02:07.019870] [notice] Logging level set to:debug +[2024-12-31 16:02:07.020011] [debug] El valor del evento recibio en json: {"uuid":"61fd7ba5-b694-4cff-b19e-4e7258bae280","changeType":"draft_approved","entity":"invoice","entityId":"1427","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1427,"clientId":62,"number":"001391","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1430,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":61,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"DANIEL","clientLastName":"BERNAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"TRANCAS","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:37:42.373999] [debug] Pago hecho con la factura: 0 +[2024-12-31 16:02:07.163145] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:37:42.374111] [debug] {"uuid":"d672231f-0661-4995-8c01-98ad1e4599e8","changeType":"insert","entity":"invoice","entityId":1333,"message":null,"clientId":2,"eventName":"invoice.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1333,"clientId":2,"number":"001297","createdDate":"2024-12-26T03:37:08-0600","dueDate":"2025-01-09T03:37:08-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1336,"type":"service","label":"PREMIUM 27\/03\/2026 \u2013 26\/04\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} +[2024-12-31 16:02:07.163326] [debug] HTTP request processing ended. +[2024-12-31 16:02:07.977598] [notice] Logging level set to:debug +[2024-12-31 16:02:07.977777] [debug] El valor del evento recibio en json: {"uuid":"ecdd8b1e-d594-4f10-b532-22f41d8e2ddc","changeType":"insert","entity":"invoice","entityId":"1428","eventName":"invoice.add_draft","extraData":{"entity":{"id":1428,"clientId":19,"number":"001392","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1431,"type":"service","label":"INTERMEDIO 30\/11\/2024 \u2013 30\/12\/2024","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":18,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARIA","clientLastName":"RODRIGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:37:42.374243] [info] Se proceso los contactos +[2024-12-31 16:02:08.113502] [debug] valor el evento recibido por webhook: invoice.add_draft -Dentro del proceso del patch: +[2024-12-31 16:02:08.113626] [debug] HTTP request processing ended. +[2024-12-31 16:02:08.231384] [notice] Logging level set to:debug +[2024-12-31 16:02:08.231478] [debug] El valor del evento recibio en json: {"uuid":"d4c9d477-ca17-4d28-a1d4-fd3fd4f29222","changeType":"draft_approved","entity":"invoice","entityId":"1428","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1428,"clientId":19,"number":"001392","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1431,"type":"service","label":"INTERMEDIO 30\/11\/2024 \u2013 30\/12\/2024","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":18,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"MARIA","clientLastName":"RODRIGUEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTA BARBARA","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Datos traidos con payment api: [{"id":465,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:25:49-0600","amount":900,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":536,"invoiceId":1331,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":700},{"id":537,"invoiceId":1332,"paymentId":465,"creditNoteId":null,"refundId":null,"amount":200}],"creditAmount":0,"userId":1015,"attributes":[]}] +[2024-12-31 16:02:08.377912] [debug] valor el evento recibido por webhook: invoice.draft_approved -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria +[2024-12-31 16:02:08.378078] [debug] HTTP request processing ended. +[2024-12-31 16:02:09.274499] [notice] Logging level set to:debug +[2024-12-31 16:02:09.274676] [debug] El valor del evento recibio en json: {"uuid":"e34a4810-6387-4be1-bdd2-b3fd03f30b7f","changeType":"insert","entity":"invoice","entityId":"1429","eventName":"invoice.add_draft","extraData":{"entity":{"id":1429,"clientId":59,"number":"001393","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1432,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":58,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAMSES","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GUSANO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -UUID: 74cc2bb45eb8409f92cd5dba99200d26 +[2024-12-31 16:02:09.415509] [debug] valor el evento recibido por webhook: invoice.add_draft -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 900","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2700 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 900\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:25 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:37\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:25 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:37","Clabe Transferencia Banamex":"0021804341999569810"}} +[2024-12-31 16:02:09.415631] [debug] HTTP request processing ended. +[2024-12-31 16:02:09.526082] [notice] Logging level set to:debug +[2024-12-31 16:02:09.526268] [debug] El valor del evento recibio en json: {"uuid":"859168e3-9174-47b1-b6ae-486c9a06c9a5","changeType":"draft_approved","entity":"invoice","entityId":"1429","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1429,"clientId":59,"number":"001393","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1432,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":58,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"RAMSES","clientLastName":"HERRERA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"GUSANO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:25 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 900","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:37","Saldo Actual":"💲700 pendientes","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲700 pendientes\",\"Monto Ultimo Pago\": \"💲 900\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:25 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:37\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/crm/client/2"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} +[2024-12-31 16:02:09.672036] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:37:44.685573] [debug] HTTP request processing ended. -[2024-12-26 9:38:10.291383] [notice] Logging level set to:debug -[2024-12-26 9:38:10.291630] [debug] El valor del evento recibio en json: {"uuid":"af9a1abe-c98e-40c4-86d9-fd4766de1694","changeType":"edit","entity":"invoice","entityId":"1333","eventName":"invoice.edit","extraData":{"entity":{"id":1333,"clientId":2,"number":"001297","createdDate":"2024-12-26T03:37:08-0600","dueDate":"2025-01-09T03:37:08-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1336,"type":"service","label":"PREMIUM 27\/03\/2026 \u2013 26\/04\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":700,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":538,"invoiceId":1333,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":{"id":1333,"clientId":2,"number":"001297","createdDate":"2024-12-26T03:37:08-0600","dueDate":"2025-01-09T03:37:08-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1336,"type":"service","label":"PREMIUM 27\/03\/2026 \u2013 26\/04\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[{"id":538,"invoiceId":1333,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false}}} +[2024-12-31 16:02:09.672167] [debug] HTTP request processing ended. +[2024-12-31 16:02:10.504008] [notice] Logging level set to:debug +[2024-12-31 16:02:10.504182] [debug] El valor del evento recibio en json: {"uuid":"e5b3dd2c-d529-4de2-8ddc-0b86499d1d64","changeType":"insert","entity":"invoice","entityId":"1430","eventName":"invoice.add_draft","extraData":{"entity":{"id":1430,"clientId":88,"number":"001394","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1433,"type":"service","label":"PREMIUM 30\/11\/2024 \u2013 30\/12\/2024","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":87,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CECILIA","clientLastName":"GRANDE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIFORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:38:10.476751] [debug] valor el evento recibido por webhook: invoice.edit +[2024-12-31 16:02:10.657099] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:38:10.477164] [debug] Edición de Factura +[2024-12-31 16:02:10.657294] [debug] HTTP request processing ended. +[2024-12-31 16:02:10.767335] [notice] Logging level set to:debug +[2024-12-31 16:02:10.767435] [debug] El valor del evento recibio en json: {"uuid":"e373fbf9-c019-469e-a96c-eebf426f8241","changeType":"draft_approved","entity":"invoice","entityId":"1430","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1430,"clientId":88,"number":"001394","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1433,"type":"service","label":"PREMIUM 30\/11\/2024 \u2013 30\/12\/2024","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":87,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"CECILIA","clientLastName":"GRANDE","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LA CALIFORNIA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:38:10.477314] [debug] {"uuid":"af9a1abe-c98e-40c4-86d9-fd4766de1694","changeType":"edit","entity":"invoice","entityId":1333,"message":null,"clientId":2,"eventName":"invoice.edit","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":300,"accountCredit":300,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1333,"clientId":2,"number":"001297","createdDate":"2024-12-26T03:37:08-0600","dueDate":"2025-01-09T03:37:08-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1336,"type":"service","label":"PREMIUM 27\/03\/2026 \u2013 26\/04\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":700,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":538,"invoiceId":1333,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} +[2024-12-31 16:02:10.921015] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:38:10.477453] [info] Se proceso los contactos +[2024-12-31 16:02:10.921147] [debug] HTTP request processing ended. +[2024-12-31 16:02:11.762562] [notice] Logging level set to:debug +[2024-12-31 16:02:11.762816] [debug] El valor del evento recibio en json: {"uuid":"f94ac055-5a46-43b3-951c-225ae56ea25b","changeType":"insert","entity":"invoice","entityId":"1431","eventName":"invoice.add_draft","extraData":{"entity":{"id":1431,"clientId":56,"number":"001395","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1434,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":55,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NOE","clientLastName":"SANDOVAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTIAGUILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Dentro del proceso del patch: +[2024-12-31 16:02:11.907162] [debug] valor el evento recibido por webhook: invoice.add_draft -Datos traidos con payment api: [{"id":466,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:38:04-0600","amount":1000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":538,"invoiceId":1333,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":300,"userId":1015,"attributes":[]}] +[2024-12-31 16:02:11.907290] [debug] HTTP request processing ended. +[2024-12-31 16:02:12.021470] [notice] Logging level set to:debug +[2024-12-31 16:02:12.021686] [debug] El valor del evento recibio en json: {"uuid":"0d90a605-5492-44ad-9e1c-5e1673bc553a","changeType":"draft_approved","entity":"invoice","entityId":"1431","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1431,"clientId":56,"number":"001395","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1434,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":55,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"NOE","clientLastName":"SANDOVAL","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"SANTIAGUILLO","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria +[2024-12-31 16:02:12.212817] [debug] valor el evento recibido por webhook: invoice.draft_approved -UUID: 74cc2bb45eb8409f92cd5dba99200d26 +[2024-12-31 16:02:12.212937] [debug] HTTP request processing ended. +[2024-12-31 16:02:13.091278] [notice] Logging level set to:debug +[2024-12-31 16:02:13.091370] [debug] El valor del evento recibio en json: {"uuid":"cf749c28-1da0-4c25-99f2-411865e78647","changeType":"insert","entity":"invoice","entityId":"1432","eventName":"invoice.add_draft","extraData":{"entity":{"id":1432,"clientId":65,"number":"001396","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1435,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":64,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS MONCADA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2300 a favor","Monto Ultimo Pago":"\ud83d\udcb2 1000","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2300 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 1000\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:38 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:38\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:38 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:38","Clabe Transferencia Banamex":"0021804341999569810"}} +[2024-12-31 16:02:13.267568] [debug] valor el evento recibido por webhook: invoice.add_draft -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:38 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 1000","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:38","Saldo Actual":"💲300 a favor","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲300 a favor\",\"Monto Ultimo Pago\": \"💲 1000\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:38 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:38\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/crm/client/2"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} +[2024-12-31 16:02:13.267750] [debug] HTTP request processing ended. +[2024-12-31 16:02:13.378519] [notice] Logging level set to:debug +[2024-12-31 16:02:13.378612] [debug] El valor del evento recibio en json: {"uuid":"b2febe93-83b9-4319-93ae-11659c015277","changeType":"draft_approved","entity":"invoice","entityId":"1432","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1432,"clientId":65,"number":"001396","createdDate":"2024-12-31T10:00:01-0600","dueDate":"2025-01-14T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-30T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1435,"type":"service","label":"plan300 30\/11\/2024 \u2013 30\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":64,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"SEBASTIAN","clientLastName":"MESA","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"LOS MONCADA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:38:12.814035] [debug] HTTP request processing ended. -[2024-12-26 9:38:12.949309] [notice] Logging level set to:debug -[2024-12-26 9:38:12.949412] [debug] El valor del evento recibio en json: {"uuid":"c0cd3be2-883e-4c58-891c-11f76fef4b4b","changeType":"insert","entity":"payment","entityId":"466","eventName":"payment.add","extraData":{"entity":{"id":466,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:38:04-0600","amount":1000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":538,"invoiceId":1333,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":300,"userId":1015,"attributes":[]},"entityBeforeEdit":null}} +[2024-12-31 16:02:13.514401] [debug] valor el evento recibido por webhook: invoice.draft_approved -[2024-12-26 9:38:13.077162] [debug] valor el evento recibido por webhook: payment.add +[2024-12-31 16:02:13.514525] [debug] HTTP request processing ended. +[2025-01-01 16:00:04.526721] [notice] Logging level set to:debug +[2025-01-01 16:00:04.526846] [debug] El valor del evento recibio en json: {"uuid":"c1d094ad-6ef3-403b-aa93-8f8760e83314","changeType":"insert","entity":"invoice","entityId":"1433","eventName":"invoice.add_draft","extraData":{"entity":{"id":1433,"clientId":132,"number":"001397","createdDate":"2025-01-01T10:00:01-0600","dueDate":"2025-01-15T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-31T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1436,"type":"service","label":"plan300 01\/12\/2024 \u2013 31\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":115,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Marto","clientLastName":"Vago Payaso","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"20 Avenida Norte","clientStreet2":null,"clientCity":"Guanajuato","clientCountryId":173,"clientStateId":null,"clientZipCode":"37807","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2024-12-26 9:38:13.077308] [debug] datos del notification para el invoice add:{"uuid":"c0cd3be2-883e-4c58-891c-11f76fef4b4b","changeType":"insert","entity":"payment","entityId":466,"message":null,"clientId":2,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":300,"accountCredit":300,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":466,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:38:04-0600","amount":1000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":538,"invoiceId":1333,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":300,"userId":1015,"attributes":[]}} +[2025-01-01 16:00:04.688709] [debug] valor el evento recibido por webhook: invoice.add_draft -[2024-12-26 9:38:13.077344] [debug] valor del payment data: {"id":466,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:38:04-0600","amount":1000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":538,"invoiceId":1333,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":300,"userId":1015,"attributes":[]} +[2025-01-01 16:00:04.690455] [debug] HTTP request processing ended. +[2025-01-01 16:00:04.984034] [notice] Logging level set to:debug +[2025-01-01 16:00:04.984128] [debug] El valor del evento recibio en json: {"uuid":"924aee96-216b-4501-abec-8a38bdfce590","changeType":"draft_approved","entity":"invoice","entityId":"1433","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1433,"clientId":132,"number":"001397","createdDate":"2025-01-01T10:00:01-0600","dueDate":"2025-01-15T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-31T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1436,"type":"service","label":"plan300 01\/12\/2024 \u2013 31\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":115,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Marto","clientLastName":"Vago Payaso","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"20 Avenida Norte","clientStreet2":null,"clientCity":"Guanajuato","clientCountryId":173,"clientStateId":null,"clientZipCode":"37807","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} +[2025-01-02 8:14:56.329740] [notice] Logging level set to:debug +[2025-01-02 8:14:56.330095] [debug] El valor del evento recibio en json: {"uuid":"9e8b3cc7-baa7-498e-91a1-25d51b17bb19","changeType":"insert","entity":"payment","entityId":"470","eventName":"payment.add","extraData":{"entity":{"id":470,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T02:14:47-0600","amount":30,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":30,"userId":1015,"attributes":[]},"entityBeforeEdit":null}} -[2024-12-26 9:38:13.077368] [debug] ***Se notifica y actualiza al cliente sobre su pago*** +[2025-01-02 8:14:56.466321] [debug] valor el evento recibido por webhook: payment.add -[2024-12-26 9:38:13.077418] [debug] Activado el check de mensajes de texto: 1 +[2025-01-02 8:14:56.467048] [debug] datos del notification para el invoice add:{"uuid":"9e8b3cc7-baa7-498e-91a1-25d51b17bb19","changeType":"insert","entity":"payment","entityId":470,"message":null,"clientId":2,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":500,"accountCredit":500,"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":470,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T02:14:47-0600","amount":30,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":30,"userId":1015,"attributes":[]}} -Eviando comprobante de pago al cliente: 2 con número: 5214181878106 +[2025-01-02 8:14:56.467093] [debug] valor del payment data: {"id":470,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T02:14:47-0600","amount":30,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":30,"userId":1015,"attributes":[]} -Datos traidos con payment api: [{"id":466,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:38:04-0600","amount":1000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":538,"invoiceId":1333,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":300,"userId":1015,"attributes":[]}] - -Datos client data credit amount: 300 - -La cantidad que sobra de $300,00 MXN se ha convertido a crédito - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "John Doe" - }, - "template_values": ["Daniel Humberto Soto Villegas Polleria", "466", "2", "26/12/2024 3:38am", "$1.000,00 MXN", "Transferencia bancaria 📱🏦", "$300 a favor", "La cantidad que sobra de $300,00 MXN se ha convertido a crédito"], - "template_uuid": "4ac9dc060cf746b6ad7f2e8acad355e0", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"1ff9fef3afb1414290cadd96b16a9479","status":"enqueued"}} -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":466,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:38:04-0600","amount":1000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":538,"invoiceId":1333,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":300,"userId":1015,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria - -UUID: 74cc2bb45eb8409f92cd5dba99200d26 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2300 a favor","Monto Ultimo Pago":"\ud83d\udcb2 1000","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2300 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 1000\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:38 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:38\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:38 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:38","Clabe Transferencia Banamex":null}} - -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:38 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 1000","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:38","Saldo Actual":"💲300 a favor","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲300 a favor\",\"Monto Ultimo Pago\": \"💲 1000\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:38 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:38\",\"Clabe Transferencia Banamex\": \"\"}","URL":"🌐 https://172.16.5.120/crm/client/2"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} - -[2024-12-26 9:38:15.795315] [debug] HTTP request processing ended. -[2024-12-26 9:38:15.922100] [notice] Logging level set to:debug -[2024-12-26 9:38:15.922465] [debug] El valor del evento recibio en json: {"uuid":"331ed5aa-6606-4aa7-8f07-14b1c2961aa4","changeType":"edit","entity":"payment","entityId":"466","eventName":"payment.edit","extraData":{"entity":{"id":466,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:38:04-0600","amount":1000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":538,"invoiceId":1333,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":300,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":466,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:38:04-0600","amount":1000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":538,"invoiceId":1333,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":300,"userId":1015,"attributes":[]}}} - -[2024-12-26 9:38:16.045244] [debug] valor el evento recibido por webhook: payment.edit - -[2024-12-26 9:38:16.045556] [debug] HTTP request processing ended. -[2024-12-26 9:48:11.705929] [notice] Logging level set to:debug -[2024-12-26 9:48:11.709290] [debug] El valor del evento recibio en json: {"uuid":"61592535-fbff-4f51-be49-f4b5623a6b54","changeType":"insert","entity":"invoice","entityId":"1334","eventName":"invoice.add","extraData":{"entity":{"id":1334,"clientId":2,"number":"001298","createdDate":"2024-12-26T03:47:54-0600","dueDate":"2025-01-09T03:47:54-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1337,"type":"other","label":"nbbhjbhkjm","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":null,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":300,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":539,"invoiceId":1334,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2024-12-26 9:48:11.860687] [debug] valor el evento recibido por webhook: invoice.add - -[2024-12-26 9:48:11.861068] [debug] Adición de Factura - -[2024-12-26 9:48:11.861205] [debug] datos del notification para el invoice add:{"uuid":"61592535-fbff-4f51-be49-f4b5623a6b54","changeType":"insert","entity":"invoice","entityId":1334,"message":null,"clientId":2,"eventName":"invoice.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1334,"clientId":2,"number":"001298","createdDate":"2024-12-26T03:47:54-0600","dueDate":"2025-01-09T03:47:54-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1337,"type":"other","label":"nbbhjbhkjm","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":null,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":300,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":539,"invoiceId":1334,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2024-12-26 9:48:11.861303] [debug] Account Balance: 0 - -[2024-12-26 9:48:11.861382] [debug] Pago hecho con la factura: 300 - -[2024-12-26 9:48:11.861490] [debug] {"uuid":"61592535-fbff-4f51-be49-f4b5623a6b54","changeType":"insert","entity":"invoice","entityId":1334,"message":null,"clientId":2,"eventName":"invoice.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1334,"clientId":2,"number":"001298","createdDate":"2024-12-26T03:47:54-0600","dueDate":"2025-01-09T03:47:54-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1337,"type":"other","label":"nbbhjbhkjm","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":null,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":300,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":539,"invoiceId":1334,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2024-12-26 9:48:11.861619] [info] Se proceso los contactos - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":466,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:38:04-0600","amount":1000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":538,"invoiceId":1333,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":700},{"id":539,"invoiceId":1334,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria - -UUID: 74cc2bb45eb8409f92cd5dba99200d26 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 1000","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 1000\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:38 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:48\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:38 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:48","Clabe Transferencia Banamex":"0021804341999569810"}} - -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:38 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 1000","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:48","Saldo Actual":"💲0 está al corriente","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"💲 1000\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:38 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:48\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/crm/client/2"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} - -[2024-12-26 9:48:14.278933] [debug] HTTP request processing ended. -[2024-12-26 9:48:23.057898] [notice] Logging level set to:debug -[2024-12-26 9:48:23.058698] [debug] El valor del evento recibio en json: {"uuid":"6da4eff3-891b-4d58-b6c5-cfdc7291c4c3","changeType":"insert","entity":"invoice","entityId":"1335","eventName":"invoice.add","extraData":{"entity":{"id":1335,"clientId":2,"number":"001299","createdDate":"2024-12-26T03:48:17-0600","dueDate":"2025-01-09T03:48:17-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1338,"type":"service","label":"PREMIUM 27\/04\/2026 \u2013 26\/05\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2024-12-26 9:48:23.194453] [debug] valor el evento recibido por webhook: invoice.add - -[2024-12-26 9:48:23.194778] [debug] Adición de Factura - -[2024-12-26 9:48:23.194906] [debug] datos del notification para el invoice add:{"uuid":"6da4eff3-891b-4d58-b6c5-cfdc7291c4c3","changeType":"insert","entity":"invoice","entityId":1335,"message":null,"clientId":2,"eventName":"invoice.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1335,"clientId":2,"number":"001299","createdDate":"2024-12-26T03:48:17-0600","dueDate":"2025-01-09T03:48:17-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1338,"type":"service","label":"PREMIUM 27\/04\/2026 \u2013 26\/05\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2024-12-26 9:48:23.195019] [debug] Account Balance: -700 - -[2024-12-26 9:48:23.195115] [debug] Pago hecho con la factura: 0 - -[2024-12-26 9:48:23.195221] [debug] {"uuid":"6da4eff3-891b-4d58-b6c5-cfdc7291c4c3","changeType":"insert","entity":"invoice","entityId":1335,"message":null,"clientId":2,"eventName":"invoice.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":-700,"accountCredit":0,"accountOutstanding":700,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1335,"clientId":2,"number":"001299","createdDate":"2024-12-26T03:48:17-0600","dueDate":"2025-01-09T03:48:17-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1338,"type":"service","label":"PREMIUM 27\/04\/2026 \u2013 26\/05\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2024-12-26 9:48:23.195349] [info] Se proceso los contactos - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":466,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:38:04-0600","amount":1000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":538,"invoiceId":1333,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":700},{"id":539,"invoiceId":1334,"paymentId":466,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria - -UUID: 74cc2bb45eb8409f92cd5dba99200d26 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2700 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 1000","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2700 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 1000\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:38 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:48\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:38 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:48","Clabe Transferencia Banamex":"0021804341999569810"}} - -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:38 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 1000","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:48","Saldo Actual":"💲700 pendientes","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲700 pendientes\",\"Monto Ultimo Pago\": \"💲 1000\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:38 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:48\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/crm/client/2"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} - -[2024-12-26 9:48:25.321866] [debug] HTTP request processing ended. -[2024-12-26 9:48:38.557406] [notice] Logging level set to:debug -[2024-12-26 9:48:38.557957] [debug] El valor del evento recibio en json: {"uuid":"331c217d-4212-49ae-bebe-0539e0687871","changeType":"edit","entity":"invoice","entityId":"1335","eventName":"invoice.edit","extraData":{"entity":{"id":1335,"clientId":2,"number":"001299","createdDate":"2024-12-26T03:48:17-0600","dueDate":"2025-01-09T03:48:17-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1338,"type":"service","label":"PREMIUM 27\/04\/2026 \u2013 26\/05\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":700,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":540,"invoiceId":1335,"paymentId":467,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":{"id":1335,"clientId":2,"number":"001299","createdDate":"2024-12-26T03:48:17-0600","dueDate":"2025-01-09T03:48:17-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1338,"type":"service","label":"PREMIUM 27\/04\/2026 \u2013 26\/05\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[{"id":540,"invoiceId":1335,"paymentId":467,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false}}} - -[2024-12-26 9:48:38.733468] [debug] valor el evento recibido por webhook: invoice.edit - -[2024-12-26 9:48:38.733875] [debug] Edición de Factura - -[2024-12-26 9:48:38.734137] [debug] {"uuid":"331c217d-4212-49ae-bebe-0539e0687871","changeType":"edit","entity":"invoice","entityId":1335,"message":null,"clientId":2,"eventName":"invoice.edit","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":150,"accountCredit":150,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1335,"clientId":2,"number":"001299","createdDate":"2024-12-26T03:48:17-0600","dueDate":"2025-01-09T03:48:17-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1338,"type":"service","label":"PREMIUM 27\/04\/2026 \u2013 26\/05\/2026","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":125,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":null,"discountQuantity":null,"discountTotal":null}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":700,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":540,"invoiceId":1335,"paymentId":467,"creditNoteId":null,"refundId":null,"amount":700}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Daniel Humberto","clientLastName":"Soto Villegas Polleria","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"31 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2024-12-26 9:48:38.734287] [info] Se proceso los contactos - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":467,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:48:29-0600","amount":850,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":540,"invoiceId":1335,"paymentId":467,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":150,"userId":1015,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria - -UUID: 74cc2bb45eb8409f92cd5dba99200d26 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2150 a favor","Monto Ultimo Pago":"\ud83d\udcb2 850","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2150 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 850\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:48 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:48\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:48 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:48","Clabe Transferencia Banamex":"0021804341999569810"}} - -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:48 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 850","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:48","Saldo Actual":"💲150 a favor","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲150 a favor\",\"Monto Ultimo Pago\": \"💲 850\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:48 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:48\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","URL":"🌐 https://172.16.5.120/crm/client/2"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} - -[2024-12-26 9:48:41.042042] [debug] HTTP request processing ended. -[2024-12-26 9:48:41.163225] [notice] Logging level set to:debug -[2024-12-26 9:48:41.163444] [debug] El valor del evento recibio en json: {"uuid":"9a658d47-cea2-46bb-8866-0396ba359dcd","changeType":"insert","entity":"payment","entityId":"467","eventName":"payment.add","extraData":{"entity":{"id":467,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:48:29-0600","amount":850,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":540,"invoiceId":1335,"paymentId":467,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":150,"userId":1015,"attributes":[]},"entityBeforeEdit":null}} - -[2024-12-26 9:48:41.275841] [debug] valor el evento recibido por webhook: payment.add - -[2024-12-26 9:48:41.276175] [debug] datos del notification para el invoice add:{"uuid":"9a658d47-cea2-46bb-8866-0396ba359dcd","changeType":"insert","entity":"payment","entityId":467,"message":null,"clientId":2,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":150,"accountCredit":150,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":467,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:48:29-0600","amount":850,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":540,"invoiceId":1335,"paymentId":467,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":150,"userId":1015,"attributes":[]}} - -[2024-12-26 9:48:41.276279] [debug] valor del payment data: {"id":467,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:48:29-0600","amount":850,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":540,"invoiceId":1335,"paymentId":467,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":150,"userId":1015,"attributes":[]} - -[2024-12-26 9:48:41.276377] [debug] ***Se notifica y actualiza al cliente sobre su pago*** - -[2024-12-26 9:48:41.276506] [debug] Activado el check de mensajes de texto: 1 - -Eviando comprobante de pago al cliente: 2 con número: 5214181878106 - -Datos traidos con payment api: [{"id":467,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:48:29-0600","amount":850,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":540,"invoiceId":1335,"paymentId":467,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":150,"userId":1015,"attributes":[]}] - -Datos client data credit amount: 150 - -La cantidad que sobra de $150,00 MXN se ha convertido a crédito - -Verificar paymentCovers - -payment covers[{"id":540,"invoiceId":1335,"paymentId":467,"creditNoteId":null,"refundId":null,"amount":700}] - -Datos del payment covers: - -Invoice ID pagado: 1335 de esta cantidad: 700 - -Todos los Invoice IDs: 1335 - -Todas las cantidades: 700,00 - -Numero de factura: 001299 - -TOTAL de factura: 700 - -Se terminó de verificar payment covers - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "text", - "content": { - "text": "John Doe" - }, - "template_values": ["Daniel Humberto Soto Villegas Polleria", "467", "2", "26/12/2024 3:48am", "$850,00 MXN", "Transferencia bancaria 📱🏦", "1335", "$700,00 MXN", "$700,00 MXN", "$150 a favor", "La cantidad que sobra de $150,00 MXN se ha convertido a crédito"], - "template_uuid": "c1396a6ad3cb4192916d4ac2bfb782a5", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"0256b9403bae48ee93708376873ba8eb","status":"enqueued"}} -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":467,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:48:29-0600","amount":850,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":540,"invoiceId":1335,"paymentId":467,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":150,"userId":1015,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria - -UUID: 74cc2bb45eb8409f92cd5dba99200d26 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2150 a favor","Monto Ultimo Pago":"\ud83d\udcb2 850","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2150 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 850\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 26\/12\/2024 03:48 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:48\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 26\/12\/2024 03:48 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 26\/12\/2024 03:48","Clabe Transferencia Banamex":null}} - -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 26/12/2024 03:48 con Transferencia bancaria 📱🏦","Monto Ultimo Pago":"💲 850","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Fecha Ultima Actualizacion":"📆🔄️ 26/12/2024 03:48","Saldo Actual":"💲150 a favor","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲150 a favor\",\"Monto Ultimo Pago\": \"💲 850\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 26/12/2024 03:48 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 26/12/2024 03:48\",\"Clabe Transferencia Banamex\": \"\"}","URL":"🌐 https://172.16.5.120/crm/client/2"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} - -[2024-12-26 9:48:43.967506] [debug] HTTP request processing ended. -[2024-12-26 9:48:44.094408] [notice] Logging level set to:debug -[2024-12-26 9:48:44.094533] [debug] El valor del evento recibio en json: {"uuid":"32ec19a2-9732-4d27-bccc-dbe750b225bc","changeType":"edit","entity":"payment","entityId":"467","eventName":"payment.edit","extraData":{"entity":{"id":467,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:48:29-0600","amount":850,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":540,"invoiceId":1335,"paymentId":467,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":150,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":467,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-26T03:48:29-0600","amount":850,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":540,"invoiceId":1335,"paymentId":467,"creditNoteId":null,"refundId":null,"amount":700}],"creditAmount":150,"userId":1015,"attributes":[]}}} - -[2024-12-26 9:48:44.211895] [debug] valor el evento recibido por webhook: payment.edit - -[2024-12-26 9:48:44.212094] [debug] HTTP request processing ended. -[2024-12-26 16:00:04.468375] [notice] Logging level set to:debug -[2024-12-26 16:00:04.468533] [debug] El valor del evento recibio en json: {"uuid":"facf8c67-9548-44c7-9628-71775a3925d5","changeType":"insert","entity":"invoice","entityId":"1336","eventName":"invoice.add_draft","extraData":{"entity":{"id":1336,"clientId":1,"number":"001300","createdDate":"2024-12-26T10:00:01-0600","dueDate":"2025-01-09T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-24T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1339,"type":"service","label":"plan300 25\/11\/2024 \u2013 24\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":103,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":300,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":541,"invoiceId":1336,"paymentId":386,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Don Miguel \u00c1ngel","clientLastName":"Guerrero Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Calle Morelos 34","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2024-12-26 16:00:04.694118] [debug] valor el evento recibido por webhook: invoice.add_draft - -[2024-12-26 16:00:04.694338] [debug] HTTP request processing ended. -[2024-12-26 16:00:04.850878] [notice] Logging level set to:debug -[2024-12-26 16:00:04.850972] [debug] El valor del evento recibio en json: {"uuid":"d5b4f97e-fd56-4d23-baf3-0e274b2811d7","changeType":"draft_approved","entity":"invoice","entityId":"1336","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1336,"clientId":1,"number":"001300","createdDate":"2024-12-26T10:00:01-0600","dueDate":"2025-01-09T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-24T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1339,"type":"service","label":"plan300 25\/11\/2024 \u2013 24\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":103,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":300,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":0,"currencyCode":"MXN","status":3,"paymentCovers":[{"id":541,"invoiceId":1336,"paymentId":386,"creditNoteId":null,"refundId":null,"amount":300}],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Don Miguel \u00c1ngel","clientLastName":"Guerrero Gonz\u00e1lez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"Calle Morelos 34","clientStreet2":null,"clientCity":"Dolores Hidalgo","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2024-12-26 16:00:05.055501] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2024-12-26 16:00:05.055640] [debug] HTTP request processing ended. -[2024-12-27 16:00:04.130809] [notice] Logging level set to:debug -[2024-12-27 16:00:04.130933] [debug] El valor del evento recibio en json: {"uuid":"f1ace5a5-1c66-4025-8236-8a466d7a6bc4","changeType":"insert","entity":"invoice","entityId":"1337","eventName":"invoice.add_draft","extraData":{"entity":{"id":1337,"clientId":3,"number":"001301","createdDate":"2024-12-27T10:00:01-0600","dueDate":"2025-01-10T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1340,"type":"service","label":"plan300 27\/11\/2024 \u2013 26\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":3,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Lupita","clientLastName":"Morales","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":null,"clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2024-12-27 16:00:04.312634] [debug] valor el evento recibido por webhook: invoice.add_draft - -[2024-12-27 16:00:04.313072] [debug] HTTP request processing ended. -[2024-12-27 16:00:04.521655] [notice] Logging level set to:debug -[2024-12-27 16:00:04.521752] [debug] El valor del evento recibio en json: {"uuid":"2cf7a22e-3ba9-478d-bc3b-a470e5b11c7f","changeType":"draft_approved","entity":"invoice","entityId":"1337","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1337,"clientId":3,"number":"001301","createdDate":"2024-12-27T10:00:01-0600","dueDate":"2025-01-10T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1340,"type":"service","label":"plan300 27\/11\/2024 \u2013 26\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":3,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Lupita","clientLastName":"Morales","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":null,"clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2024-12-27 16:00:04.704426] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2024-12-27 16:00:04.704547] [debug] HTTP request processing ended. -[2024-12-27 16:00:05.719724] [notice] Logging level set to:debug -[2024-12-27 16:00:05.719825] [debug] El valor del evento recibio en json: {"uuid":"c8109782-6e9c-4bce-8680-07df6dfeeafc","changeType":"insert","entity":"invoice","entityId":"1338","eventName":"invoice.add_draft","extraData":{"entity":{"id":1338,"clientId":4,"number":"001302","createdDate":"2024-12-27T10:00:01-0600","dueDate":"2025-01-10T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1341,"type":"service","label":"plan300 27\/11\/2024 \u2013 26\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":4,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Griselda","clientLastName":"Avalos","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":null,"clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2024-12-27 16:00:05.872695] [debug] valor el evento recibido por webhook: invoice.add_draft - -[2024-12-27 16:00:05.872821] [debug] HTTP request processing ended. -[2024-12-27 16:00:05.982315] [notice] Logging level set to:debug -[2024-12-27 16:00:05.982410] [debug] El valor del evento recibio en json: {"uuid":"df049fbb-86db-4e5d-b4b4-ed12e8753eb7","changeType":"draft_approved","entity":"invoice","entityId":"1338","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1338,"clientId":4,"number":"001302","createdDate":"2024-12-27T10:00:01-0600","dueDate":"2025-01-10T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-26T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1341,"type":"service","label":"plan300 27\/11\/2024 \u2013 26\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":4,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Griselda","clientLastName":"Avalos","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":null,"clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2024-12-27 16:00:06.178169] [debug] valor el evento recibido por webhook: invoice.draft_approved - -[2024-12-27 16:00:06.178296] [debug] HTTP request processing ended. -[2024-12-27 17:58:47.127851] [notice] Logging level set to:debug -[2024-12-27 17:58:47.127942] [warning] no input -[2024-12-27 17:58:47.127954] [debug] HTTP request processing ended. -[2024-12-27 17:58:49.932408] [notice] Logging level set to:debug -[2024-12-27 17:58:49.932475] [warning] no input -[2024-12-27 17:58:49.932488] [debug] HTTP request processing ended. -[2024-12-27 18:28:25.185002] [notice] Logging level set to:debug -[2024-12-27 18:28:25.185107] [debug] El valor del evento recibio en json: {"uuid":"2810bcf1-3995-466b-b4db-00514bde778a","changeType":"insert","entity":"payment","entityId":"468","eventName":"payment.add","extraData":{"entity":{"id":468,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-27T12:28:11-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":150,"userId":1015,"attributes":[]},"entityBeforeEdit":null}} - -[2024-12-27 18:28:25.310632] [debug] valor el evento recibido por webhook: payment.add - -[2024-12-27 18:28:25.310965] [debug] datos del notification para el invoice add:{"uuid":"2810bcf1-3995-466b-b4db-00514bde778a","changeType":"insert","entity":"payment","entityId":468,"message":null,"clientId":2,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":300,"accountCredit":300,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":468,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-27T12:28:11-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":150,"userId":1015,"attributes":[]}} - -[2024-12-27 18:28:25.311039] [debug] valor del payment data: {"id":468,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-27T12:28:11-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":150,"userId":1015,"attributes":[]} - -[2024-12-27 18:28:25.311142] [debug] ***Se notifica y actualiza al cliente sobre su pago*** +[2025-01-02 8:14:56.467117] [debug] ***Se notifica y actualiza al cliente sobre su pago*** Eviando comprobante de pago al cliente: 2 con número: 5214181878106 El archivo se ha descargado correctamente y se ha guardado en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png -El nombre del archivo PDF es: /home/unms/data/ucrm/ucrm/data/payment_receipts/55586a0e-46c1-47a9-adcd-1e9d61878ab9.pdf +El nombre del archivo PDF es: /home/unms/data/ucrm/ucrm/data/payment_receipts/3a6ceac9-1e41-447f-822a-853c183c4319.pdf -[2024-12-27 18:28:25.875103] [notice] Logging level set to:debug -[2024-12-27 18:28:25.875202] [debug] El valor del evento recibio en json: {"uuid":"fea0782c-64af-4cdd-abd7-aa1462b67a11","changeType":"edit","entity":"payment","entityId":"468","eventName":"payment.edit","extraData":{"entity":{"id":468,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-27T12:28:11-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":150,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":468,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-27T12:28:11-0600","amount":150,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":150,"userId":1015,"attributes":[]}}} +se creó la instancia de Imagick +[2025-01-02 8:15:06.379894] [notice] Logging level set to:debug +[2025-01-02 8:15:06.380249] [debug] El valor del evento recibio en json: {"uuid":"e41dde94-e7d7-49ed-8054-28cec93aadab","changeType":"edit","entity":"payment","entityId":"470","eventName":"payment.edit","extraData":{"entity":{"id":470,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T02:14:47-0600","amount":30,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":30,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":470,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T02:14:47-0600","amount":30,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":30,"userId":1015,"attributes":[]}}} -[2024-12-27 18:28:25.986881] [debug] valor el evento recibido por webhook: payment.edit +[2025-01-02 8:15:06.527863] [debug] valor el evento recibido por webhook: payment.edit -[2024-12-27 18:28:25.987111] [debug] HTTP request processing ended. -[2024-12-27 18:37:47.909444] [notice] Logging level set to:debug -[2024-12-27 18:37:47.909854] [debug] El valor del evento recibio en json: {"uuid":"bbef15bb-b78d-4669-9884-ec3404e33e3f","changeType":"insert","entity":"payment","entityId":"469","eventName":"payment.add","extraData":{"entity":{"id":469,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-27T12:37:38-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":1015,"attributes":[]},"entityBeforeEdit":null}} +[2025-01-02 8:15:06.528238] [debug] HTTP request processing ended. +Ancho original de la imagen:791 Altura original de la imagen: 1024 -[2024-12-27 18:37:48.038662] [debug] valor el evento recibido por webhook: payment.add +Inicio x:110.74 Inicio y: 51.2 -[2024-12-27 18:37:48.039064] [debug] datos del notification para el invoice add:{"uuid":"bbef15bb-b78d-4669-9884-ec3404e33e3f","changeType":"insert","entity":"payment","entityId":469,"message":null,"clientId":2,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":470,"accountCredit":470,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":469,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-27T12:37:38-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":1015,"attributes":[]}} +Terminó de crear la imagen del comprobante -[2024-12-27 18:37:48.039165] [debug] valor del payment data: {"id":469,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-27T12:37:38-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":1015,"attributes":[]} +Subiendo comprobante a worpdpress -[2024-12-27 18:37:48.039227] [debug] ***Se notifica y actualiza al cliente sobre su pago*** +Conexión FTP exitosa -Eviando comprobante de pago al cliente: 2 con número: 5214181878106 +El archivo ha sido cargado exitosamente. -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 +La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png -El nombre del archivo PDF es: /home/unms/data/ucrm/ucrm/data/payment_receipts/ea69fafe-a27c-459a-ad05-ce448b6860ca.pdf +Archivos eliminados -[2024-12-27 18:37:48.581295] [notice] Logging level set to:debug -[2024-12-27 18:37:48.581531] [debug] El valor del evento recibio en json: {"uuid":"3b9bf1be-d452-4683-94f7-c81a0b0a002a","changeType":"edit","entity":"payment","entityId":"469","eventName":"payment.edit","extraData":{"entity":{"id":469,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-27T12:37:38-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":469,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2024-12-27T12:37:38-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":1015,"attributes":[]}}} +Se terminó de subir comprobante a wordpress -[2024-12-27 18:37:48.692861] [debug] valor el evento recibido por webhook: payment.edit +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", "$30", "$500 a favor"], + "template_uuid": "57ead79cebd14902921477922403093b", + "optin_contact": true + } +Response del CallBell: {"message":{"uuid":"a2682ef4df244843aeb8cbd3748f7b22","status":"enqueued"}} +Hay menos de 50 archivos en el directorio. No se eliminarán archivos. -[2024-12-27 18:37:48.693108] [debug] HTTP request processing ended. -[2024-12-28 9:58:49.961395] [notice] Logging level set to:debug -[2024-12-28 9:58:49.961540] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":2,"saldo":-300,"message":"Solicitud de referencia de oxxo"} +Dentro del proceso del patch: -[2024-12-28 9:58:49.961560] [info] Evento de referencia de oxxo recibido: +Datos traidos con payment api: [{"id":470,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T02:14:47-0600","amount":30,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":30,"userId":1015,"attributes":[]}] -[2024-12-28 9:58:49.961572] [info] Creando referencia del cliente para oxxo: +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria -[2024-12-28 9:58:50.122697] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_PetN1dhr4rx0kX +UUID: 74cc2bb45eb8409f92cd5dba99200d26 -[2024-12-28 9:58:50.122736] [info] Este cliente no tiene adeudos por lo tanto no se puede genear su referencia de oxxo. +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\udcb2500 a favor","Monto Ultimo Pago":"\ud83d\udcb2 30","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2500 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 30\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 02\/01\/2025 02:14 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 02\/01\/2025 02:15\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 02\/01\/2025 02:14 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 02\/01\/2025 02:15","Clabe Transferencia Banamex":null}} -[2024-12-28 9:58:50.123092] [debug] Este ese el reponse que se envía a CallBell: {"url": "errorsinadeudo"} -[2024-12-28 9:58:50.123138] [error] JSON error: No error -[2024-12-28 9:58:50.123152] [debug] HTTP request processing ended. +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 02/01/2025 02:14 con Transferencia bancaria 📱🏦","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Saldo Actual":"💲500 a favor","URL":"🌐 https://172.16.5.120/crm/client/2","Monto Ultimo Pago":"💲 30","Fecha Ultima Actualizacion":"📆🔄️ 02/01/2025 02:15","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\": \"💲500 a favor\",\"Monto Ultimo Pago\": \"💲 30\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 02/01/2025 02:14 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 02/01/2025 02:15\",\"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-02 17:06:16.446589] [notice] Logging level set to:debug +[2025-01-02 17:06:16.446767] [debug] El valor del evento recibio en json: {"uuid":"790e8f0c-0ffb-46e1-aca7-e9e45b83e0c0","changeType":"edit","entity":"client","entityId":"2","eventName":"client.edit","extraData":{"entity":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":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":500,"accountCredit":500,"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},"entityBeforeEdit":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"dsoto02","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]},{"id":159,"clientId":2,"email":null,"phone":"4181148783","name":null,"isBilling":false,"isContact":false,"types":[]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":500,"accountCredit":500,"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}}} + +[2025-01-02 17:06:16.526681] [debug] valor el evento recibido por webhook: client.edit + +[2025-01-02 17:06:16.526904] [debug] Se actualiza a un cliente + +[2025-01-02 17:06:16.526962] [info] Se proceso los contactos + +Dentro del proceso del patch: + +Datos traidos con payment api: [{"id":470,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T02:14:47-0600","amount":30,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":30,"userId":1015,"attributes":[]}] + +Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria + +UUID: 74cc2bb45eb8409f92cd5dba99200d26 + +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb2500 a favor","Monto Ultimo Pago":"\ud83d\udcb2 30","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb2500 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 30\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 02\/01\/2025 02:14 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 02\/01\/2025 11:06\",\"Clabe Transferencia Banamex\": \"0021804341999569810\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 02\/01\/2025 02:14 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 02\/01\/2025 11:06","Clabe Transferencia Banamex":"0021804341999569810"}} diff --git a/siip-whatsapp-notifications.zip b/siip-whatsapp-notifications.zip old mode 100644 new mode 100755