{"id":12438,"date":"2024-01-24T12:42:03","date_gmt":"2024-01-24T12:42:03","guid":{"rendered":"https:\/\/jaldi.store\/?p=9009"},"modified":"2026-08-05T06:56:47","modified_gmt":"2026-08-05T06:56:47","slug":"how-to-capture-invoice-crm-api-log-for-synch-in-adempiere-retail","status":"publish","type":"post","link":"https:\/\/tenthplanet.in\/idempiere\/how-to-capture-invoice-crm-api-log-for-synch-in-adempiere-retail\/","title":{"rendered":"How to capture Invoice CRM API Log for synch in ADempiere Retail"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This functionality refers to recording the details of <strong>CRM API communication related to invoice data<\/strong>, such as invoice creation, loyalty points allocation, and customer sync. It helps in tracking whether invoice details were successfully pushed to CRM or failed, along with the reason.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>User Access<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Who Can Access<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>IT ADMIN<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>What User Can Do<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>View whether invoice data was <strong>successfully pushed<\/strong> to CRM.<\/li>\n\n\n\n<li>See <strong>API response status<\/strong>: success, failure, timeout, etc.<\/li>\n\n\n\n<li>Identify <strong>error messages<\/strong> if the sync fails.<\/li>\n\n\n\n<li>Trigger <strong>re-push<\/strong> of invoice data to CRM if required.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Pre-Requisite Activities<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>CRM integration must be configured and active.<\/li>\n\n\n\n<li>API logging must be <strong>enabled<\/strong> in the POS or middleware layer.<\/li>\n\n\n\n<li>Invoice sync should be set to <strong>auto<\/strong> or <strong>manual push<\/strong> based on business rules.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Business Rules<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Invoice sync to CRM should occur <strong>after bill completion<\/strong> (invoice generation).<\/li>\n\n\n\n<li>Every API call must be <strong>logged<\/strong> with:\n<ul class=\"wp-block-list\">\n<li>Invoice number<\/li>\n\n\n\n<li>Date and time<\/li>\n\n\n\n<li>API endpoint used<\/li>\n\n\n\n<li>Request payload (optional\/masked)<\/li>\n\n\n\n<li>Response (success\/failure)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>If sync fails, the system should:\n<ul class=\"wp-block-list\">\n<li>Flag the invoice as \u201cSync Pending\u201d or \u201cCRM Failure\u201d<\/li>\n\n\n\n<li>Provide an option to <strong>retry manually<\/strong><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Only authorized users should be able to <strong>view or reprocess<\/strong> logs.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>User Interface<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>STEP 1:<\/strong> Enter into the screen CRM API LOG<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"635\" src=\"https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2024\/01\/TenthPlanet-ADempiere-CRMAPILOG-1.png\" alt=\"TenthPlanet-ADempiere-CRMAPILOG-1\" class=\"wp-image-22665\" title=\"\" srcset=\"https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2024\/01\/TenthPlanet-ADempiere-CRMAPILOG-1.png 1024w, https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2024\/01\/TenthPlanet-ADempiere-CRMAPILOG-1-300x186.png 300w, https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2024\/01\/TenthPlanet-ADempiere-CRMAPILOG-1-768x476.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>STEP 2:<\/strong> you can view the log file once enter it into the API log screen as an invoice API LOG<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"627\" src=\"https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2024\/01\/TenthPlanet-ADempiere-CRMAPILOG-2.png\" alt=\"TenthPlanet-ADempiere-CRMAPILOG-2\" class=\"wp-image-22668\" title=\"\" srcset=\"https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2024\/01\/TenthPlanet-ADempiere-CRMAPILOG-2.png 1024w, https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2024\/01\/TenthPlanet-ADempiere-CRMAPILOG-2-300x184.png 300w, https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2024\/01\/TenthPlanet-ADempiere-CRMAPILOG-2-768x470.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>This functionality refers to recording the details of CRM API communication related to invoice data, such as invoice creation, loyalty [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32,85,31],"tags":[],"class_list":["post-12438","post","type-post","status-publish","format-standard","hentry","category-jaldi-super-store","category-adempiere-pos","category-jaldi-life-style"],"_links":{"self":[{"href":"https:\/\/tenthplanet.in\/idempiere\/wp-json\/wp\/v2\/posts\/12438","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tenthplanet.in\/idempiere\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tenthplanet.in\/idempiere\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tenthplanet.in\/idempiere\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tenthplanet.in\/idempiere\/wp-json\/wp\/v2\/comments?post=12438"}],"version-history":[{"count":4,"href":"https:\/\/tenthplanet.in\/idempiere\/wp-json\/wp\/v2\/posts\/12438\/revisions"}],"predecessor-version":[{"id":22672,"href":"https:\/\/tenthplanet.in\/idempiere\/wp-json\/wp\/v2\/posts\/12438\/revisions\/22672"}],"wp:attachment":[{"href":"https:\/\/tenthplanet.in\/idempiere\/wp-json\/wp\/v2\/media?parent=12438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tenthplanet.in\/idempiere\/wp-json\/wp\/v2\/categories?post=12438"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tenthplanet.in\/idempiere\/wp-json\/wp\/v2\/tags?post=12438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}