{"id":12444,"date":"2024-01-24T12:42:03","date_gmt":"2024-01-24T12:42:03","guid":{"rendered":"https:\/\/jaldi.store\/?p=9015"},"modified":"2026-08-26T09:23:26","modified_gmt":"2026-08-26T09:23:26","slug":"how-to-capture-redeem-points-crm-api-log-in-adempiere-retail","status":"publish","type":"post","link":"https:\/\/tenthplanet.in\/idempiere\/how-to-capture-redeem-points-crm-api-log-in-adempiere-retail\/","title":{"rendered":"How to capture Redeem Points CRM API Log in ADempiere Retail"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This feature logs the CRM API interaction that happens when a customer redeems loyalty points during billing. It helps track whether the redemption request was successfully communicated to the CRM and what response was received.<\/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>Check if the <strong>redeem request<\/strong> was successfully sent to CRM.<\/li>\n\n\n\n<li>View <strong>API response<\/strong> from CRM (e.g., success, insufficient points, invalid mobile).<\/li>\n\n\n\n<li>Retry the API call in case of failure.<\/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 loyalty redemption API should be configured and enabled.<\/li>\n\n\n\n<li>Customer must be selected before redemption.<\/li>\n\n\n\n<li>Points balance must be validated before sending redeem request.<\/li>\n\n\n\n<li>POS or middle ware must have logging capability for CRM calls.<\/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>System must log all <strong>redeem point API calls<\/strong>, whether success or failure.<\/li>\n\n\n\n<li>Each log must include:\n<ul class=\"wp-block-list\">\n<li>Mobile number or customer ID<\/li>\n\n\n\n<li>Redeemed amount and equivalent points<\/li>\n\n\n\n<li>Invoice number (if already created)<\/li>\n\n\n\n<li>Request timestamp<\/li>\n\n\n\n<li>API endpoint called<\/li>\n\n\n\n<li>CRM response (success\/fail + message)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>If the CRM API call fails:\n<ul class=\"wp-block-list\">\n<li>Show an alert to the cashier with the reason<\/li>\n\n\n\n<li>Allow retry only before invoice is completed<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>CRM log entries should be <strong>read-only<\/strong> and retained for a fixed duration (e.g., 30\u201390 days).<\/li>\n\n\n\n<li>Reuse or rollback of failed redemption should follow business validation logic.<\/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 is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"635\" src=\"https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2024\/01\/TenthPlanet-ADempiere-CRMAPILOG-3.png\" alt=\"TenthPlanet-ADempiere-CRMAPILOG-3.png\" class=\"wp-image-22688\" style=\"width:840px;height:521px\" title=\"\" srcset=\"https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2024\/01\/TenthPlanet-ADempiere-CRMAPILOG-3.png 1024w, https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2024\/01\/TenthPlanet-ADempiere-CRMAPILOG-3-300x186.png 300w, https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2024\/01\/TenthPlanet-ADempiere-CRMAPILOG-3-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 a Redeem pts 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-4.png\" alt=\"TenthPlanet-ADempiere-CRMAPILOG-4.png\" class=\"wp-image-22687\" title=\"\" srcset=\"https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2024\/01\/TenthPlanet-ADempiere-CRMAPILOG-4.png 1024w, https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2024\/01\/TenthPlanet-ADempiere-CRMAPILOG-4-300x184.png 300w, https:\/\/tenthplanet.in\/idempiere\/wp-content\/uploads\/sites\/13\/2024\/01\/TenthPlanet-ADempiere-CRMAPILOG-4-768x470.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>This feature logs the CRM API interaction that happens when a customer redeems loyalty points during billing. It helps track [&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-12444","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\/12444","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=12444"}],"version-history":[{"count":5,"href":"https:\/\/tenthplanet.in\/idempiere\/wp-json\/wp\/v2\/posts\/12444\/revisions"}],"predecessor-version":[{"id":28771,"href":"https:\/\/tenthplanet.in\/idempiere\/wp-json\/wp\/v2\/posts\/12444\/revisions\/28771"}],"wp:attachment":[{"href":"https:\/\/tenthplanet.in\/idempiere\/wp-json\/wp\/v2\/media?parent=12444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tenthplanet.in\/idempiere\/wp-json\/wp\/v2\/categories?post=12444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tenthplanet.in\/idempiere\/wp-json\/wp\/v2\/tags?post=12444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}